Bug 1997705 - Stopped Virtual Machine initial printableStatus should be 'stopped'
Summary: Stopped Virtual Machine initial printableStatus should be 'stopped'
Keywords:
Status: ASSIGNED
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 4.14.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.15.0
Assignee: Igor Bezukh
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-25 16:26 UTC by Ruth Netser
Modified: 2023-08-16 13:00 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-09 15:47:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CNV-15617 0 None None None 2023-08-16 08:13:43 UTC

Description Ruth Netser 2021-08-25 16:26:06 UTC
Description of problem:
When a VM is created, as long as it is not running, its initial printableStatus is None. 
It should be 'stopped' (the same value when a running VM is stopped).


Version-Release number of selected component (if applicable):
CNV 4.9.0

How reproducible:
100%

Steps to Reproduce:
1. Create a VM (with running: False)
printableStatus is None
2. Start the VM

Actual results:
printableStatus is changed to 'Stopped' and then to 'Starting'


Expected results:
initial value of printableStatus for a non-running VM should be 'Stopped'

Additional info:

virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   1s                 
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   1s                 
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   1s                 
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   1s      Stopped    False
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   2s      Stopped    False
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   2s      Stopped    False
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   2s      Starting   False
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   3s      Starting   False
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   3s      Starting   False
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   15s     Running    False
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   15s     Running    True
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   2m13s   Running    True
virt-vm-lifecycle-test-restart   vm-to-restart-1629908063-2791414   2m13s   Stopping   True

Comment 2 Igor Bezukh 2022-05-15 12:08:09 UTC
Hi,

I was trying to reproduce it on CNV 4.11 but without success. Can you please provide the VM manifest you were using for reproduction?

TIA
Igor

Comment 3 sgott 2022-06-03 15:27:11 UTC
Ruth, this appears to be fixed in the current release. Are you able to reproduce it on 4.11?

Comment 4 Ruth Netser 2022-06-08 16:46:13 UTC
@kbidarka Can you please check? The issue was observed when creating a VM from template (which consumes a golden image DV)

Comment 5 sgott 2022-09-09 15:47:07 UTC
We are unable to reproduce this issue. Please feel to re-open this BZ if this is still a problem.

Comment 6 vsibirsk 2023-08-15 14:00:16 UTC
Was able to reproduce it on 4.13 and 4.14 with simple container disk fedora

$ oc get vm -A -w
NAMESPACE                             NAME                                  AGE   STATUS   READY
virt-general-test-container-disk-vm   container-disk-vm-1692107073-600778   0s             
virt-general-test-container-disk-vm   container-disk-vm-1692107073-600778   0s             
virt-general-test-container-disk-vm   container-disk-vm-1692107073-600778   0s             
virt-general-test-container-disk-vm   container-disk-vm-1692107073-600778   0s             
virt-general-test-container-disk-vm   container-disk-vm-1692107073-600778   0s    Stopped   False
virt-general-test-container-disk-vm   container-disk-vm-1692107073-600778   1s    Stopped   False

$ oc get vm -A -w
NAMESPACE                             NAME                                   AGE   STATUS   READY
virt-general-test-container-disk-vm   container-disk-vm-1692107314-6578658   0s             
virt-general-test-container-disk-vm   container-disk-vm-1692107314-6578658   0s             
virt-general-test-container-disk-vm   container-disk-vm-1692107314-6578658   0s             
virt-general-test-container-disk-vm   container-disk-vm-1692107314-6578658   1s             
virt-general-test-container-disk-vm   container-disk-vm-1692107314-6578658   1s    Stopped   False

takes up to 1 sec for vm to get printable status

Comment 7 Kedar Bidarkar 2023-08-16 12:18:19 UTC
Targeting this to CNV 4.15 due to severity and priority of this bug.


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