[openstack-dev] [ironic]Can not login machine by using Ironic
changzhi at unitedstack.com
Thu Dec 10 04:53:17 UTC 2015
I have installed Ironic in my devstack. And I create a keypair in nova by using command:
nova keypair-add --pub-key ~/.ssh/id_rsa.pub new
Next, I boot a vm in nova by using command:
nova boot --image [image_id] --flavor [baremetal_id] --nic net-id=[net_id] --key-name new test3
After a few minutes, I can connect the machine from router namespace like this:
[stack at localhost ~]$ sudo ip netns exec qrouter-[router_id] ping 10.0.0.205
PING 10.0.0.205 (10.0.0.205) 56(84) bytes of data.
64 bytes from 10.0.0.205: icmp_seq=1 ttl=64 time=0.412 ms
64 bytes from 10.0.0.205: icmp_seq=2 ttl=64 time=0.346 ms
So I want to login the machine by using command:
sudo ip netns exec qrouter-[router_id] ssh -i ~/.ssh/id_rsa root at 10.0.0.205
But I can not login the machine by using the file named ~/.ssh/id_rsa. It remind me to input
the password. Why? I used the key to boot this machine!
Could someone give me some advice?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev