Ask Your Question
0

instance couldn't get dhcp assigned ip

asked 2015-03-02 12:38:49 -0500

bibin gravatar image

Hi,

I have installed open stack juno on opensuse. When I create an instance, it is not getting the assigned dhcp ip and all the neutron services up on the server.

Getting following errors at looking neutron dhcp agent logs.

2015-03-02 23:56:51.237 10473 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2015-03-02 23:56:51.243 10473 INFO neutron.agent.dhcp_agent [-] DHCP agent started
2015-03-02 23:56:51.366 10473 INFO neutron.agent.dhcp_agent [req-4b2e256c-33aa-41ea-b0f5-e779b0765251 None] Synchronizing state
2015-03-02 23:56:51.883 10473 ERROR neutron.agent.linux.utils [-] 
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-d8636a14-9a86-4b1f-9cf6-30383a54470f', 'conntrack', '-D', '-d', '169.254.169.254']
Exit code: 99
Stdout: ''
Stderr: '/usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec qdhcp-d8636a14-9a86-4b1f-9cf6-30383a54470f conntrack -D -d 169.254.169.254 (no filter matched)\n'
2015-03-02 23:56:51.884 10473 ERROR neutron.agent.linux.interface [-] Failed deleting ingress connection state of floatingip 169.254.169.254
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface Traceback (most recent call last):
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/interface.py", line 151, in delete_conntrack_state
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface     extra_ok_codes=[1])
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 550, in execute
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface     check_exit_code=check_exit_code, extra_ok_codes=extra_ok_codes)
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 84, in execute
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface     raise RuntimeError(m)
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface RuntimeError: 
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-d8636a14-9a86-4b1f-9cf6-30383a54470f', 'conntrack', '-D', '-d', '169.254.169.254']
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface Exit code: 99
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface Stdout: ''
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface Stderr: '/usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec qdhcp-d8636a14-9a86-4b1f-9cf6-30383a54470f conntrack -D -d 169.254.169.254 (no filter matched)\n'
2015-03-02 23:56:51.884 10473 TRACE neutron.agent.linux.interface 
2015-03-02 23:56:51.987 10473 ERROR neutron.agent.linux.utils [-] 
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-d8636a14-9a86-4b1f-9cf6-30383a54470f', 'conntrack', '-D', '-q', '169.254.169.254']
Exit code: 99
Stdout: ''
Stderr: '/usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec qdhcp-d8636a14-9a86-4b1f-9cf6-30383a54470f conntrack -D -q 169.254.169.254 (no filter matched)\n'
2015-03-02 23:56:51.989 10473 ERROR neutron.agent.linux.interface [-] Failed deleting egress connection state of floatingip 169.254.169.254
2015-03-02 23:56:51.989 10473 TRACE neutron.agent.linux.interface Traceback (most recent call last):
2015-03-02 ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2015-03-03 06:25:04 -0500

Nicholas I gravatar image

updated 2015-03-03 06:34:19 -0500

install this and try again.

sudo apt-get install python-oslo.rootwrap

Then ,

cp -a /usr/lib/python2.7/dist-packages/oslo/rootwrap/ /usr/local/lib/python2.7/dist-packages/oslo
edit flag offensive delete link more
0

answered 2015-03-03 03:48:22 -0500

Nicholas I gravatar image
  1. Check whether netns is installed
  2. Are your running it on bare metal or VM?
edit flag offensive delete link more

Comments

Hi,

netns is installed and it is running on VM. Now the dhcp-agent service have no issues. However the issue is still persisting. Thanks to every one who looked into it.

bibin gravatar imagebibin ( 2015-03-03 05:16:09 -0500 )edit

Hi,

Could you please let me know the solution for this issue ?

tkekan gravatar imagetkekan ( 2015-04-28 19:41:52 -0500 )edit
0

answered 2015-03-30 08:23:11 -0500

bibin gravatar image

The issue is fixed and that was caused due to db conflict. I have recreated the neutron db and it is working fine now.

edit flag offensive delete link more

Comments

How were you able to identify this as a DB conflict?

ethode gravatar imageethode ( 2015-04-12 21:25:46 -0500 )edit

@bibin: Could you please explain your solution ? I'm seeing similar issues related to conntrack. Installed conntrack and netns on the neutron node. Now, the error code has changed from '99' to '1'. Please let me know.

tkekan gravatar imagetkekan ( 2015-04-29 17:46:32 -0500 )edit

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: 2015-03-02 12:38:49 -0500

Seen: 1,005 times

Last updated: Mar 30 '15