← Back to team overview

openstack team mailing list archive

Re: quantum-openvswitch-agent needs a restart to bind the vlan-ID

 

Hi,
I have managed to find the problem :). I have spent the whole day on this :(. I was running devstack and the code executes ovs_quantum_agent.py. Whilst going through the mailing mails I came upon this mail and saw that you are calling quantum-openvswitch-agent.
I'll post a fix soon.
Thanks!
Gary

On 08/31/2012 06:19 AM, Naveen Joy (najoy) wrote:
Hi Dan,

This issue happens only when rpc = True and it happens consistently. When rpc =False,  everything is fine. Thanks for this pointer!.  Also, I am just spinning up a single VM though the horizon interface without using any scripts.

Naveen

-----Original Message-----
From: Dan Wendlandt [mailto:dan@xxxxxxxxxx]
Sent: Thursday, August 30, 2012 5:42 PM
To: Naveen Joy (najoy)
Cc: Aaron Rosen; openstack list (openstack@xxxxxxxxxxxxxxxxxxx)
Subject: Re: [Openstack] quantum-openvswitch-agent needs a restart to bind the vlan-ID

Hi Naveen,

Was noticing something like this while testing last night, but hadn't gotten around to determining if it was in master or just the branch I was testing.

Are you seeing this even if rpc = False?   I noticed this only when my
settings got reset to make rpc = True, though I haven't investigated it enough to know if that is the rpc flag is just a coincidence.

Another possible correlation I've noticed is that it occurs when I use a script to spin up multiple VMs in succession, possibly suggesting some kind of race/timing issue.  Does that match your use case?

It looks like there's a bug on this, so I'll post my questions there as well, so that we can keep all info on the bug in one place:
https://bugs.launchpad.net/bugs/1044135

Thanks,

Dan




On Thu, Aug 30, 2012 at 4:16 PM, Naveen Joy (najoy)<najoy@xxxxxxxxx>  wrote:
Hi Aaron,



The agent has not crashed.

#sudo status quantum-openvswitch-agent

quantum-openvswitch-agent start/running, process 20208



However, the agent is not  binding the port to the vlan unless I restart it.
The log_file setting in the ovs_quantum_plugin.ini file also doesn't
seem to work.



Thanks,

Naveen



From: Aaron Rosen [mailto:arosen@xxxxxxxxxx]
Sent: Thursday, August 30, 2012 3:02 PM
To: Naveen Joy (najoy)
Cc: openstack list (openstack@xxxxxxxxxxxxxxxxxxx)
Subject: Re: [Openstack] quantum-openvswitch-agent needs a restart to
bind the vlan-ID



Hi Joy,



I did noticed a bug in ovs_lib.py but it would cause q-agt to crash.
Did the agent crash?



Aaron

On Thu, Aug 30, 2012 at 2:48 PM, Naveen Joy (najoy)<najoy@xxxxxxxxx>  wrote:

Hi All,



I am running the latest quantum code base. I am seeing an issue in
which the openvswitch agent is not automatically assigning the vlans
to the tap interfaces of my new instances. If I restart the agent, it
fixes the problem. Has anyone seen this issue?.



#quantum port-list

| True           | b74ebe64-4a25-462b-b022-e1c6c42b7e9e
| compute:N    | {"subnet_id": "a44f49dd-cc71-4da6-998c-f0842687d4b0",
"ip_address": "192.168.119.86"} | 7e6e1373-5ddd-410c-807f-cdf50893be55 |
fa:16:3e:82:ba:43 |            | acab3c27-2a5d-4a62-8dbe-e7f856f83978 |
ACTIVE | 244be8af89624b1e94c0136d5d557a9d |



#sudo ovs-vsctl list port

_uuid               : 2eec7692-4e1b-40a8-a428-ee8956516406

bond_downdelay      : 0

bond_fake_iface     : false

bond_mode           : []

bond_updelay        : 0

external_ids        : {}

fake_bridge         : false

interfaces          : [8dfee46d-e752-4c84-a738-5a63cf4c9c09]

lacp                : []

mac                 : []

name                : "tap7e6e1373-5d"

other_config        : {}

qos                 : []

statistics          : {}

status              : {}

tag                 : []

trunks              : []

vlan_mode           : []



#sudo restart quantum-openvswitch-agent

#sudo ovs-vsctl list port

_uuid               : 2eec7692-4e1b-40a8-a428-ee8956516406

bond_downdelay      : 0

bond_fake_iface     : false

bond_mode           : []

bond_updelay        : 0

external_ids        : {}

fake_bridge         : false

interfaces          : [8dfee46d-e752-4c84-a738-5a63cf4c9c09]

lacp                : []

mac                 : []

name                : "tap7e6e1373-5d"

other_config        : {}

qos                 : []

statistics          : {}

status              : {}

tag                 : 622

trunks              : []

vlan_mode           : []



Thanks,

Naveen




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




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



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Wendlandt
Nicira, Inc: www.nicira.com
twitter: danwendlandt
~~~~~~~~~~~~~~~~~~~~~~~~~~~

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



References