Ask Your Question
-1

packstack metadata and sshkey errors

asked 2015-02-10 13:18:52 -0500

rlastinger gravatar image

updated 2015-02-12 12:08:54 -0500

I'm recently installed PackStack Juno on CentOS 7. My configuration is running Nova only, no Neutron. I will post may answers file later.

I am having issues with accessing my instances once they have been stood up. I think I see where my key is getting injected in the process, but something doesn't look correct about it. I get the following error when I try to SSH to my instances:

Permission denied (publickey).

The permissions set on my key are 600.

I get the following in the logs:

    Cloud-init v. 0.7.5 running 'init-local' at Thu, 12 Feb 2015 17:44:05 +0000. Up 2.37 seconds.
cloud-init-nonet[2.56]: 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 Bridge udev events into upstart[74G[ OK ]
 * Starting Signal sysvinit that remote filesystems are mounted[74G[ OK ]
 * Starting device node and kernel event manager[74G[ OK ]
 * Starting cold plug devices[74G[ OK ]
 * Starting log initial device creation[74G[ OK ]
 * Stopping set console keymap[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 ]
 * Starting Mount network filesystems[74G[ OK ]
 * Stopping Mount network filesystems[74G[ OK ]
cloud-init-nonet[3.72]: static networking is now up
 * 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 v. 0.7.5 running 'init' at Thu, 12 Feb 2015 17:44:07 +0000. Up 4.11 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 | 10.3.4.12 | 255.255.255.0 | fa:16:3e:ca:c4:68 |
ci-info: +--------+------+-----------+---------------+-------------------+
ci-info: ++++++++++++++++++++++++++++++Route info++++++++++++++++++++++++++++++
ci-info: +-------+-------------+----------+---------------+-----------+-------+
ci-info: | Route | Destination | Gateway  |    Genmask    | Interface | Flags |
ci-info: +-------+-------------+----------+---------------+-----------+-------+
ci-info: |   0   |   0.0.0.0   | 10.3.4.4 |    0.0.0.0    |    eth0   |   UG  |
ci-info: |   1   |   10.3.4.0  | 0.0.0.0  | 255.255.255.0 |    eth0   |   U   |
ci-info: +-------+-------------+----------+---------------+-----------+-------+
2015-02-12 17:44:07,726 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: bad status code [400]
2015-02-12 17:44:08,733 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [1/120s]: bad status code [400]
2015-02-12 17:44:09,739 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [2/120s]: bad status code [400]
2015-02-12 17:44:10,763 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [3/120s]: bad status code [400]
2015-02-12 17:44:11,771 - url_helper.py[WARNING]: Calling 'http://169.254.169.254 ...
(more)
edit retag flag offensive close merge delete

Comments

Could you take a minute to read the documentation about properly formatting your question? It's almost impossible to read.

larsks gravatar imagelarsks ( 2015-02-10 19:47:53 -0500 )edit

I apologize. This should be better now. After speaking with larsks in irc earlier, my guess is that it's not reaching the metadata service for some reason, but not sure why. All of these images work fine in every other Openstack that I've put them in including the old Grizzley RDO box.

rlastinger gravatar imagerlastinger ( 2015-02-12 12:10:55 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-15 15:59:24 -0500

Praveen N gravatar image

The instance is from Ubuntu 14.04.1 image.Check with the cloudinit script so that the default user named ubuntu is made to have login with customized password in user-data script.The other way round is to gain the root user login for this instance.Also check with ssh using its private IP from CentOS7.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-10 13:18:52 -0500

Seen: 513 times

Last updated: Feb 15 '15