← Back to team overview

openstack team mailing list archive

Re: VM do not get ip when use quantum

 

Hi,


I had the same problem. I found a solution in RDO Openstack forum.
link: http://openstack.redhat.com/forum/discussion/comment/561#Comment_561

1) stop quantum services and remove ports from ovs.


# ovs-vsctl del-port br-int xxxxx
# ovs-vsctl del-port br-ext xxxxx


It's cleaned up as:


# ovs-vsctl show
394e8a6b-a5e0-4fef-8f8f-506889aebfc1
    Bridge br-int
        Port br-int
            Interface br-int
                type: internal
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port "eth0"
            Interface "eth0"
    ovs_version: "1.10.0"


2) add ovs_use_veth = True in l3_agent.ini, dhcp_agent.ini and lbaas_agent.ini.


Date: Thu, 11 Jul 2013 10:50:23 +0800
From: jt628910@xxxxxxx
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: [Openstack] VM do not get ip when  use  quantum








hi all:
OS : rhel6.4
openstack version:Gizzly
 
install quantum with doc  :http://docs.openstack.org/grizzly/openstack-network/admin/content/
 
service  quantum-l3-agent  status
quantum-l3-agent dead,but pid exit
 
In dashboard ,when i add a instance  ,  
it show that this instance  have added a ip such as 192.168.10.2
 
but   in vm  ,I do not see 
eth0  have this IP
 
tailf /var/log/quantum/dhcp-agent.log 
 

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/quantum/agent/dhcp_agent.py", line 131, in call_driver
    getattr(driver, action)()
  File "/usr/lib/python2.6/site-packages/quantum/agent/linux/dhcp.py", line 124, in enable
    reuse_existing=True)
  File "/usr/lib/python2.6/site-packages/quantum/agent/dhcp_agent.py", line 554, in setup
    namespace=namespace)
  File "/usr/lib/python2.6/site-packages/quantum/agent/linux/interface.py", line 181, in plug
    ns_dev.link.set_address(mac_address)
  File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 180, in set_address
    self._as_root('set', self.name, 'address', mac_address)
  File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 167, in _as_root
    kwargs.get('use_root_namespace', False))
  File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 47, in _as_root
    namespace)
  File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 58, in _execute
    root_helper=root_helper)
  File "/usr/lib/python2.6/site-packages/quantum/agent/linux/utils.py", line 61, in execute
    raise RuntimeError(m)
RuntimeError: 
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'link', 'set', 'tapbf9a2991-33', 'address', 'fa:16:3e:a7:ea:91']
Exit code: 2
Stdout: ''
Stderr: 'RTNETLINK answers: Device or resource busy\n'
 
 
what happen about this?  


ttjiang

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp 		 	   		  

Follow ups

References