Bug 1341268

Summary: REST API for Kernel cmdline
Product: [oVirt] ovirt-engine Reporter: jniederm
Component: RestAPIAssignee: jniederm
Status: CLOSED CURRENTRELEASE QA Contact: Israel Pinto <ipinto>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: bugs, gklein, ipinto, michal.skrivanek
Target Milestone: ovirt-4.0.1Flags: rule-engine: ovirt-4.0.z+
rule-engine: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+
Target Release: 4.0.0   
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: 2016-08-12 14:11:38 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:
Bug Depends On: 1301104    
Bug Blocks:    

Description jniederm 2016-05-31 15:47:25 UTC
Description of problem:
REST API for Kernel cmdline

Comment 1 Red Hat Bugzilla Rules Engine 2016-05-31 15:47:34 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 2 Israel Pinto 2016-08-10 08:09:14 UTC
Verify with:
Engine: 4.0.2.4-0.1.el7ev
Host: 
OS Version:RHEL - 7.2 - 9.el7_2.1
Kernel Version:3.10.0 - 327.22.2.el7.x86_64
KVM Version:2.3.0 - 31.el7_2.21
LIBVIRT Version:libvirt-1.2.17-13.el7_2.5
VDSM Version:vdsm-4.18.5.1-1.el7ev

Steps: 
Check custom parameter 'custom_kernel_cmdline': 
1. Update via REST 
like: 
<os>
<custom_kernel_cmdline>intel_iommu=on kvm-intel.nested=1 vfio_iommu_type1.allow_unsafe_interrupts=1</custom_kernel_cmdline>
</os>
2. Check that parameter updated in REST and UI
3. Re-install host and check that parameter is pass to OS,
check in /var/log/ovirt-engine/host-deploy/<host_name_date>
like:
2016-08-10 10:42:27 DEBUG otopi.context context.dumpEnvironment:770 ENV KERNEL/cmdlineNew=str:'intel_iommu=on kvm-intel.nested=1 vfio_iommu_type1.allow_unsafe_interrupts=1'
--------------------------------------------------------
Check none custom parameter: reported_kernel_cmdline
1. Update reported_kernel_cmdline parameter and check that no error occur since
if read only parameter.
like 
<os>
<reported_kernel_cmdline>BOOT_IMAGE=/vmlinuz-3.10.0-327.22.2.el7.x86_64 root=/dev/mapper/vg0-lv_root ro rd.lvm.lv=vg0/lv_root crashkernel=auto rd.lvm.lv=vg0/lv_swap rhgb quiet LANG=en_US.UTF-8</reported_kernel_cmdline>
</os>

All checks PASS