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

mgr/selftest: fix disabled module selection #24517

Merged
merged 1 commit into from Oct 12, 2018
Merged

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Oct 10, 2018

This was broken intermittently by always on modules -- it was also
unnecessary complication, let's just pick some
hardcoded module to use.

Signed-off-by: John Spray john.spray@redhat.com

Copy link
Contributor

@dotnwat dotnwat left a comment

Choose a reason for hiding this comment

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

change looks good, but that typo will probably show up in QA runs

all_modules = [m['name'] for m in mgr_map['available_modules']]
disabled_modules = set(all_modules) - set(mgr_map['modules'])
disabled_module = list(disabled_modules)[0]
assert disabled_moduled not in mgr_map['modules']
Copy link
Contributor

Choose a reason for hiding this comment

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

disabled_moduled typo?

Copy link
Contributor

Choose a reason for hiding this comment

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

also: presumably the the assert is testing that the module isn't enabled and it isn't always on. might want to test that its not in the union of map['modules'] and map['always_on_modules']

This was broken by always on modules -- it was also
unnecessary complication, let's just pick some
hardcoded module to use.

Signed-off-by: John Spray <john.spray@redhat.com>
@jcsp
Copy link
Contributor Author

jcsp commented Oct 11, 2018

Good catch, updated

@jcsp jcsp merged commit 27ea9ca into ceph:master Oct 12, 2018
@jcsp jcsp deleted the wip-23970-test branch October 12, 2018 12:05
@jcsp
Copy link
Contributor Author

jcsp commented Oct 12, 2018

Merged on strength of a vstart_runner pass, as this was already generating failures in teuthology

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants