-
Notifications
You must be signed in to change notification settings - Fork 1.3k
List VMs by Security Group & HA #4397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@blueorangutan package |
|
@GabrielBrascher a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2163 |
|
@blueorangutan package |
|
@GabrielBrascher a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2166 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
LGTM based on code |
|
Trillian test result (tid-2932)
|
sureshanaparti
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM
Pearl1594
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, LGTM - however, is removal of querying based on affinity group id intentional?
|
Very valid comment from @sureshanaparti ! @GabrielBrascher Can you elaborate on that? |
|
Are you talking about @Pearl1594 's comment @wido ? (affinity group affinity ;) |
|
Indeed @DaanHoogland, I quoted the wrong person. I meant @Pearl1594 his comment indeed. |
|
@GabrielBrascher indeed please advice. As per enough 👍 and test effort I merged but overlooked @Pearl1594 's question. Should we revert or fix forward or is there a legitimate explanation to the answer the query? (cc @wido , @sureshanaparti ) |
|
@DaanHoogland seems affinityGroupId code is accidentally removed. As this PR changes impacting existing func, better revert and fix that, and merge it again. Otherway should be also ok, if immediate fix. |
|
My mistake @DaanHoogland @Pearl1594 @sureshanaparti. Should we revert this commit? |
|
revert or fix forward @GabrielBrascher your choice for my part,, but with priority please. |
Fix mistake from PR apache#4397 List VMs by Security Group & HA
|
@DaanHoogland @sureshanaparti @Pearl1594 @wido I have created PR #4405 addressing the removed affinity group ID. I am sorry for all the trouble, guys. This was the first time that I messed this big with a PR. |
|
np @GabrielBrascher thanks for the quick response |
Description
List VMs by "security group ID" and/or "ha enabled"
Improve List VMs command allowing to list VMs filtering by security group or HA enabled.
Types of changes
How Has This Been Tested?
List VMs via API with different combinations. All worked fine.
filter vms with security group ID
list virtualmachines filter=id,name,haenable,securitygroup listall=true securitygroupid=<SG UUID>list VMs according to the HA enabled
list virtualmachines filter=id,name,haenable,securitygroup listall=true haenable=truelist virtualmachines filter=id,name,haenable,securitygroup listall=true haenable=falsecombione both added parameters
list virtualmachines filter=id,name,haenable,securitygroup listall=true haenable=false securitygroupid=<SG UUID>list virtualmachines filter=id,name,haenable,securitygroup listall=true haenable=true securitygroupid=<SG UUID>list virtualmachines filter=id,name,haenable,securitygroup listall=true haenable=false securitygroupid=<SG UUID2>list virtualmachines filter=id,name,haenable,securitygroup listall=true haenable=true securitygroupid=<SG UUID2>