-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
testlib: when provisioning VMs allow to keep the original machine_class #19510
testlib: when provisioning VMs allow to keep the original machine_class #19510
Conversation
c4aea73
to
54b32e0
Compare
@martinpitt re-check please :) ? |
test/common/testlib.py
Outdated
if inherit_machine_class: | ||
machine_class = inherit_machine_class and self.machine_class or testvm.VirtMachine | ||
else: | ||
machine_class = testvm.VirtMachine |
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.
Please drop the if:
and else:
branch. Line 1281 is sufficient to cover all cases.
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.
oops thanks.
This use case is becoming now valid in the anaconda repository, where we overwrite the machine_class for running the VMs from ISO, however we will need to start provisioning 'normal' cloud VMs, to act as servers for network storage; see iscsi.
54b32e0
to
5774a3f
Compare
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.
Epharisto! Still a bit of an ad-hoc API, but we can change this in the future.
Ideally I would like to be able to provision only VMs as extra, and let the the default VM that the test spawns out of the provision list. I did not see this as straightforward therefore I went with this easy alternative. |
This use case is becoming now valid in the anaconda repository, where we overwrite the machine_class for running the VMs from ISO, however we will need to start provisioning 'normal' cloud VMs, to act as servers for network storage; see iscsi.