Bug 1808997 - Wrong attempt to recreate LB API when upgrading Octavia
Summary: Wrong attempt to recreate LB API when upgrading Octavia
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.3.z
Assignee: Maysa Macedo
QA Contact: GenadiC
URL:
Whiteboard:
Depends On: 1808797
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-02 08:46 UTC by Luis Tomas Bolivar
Modified: 2020-04-07 19:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1808797
Environment:
Last Closed: 2020-04-07 19:14:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-network-operator pull 517 0 None closed Bug 1808997: Ensure no API LB recreation happens upon Octavia upgrade 2020-05-19 06:01:11 UTC

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:


Note You need to log in before you can comment on or make changes to this bug.