Functional test test_gateway_chassis_rebalance failing due to "failed to bind logical router"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Confirmed
|
High
|
Jakub Libosvar |
Bug Description
Stacktrace:
ft1.14: neutron.
File "/home/
return f(self, *args, **kwargs)
File "/home/
self.
File "/home/
raise self.failureExc
AssertionError: False is not true : lrp cr-lrp-
Logstash query: http://
Changed in neutron: | |
assignee: | nobody → Jakub Libosvar (libosvar) |
I inspected the logs and it seems there are problems with the transaction order:
What happens is that during router creation, we create one transaction and add commands to create logical router and then to create logical router port for the gateway, in this order. However, in NB DB, the logical router port is created before:
2021-03- 08T22:51: 15.603Z| 01041|jsonrpc| DBG|unix# 5: received request, method="transact", params= ["OVN_Northboun d",{"uuid- name":" rowc664e9f4_ 477a_42b9_ 94e1_1cfd75e372 32","table" :"Logical_ Switch_ Port"," op":"insert" ,"row": {"name" :"488b3887- 1770-4a72- 86cb-7306e78c95 4a","addresses" :["set" ,["12:34: 56:78:84: c3 30.0.0. 35","unknown" ]],"options" :["map" ,[["requested- chassis" ,""]]], "external_ ids":[" map",[[ "neutron: cidrs", "30.0.0. 35/24"] ,["neutron: device_ id","0eff9eae- 4642-4abe- 9c06-67df139212 96"],[" neutron: device_ owner", "network: router_ gateway" ],["neutron: network_ name"," neutron- a0ce1add- b6ec-41df- bf85-44bac81781 ed"],[" neutron: port_name" ,""],[" neutron: project_ id",""] ,["neutron: revision_ number" ,"1"],[ "neutron: security_ group_ids" ,""]]], "type": "","enabled" :true}} ,{"where" :[["_uuid" ,"==",[ "uuid", "6317396c- 75ed-457b- a75b-09812e1340 99"]]], "mutations" :[["ports" ,"insert" ,["set" ,[["named- uuid"," rowc664e9f4_ 477a_42b9_ 94e1_1cfd75e372 32"]]]] ],"table" :"Logical_ Switch" ,"op":" mutate" }], id=1958
2021-03- 08T22:51: 17.278Z| 01069|jsonrpc| DBG|unix# 5: received request, method="transact", params= ["OVN_Northboun d",{"uuid- name":" rowd215a94b_ 9275_4fd0_ b73c_c2c7e86437 9a","table" :"Logical_ Router" ,"op":" insert" ,"row": {"name" :"neutron- 0eff9eae- 4642-4abe- 9c06-67df139212 96","external_ ids":[" map",[[ "neutron: availability_ zone_hints" ,""],[" neutron: gw_port_ id","488b3887- 1770-4a72- 86cb-7306e78c95 4a"],[" neutron: revision_ number" ,"2"],[ "neutron: router_ name"," router14" ]]],"enabled" :true}} ,{"where" :[["_uuid" ,"==",[ "named- uuid"," rowd215a94b_ 9275_4fd0_ b73c_c2c7e86437 9a"]]], "mutations" :[["ports" ,"insert" ,["set" ,[["named- uuid"," row34af8860_ ab43_4091_ ac45_d832a818fa 95"]]]] ,["static_ routes" ,"insert" ,["set" ,[["named- uuid"," row9d1df734_ 4604_4cd5_ a431_855104e1c2 b7"]]]] ],"table" :"Logical_ Router" ,"op":" mutate" },{"uuid- name":" row34af8860_ ab43_4091_ ac45_d832a818fa 95","table" :"Logical_ Router_ Port"," op":"insert" ,"row": {"name" :"lrp-488b3887- 1770-4a72- 86cb-7306e78c95 4a","mac" :"12:34: 56:78:84: c3","external_ ids":[" map",[[ "neutron: network_ name"," neutron- a0ce1add- b6ec-41df- bf85-44bac81781 ed"],[" neutron: revision_ number" ,"1"],[ "neutron: router_ name"," 0eff9eae- 4642-4abe- 9c06-67df139212 96"],[" neutron: subnet_ ids","4f8bbafc- ef7c-41bf- 917d-cfd52b1055 86"]]], "gateway_ chassis" :["named- uuid"," row759e3421_ f7a6_4d0b_ 9d43_ffd4ce2815 8d"],"networks" :"30.0. 0.35/24" }},{"uuid- name":" row759e3421_ f7a6_4d0b_ 9d43_ffd4ce2815 8d","table" :"Gateway_ Chassis" ,"op":" insert" ,"row": {"name" :"lrp-488b3887- 1770-4a72- 86cb-7306e78c95 4a_92ca516b- a624-42e1- 8460-5dcf6b57b9 8c","priority" :1,"chassis_ name":" 92ca516b- a624-42e1- 8460-5dcf6b57b9 8c"}},{ "where" :[["_uuid" ,"==",[ "uuid", "7145cd6b- c2a5-4cb7- 93fa-af8e1e3e00 9e"]]], "table" :"Logical_ Switch_ Port"," op":"update" ,"row": {"addresses" :"router" ,"options" :["map" ,[["nat- addresses" ,"router" ],["router- port"," lrp-488b3887- 1770-4a72- 86cb-7306e78c95 4a"]]], "type": "router" }},{"uuid- name":" row9d1df734_ 4...