Bug 1712736 - Disable restart and migration when vm in pending/importer error
Summary: Disable restart and migration when vm in pending/importer error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 1.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.1.0
Assignee: Phillip Bailey
QA Contact: Radim Hrazdil
URL:
Whiteboard:
Depends On: 1673921
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-22 07:20 UTC by Guohua Ouyang
Modified: 2019-11-04 15:07 UTC (History)
10 users (show)

Fixed In Version: 4.2.0-0.nightly-2019-08-15-073735
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1673921
Environment:
Last Closed: 2019-11-04 15:07:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
importer error (78.75 KB, image/png)
2019-05-22 07:21 UTC, Guohua Ouyang
no flags Details
pending (77.16 KB, image/png)
2019-05-22 07:21 UTC, Guohua Ouyang
no flags Details
migrate_in_pending (14.46 KB, image/png)
2019-06-05 03:01 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 2142 0 None None None 2019-07-23 21:06:06 UTC

Description Guohua Ouyang 2019-05-22 07:20:42 UTC
+++ This bug was initially created as a clone of Bug #1673921 +++

Description of problem:
There is an 'Importing' state of a VM. I have not seen that one documented anywhere. Nevertheless, in Actions there are options to stop/restart and delete that machine (Which is also not documented in [1], e.g.). Stop and Delete works fine, but Restart returns an error: "<name> not found."

Version-Release number of selected component (if applicable):
oc v3.11.69
kubernetes v1.11.0+d4cacc0


How reproducible:
always

Steps to Reproduce:
1. Create a virtual machine, and choose Container as a provision source
2. Start that machine, observe Importing... 
3. Choose Restart in Actions

Actual results:
An error machine is not found. 

Expected results:
There should be smth about Importing in docs, and no error on Reboot. Or maybe even no Stop/Restart actions, if those are not applicable (are they?), before image import.


Additional info:
[1] https://github.com/openshift/openshift-docs/blob/61a051b762659b05377301e9aca5df764ab3418a/modules/cnv_vm_actions_web.adoc#cnv-vm-actions-web

--- Additional comment from Tomas Jelinek on 2019-02-11 20:18:27 CST ---

@Andrew: FYI, not sure if you need a separate BZ to handle it.

--- Additional comment from Irina Gulina on 2019-02-12 23:18:36 CST ---

Tomas, I have opened a separate doc BZ 1676572

--- Additional comment from Tomas Jelinek on 2019-02-14 16:36:08 CST ---

as per agreement moving this to 2.0

--- Additional comment from Tomas Jelinek on 2019-03-27 08:02:55 CST ---

https://github.com/kubevirt/web-ui/pull/237

--- Additional comment from Guohua Ouyang on 2019-05-08 13:57:07 CST ---

How to get a VM into importing status? I see it once and the restart option is not available when vm is importing.

But for status "pending", "Importer Error", the problem "VM not found" is still there, I think "restart" should be disabled for these status as well.
And "migration" should be disabled since the VM is not existed yet.

--- Additional comment from Rastislav Wagner on 2019-05-16 19:36:53 CST ---

How to get a VM into importing status? I see it once and the restart option is not available when vm is importing.
-> Vm is in importing status when you use URL source and import didn't complete yet


https://github.com/kubevirt/web-ui/pull/375

--- Additional comment from Guohua Ouyang on 2019-05-22 15:17:02 CST ---

Restart and Migration are not available in vm actions when vm in importing.

Comment 1 Guohua Ouyang 2019-05-22 07:21:17 UTC
Created attachment 1571834 [details]
importer error

Comment 2 Guohua Ouyang 2019-05-22 07:21:49 UTC
Created attachment 1571835 [details]
pending

Comment 4 Phillip Bailey 2019-06-04 19:14:58 UTC
I no longer see the restart or migrate options in the kebab or action menu when the VM is in the "import pending" or "import error" states. Moving to ON_QA.

Comment 5 Guohua Ouyang 2019-06-05 03:01:51 UTC
Created attachment 1577407 [details]
migrate_in_pending

The migrate is still in pending.

Comment 7 Phillip Bailey 2019-06-05 08:41:28 UTC
Ah. This 'pending' status is coming from a pending migration. I didn't see that as one of the possible statuses in the code, so I thought that the bug was referring to the 'import pending' status. I'll look into it. Sorry for the confusion.

Comment 8 Radim Hrazdil 2019-09-05 14:18:03 UTC
Verified that restart, start, migrate and clone actions are not available during import.
Migrate is not available when VM is off.
When VM is migrating, restart action is not available (stop, clone and delete are available).

4.2.0-0.nightly-2019-09-04-142146
HCO 2.1.0-29


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