the exec needs root perms. just add a sudo and you should be good.
jason@devstack:~$ ip netns list qdhcp-c6333eca-6fe4-40af-ad61-c1435a4701ef qrouter-840c0ae7-ef5b-4be2-b496-b8a53080976b jason@devstack:~$ ip netns exec qrouter-840c0ae7-ef5b-4be2-b496-b8a53080976b ping 10.0.0.1 seting the network namespace "qrouter-840c0ae7-ef5b-4be2-b496-b8a53080976b" failed: Operation not permitted jason@devstack:~$ sudo ip netns exec qrouter-840c0ae7-ef5b-4be2-b496-b8a53080976b ping 10.0.0.1 PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data. 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.034 ms 64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=0.046 ms ^C --- 10.0.0.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.034/0.040/0.046/0.006 ms On Sun, Oct 5, 2014 at 9:52 AM, Danny Choi (dannchoi) <dannc...@cisco.com> wrote: > Hi, > > I used devstack to deploy Juno OpenStack. > > localadmin@qa4:~/devstack$ nova-manage version > > 2015.1 > > > By default, router1 is created. > > localadmin@qa4:~/devstack$ source openrc admin admin > > localadmin@qa4:~/devstack$ > > localadmin@qa4:~/devstack$ neutron router-list > > > +--------------------------------------+---------+-----------------------------------------------------------------------------+-------------+-------+ > > | id | name | external_gateway_info > | distributed | ha | > > > +--------------------------------------+---------+-----------------------------------------------------------------------------+-------------+-------+ > > | 7b422c9d-c5f9-4bb5-b1b3-159954c72323 | router1 | {"network_id": > "2d113f8c-d742-4f2f-8cf2-a8e56749d51d", "enable_snat": true} | False > | False | > > > +--------------------------------------+---------+-----------------------------------------------------------------------------+-------------+-------+ > > localadmin@qa4:~/devstack$ ip netns > > qrouter-7b422c9d-c5f9-4bb5-b1b3-159954c72323 > > When I attempt to connect to the qrouter via “ip netns exec > qrouter-<id>", it failed. > > localadmin@qa4:~/devstack$ ip netns exec > qrouter-7b422c9d-c5f9-4bb5-b1b3-159954c72323 ip addr list > > seting the network namespace > "qrouter-7b422c9d-c5f9-4bb5-b1b3-159954c72323" failed: Operation not > permitted <<<ERROR > > > What’s the cause of the error? > > > Thanks, > > Danny > > > > _______________________________________________ > Mailing list: > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : openstack@lists.openstack.org > Unsubscribe : > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > >
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack