Hi,
My cloud platform is OpenStack Mitaka on RDO (CentOS 7.2) with XEN hypervisor and config_drive option.
On my guest system is CentOS 6.7.
Cloud-init agent can pickup meta_data.json (as I can login via ssh when bring up the network manually) but it cannot setup network:
Starting cloud-init: Cloud-init v. 0.7.5 running 'init-local' at Wed, 18 May 2016 08:19:18 +0000. Up 22.67 seconds. Kdump is not supported on this kernel [FAILED] Starting cloud-init: Cloud-init v. 0.7.5 running 'init' at Wed, 18 May 2016 08:19:18 +0000. Up 23.39 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 | False | . | . | fa:16:3e:7e:8f:f5 | ci-info: +--------+-------+-----------+-----------+-------------------+ ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Route info failed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2016-05-18 08:19:19,566 - util.py[WARNING]: Failed forking and calling callback NoneType Starting cloud-init: Cloud-init v. 0.7.5 running 'modules:config' at Wed, 18 May 2016 08:19:20 +0000. Up 24.60 seconds. 2016-05-18 08:19:20,623 - util.py[WARNING]: Failed to run debconf-set-selections for grub-dpkg 2016-05-18 08:19:20,651 - util.py[WARNING]: Running apt-configure (<module 'cloudinit.config.cc_apt_configure' from '/usr/lib/python2.6/site-packages/cloudinit/config/cc_apt_configure.pyc'>) failed Starting cloud-init: Cloud-init v. 0.7.5 running 'modules:final' at Wed, 18 May 2016 08:19:20 +0000. Up 25.41 seconds. ci-info: ++++++++++++++++Authorized keys from /home/centos/.ssh/authorized_keys for user centos+++++++++++++++++ ci-info: +---------+-------------------------------------------------+---------+-------------------------------+ ci-info: | Keytype | Fingerprint (md5) | Options | Comment | ci-info: +---------+-------------------------------------------------+---------+-------------------------------+ ci-info: | ssh-rsa | f3:f2:08:9f:cd:fd:1b:67:4c:9b:57:b7:5f:c6:54:e5 | - | - | ci-info: | ssh-rsa | 75:3e:12:1e:09:51:1e:b9:6d:79:fd:4d:84:31:5d:51 | - | <email address hidden> | ci-info: +---------+-------------------------------------------------+---------+-------------------------------+ ec2: ec2: ############################################################# ec2: -----BEGIN SSH HOST KEY FINGERPRINTS----- ec2: 1024 5a:70:be:fb:bf:67:1b:ce:12:a6:7e:ba:ef:04:4f:ef /etc/ssh/ssh_host_dsa_key.pub (DSA) ec2: 2048 50:22:cd:6d:1c:56:eb:10:42:54:97:b6:7a:81:41:f1 /etc/ssh/ssh_host_key.pub (RSA1) ec2: 2048 15:55:5d:e6:91:af:46:3d:3a:bb:6f:f6:0a:e6:03:6f /etc/ssh/ssh_host_rsa_key.pub (RSA) ec2: -----END SSH HOST KEY FINGERPRINTS----- ec2: ############################################################# -----BEGIN SSH HOST KEY KEYS----- 2048 35 29586527545742027782438580921178232663437101143928703426912025054688176358288179690392668089004663466445702410732614605397783202624646139295502758398814167103819934034196746059236193699430655169196387579999363830849934023234378572470588905292275597549504565746765062482140473229038530226088359713215205775911747584015062512682996836980078230340684375809843010738745842550136067314468156851646942636770260038080954627830216946849892671468270824657347859346874780152848989039875644793621094494068028083537779233426499102119273566073302996706152597952328064853521441175800415933531654197800194000963846122530363176449477 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzsNNwGQFsq6PEYhVMz90R61xzLOc8CIiK1A4qbBra9GgGHyNOtIqQibj2QtF9FfuU8C8uRU/39TKXxQS1mt1TEzIa77LLkeLeigBtI0rueQ4ZDBrHYUwYOONCPjOqPoUN+cMvE5ZqI2rICVDpnldBnsTtuxasoGUBuTZ5zH5G5Rxx2T+rJT8+dlTRQ1QIJ23ByIBWt4ZeYQOW3sUA8ssTayIl9KOEs++9T2SjRp5kIvdJeFDRtdxvOzqxzuY6fUcW5leom294+k+W+zOtDwf7vrrcepdmRVVTc/PJBx8gMr7dxwGO9PuFhJuI427+TrTCqbnY7SdBYz3J8tcv9ND3Q== -----END SSH HOST KEY KEYS----- Cloud-init v. 0.7.5 finished at Wed, 18 May 2016 08:19:21 +0000. Datasource DataSourceConfigDriveNet [net,ver=2][source=/dev/xvdz]. Up 25.64 seconds Starting mysqld: [ OK ] ... ...
cloud-init configuration file (beside original) /etc/cloud/cloud.cfg.d/10_file.cfg:
datasource_list: [ ConfigDrive, None ] disable_root: False ssh_pwauth: True ssh_deletekeys: False resize_rootfs: noblock growpart: mode: auto devices: ['/'] system_info: distro: rhel cloud_config_modules: - emit_upstart - disk_setup - mounts - ssh-import-id - locale - set-passwords - grub-dpkg - apt-pipelining - apt-configure - package-update-upgrade-install - landscape - timezone - puppet - chef - salt-minion - mcollective - disable-ec2-metadata - runcmd - byobu
Config drive content:
/media/ec2/2009-04-04/meta-data.json /media/ec2/latest/meta-data.json /media/openstack/2012-08-10/meta_data.json /media/openstack/2013-04-04/meta_data.json /media/openstack/2013-10-17/meta_data.json /media/openstack/2013-10-17/vendor_data.json /media/openstack/2015-10-15/meta_data.json /media/openstack/2015-10-15/network_data.json /media/openstack/2015-10-15/vendor_data.json /media/openstack/latest/meta_data.json /media/openstack/latest/network_data.json /media/openstack/latest/vendor_data.json
Here is the network_data.json content:
host:root:/media> cat openstack/latest/network_data.json | python -m json.tool { "links": [ { "ethernet_mac_address": "fa:16:3e:7e:8f:f5", "id": "tapdee9dfc4-b0", "mtu": null, "type": "bridge", "vif_id": "dee9dfc4-b07f-4b2e-aa6e-ae7cafacb502" } ], "networks": [ { "id": "network0", "ip_address": "172.20.0.37", "link": "tapdee9dfc4-b0", "netmask": "255.255.255.0", "network_id": "7e22475a-fe2e-43b5-b65c-3730ebd2c343", "routes": [ { "gateway": "172.20.0.1", "netmask": "0.0.0.0", "network": "0.0.0.0" } ], "type": "ipv4" } ], "services": [] }
My cloud-init version:
Installed Packages Name : cloud-init Arch : x86_64 Version : 0.7.5 Release : 10.el6.centos.2 Size : 1.4 M Repo : installed From repo : extras
Anyone has this issue?
Hi,
My cloud platform is OpenStack Mitaka on RDO (CentOS 7.2) with XEN hypervisor and config_drive option.
On my guest system is CentOS 6.7.
Cloud-init agent can pickup meta_data.json (as I can login via ssh when bring up the network manually) but it cannot setup network:
Starting cloud-init: Cloud-init v. 0.7.5 running 'init-local' at Wed, 18 May 2016 08:19:18 +0000. Up 22.67 seconds. +++++++ +++++++ ++Net device info+++ +++++++ +++++++ +++++++ --+---- ---+--- ------- -+----- ------+ ------- ------- -----+ --+---- ---+--- ------- -+----- ------+ ------- ------- -----+ --+---- ---+--- ------- -+----- ------+ ------- ------- -----+ !!!!!!! !!!!!!! !!!!!!! !!!Route info failed! !!!!!!! !!!!!!! !!!!!!! !!!!!!! !!! set-selections for grub-dpkg config. cc_apt_ configure' from '/usr/lib/ python2. 6/site- packages/ cloudinit/ config/ cc_apt_ configure. pyc'>) failed +++++++ ++Authorized keys from /home/centos/ .ssh/authorized _keys for user centos+ +++++++ +++++++ ++ ---+--- ------- ------- ------- ------- ------- ------- ----+-- ------- +------ ------- ------- ------- ----+ ---+--- ------- ------- ------- ------- ------- ------- ----+-- ------- +------ ------- ------- ------- ----+ 9f:cd:fd: 1b:67:4c: 9b:57:b7: 5f:c6:54: e5 | - | - | 1e:09:51: 1e:b9:6d: 79:fd:4d: 84:31:5d: 51 | - | <email address hidden> | ---+--- ------- ------- ------- ------- ------- ------- ----+-- ------- +------ ------- ------- ------- ----+ ####### ####### ####### ####### ####### ####### ####### ##### fb:bf:67: 1b:ce:12: a6:7e:ba: ef:04:4f: ef /etc/ssh/ ssh_host_ dsa_key. pub (DSA) 6d:1c:56: eb:10:42: 54:97:b6: 7a:81:41: f1 /etc/ssh/ ssh_host_ key.pub (RSA1) e6:91:af: 46:3d:3a: bb:6f:f6: 0a:e6:03: 6f /etc/ssh/ ssh_host_ rsa_key. pub (RSA) ####### ####### ####### ####### ####### ####### ####### ##### 277824385809211 782326634371011 439287034269120 250546881763582 881796903926680 890046634664457 024107326146053 977832026246461 392955027583988 141671038199340 341967460592361 936994306551691 963875799993638 308499340232343 785724705889052 922755975495045 657467650624821 404732290385302 260883597132152 057759117475840 150625126829968 369800782303406 843758098430107 387458425501360 673144681568516 469426367702600 380809546278302 169468498926714 682708246573478 593468747801528 489890398756447 936210944940680 280835377792334 264991021192735 660733029967061 525979523280648 535214411758004 159335316541978 001940009638461 225303631764494 77 AAAABIwAAAQEAzs NNwGQFsq6PEYhVM z90R61xzLOc8CIi K1A4qbBra9GgGHy NOtIqQibj2QtF9F fuU8C8uRU/ 39TKXxQS1mt1TEz Ia77LLkeLeigBtI 0rueQ4ZDBrHYUwY OONCPjOqPoUN+ cMvE5ZqI2rICVDp nldBnsTtuxasoGU BuTZ5zH5G5Rxx2T +rJT8+dlTRQ1QIJ 23ByIBWt4ZeYQOW 3sUA8ssTayIl9KO Es++9T2SjRp5kIv dJeFDRtdxvOzqxz uY6fUcW5leom294 +k+W+zOtDwf7vrr cepdmRVVTc/ PJBx8gMr7dxwGO9 PuFhJuI427+ TrTCqbnY7SdBYz3 J8tcv9ND3Q= = gDriveNet [net,ver= 2][source= /dev/xvdz] . Up 25.64 seconds
Kdump is not supported on this kernel [FAILED]
Starting cloud-init: Cloud-init v. 0.7.5 running 'init' at Wed, 18 May 2016 08:19:18 +0000. Up 23.39 seconds.
ci-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 | False | . | . | fa:16:3e:7e:8f:f5 |
ci-info: +------
ci-info: !!!!!!!
2016-05-18 08:19:19,566 - util.py[WARNING]: Failed forking and calling callback NoneType
Starting cloud-init: Cloud-init v. 0.7.5 running 'modules:config' at Wed, 18 May 2016 08:19:20 +0000. Up 24.60 seconds.
2016-05-18 08:19:20,623 - util.py[WARNING]: Failed to run debconf-
2016-05-18 08:19:20,651 - util.py[WARNING]: Running apt-configure (<module 'cloudinit.
Starting cloud-init: Cloud-init v. 0.7.5 running 'modules:final' at Wed, 18 May 2016 08:19:20 +0000. Up 25.41 seconds.
ci-info: +++++++
ci-info: +------
ci-info: | Keytype | Fingerprint (md5) | Options | Comment |
ci-info: +------
ci-info: | ssh-rsa | f3:f2:08:
ci-info: | ssh-rsa | 75:3e:12:
ci-info: +------
ec2:
ec2: #######
ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
ec2: 1024 5a:70:be:
ec2: 2048 50:22:cd:
ec2: 2048 15:55:5d:
ec2: -----END SSH HOST KEY FINGERPRINTS-----
ec2: #######
-----BEGIN SSH HOST KEY KEYS-----
2048 35 295865275457420
ssh-rsa AAAAB3NzaC1yc2E
-----END SSH HOST KEY KEYS-----
Cloud-init v. 0.7.5 finished at Wed, 18 May 2016 08:19:21 +0000. Datasource DataSourceConfi
Starting mysqld: [ OK ]
...
...
cloud-init configuration file (beside original) /etc/cloud/ cloud.cfg. d/10_file. cfg:
datasource_list: [ ConfigDrive, None ] modules: update- upgrade- install ec2-metadata
disable_root: False
ssh_pwauth: True
ssh_deletekeys: False
resize_rootfs: noblock
growpart:
mode: auto
devices: ['/']
system_info:
distro: rhel
cloud_config_
- emit_upstart
- disk_setup
- mounts
- ssh-import-id
- locale
- set-passwords
- grub-dpkg
- apt-pipelining
- apt-configure
- package-
- landscape
- timezone
- puppet
- chef
- salt-minion
- mcollective
- disable-
- runcmd
- byobu
Config drive content:
/media/ ec2/2009- 04-04/meta- data.json ec2/latest/ meta-data. json openstack/ 2012-08- 10/meta_ data.json openstack/ 2013-04- 04/meta_ data.json openstack/ 2013-10- 17/meta_ data.json openstack/ 2013-10- 17/vendor_ data.json openstack/ 2015-10- 15/meta_ data.json openstack/ 2015-10- 15/network_ data.json openstack/ 2015-10- 15/vendor_ data.json openstack/ latest/ meta_data. json openstack/ latest/ network_ data.json openstack/ latest/ vendor_ data.json
/media/
/media/
/media/
/media/
/media/
/media/
/media/
/media/
/media/
/media/
/media/
Here is the network_data.json content:
host:root:/media> cat openstack/ latest/ network_ data.json | python -m json.tool
"ethernet_ mac_address" : "fa:16: 3e:7e:8f: f5",
"vif_ id": "dee9dfc4- b07f-4b2e- aa6e-ae7cafacb5 02"
"ip_ address" : "172.20.0.37",
"netmask" : "255.255.255.0",
"network_ id": "7e22475a- fe2e-43b5- b65c-3730ebd2c3 43",
"routes" : [
" gateway" : "172.20.0.1",
" netmask" : "0.0.0.0",
" network" : "0.0.0.0"
{
"links": [
{
"id": "tapdee9dfc4-b0",
"mtu": null,
"type": "bridge",
}
],
"networks": [
{
"id": "network0",
"link": "tapdee9dfc4-b0",
{
}
],
"type": "ipv4"
}
],
"services": []
}
My cloud-init version:
Installed Packages
Name : cloud-init
Arch : x86_64
Version : 0.7.5
Release : 10.el6.centos.2
Size : 1.4 M
Repo : installed
From repo : extras
Anyone has this issue?