Bug 1828132

Summary: [4.4][RHCOS] no payload device attached when starting an RHCOS VM as run-once
Product: [oVirt] ovirt-engine Reporter: Beni Pelled <bpelled>
Component: BLL.VirtAssignee: Liran Rotenberg <lrotenbe>
Status: CLOSED CURRENTRELEASE QA Contact: Beni Pelled <bpelled>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: bugs, lrotenbe, rbarry
Target Milestone: ovirt-4.4.1Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 08:26:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
RHCOS gets stuck on the boot none

Description Beni Pelled 2020-04-27 06:29:58 UTC
Description of problem:
An RHCOS VM has no payload device (for the ignition file) when running the VM as run-once
- and the operating system gets stuck while booting.

Version-Release number of selected component (if applicable):
- RHV 4.4.0-0.33.master.el8ev
- rhcos-44.81.202004250133-0-openstack
- libvirt-6.0.0-17.module+el8.2.0+6257+0d066c28.x86_64
- vdsm-4.40.13-1.el8ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create an RHCOS VM (make sure RHCOS configured under 'Edit > General > Operation System')
2. Start the VM as run-once and check the 'Ignition 2.3.0' checkbox under 'Initial Run'.

Actual results:
No payload device attached to the VM and the VM gets stuck while booting

dumpxml result (empty):
# virsh -r dumpxml <rhcos_vm> | sed -n '/ovirt-vm:vmPayload/,/\/ovirt-vm:vmPayload/p'

Expected results:
Payload device is attached to the VM and RHCOS is up and running

dumpxml should result something like:
# virsh -r dumpxml <rhcos_vm> | sed -n '/ovirt-vm:vmPayload/,/\/ovirt-vm:vmPayload/p'
            <ovirt-vm:vmPayload>
                <ovirt-vm:volId>config-2</ovirt-vm:volId>
                <ovirt-vm:file path="openstack/latest/meta_data.json">ewogICJhdmFpbGFiaWxpdHlfem9uZSIgOiAibm92YSIsCiAgImxhdW5jaF9pbmRleCIgOiAiMCIsCiAgIm1ldGEiIDogewogICAgInJvbGUiIDogInNlcnZlciIsCiAgICAiZHNtb2RlIiA6ICJsb2NhbCIsCiAgICAiZXNzZW50aWFsIiA6ICJmYWxzZSIKICB9LAogICJ1dWlkIiA6ICIxYTkwNTA3Zi03MzllLTRmNWMtOWI5NS1mNWEzODk4ZmJiZGIiCn0=</ovirt-vm:file>
                <ovirt-vm:file path="openstack/latest/user_data">eyJpZ25pdGlvbiI6eyJ2ZXJzaW9uIjoiMi4zLjAifX0=</ovirt-vm:file>
            </ovirt-vm:vmPayload>

Additional info:
The VM works as expected when 'Ignition 2.3.0' is checked under 'Edit > Initial Run' and the VM runs in standard mode (not run-once)

Comment 1 Beni Pelled 2020-04-27 06:35:02 UTC
Created attachment 1682038 [details]
RHCOS gets stuck on the boot

Comment 2 Beni Pelled 2020-06-02 11:56:15 UTC
Verified with:
- ovirt-engine-4.4.1.1-0.5.el8ev.noarch
- libvirt-6.0.0-17.module+el8.2.0+6257+0d066c28.x86_64
- vdsm-4.40.18-1.el8ev.x86_64

Verification steps:
1. Create an RHCOS VM (rhcos-44.81.202004250133-0-openstack in my case)
2. Start the VM as run-once and check the 'Ignition 2.3.0' checkbox under 'Initial Run'.

Result:
- VM is up and running.

Comment 3 Sandro Bonazzola 2020-07-08 08:26:40 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.