[L2] stop processing ports twice in ovs-agent
Bug #1841865 reported by
LIU Yulong
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
In Progress
|
Wishlist
|
LIU Yulong |
Bug Description
When port installed to the agent, it will be processed in rpc_loop X as "added". In next X + 1 rpc_loop, it will be processed again as "updated". This is unnecessary. And it can highly probably increase the processing time of new "added" ports in this X+1 loop.
We have do something for the first rpc_loop 0 during agent restart, the ports will not be processed again. But for the running loop, we should re-examine such double processing mechanism or bug.
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
tags: | added: loadimpact ovs |
Changed in neutron: | |
assignee: | nobody → Sapna Jadhav (sapana45) |
To post a comment you must log in.
Hi, I have debugged this logs while launching a VM.
Observing below logs, where it is updating port again,
Oct 02 18:15:12 dev-Standard- PC-i440FX- PIIX-1996 neutron- openvswitch- agent[8964] : DEBUG neutron. agent.resource_ cache [None req-334dbab3- cd48-4bfb- ac7a-ab641101fc 8d service neutron] Resource Port 5df7ecb2- 875e-4fbf- b452-e5ef89b755 f1 updated (revision_number 4->5). Old fields: {'device_owner': u'', 'binding': PortBinding( host='' ,port_id= 5df7ecb2- 875e-4fbf- b452-e5ef89b755 f1,profile= {},status= 'ACTIVE' ,vif_details= None,vif_ type='unbound' ,vnic_type= 'normal' )} New fields: {'device_owner': u'compute:nova', 'binding': PortBinding( host='dev- Standard- PC-i440FX- PIIX-1996' ,port_id= 5df7ecb2- 875e-4fbf- b452-e5ef89b755 f1,profile= {},status= 'ACTIVE' ,vif_details= None,vif_ type='unbound' ,vnic_type= 'normal' )} {{(pid=8964) record_ resource_ update /opt/stack/ neutron/ neutron/ agent/resource_ cache.py: 185}}
Oct 02 18:15:13 dev-Standard- PC-i440FX- PIIX-1996 neutron- openvswitch- agent[8964] : DEBUG neutron. agent.resource_ cache [None req-334dbab3- cd48-4bfb- ac7a-ab641101fc 8d service neutron] Resource Port 5df7ecb2- 875e-4fbf- b452-e5ef89b755 f1 updated (revision_number 5->6). Old fields: {'binding': PortBinding( host='dev- Standard- PC-i440FX- PIIX-1996' ,port_id= 5df7ecb2- 875e-4fbf- b452-e5ef89b755 f1,profile= {},status= 'ACTIVE' ,vif_details= None,vif_ type='unbound' ,vnic_type= 'normal' ), 'binding_levels': []} New fields: {'binding': PortBinding( host='dev- Standard- PC-i440FX- PIIX-1996' ,port_id= 5df7ecb2- 875e-4fbf- b452-e5ef89b755 f1,profile= {},status= 'ACTIVE' ,vif_details= {"port_ filter" : true, "datapath_type": "system", "ovs_hybrid_plug": true},vif_ type='ovs' ,vnic_type= 'normal' ), 'binding_levels': [PortBindingLev el(driver= 'openvswitch' ,host=' dev-Standard- PC-i440FX- PIIX-1996' ,level= 0,port_ id=5df7ecb2- 875e-4fbf- b452-e5ef89b755 f1,segment= NetworkSegment( 0032ea77- 5df5-437f- 86f7-6e31db95cc 52))]} {{(pid=8964) record_ resource_ update /opt/stack/ neutron/ neutron/ agent/resource_ cache.py: 185}}
So, in these bug are we talking about these logs only?