I think I just hit this problem with MAAS 1.7.2 with a trusty virtual setup on my laptop, I'll hopefully keep this for a few days to test a Chef bug so let me know if you need any more information:
ubuntu@maas-node-1:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
ubuntu@maas-node-1:~$ dpkg -l | grep cloud-init
ii cloud-init 0.7.5-0ubuntu1.5 all Init scripts for cloud instances
ii cloud-initramfs-dyn-netconf 0.25ubuntu1 all write a network interface file in /run for BOOTIF
ubuntu@maas-node-1:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.13.0-35-generic root=UUID=ebef096d-3483-4027-abf4-d0621f6f7144 ro
ubuntu@maas-node-1:~$ tail -20 /var/log/cloud-init.log
2015-05-31 17:19:17,681 - url_helper.py[DEBUG]: Please wait 5 seconds while we wait to try again
2015-05-31 17:19:22,685 - url_helper.py[DEBUG]: [0/1] open 'http://192.168.101.2/MAAS/metadata//2012-03-01/meta-data/instance-id' with {'url': 'http://192.168.101.2/MAAS/metadata//2012-03-01/meta-data/instance-id', 'headers': {'Authorization': 'OAuth realm="", oauth_nonce="26709034", oauth_timestamp="1433092762", oauth_consumer_key="uU9KHB7kPK24yZcFrx", oauth_signature_method="PLAINTEXT", oauth_version="1.0", oauth_token="gwF4Eh6beNEqXcg3f6", oauth_signature="%262bj652WEP7dp3NHKxsHZVRaFmhCeUv79"'}, 'allow_redirects': True, 'method': 'GET', 'timeout': 4.0} configuration
2015-05-31 17:19:25,685 - url_helper.py[DEBUG]: Calling 'http://192.168.101.2/MAAS/metadata//2012-03-01/meta-data/instance-id' failed [118/120s]: request error [HTTPConnectionPool(host='192.168.101.2', port=80): Max retries exceeded with url: /MAAS/metadata//2012-03-01/meta-data/instance-id (Caused by <class 'socket.error'>: [Errno 113] No route to host)]
2015-05-31 17:19:25,685 - url_helper.py[DEBUG]: Please wait 5 seconds while we wait to try again
2015-05-31 17:19:30,690 - DataSourceMAAS.py[CRITICAL]: Giving up on md from ['http://192.168.101.2/MAAS/metadata//2012-03-01/meta-data/instance-id'] after 123 seconds
2015-05-31 17:19:30,697 - util.py[WARNING]: No instance datasource found! Likely bad things to come!
2015-05-31 17:19:30,697 - util.py[DEBUG]: No instance datasource found! Likely bad things to come!
Traceback (most recent call last):
File "/usr/bin/cloud-init", line 242, in main_init
init.fetch()
File "/usr/lib/python2.7/dist-packages/cloudinit/stages.py", line 308, in fetch
return self._get_data_source()
File "/usr/lib/python2.7/dist-packages/cloudinit/stages.py", line 236, in _get_data_source
pkg_list)
File "/usr/lib/python2.7/dist-packages/cloudinit/sources/__init__.py", line 260, in find_source
raise DataSourceNotFoundException(msg)
DataSourceNotFoundException: Did not find any data source, searched classes: (DataSourceMAAS)
2015-05-31 17:19:30,702 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
2015-05-31 17:19:30,703 - util.py[DEBUG]: Read 14 bytes from /proc/uptime
2015-05-31 17:19:30,703 - util.py[DEBUG]: cloud-init mode 'init' took 124.041 seconds (124.04)
ubuntu@maas-node-1:/var/lib/cloud/data$ cat previous-datasource
DataSourceMAAS: DataSourceMAAS [http://192.168.101.2/MAAS/metadata/]
^^^ Interesting bit, I'm switching between two MAASes (testing 1.8 which is [powered off] at 192.168.101.2)
I think I just hit this problem with MAAS 1.7.2 with a trusty virtual setup on my laptop, I'll hopefully keep this for a few days to test a Chef bug so let me know if you need any more information:
ubuntu@ maas-node- 1:~$ lsb_release -a maas-node- 1:~$ dpkg -l | grep cloud-init -dyn-netconf 0.25ubuntu1 all write a network interface file in /run for BOOTIF maas-node- 1:~$ cat /proc/cmdline /boot/vmlinuz- 3.13.0- 35-generic root=UUID= ebef096d- 3483-4027- abf4-d0621f6f71 44 ro maas-node- 1:~$ tail -20 /var/log/ cloud-init. log py[DEBUG] : Please wait 5 seconds while we wait to try again py[DEBUG] : [0/1] open 'http:// 192.168. 101.2/MAAS/ metadata/ /2012-03- 01/meta- data/instance- id' with {'url': 'http:// 192.168. 101.2/MAAS/ metadata/ /2012-03- 01/meta- data/instance- id', 'headers': {'Authorization': 'OAuth realm="", oauth_nonce= "26709034" , oauth_timestamp ="1433092762" , oauth_consumer_ key="uU9KHB7kPK 24yZcFrx" , oauth_signature _method= "PLAINTEXT" , oauth_version= "1.0", oauth_token= "gwF4Eh6beNEqXc g3f6", oauth_signature ="%262bj652WEP7 dp3NHKxsHZVRaFm hCeUv79" '}, 'allow_redirects': True, 'method': 'GET', 'timeout': 4.0} configuration py[DEBUG] : Calling 'http:// 192.168. 101.2/MAAS/ metadata/ /2012-03- 01/meta- data/instance- id' failed [118/120s]: request error [HTTPConnection Pool(host= '192.168. 101.2', port=80): Max retries exceeded with url: /MAAS/metadata/ /2012-03- 01/meta- data/instance- id (Caused by <class 'socket.error'>: [Errno 113] No route to host)] py[DEBUG] : Please wait 5 seconds while we wait to try again py[CRITICAL] : Giving up on md from ['http:// 192.168. 101.2/MAAS/ metadata/ /2012-03- 01/meta- data/instance- id'] after 123 seconds cloud-init" , line 242, in main_init python2. 7/dist- packages/ cloudinit/ stages. py", line 308, in fetch data_source( ) python2. 7/dist- packages/ cloudinit/ stages. py", line 236, in _get_data_source python2. 7/dist- packages/ cloudinit/ sources/ __init_ _.py", line 260, in find_source undException( msg) undException: Did not find any data source, searched classes: (DataSourceMAAS) maas-node- 1:/var/ lib/cloud/ data$ cat previous-datasource 192.168. 101.2/MAAS/ metadata/]
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
ubuntu@
ii cloud-init 0.7.5-0ubuntu1.5 all Init scripts for cloud instances
ii cloud-initramfs
ubuntu@
BOOT_IMAGE=
ubuntu@
2015-05-31 17:19:17,681 - url_helper.
2015-05-31 17:19:22,685 - url_helper.
2015-05-31 17:19:25,685 - url_helper.
2015-05-31 17:19:25,685 - url_helper.
2015-05-31 17:19:30,690 - DataSourceMAAS.
2015-05-31 17:19:30,697 - util.py[WARNING]: No instance datasource found! Likely bad things to come!
2015-05-31 17:19:30,697 - util.py[DEBUG]: No instance datasource found! Likely bad things to come!
Traceback (most recent call last):
File "/usr/bin/
init.fetch()
File "/usr/lib/
return self._get_
File "/usr/lib/
pkg_list)
File "/usr/lib/
raise DataSourceNotFo
DataSourceNotFo
2015-05-31 17:19:30,702 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
2015-05-31 17:19:30,703 - util.py[DEBUG]: Read 14 bytes from /proc/uptime
2015-05-31 17:19:30,703 - util.py[DEBUG]: cloud-init mode 'init' took 124.041 seconds (124.04)
ubuntu@
DataSourceMAAS: DataSourceMAAS [http://
^^^ Interesting bit, I'm switching between two MAASes (testing 1.8 which is [powered off] at 192.168.101.2)
root@maas- node-1: /var/lib/ cloud/instances /node-bec4d2f6- 0652-11e5- b1c1-525400cad0 ca# cat datasource 192.168. 101.2/MAAS/ metadata/] node-1: /var/lib/ cloud/instances /node-bec4d2f6- 0652-11e5- b1c1-525400cad
DataSourceMAAS: DataSourceMAAS [http://
root@maas-
******
ubuntu@maas17:~$ dpkg -l | grep 'maas ' 0ubuntu1~ trusty1 all MAAS server all-in-one metapackage 168.101. 255 Mask:255.255.255.0
ii maas 1.7.5+bzr3369-
ubuntu@maas17:~$ ifconfig eth0 | head -2
eth0 Link encap:Ethernet HWaddr 52:54:00:XX:YY:ZZ
inet addr:192.168.101.3 Bcast:192.