Releasing secondary guest IP fails with error 'Removing guest ip from nic failed'

Problem

Releasing secondary guest IP fails with error 'Removing guest ip from nic failed' 

Steps to Reproduce the problem

Create two isolated guest networks with same CIDR

2. Deploy VMs on both networks

3. Acquire secondary IP on NICs of both VMs and make sure they have the same value, user can input the IP address.

4. Configure Loadbalancing rule on one of the secondary IP address and try releasing the  secondary IP address of the other guest network.

5. The operation would fail

Root Cause

 

A defect in the CloudPlatform where it is not using network_id as condition in the mysql query while fetching the load balancing rules. When fetching the load balancing rules only using the IP address it could result in load balancing rules belonging to other guest networks having same CIDR. 

Required Modification

Code change to select the specific load balancing rules for the network and IP while performing operations like releasing the secondary guest IP address.

Reason for Modification

 A code change is required to fix the defect identified.

Resolution/Workaround

Code change to select the specific load balancing rules for the network and IP while performing operations like releasing the secondary guest IP.

 

No workaround available.

Verification

 

Perform the repro steps upto 4 and we should be able to release the secondary guest IP address.

Impact on Existing System

 

It makes sure that user/admin would be able to release the secondary guest IP address from a NIC even if another guest network using the same IP address and having  load balancing rules associated with it.

Potential Adverse Effect

 

There is no known adverse effect to the system

Document ID:
115000195263

Product:
CloudPlatform

Version:
4.7,4.7.1

Reference Jira ID:
CS-50136

 
Have more questions? Submit a request

Comments