Revision history [back]

click to hide/show revision 1
initial version

SSH Keys no longer being injected on instances

Hi all, my ssh-keys are no longer being injected in new instances. I've checked openstack-nova-api, openstack-neutron-metadata and both are running. I can't see any errors on instance log.

Old instances already running can be accessed with my already existing keypair, and I can reach the metadata api:

[centos@svn-backup ~]$ curl http://169.254.169.254
1.0
2007-01-19
2007-03-01
2007-08-29
2007-10-10
2007-12-15
2008-02-01
2008-09-01
2009-04-04

Log on new instances shows:

[[32m  OK  [0m] Started Dynamic System Tuning Daemon.
[    9.650087] cloud-init[718]: Cloud-init v. 0.7.5 running 'init' at Fri, 11 Nov 2016 16:05:32 +0000. Up 9.55 seconds.
[    9.719209] cloud-init[718]: ci-info: +++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++
[    9.720871] cloud-init[718]: ci-info: +--------+------+----------------+---------------+-------------------+
[    9.722402] cloud-init[718]: ci-info: | Device |  Up  |    Address     |      Mask     |     Hw-Address    |
[    9.723930] cloud-init[718]: ci-info: +--------+------+----------------+---------------+-------------------+
[    9.725458] cloud-init[718]: ci-info: |  lo:   | True |   127.0.0.1    |   255.0.0.0   |         .         |
[    9.726903] cloud-init[718]: ci-info: | eth0:  | True | 192.168.122.97 | 255.255.255.0 | fa:16:3e:22:36:ea |
[    9.728342] cloud-init[718]: ci-info: +--------+------+----------------+---------------+-------------------+
[    9.741371] cloud-init[718]: ci-info: +++++++++++++++++++++++++++++++++++Route info++++++++++++++++++++++++++++++++++++
[    9.742913] cloud-init[718]: ci-info: +-------+-----------------+---------------+-----------------+-----------+-------+
[    9.744446] cloud-init[718]: ci-info: | Route |   Destination   |    Gateway    |     Genmask     | Interface | Flags |
[    9.745986] cloud-init[718]: ci-info: +-------+-----------------+---------------+-----------------+-----------+-------+
[    9.747506] cloud-init[718]: ci-info: |   0   |     0.0.0.0     | 192.168.122.1 |     0.0.0.0     |    eth0   |   UG  |
[    9.749046] cloud-init[718]: ci-info: |   1   | 169.254.169.254 | 192.168.122.1 | 255.255.255.255 |    eth0   |  UGH  |
[    9.750555] cloud-init[718]: ci-info: |   2   |  192.168.122.0  |    0.0.0.0    |  255.255.255.0  |    eth0   |   U   |
[    9.754433] cloud-init[718]: ci-info: +-------+-----------------+---------------+-----------------+-----------+-------+
[[32m  OK  [0m] Started Postfix Mail Transport Agent.

CentOS Linux 7 (Core)
Kernel 3.10.0-327.28.3.el7.x86_64 on an x86_64

host-192-168-122-97 login: [  220.164868] cloud-init[718]: 2016-11-11 16:09:03,502 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [50/120s]: unexpected error ['NoneType' object has no attribute 'status_code']
[  271.217844] cloud-init[718]: 2016-11-11 16:09:54,556 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [101/120s]: unexpected error ['NoneType' object has no attribute 'status_code']
[  289.223614] cloud-init[718]: 2016-11-11 16:10:12,562 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [119/120s]: unexpected error ['NoneType' object has no attribute 'status_code']
[  290.228922] cloud-init[718]: 2016-11-11 16:10:13,564 - DataSourceEc2.py[CRITICAL]: Giving up on md from ['http://169.254.169.254/2009-04-04/meta-data/instance-id'] after 120 seconds
[  340.233679] cloud-init[718]: 2016-11-11 16:11:03,572 - url_helper.py[WARNING]: Calling 'http://192.168.122.2//latest/meta-data/instance-id' failed [50/120s]: unexpected error ['NoneType' object has no attribute 'status_code']
[  391.263485] cloud-init[718]: 2016-11-11 16:11:54,602 - url_helper.py[WARNING]: Calling 'http://192.168.122.2//latest/meta-data/instance-id' failed [101/120s]: unexpected error ['NoneType' object has no attribute 'status_code']
[  409.284255] cloud-init[718]: 2016-11-11 16:12:12,623 - url_helper.py[WARNING]: Calling 'http://192.168.122.2//latest/meta-data/instance-id' failed [119/120s]: unexpected error ['NoneType' object has no attribute 'status_code']
[  410.296487] cloud-init[718]: 2016-11-11 16:12:13,624 - DataSourceCloudStack.py[CRITICAL]: Giving up on waiting for the metadata from ['http://192.168.122.2//latest/meta-data/instance-id'] after 120 seconds
[  411.029549] cloud-init[1948]: Cloud-init v. 0.7.5 running 'modules:config' at Fri, 11 Nov 2016 16:12:14 +0000. Up 410.94 seconds.
[  411.407782] cloud-init[1954]: Cloud-init v. 0.7.5 running 'modules:final' at Fri, 11 Nov 2016 16:12:14 +0000. Up 411.32 seconds.
[  411.436552] cloud-init[1954]: Cloud-init v. 0.7.5 finished at Fri, 11 Nov 2016 16:12:14 +0000. Datasource DataSourceNone.  Up 411.42 seconds
[  411.438016] cloud-init[1954]: 2016-11-11 16:12:14,774 - cc_final_message.py[WARNING]: Used fallback datasource

I can reach nova-metadata-api from compute nodes.

Any ideas?