[Openstack] Juno: Fail to set the network namespace "qrouter-7b422c9d-c5f9-4bb5-b1b3-159954c72323": Operation not permitted

Jason Bishop jason.bishop at gmail.com
Sun Oct 5 17:36:51 UTC 2014


the exec needs root perms.  just add a sudo and you should be good.


jason at devstack:~$ ip netns list

qdhcp-c6333eca-6fe4-40af-ad61-c1435a4701ef

qrouter-840c0ae7-ef5b-4be2-b496-b8a53080976b


jason at 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 at 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) <dannchoi at cisco.com>
wrote:

>  Hi,
>
>  I used devstack to deploy Juno OpenStack.
>
>  localadmin at qa4:~/devstack$ nova-manage version
>
> 2015.1
>
>
>  By default, router1 is created.
>
>  localadmin at qa4:~/devstack$ source openrc admin admin
>
> localadmin at qa4:~/devstack$
>
> localadmin at 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 at 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 at 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 at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141005/e6103279/attachment.html>


More information about the Openstack mailing list