cloud-init not assigning IP
Hi GUys,
Have a problem accessing any instance via ssh. Getting host unreachable. I have made no changes and this issue just started out of the blue, was working fine before. Running ubuntu 14.04 and Icehouse
See below error when instance is booting, I suspect issue is related to change in /etc/network/interface to /etc/network/interface.d Since I can't access instance have no idea how to get around this. PLEASE help!!!!
Error:
cloud-init-nonet[7.17]: waiting 10 seconds for network device
* Starting set console keymap[74G[ OK ]
* Starting Signal sysvinit that virtual filesystems are mounted[74G[ OK ]
* Starting Signal sysvinit that virtual filesystems are mounted[74G[ OK ]
* Starting set sysctls from /etc/sysctl.conf[74G[ OK ]
* Starting Bridge udev events into upstart[74G[ OK ]
* Stopping set sysctls from /etc/sysctl.conf[74G[ OK ]
* Starting Signal sysvinit that remote filesystems are mounted[74G[ OK ]
* Stopping set console keymap[74G[ OK ]
* Starting device node and kernel event manager[74G[ OK ]
* Starting load modules from /etc/modules[74G[ OK ]
* Starting cold plug devices[74G[ OK ]
* Starting log initial device creation[74G[ OK ]
* Stopping load modules from /etc/modules[74G[ OK ]
* Starting Uncomplicated firewall[74G[ OK ]
* Starting configure network device security[74G[ OK ]
* Starting configure network device security[74G[ OK ]
* Starting Mount network filesystems[74G[ OK ]
* Stopping Mount network filesystems[74G[ OK ]
* Starting Bridge socket events into upstart[74G[ OK ]
* Starting configure network device[74G[ OK ]
* Stopping cold plug devices[74G[ OK ]
* Stopping log initial device creation[74G[ OK ]
* Starting enable remaining boot-time encrypted block devices[74G[ OK ]
cloud-init-nonet[17.19]: waiting 120 seconds for network device
cloud-init-nonet[137.19]: gave up waiting for a network device.
Cloud-init v. 0.7.5 running 'init' at Tue, 21 Apr 2015 16:21:30 +0000. Up 137.37 seconds.
ci-info: +++++++++++++++++++++++Net device info+++++++++++++++++++++++
ci-info: +--------+------+-----------+-----------+-------------------+
ci-info: | Device | Up | Address | Mask | Hw-Address |
ci-info: +--------+------+-----------+-----------+-------------------+
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | eth0 | True | . | . | fa:16:3e:5b:87:1e |
ci-info: +--------+------+-----------+-----------+-------------------+
ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Route info failed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2015-04-21 16:21:30,479 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by <class 'socket.error'>: [Errno 101] Network is unreachable)]
2015-04-21 16:21:31,485 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [1/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by <class 'socket.error'>: [Errno 101] Network is unreachable)]
2015-04-21 16:21:32,489 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [2/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by <class 'socket.error'>: [Errno 101] Network is
draft saved... tags: unreachable)]
Since yesterday, we are facing the same problem in our HA Liberty deployment. Have you found a solution to this problem?
I deleted the interface on compute host and restarted instance. It created new interface and started working. I never found root cause.