cloud-init 0.7.8 support broken on FreeBSD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
/usr/local/
Setting up basic logging...
Cloud-init v. 0.7.8 running 'init-local' at Tue, 20 Sep 2016 20:04:22 +0000. Up 5.53116703033 seconds.
2016-09-20 20:04:22,602 - util.py[DEBUG]: Cloud-init v. 0.7.8 running 'init-local' at Tue, 20 Sep 2016 20:04:22 +0000. Up 5.53116703033 seconds.
2016-09-20 20:04:22,607 - util.py[DEBUG]: Writing to /var/log/
2016-09-20 20:04:22,615 - util.py[DEBUG]: Changing the ownership of /var/log/
2016-09-20 20:04:22,618 - util.py[DEBUG]: Attempting to remove /var/lib/
2016-09-20 20:04:22,619 - util.py[DEBUG]: Attempting to remove /var/lib/
2016-09-20 20:04:22,621 - handlers.py[DEBUG]: start: init-local/
2016-09-20 20:04:22,623 - util.py[DEBUG]: Reading from /var/lib/
2016-09-20 20:04:22,624 - stages.py[DEBUG]: no cache found
2016-09-20 20:04:22,626 - handlers.py[DEBUG]: finish: init-local/
2016-09-20 20:04:22,627 - util.py[DEBUG]: Attempting to remove /var/lib/
2016-09-20 20:04:22,636 - stages.py[DEBUG]: Using distro class <class 'cloudinit.
2016-09-20 20:04:22,638 - __init__.py[DEBUG]: Looking for for data source in: ['ConfigDrive', 'OpenStack', 'Ec2'], via packages ['', u'cloudinit.
2016-09-20 20:04:22,655 - __init__.py[DEBUG]: Searching for local data source in: [u'DataSourceCo
2016-09-20 20:04:22,657 - handlers.py[DEBUG]: start: init-local/
2016-09-20 20:04:22,659 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.
2016-09-20 20:04:22,663 - util.py[DEBUG]: Running command ['blkid', '-odevice', '/dev/sr0'] with allowed return codes [0, 2] (shell=False, capture=True)
2016-09-20 20:04:22,676 - util.py[DEBUG]: Running command ['blkid', '-odevice', '/dev/sr1'] with allowed return codes [0, 2] (shell=False, capture=True)
2016-09-20 20:04:22,684 - util.py[DEBUG]: Running command ['blkid', '-odevice', '/dev/cd0'] with allowed return codes [0, 2] (shell=False, capture=True)
2016-09-20 20:04:22,698 - util.py[DEBUG]: Running command ['blkid', '-odevice', '/dev/cd1'] with allowed return codes [0, 2] (shell=False, capture=True)
2016-09-20 20:04:22,706 - util.py[DEBUG]: Running command ['blkid', '-tTYPE=vfat', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)
2016-09-20 20:04:22,713 - util.py[DEBUG]: Running command ['blkid', '-tTYPE=iso9660', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)
2016-09-20 20:04:22,719 - util.py[DEBUG]: Running command ['blkid', '-tLABEL=config-2', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True)
2016-09-20 20:04:22,730 - util.py[DEBUG]: Running command mount with allowed return codes [0] (shell=False, capture=True)
2016-09-20 20:04:22,736 - util.py[DEBUG]: Fetched {u'/dev/vtbd0p2': {'mountpoint': u'/', 'opts': u'journaled soft-updates', 'fstype': u'ufs'}} mounts from mount
2016-09-20 20:04:22,738 - util.py[DEBUG]: Running command ['mount', '-o', 'ro', '-t', 'cd9660', u'/dev/cd0', '/tmp/tmpgzEsG5'] with allowed return codes [0] (shell=False, capture=True)
2016-09-20 20:04:22,787 - openstack.
2016-09-20 20:04:22,789 - util.py[DEBUG]: Reading from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,794 - util.py[DEBUG]: Read 2 bytes from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,796 - util.py[DEBUG]: Reading from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,798 - openstack.
2016-09-20 20:04:22,801 - util.py[DEBUG]: Reading from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,804 - util.py[DEBUG]: Read 1118 bytes from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,806 - util.py[DEBUG]: Reading from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,809 - util.py[DEBUG]: Read 1821 bytes from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,814 - util.py[DEBUG]: Reading from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,817 - util.py[DEBUG]: Read 963 bytes from /tmp/tmpgzEsG5/
2016-09-20 20:04:22,819 - util.py[DEBUG]: Running command ['umount', '/tmp/tmpgzEsG5'] with allowed return codes [0] (shell=False, capture=True)
2016-09-20 20:04:22,830 - util.py[DEBUG]: Recursively deleting /tmp/tmpgzEsG5
2016-09-20 20:04:22,834 - util.py[DEBUG]: Reading from /var/lib/
2016-09-20 20:04:22,836 - handlers.py[DEBUG]: finish: init-local/
2016-09-20 20:04:22,838 - stages.py[INFO]: Loaded datasource DataSourceConfi
2016-09-20 20:04:22,840 - util.py[DEBUG]: Reading from /etc/cloud/
2016-09-20 20:04:22,842 - util.py[DEBUG]: Reading from /usr/local/
2016-09-20 20:04:22,857 - util.py[DEBUG]: Read 2037 bytes from /usr/local/
2016-09-20 20:04:22,858 - util.py[DEBUG]: Attempting to load yaml from string of length 2037 with allowed root types (<type 'dict'>,)
2016-09-20 20:04:22,878 - util.py[DEBUG]: Attempting to remove /var/lib/
2016-09-20 20:04:22,879 - util.py[DEBUG]: Creating symbolic link from '/var/lib/
2016-09-20 20:04:22,884 - util.py[DEBUG]: Reading from /var/lib/
2016-09-20 20:04:22,886 - util.py[DEBUG]: Writing to /var/lib/
2016-09-20 20:04:22,888 - util.py[DEBUG]: Writing to /var/lib/
2016-09-20 20:04:22,890 - util.py[DEBUG]: Reading from /var/lib/
2016-09-20 20:04:22,891 - stages.py[DEBUG]: previous iid found to be NO_PREVIOUS_
2016-09-20 20:04:22,892 - util.py[DEBUG]: Writing to /var/lib/
2016-09-20 20:04:22,894 - util.py[DEBUG]: Writing to /run/cloud-
2016-09-20 20:04:22,895 - util.py[DEBUG]: Writing to /var/lib/
2016-09-20 20:04:22,898 - util.py[DEBUG]: Writing to /var/lib/
2016-09-20 20:04:22,899 - main.py[DEBUG]: [local] init will now be targeting instance id: aba344ee-
2016-09-20 20:04:22,901 - util.py[DEBUG]: Reading from /etc/cloud/
2016-09-20 20:04:22,902 - util.py[DEBUG]: Reading from /usr/local/
2016-09-20 20:04:22,903 - util.py[DEBUG]: Read 2037 bytes from /usr/local/
2016-09-20 20:04:22,904 - util.py[DEBUG]: Attempting to load yaml from string of length 2037 with allowed root types (<type 'dict'>,)
2016-09-20 20:04:22,920 - DataSourceConfi
2016-09-20 20:04:22,923 - util.py[WARNING]: failed stage init-local
2016-09-20 20:04:22,923 - util.py[DEBUG]: failed stage init-local
Traceback (most recent call last):
File "/usr/local/
ret = functor(name, args)
File "/usr/local/
init.
File "/usr/local/
netcfg, src = self._find_
File "/usr/local/
return (net.generate_
File "/usr/local/
potential_
File "/usr/local/
return os.listdir(
OSError: [Errno 2] No such file or directory: '/sys/class/net/'
failed run of stage init-local
-------
Traceback (most recent call last):
File "/usr/local/
ret = functor(name, args)
File "/usr/local/
init.
File "/usr/local/
netcfg, src = self._find_
File "/usr/local/
return (net.generate_
File "/usr/local/
potential_
File "/usr/local/
return os.listdir(
OSError: [Errno 2] No such file or directory: '/sys/class/net/'
-------
2016-09-20 20:04:22,955 - util.py[DEBUG]: cloud-init mode 'init' took 0.453 seconds (0.45)
2016-09-20 20:04:22,956 - handlers.py[DEBUG]: finish: init-local: SUCCESS: searching for local datasources
I've been trying to update the port of cloud-init on FreeBSD to 0.7.8 but unfortunately it doesn't look like ConfigDrive support is functional when ConfigDrive provides networking information.
I have removed ConfigDrive and restarted, however even using the OpenStack provider it will fail with networking, AND then fail when setting the SSH key for the freebsd user (default user in cloud.cfg)
/usr/local/ bin/cloud- init startingWARN: no logging configured! (tried 0 configs) cloud-init. log - ab: [420] 0 bytes cloud-init. log to 0:0 +++++++ +++++++ +++++++ ++Net device info+++ +++++++ +++++++ +++++++ +++++++ ---+--- ----+-- ------- ------+ ------- -----+- ------+ ------- ------- -----+ ---+--- ----+-- ------- ------+ ------- -----+- ------+ ------- ------- -----+ ---+--- ----+-- ------- ------+ ------- -----+- ------+ ------- ------- -----+ check-cache: attempting to read from cache [trust] cloud/instance/ obj.pkl (quiet=False) check-cache: SUCCESS: no cache found cloud/instance distros. freebsd. Distro' > sources' ] that matches dependencies ['FILESYSTEM', 'NETWORK'] enStack' , u'DataSourceEc2'] search- OpenStack: searching fo...
Setting up basic logging...
Cloud-init v. 0.7.8 running 'init' at Tue, 20 Sep 2016 20:41:00 +0000. Up 9.48849606514 seconds.
2016-09-20 20:41:00,513 - util.py[DEBUG]: Cloud-init v. 0.7.8 running 'init' at Tue, 20 Sep 2016 20:41:00 +0000. Up 9.48849606514 seconds.
2016-09-20 20:41:00,516 - util.py[DEBUG]: Writing to /var/log/
2016-09-20 20:41:00,518 - util.py[DEBUG]: Changing the ownership of /var/log/
2016-09-20 20:41:00,519 - util.py[DEBUG]: Running command ['ifconfig', '-a'] with allowed return codes [0] (shell=False, capture=True)
2016-09-20 20:41:00,527 - util.py[DEBUG]: Running command ['netstat', '-rn'] with allowed return codes [0] (shell=False, capture=True)
2016-09-20 20:41:00,547 - util.py[DEBUG]: Running command ['netstat', '-A', 'inet6', '-n'] with allowed return codes [0] (shell=False, capture=True)
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +------
ci-info: | vtnet1: | False | . | . | . | fa:16:3e:9e:b0:af |
ci-info: | vtnet0: | True | 172.17.63.153 | 0xffffff80 | . | fa:16:3e:f3:97:a7 |
ci-info: | lo0: | True | 127.0.0.1 | 0xff000000 | . | . |
ci-info: | lo0: | True | . | . | d | . |
ci-info: +------
2016-09-20 20:41:00,558 - main.py[DEBUG]: Checking to see if files that we need already exist from a previous run that would allow us to stop early.
2016-09-20 20:41:00,559 - main.py[DEBUG]: Execution continuing, no previous run detected that would allow us to stop early.
2016-09-20 20:41:00,560 - handlers.py[DEBUG]: start: init-network/
2016-09-20 20:41:00,561 - util.py[DEBUG]: Reading from /var/lib/
2016-09-20 20:41:00,562 - stages.py[DEBUG]: no cache found
2016-09-20 20:41:00,563 - handlers.py[DEBUG]: finish: init-network/
2016-09-20 20:41:00,564 - util.py[DEBUG]: Attempting to remove /var/lib/
2016-09-20 20:41:00,567 - stages.py[DEBUG]: Using distro class <class 'cloudinit.
2016-09-20 20:41:00,568 - __init__.py[DEBUG]: Looking for for data source in: ['OpenStack', 'Ec2'], via packages ['', u'cloudinit.
2016-09-20 20:41:00,572 - __init__.py[DEBUG]: Searching for network data source in: [u'DataSourceOp
2016-09-20 20:41:00,573 - handlers.py[DEBUG]: start: init-network/