[ovirt-users] cloud-init reverting static network settings to DHCP on shutdown and restart

2018-06-06 Thread geoff . carr
Setting static network settings in the "Initial Run" section works fine when 
deploying a VM from template. When using "Run" to start the VM, customization 
works as expected. On a reboot the network settings are maintained however if 
the VM is shutdown and restarted the settings are reverted to DHCP. When 
editing the VM the cloud-init settings are still set and a visible in the 
"Initial Run" section.

cloud-init (0.7.9-24.el7.centos) - Previously 0.7.9-20.el7.centos but upgraded 
to see if it would fix the issue.
oVirt engine (4.2.4.1-1.el7)
Guest OS (CentOS Linux release 7.4.1708)

There is another thread that reports exactly the same issue and behavior here: -

https://lists.ovirt.org/pipermail/users/2018-March/087860.html

Grateful for any thoughts or assistance.

Regards

Geoff
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/NE27UO4WNZIC27GZY4D2DCFX4DIYFBQP/


[ovirt-users] Re: cloud-init reverting static network settings to DHCP on shutdown and restart

2018-06-06 Thread geoff . carr
I think that before a shutdown / restart the cloud-init configuration is 
attached as there is /dev/sr1 visible. On shutdown / restart the config is no 
longer attached and there is seemingly an error related to not being able to 
find the data source: -

2018-06-06 15:15:11,297 - handlers.py[DEBUG]: finish: 
init-network/search-NoCloudNet: SUCCESS: no network data found from 
DataSourceNoCloudNet
2018-06-06 15:15:11,298 - util.py[WARNING]: No instance datasource found! 
Likely bad things to come!
2018-06-06 15:15:11,298 - util.py[DEBUG]: No instance datasource found! Likely 
bad things to come!
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 236, in 
main_init
init.fetch(existing=existing)
  File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 343, in 
fetch
return self._get_data_source(existing=existing)
  File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 253, in 
_get_data_source
pkg_list, self.reporter)
  File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 
320, in find_source
raise DataSourceNotFoundException(msg)
DataSourceNotFoundException: Did not find any data source, searched classes: 
(DataSourceNoCloudNet)
2018-06-06 15:15:11,302 - util.py[DEBUG]: Reading from 
/sys/class/net/eth0/carrier (quiet=False)
2018-06-06 15:15:11,303 - util.py[DEBUG]: Read 2 bytes from 
/sys/class/net/eth0/carrier
2018-06-06 15:15:11,303 - util.py[DEBUG]: Reading from 
/sys/class/net/eth0/address (quiet=False)
2018-06-06 15:15:11,303 - util.py[DEBUG]: Read 18 bytes from 
/sys/class/net/eth0/address
2018-06-06 15:15:11,303 - stages.py[DEBUG]: applying net config names for 
{'version': 1, 'config': [{'subnets': [{'type': 'dhcp'}], 'type': 'physical', 
'name': 'eth0', 'mac_address': '00:1a:4a:16:01:05'}]}
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/4TXBGJ7WYAANWQJG3KCCK3O4SAETSHA5/