-
Notifications
You must be signed in to change notification settings - Fork 1.3k
configdrive: fix some failures in tests/component/test_configdrive.py #5144
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
configdrive: fix some failures in tests/component/test_configdrive.py #5144
Conversation
|
Should we consider that for 4.15.1? |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
@rhtyd They are not critical issues I think. we can move it to 4.15.2.0 or 4.16.0.0. The testing still fails in testing of isolated networks and vpcs for now (shared networks works). Very few users use configdrive for vms on isolated networks and vpcs. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 347 |
|
@weizhouapache We know several users who use config drive feature esp for L2 networks and in VR-less networks, I'm planing to cut RC3 on Monday. Would this PR be ready before that? |
|
I guess the question is - is the feature broken or just the tests? |
@rhtyd it is difficult.
@rhtyd the feature is not broken. what I have fixed in this pr for now |
@rhtyd I do not have an exact date when all issues are fixed and tests pass. it seems very difficult to be ready before next monday. it is better to move it to 4.15.2.0 |
|
cc @Pearl1594 @weizhouapache does it break any basic config drive feature if tested manually, say config drive with ssh support and user data on L2 and isolated networks (without VR)? |
@rhtyd from what I have tested, there are no issues with following vm actions What might not work (some are confirmed, some are not) |
|
Thanks for confirming @weizhouapache I'll move it to 4.15.2 |
…plug a new nic or migrate vm
… (2) vm hostname should be changed after migration
|
@weizhouapache is this ready for review (PR is in draft) |
8781b99 to
845808b
Compare
@rhtyd @DaanHoogland please note I only tested with kvm, not xenserver. |
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 411 |
|
@blueorangutan test |
|
@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan test centos7 xenserver-72 |
|
@DaanHoogland unsupported parameters provided. Supported mgmt server os are: |
|
@blueorangutan test centos7 xenserver-74 |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + xenserver-74) has been kicked to run smoke tests |
| configdrive = disk; | ||
| } | ||
| } | ||
| if (configdrive != null) { |
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.
We could invert the logic here to reduce block complexity.
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.
I like your thinking @GutoVeronezi , but in this case that would leave a return in the middle of the method. I'd rather extract the block into an extra method.
|
Trillian test result (tid-1156)
|
|
Trillian test result (tid-1154)
|
|
@blueorangutan package |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 532 |
DaanHoogland
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.
cltgm, going to test this (starting) today
|
Trillian test result (tid-1251)
|
rohityadavcloud
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.
+1 based on Daan's remarks/testing
Description
This PR fixes a series of bug when test test_configdrive.py
(1) detachAnd Attach ConfigDrive ISO on kvm, in some cases configdrive ISO is updated, for example, plug a new nic, or migrate vm.
(2) use "copy" instead of "mv" when create configdrive ISO in SSVM, as configdrive ISO will disappear in VM if "mv" is used.
(3) fix two exceptions when enable/disable static nat on vms with configdrive ISO. (public IP in configdrive ISO is updated in these two cases)
(4) fix two issues in setup/bindir/cloud-set-guest-sshkey-configdrive.in
(5) fix few bugs in test/integration/component/test_configdrive.py
(6) build and use centos55 with both sshkey and configdrive support for testing.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
tested on with kvm.