cloudbase-init does not set network information again after resizing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloudbase-init |
Opinion
|
Undecided
|
Unassigned | ||
compute-hyperv |
Fix Released
|
Undecided
|
Unassigned | ||
os-win |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi cloudbase team, I think I met an cloudbaseinit issue.
There are 2 key points:
Point 1. when resizing vm (which is deployed with windows 2008 image), it changed to an new adapter.
Point 2. why the cloudbaseinit did not set network information again when changing to new adapter.
PS: we are using config drive to set network, not by dhcp.
The vm deployed with linux image can be resized successfully, so this issue only happens with windows vm.
we just tested on hyper-v, not test on KVM.
Here is my environment:
In my Hyper-v environment, I booted a vm with windows 2008 image and got IP 172.13.84.123 which is pingable. Then I resized it to big flavor, and I can not ping 172.13.84.123 anymore. I logged in the vm via hyper-v console and found it got an new IP 169.254.169.67.
1:
With my investigation, When I changed back to original IP for the vm manually, it reminded that the IP was using by another adapter. It means that the IP was matched with the old adapter. Also we found that the adapter for network connection changed after resizing. In my test, the adapter was "Microsoft Virtual Machine Bus Network Adapter #2" and changed to "Microsoft Virtual Machine Bus Network Adapter #3" after resizing, also the adapter ID changed.
2:
I checked the cloudbase-init.log on the vm booted from win2008 image, and found that the cloudbaseinit executes plugin 'NetworkConfigP
When boot vm for the first time, cloudbaseinit will execute plugin 'NetworkConfigP
2015-12-01 02:18:51.244 1756 INFO cloudbaseinit.init [-] Executing plugin 'NetworkConfigP
2015-12-01 02:18:51.244 1756 DEBUG cloudbaseinit.
2015-12-01 02:18:51.244 1756 DEBUG cloudbaseinit.
2015-12-01 02:18:51.244 1756 DEBUG cloudbaseinit.
When resizing vm to a bigger flavor, cloudbaseinit will skip executing plugin 'NetworkConfigP
Solutions\
2015-12-01 02:29:52.236 1536 DEBUG cloudbaseinit.init [-] Plugin 'NetworkConfigP
"adapater information before resizing" and "adapater information after resizing" and "adapter conflict when modifying IP manually" and "cloudbase-
The screenshots and cloudbase-init.log are shown with attachements. I do not know whether it is a cloudbaseinit bug. Please help confirm it, any feedback is helpful, many thanks.
Changed in cloudbase-init: | |
status: | New → Opinion |
Changed in os-win: | |
status: | New → Invalid |
Changed in compute-hyperv: | |
status: | Fix Committed → Fix Released |
For the cloudbase-init version, we now can provide this information: CloudbaseInitSe tup_Beta. msi. Could this can help confirm the version?
The adapter before/ after resizing and IP conflict information are shown as the attachment.