does not recognize cloned KVM VM as new instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Undecided
|
Unassigned | ||
cloud-init (Suse) |
Fix Released
|
Medium
|
Bug Description
On a SLES 15 KVM VM on Proxmox VE cloud-init 18.2-3.13 from module/repo Public-
This leads to network configuration not applied and thus duplicate IP addresses when VM is started:
% tail -f /var/log/
2018-10-31 13:55:27,370 - __init__.py[INFO]: /var/lib/
2018-10-31 13:57:37,431 - main.py[DEBUG]: No kernel command line url found.
2018-10-31 13:57:37,431 - main.py[DEBUG]: Closing stdin.
2018-10-31 13:57:37,454 - main.py[DEBUG]: Checking to see if files that we need already exist from a previous run that would allow us to stop early.
2018-10-31 13:57:37,455 - main.py[DEBUG]: Execution continuing, no previous run detected that would allow us to stop early.
2018-10-31 13:57:37,455 - handlers.py[DEBUG]: start: init-network/
2018-10-31 13:57:37,463 - stages.py[DEBUG]: restored from cache with run check: DataSourceNoClo
2018-10-31 13:57:37,464 - handlers.py[DEBUG]: finish: init-network/
2018-10-31 13:57:37,488 - stages.py[DEBUG]: previous iid found to be 414842fe12da6f1
2018-10-31 13:57:37,493 - main.py[DEBUG]: [net] init will now be targeting instance id: 414842fe12da6f1
2018-10-31 13:57:37,514 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': [{'type': 'physical', 'name': 'eth0', 'mac_address': '76:61:
2018-10-31 13:57:37,515 - stages.py[DEBUG]: Using distro class <class 'cloudinit.
2018-10-31 13:57:37,529 - __init__.py[DEBUG]: no work necessary for renaming of [['76:61:
2018-10-31 13:57:37,530 - stages.py[DEBUG]: not a new instance. network config is not applied.
Network configuration obviously was changed however.
Commands used for cloning (using a self-made shell script)
qm shutdown 1032 ; qm clone 1032 2200 --name slesmaster ; qm template 2200
qm clone 2200 2201 --name sles1 ; qm set 2201 --ipconfig0 ip=10.0.
qm clone 2200 2202 --name sles2 ; qm set 2202 --ipconfig0 ip=10.0.
Changed in cloud-init (Suse): | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in cloud-init (Suse): | |
status: | Confirmed → Fix Released |
Reported upstream as: https:/ /bugs.launchpad .net/cloud- init/+bug/ 1800848
On a SLES 15 KVM VM on Proxmox VE cloud-init 18.2-3.13 from module/repo Public- Cloud-Module_ 15-0 cloud-init fails to recognize a newly cloned VM from a template where cloud-init has initially been run for test purposes as a new instance. VM is using NoCloud resource.
This leads to network configuration not applied and thus duplicate IP addresses when VM is started:
% tail -f /var/log/ cloud-init. log | grep -v util.py cloud/data/ previous- hostname differs from /etc/hostname, assuming user maintained hostname. check-cache: attempting to read from cache [trust] udNet [seed=/dev/sr0] [dsmode=net] check-cache: SUCCESS: restored from cache with run check: DataSourceNoClo udNet [seed=/ dev/sr0] [dsmode= net] 078eca77443e6ab 84592299ba 078eca77443e6ab 84592299ba. new=False cf:d5:65: b2', 'subnets': [{'type': 'static', 'address': '10.0.88.32', 'netmask': '255.255.0.0', 'gateway': '10.0.0.4'}, {'type': 'static', 'address': 'auto'}]}, {'type': 'nameserver', 'address': ['10.0.0.4'], 'search': ['qs.de']}]} distros. sles.Distro' > cf:d5:65: b2', 'eth0', 'virtio_net', '0x0001']]
2018-10-31 13:55:27,370 - __init__.py[INFO]: /var/lib/
2018-10-31 13:57:37,431 - main.py[DEBUG]: No kernel command line url found.
2018-10-31 13:57:37,431 - main.py[DEBUG]: Closing stdin.
2018-10-31 13:57:37,454 - main.py[DEBUG]: Checking to see if files that we need already exist from a previous run that would allow us to stop early.
2018-10-31 13:57:37,455 - main.py[DEBUG]: Execution continuing, no previous run detected that would allow us to stop early.
2018-10-31 13:57:37,455 - handlers.py[DEBUG]: start: init-network/
2018-10-31 13:57:37,463 - stages.py[DEBUG]: restored from cache with run check: DataSourceNoClo
2018-10-31 13:57:37,464 - handlers.py[DEBUG]: finish: init-network/
2018-10-31 13:57:37,488 - stages.py[DEBUG]: previous iid found to be 414842fe12da6f1
2018-10-31 13:57:37,493 - main.py[DEBUG]: [net] init will now be targeting instance id: 414842fe12da6f1
2018-10-31 13:57:37,514 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': [{'type': 'physical', 'name': 'eth0', 'mac_address': '76:61:
2018-10-31 13:57:37,515 - stages.py[DEBUG]: Using distro class <class 'cloudinit.
2018-10-31 13:57:37,529 - __init__.py[DEBUG]: no work necessary for renaming of [['76:61:
2018-10-31 13:57:37,530 - stages.py[DEBUG]: not a new instance. network config is not applied.
Network configuration obviously was changed however.
Commands used for cloning (using a self-made shell script)
qm shutdown 1032 ; qm clone 1032 2200 --name slesmaster ; qm template 2200 88.201/ 8,gw=10. 0.0.4 ; qm start 2201 88.202/ 8,gw=10. 0.0.4 ; qm start 2202
qm clone 2200 2201 --name sles1 ; qm set 2201 --ipconfig0 ip=10.0.
qm clone 2200 2202 --name sles2 ; qm set 2202 --ipconfig0 ip=10.0.