-
Notifications
You must be signed in to change notification settings - Fork 6
Choose a local SR that was already in the pool before the tests #363
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
base: master
Are you sure you want to change the base?
Conversation
stormi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message must describe what the problem was.
f706e0a to
13db638
Compare
13db638 to
50f1d28
Compare
rzr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds fair enough, but it may have impact on the reproducibility of test
lib/host.py
Outdated
| ) | ||
| # We don't want a SR added by the test, so choose one that already existed | ||
| pre_existing_local_sr_uuids = sorted(set(self.pool.pre_existing_sr_uuids) & set(local_sr_uuids)) | ||
| assert local_sr_uuids, f"DEFAULT_SR=='local' so there must be a local SR on host {self}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should update the assert here to use pre_existing_local_sr_uuids
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
50f1d28 to
b7dac3e
Compare
The test may create a local SR that should be used only for the test. Using it for something else, like caching the VMs, it prevents the SR being destroyed in the tear down. Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
b7dac3e to
e44e6b8
Compare
No description provided.