Filter removed nics while listing LB vm instances - #6430
harikrishna-patnala merged 1 commit into
Conversation
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
@blueorangutan package |
1 similar comment
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3516 |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-4279)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
code looks good @GutoVeronezi , but did you check if the list is retrieved in other places as well? I agree it should work like this and if removed nics should be retrieved as well a method like listNicsIncludingRomoved(). This is not always implemented this way so care must be taken.
|
Hi @GutoVeronezi can you please target this fix to the 4.17 branch? |
fa2ffac to
dcfbe60
Compare
Hi @nvazquez, done. |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
Hi @DaanHoogland,
|
|
Kudos, SonarCloud Quality Gate passed! |
Ok, than renaming to |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✔️ el8 ✖️ debian ✖️ suse15. SL-JID 3680 |
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3688 |
|
@sureshanaparti could we run the tests again? |
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3716 |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-4433)
|
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-4440)
|
harikrishna-patnala
left a comment
There was a problem hiding this comment.
LGTM, test_09_arping_in_cpvm test failure does not look related to this PR change.
|
I was able to reproduce the issue and tested the fix also. |









Description
When we remove the NIC of a network from a VM and add a new NIC of the same network, we will have two registers in the database for the same VM and network, one of them being marked as
removed. In APIlistLoadBalancerRuleInstances, specifically in the methodLoadBalancingRulesManagerImpl#listLoadBalancerInstances, ACS retrieves the instances according to the user's account and the network where the LB is being created; however, it lists all the NICs, even the marked asremoved, which causes the following error while listing the VMs:This PR intends to fix this error by filtering the removed NICs while listing the LB intances.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
How Has This Been Tested?
In a local lab, I created a VM with a random network. I added a NIC for a specific network (
test) to the VM. I removed the NIC of networktestand then added it again. I created a LB rule with this VM. Before the changes, while listing the LB rule instances I gotIndex 1 out of bounds for length 1. After the changes, the instance was listed.