Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpk tune ducktape tests #5407

Merged
merged 3 commits into from
Jul 13, 2022
Merged

rpk tune ducktape tests #5407

merged 3 commits into from
Jul 13, 2022

Conversation

r-vasquez
Copy link
Contributor

Cover letter

Added the following ducktape tests:

  • rpk redpanda tune /all
  • rpk redpanda tune list
  • rpk redpanda mode production

The rpk redpanda tune test will only run in Clustered Ducktape since they can't run in a normal containerized environment.

Tested in AWS:

test_id:    rptest.tests.rpk_tuner_test.RpkTunerTest.test_tune_fstrim
status:     PASS
run time:   5.012 seconds
--------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_tuner_test.RpkTunerTest.test_tune_list
status:     PASS
run time:   4.725 seconds
--------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_tuner_test.RpkTunerTest.test_tune_prod_all
status:     PASS
run time:   4.824 seconds
--------------------------------------------------------------------------------------------------------------------------------------------------------------
test_id:    rptest.tests.rpk_tuner_test.RpkTunerTest.test_tune_transparent_hugepages
status:     PASS
run time:   4.713 seconds
--------------------------------------------------------------------------------------------------------------------------------------------------------------
==============================================================================================================================================================
SESSION REPORT (ALL TESTS)
ducktape version: 0.8.8
session_id:       2022-07-08--001
run time:         19.324 seconds
tests run:        4
passed:           4
failed:           0
ignored:          0
opassed:          0
ofailed:          0

Fixes of #4628

Release notes

  • none

We want to make sure that the start/installation
path that we guide the user to follow is covered
in our CI, running rpk redpanda mode prod is a
crucial step before running the tuners.
Tests will be only available in CDT since they
rely on the environment and can't be run in
a container.
This golden test will allow us to catch when a
new tuner is either added or removed from
production mode
@r-vasquez
Copy link
Contributor Author

Both errors related to: #4772

fstrim was disabled in production mode https://github.com/redpanda-data/redpanda/issues/3068
"""
node = self.redpanda.nodes[0]
rpk = RpkRemoteTool(self.redpanda, node)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these tests check rpk.tune_fstrim, and below, rpk.transparent_hugepages are false before swapping to true?

This will avoid the (not problematic, but redundant) scenario if THP or fstrim are set to true in mode prod: tune all will check these, so we'll be able to delete these tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(not sure how compelling this comment/question is so feel free to dismiss)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true, we also catch this change in test_config_change_mode_prod

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I was thinking that if one of those is set to true, a person wont know to go into this file and remove these redundant tests

@twmb twmb merged commit fe0db14 into redpanda-data:dev Jul 13, 2022
@r-vasquez r-vasquez deleted the tuner-ducktape branch July 13, 2022 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants