[openstack-dev] [ironic]Can not login machine by using Ironic

Zhi Chang changzhi at unitedstack.com
Thu Dec 10 04:53:17 UTC 2015


hi, all
    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?




Thx
Zhi Chang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151210/31bb1ee9/attachment.html>


More information about the OpenStack-dev mailing list