server: fix for wrong affinity group count#4154
Conversation
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔debian. JID-1416 |
|
Packaging result: ✔centos7 ✔debian. JID-1417 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1762)
|
|
Request for review - @davidjumani @DaanHoogland @GabrielBrascher @ustcweizhou @nvazquez @Spaceman1984 |
| affinityGroupName, affinityGroupType, keyword); | ||
|
|
||
| affinityGroups.addAll(listDomainLevelAffinityGroups(scDomain, searchFilter, permittedAcct.getDomainId())); | ||
| List<AffinityGroupJoinVO> groups = listDomainLevelAffinityGroups(scDomain, searchFilter, permittedAcct.getDomainId()); |
There was a problem hiding this comment.
Could this return Ids that are already there in affinityGroups ?
There was a problem hiding this comment.
@davidjumani I think it might. Will check and fix if needed cc @rhtyd
|
Tested by adding an affinity group from the ui and then running the list affinitygroups api from cloudmonkey. LGTM |
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@davidjumani can you test and review please |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔debian. JID-1425 |
|
LGTM. Tested creating affinity groups across domains and querying them. The count was as expected |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1818)
|
|
Test lgtm, failure unrelated to the PR |
Description
Fixes wrong
countinlistAffinityGroupAPI.API was returning the count of
AffinityGroupJoinVOrecords.Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
With a running environment,
Before fix - count is equal to VM count for the affinity groups
After fix - actual count of affinity groups