Bug 1754261 - VM with DataVolume doesn't fully start
Summary: VM with DataVolume doesn't fully start
Keywords:
Status: CLOSED DUPLICATE of bug 1754262
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 2.1.0
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Adam Litke
QA Contact: Ying Cui
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-22 10:26 UTC by Yossi Segev
Modified: 2019-09-24 06:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-24 06:54:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
DataVolume spec (517 bytes, text/plain)
2019-09-22 10:26 UTC, Yossi Segev
no flags Details

Description Yossi Segev 2019-09-22 10:26:00 UTC
Created attachment 1617755 [details]
DataVolume spec

Description of problem:
VMI, with DataVolume defined for its disk, starts successfully and is in "Running" state, but its virtctl console does not function.


Version-Release number of selected component (if applicable):
OCP: 4.2.0-0.nightly-2019-09-21-183303
Latest CNV v2.1.0 (due to 2019-Sep-22)

How reproducible:
Always

Steps to Reproduce:
1. Create DataVolume using the attached dv.yaml
$ oc create -f dv.yaml

2. Verify the DataVolume was created successfully:
 $ oc get dv
NAME        AGE
dv-cirros   23m

3. Verify PVC was created successfully, and that it is in bound state:
$ oc get pvc
NAME        STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS      AGE
dv-cirros   Bound    pvc-93b30aee-dd1e-11e9-af4b-fa163e474cdd   500Mi      RWO            rook-ceph-block   23m

4. Create a Vm that deploys this DataVolume. You can use the attached vm-dv-cirros.yaml
$ oc create -f vm-dv-cirros.yaml

5. Start the VMI:
$ virtctl start vm-cirros

6. Verify the VMI is in "Running" state (you might want to wait ~1 minute for that):
$ oc get vmi
NAME         AGE   PHASE     IP            NODENAME
vm-cirros    24m   Running   10.129.0.41   host-172-16-0-15

7. Open a console to the VMI:
$ virtctl console vm-cirros

Actual results:
The console is not responsive - there's no progress of the VM start-up, no login and no shell.

Expected results:
Interactive console, with login and shell CLI.


Additional info:
1. Same thing happens when using a VM with a non-block (file-system) DV (same DV spec, without volumeMode defined).
2. There's no problem when using the standard vm-cirros spec - the one which is in https://github.com/kubevirt/kubevirt/tree/master/examples, which uses a containerDisk image from the registry.

Comment 1 Ying Cui 2019-09-24 06:54:01 UTC

*** This bug has been marked as a duplicate of bug 1754262 ***


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