Bug 1726377 - [RFE] add option to filter VirtualMachineInstanceMigration (vmim) by uid or vmiName
Summary: [RFE] add option to filter VirtualMachineInstanceMigration (vmim) by uid or v...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.1.0
Assignee: Fabian Deutsch
QA Contact: Denys Shchedrivyi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-02 17:30 UTC by Denys Shchedrivyi
Modified: 2019-07-16 12:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-16 12:10:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Denys Shchedrivyi 2019-07-02 17:30:11 UTC
/kind feature request

Description of problem:
 After running node maintenance VMIs create vmim jobs with random names:  

# oc get vmim
NAME                        AGE
kubevirt-evacuation-x6w72   12s
kubevirt-evacuation-awds2   12s

 It's difficult to determine which VMIM belongs to which VMI, because we can't filter list of vmim jobs by uid or vmi names:

# oc get vmim --field-selector metadata.uid=8fd776de-9cea-11e9-886a-664f163f5f0f
No resources found.
Error from server (BadRequest): Unable to find {"kubevirt.io" "v1alpha3" "virtualmachineinstancemigrations"} that match label selector "", field selector "metadata.uid=8fd776de-9cea-11e9-886a-664f163f5f0f": field label not supported: metadata.uid

# oc get vmim --field-selector spec.vmiName=vm-cirros
No resources found.
Error from server (BadRequest): Unable to find {"kubevirt.io" "v1alpha3" "virtualmachineinstancemigrations"} that match label selector "", field selector "spec.vmiName=vm-cirros": field label not supported: spec.vmiName

  
 So, now for finding right vmim object I need to go thru all existing jobs and verify if it contains necessary UID (or vmiName).

 I think, it would be great to have an option to filter vmim output list by adding field-selector based on UID or vmiName.

 
 Also, it would be very useful to get UID and vmiName by running "oc get vmim" with "-o wide" option.


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