I run the following....
python setup.py build
then
python setup.py install --init-system sysvinit
then I do some chkconfig to enable the services. Cloud init runs great.... the first time.
The second time I launch a new AMI I get the following error messages
Code: Select all
2018-04-18 21:40:15,473 - util.py[DEBUG]: Running command ['ip', '-4', 'addr', 'show'] with allowed return codes [0] (shell=False, capture=True)
2018-04-18 21:40:15,476 - __init__.py[DEBUG]: unable to do any work for renaming of [['06:20:32:31:e3:9c', 'eth0', 'vif', None]]
2018-04-18 21:40:15,572 - stages.py[WARNING]: Failed to rename devices: [nic not present] Cannot rename mac=06:20:32:31:e3:9c to eth0, not available.
2018-04-18 21:40:15,572 - stages.py[DEBUG]: not a new instance. network config is not applied.
Code: Select all
handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
util.py[DEBUG]: Read 8117 bytes from /var/lib/cloud/instance/obj.pkl
util.py[DEBUG]: Reading from /run/cloud-init/.instance-id (quiet=False)
util.py[DEBUG]: Read 20 bytes from /run/cloud-init/.instance-id
stages.py[DEBUG]: restored from cache with run check: DataSourceEc2
handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: restored from cache with run check: DataSourceEc2
Is there a way to disable the caching mechanism, or is there something else since I'm building cloud-init from source ?