ip netns show "qrouter-f426d040-b7f8-4ad5-8a06-afce448e6e2e (id: 2)"

asked 2016-01-21 01:43:50 -0500

Tiloo gravatar image

I got some error in l3-agent.log as below:

 2016-01-21 14:19:02.917 28366 ERROR neutron.agent.linux.utils [-] 
Command: ['ip', 'netns', 'exec', 'qrouter-f426d040-b7f8-4ad5-8a06-afce448e6e2e (id: 2)', 'find', '/sys/class/net', '-maxdepth', '1', '-type', 'l', '-printf', '%f ']
Exit code: 1
Stdin: 
Stdout: 
Stderr: Cannot open network namespace "qrouter-f426d040-b7f8-4ad5-8a06-afce448e6e2e (id: 2)": No such file or directory

It's weird that show the "(id:2)"----------------------------------------------------------------------?

The "ip netns" output is :

    [root@network1 neutron]# ip netns
qrouter-f426d040-b7f8-4ad5-8a06-afce448e6e2e (id: 2)
qdhcp-82b58b50-ed02-4642-a32e-8cf2b96c7487 (id: 0)
qdhcp-912d8f74-c029-49f6-8e57-862dc8c245bf (id: 1)

The "ip netns list-id" output is:

   [root@network1 neutron]# ip netns list-id
nsid 0 (iproute2 netns name: qdhcp-82b58b50-ed02-4642-a32e-8cf2b96c7487)
nsid 1 (iproute2 netns name: qdhcp-912d8f74-c029-49f6-8e57-862dc8c245bf)
nsid 2 (iproute2 netns name: qrouter-f426d040-b7f8-4ad5-8a06-afce448e6e2e)

As I remeber that should be only namespace's name but why include the (id:x) ?

edit retag flag offensive close merge delete

Comments

[root@network1 neutron]# ip netns add foo [root@network1 neutron]# ip netns list foo qrouter-f426d040-b7f8-4ad5-8a06-afce448e6e2e (id: 2) qdhcp-82b58b50-ed02-4642-a32e-8cf2b96c7487 (id: 0) qdhcp-912d8f74-c029-49f6-8e57-862dc8c245bf (id: 1)

Tiloo gravatar imageTiloo ( 2016-01-21 01:45:46 -0500 )edit