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@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@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
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to