Bug 1808997

Summary: Wrong attempt to recreate LB API when upgrading Octavia
Product: OpenShift Container Platform Reporter: Luis Tomas Bolivar <ltomasbo>
Component: NetworkingAssignee: Maysa Macedo <mdemaced>
Networking sub component: kuryr QA Contact: GenadiC <gcheresh>
Status: CLOSED INSUFFICIENT_DATA Docs Contact:
Severity: high    
Priority: unspecified CC: bbennett, gcheresh, itbrown, mdemaced
Version: 4.4   
Target Milestone: ---   
Target Release: 4.3.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1808797 Environment:
Last Closed: 2020-04-07 19:14:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1808797    
Bug Blocks:    

Description Luis Tomas Bolivar 2020-03-02 08:46:21 UTC
+++ This bug was initially created as a clone of Bug #1808797 +++

+++ This bug was initially created as a clone of Bug #1808498 +++

Description of problem:

When upgrading Octavia from OSP13 to OSP16 the CNO checks if tagging is supported and if it's tries to look for an API load balancer with tag. However, the existent LB was created with OSP13, which does not support tagging and so the tagging is added on description. The CNO then tries to create a new LB API and fails as the address is already in use.

CNO logs:
2020/02/28 16:21:14 Failed to reconcile platform networking resources: failed to create OpenShift API loadbalancer: failed to create LB: Internal Server Error

Octavia logs:
Neutron server returns request_ids: ['req-b0e62a7e-26f7-4310-9749-ddf971dab7dc']: octavia_lib.api.drivers.exceptions.DriverError: IP address 172.30.0.1 already allocated in subnet 5b87bf2e-3038-4d3d-a610-ab8a936d
50ac                                                                                                                                                                                                                
Neutron server returns request_ids: ['req-b0e62a7e-26f7-4310-9749-ddf971dab7dc']                                                                                                                                    
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils Traceback (most recent call last):                                                                                                                       
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils   File "/usr/lib/python3.6/site-packages/octavia/network/drivers/neutron/allowed_address_pairs.py", line 450, in allocate_vip                      
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils     new_port = self.neutron_client.create_port(port)                                                                                                     
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils   File "/usr/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 803, in create_port                                                         
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils     return self.post(self.ports_path, body=body)                                                                                                         
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils   File "/usr/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 359, in post                                                                
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils     headers=headers, params=params)                                                                                                                      
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils   File "/usr/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 294, in do_request                                                          
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils     self._handle_fault_response(status_code, replybody, resp)                                                                                            
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils   File "/usr/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 269, in _handle_fault_response                                              
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils     exception_handler_v20(status_code, error_body)                                                                                                       
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils   File "/usr/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20                                            
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils     request_ids=request_ids)                                                                                                                             
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils neutronclient.common.exceptions.IpAddressAlreadyAllocatedClient: IP address 172.30.0.1 already allocated in subnet 5b87bf2e-3038-4d3d-a610-ab8a936d50ac  
2020-02-28 16:04:20.575 32 ERROR octavia.api.drivers.utils Neutron server returns request_ids: ['req-b0e62a7e-26f7-4310-9749-ddf971dab7dc']                                                                         


Version-Release number of selected component (if applicable):
Upgrade Octavia OSP13 to Octavia OSP16

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: