Ask Your Question
0

RDO --allinone neutron dhcp issue

asked 2014-03-02 12:44:48 -0500

dubi gravatar image

updated 2014-03-02 14:24:13 -0500

I have this on 2 fedora 19 system . Did not try on fedora 20

I install by: packstack --allinone . The installation is finished ok - no problems . the system has one NIC with external IP; the ifocnfig shows also : br-ext, br-int, qg-.., qr-.. The dahsboard show 2 networks generated : one public and one private (10.0.0.0)

I can generate VMs . But they do not get an IP intrnally althought the Openstack assigns them address from the private net 10.0.0.0.

The /var/log/neutron/dhcp-agent.log shows repeated an error :

2014-03-02 20:28:37.373 9886 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for 285574fc-629e-41e2-a0ec-abc763846e15.

....

2014-03-02 20:28:37.373 9886 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 62, in execute

2014-03-02 20:28:37.373 9886 TRACE neutron.agent.dhcp_agent raise RuntimeError(m)

2014-03-02 20:28:37.373 9886 TRACE neutron.agent.dhcp_agent RuntimeError:

2014-03-02 20:28:37.373 9886 TRACE neutron.agent.dhcp_agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron /rootwrap.conf', 'ip', 'netns', 'add', 'qdhcp-285574fc-629e-41e2-a0ec-abc763846e15']

2014-03-02 20:28:37.373 9886 TRACE neutron.agent.dhcp_agent Exit code: 255

2014-03-02 20:28:37.373 9886 TRACE neutron.agent.dhcp_agent Stdout: ''

2014-03-02 20:28:37.373 9886 TRACE neutron.agent.dhcp_agent Stderr: 'mount --make-shared /var/run/netns failed: Permission denied\n'

Who is the linux user running this code ? Assuming it is 'neutron' I made him sudoer (by adding to /etc/sudoers) but that did not help

Also checked that if I make 'neutron' a login user + sudoer , I can do the 'mount --make -shared' from Linux command line as 'neutron' user !
Itried another user 'nova' . Did not work eihe . What user can it be that runs this piece of code ?

I have this problem consistent (--allinone) on more than one system

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-04 23:24:51 -0500

dubi gravatar image

solved . marking the private network connecting the VMs as 'shared '.

No idea why this solves the : 'mount --make-shared /var/run/netns failed: Permission denied\n' issue

Anyone has an idea why ?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-03-02 12:44:48 -0500

Seen: 522 times

Last updated: Mar 04 '14