Bug 872178 - VM Linux Boot options aren't parsing properly
Summary: VM Linux Boot options aren't parsing properly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.3.0
Assignee: Frantisek Kobzik
QA Contact: Jiri Belka
URL:
Whiteboard: virt
: 908265 (view as bug list)
Depends On:
Blocks: 1019461
TreeView+ depends on / blocked
 
Reported: 2012-11-01 13:26 UTC by Pavel Stehlik
Modified: 2015-09-22 13:09 UTC (History)
9 users (show)

Fixed In Version: is1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 9550 0 None None None Never
oVirt gerrit 11254 0 None None None Never
oVirt gerrit 12494 0 None None None Never

Description Pavel Stehlik 2012-11-01 13:26:36 UTC
Description of problem:
 There is not properly handled user input in VM Boot options. User is able to put kernel/initrd path space at the start/end. This happened when used: "iso://my.initrd " <= note the space at the end (copy/paste issue).
The VM try to start & went down immediatelly - see the log. Maybe this could be also handled in frontend side.

2012-11-01 11:45:06,683 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] (pool-4-thread-50) [7100d20f] START, DestroyVDSCommand(HostName = dhcp-1-217.tlv.redhat.com, HostId = e90fe5de-1dbe-11e2-b40f-001a4a1697ca, vmId=91304bb7-8c38-4f19-8c86-c73471ee0bae, force=false, secondsToWait=30, gracefully=true), log id: 75969723
2012-11-01 11:45:07,650 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-46) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:09,716 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-44) [7a4e319] XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:11,105 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] (pool-4-thread-50) [7100d20f] FINISH, DestroyVDSCommand, log id: 75969723
2012-11-01 11:45:11,124 INFO  [org.ovirt.engine.core.vdsbroker.DestroyVmVDSCommand] (pool-4-thread-50) [7100d20f] FINISH, DestroyVmVDSCommand, return: PoweringDown, log id: 33aefe71
2012-11-01 11:45:12,626 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-1) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:14,878 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-66) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:16,970 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-100) [56174689] XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:19,040 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-91) [7747b7db] XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:22,008 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-22) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:24,086 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-81) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:26,181 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-17) [19252246] XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:28,265 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-49) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:30,440 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-93) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:32,502 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-39) [52395d2] XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:34,591 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-12) [46cc6631] XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:37,357 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-32) [435b8449] XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:39,430 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-48) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:42,118 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-62) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:44,211 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-53) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:46,294 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-59) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:48,441 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand] (QuartzScheduler_Worker-63) XML RPC error in command GetCapabilitiesVDS ( HostName = aqua-vds7.qa.lab.tlv.redhat.com ), the error was: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException, SunCertPathBuilderException: unable to find valid certification path to requested target
2012-11-01 11:45:50,209 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (ajp-/127.0.0.1:8702-5) [18f11c3a] Lock Acquired to object EngineLock [exclusiveLocks= key: bz-857848 value: VM_NAME
, sharedLocks= ]


Version-Release number of selected component (if applicable):
si22.1

How reproducible:
100%

Steps to Reproduce:
1. have VM & init & kernel file on ISO domain
2. use Boot params =>  kernel/initrd params 
3. put to initrd: "iso://rhel6.initrd " (without quotes space at the end)
  
Actual results:


Expected results:


Additional info:
Thread-549429::ERROR::2012-11-01 12:38:23,431::vm::609::vm.Vm::(_startUnderlyingVm) vmId=`7d2eed25-439b-4dd3-aa9e-d494d20f376c`::The vm start process failed
Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 575, in _startUnderlyingVm
    self._run()
  File "/usr/share/vdsm/libvirtvm.py", line 1392, in _run
    self._connection.createXML(domxml, flags),
  File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 82, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2490, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/1
do_spice_init: starting 0.10.1
reds_init_ssl: Loaded certificates from /etc/pki/vdsm/libvirt-spice/server-cert.pem
reds_init_ssl: Using private key from /etc/pki/vdsm/libvirt-spice/server-key.pem
reds_init_ssl: Loaded CA certificates from /etc/pki/vdsm/libvirt-spice/ca-cert.pem
spice_server_add_interface: SPICE_INTERFACE_MIGRATION
spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
spice_server_add_interface: SPICE_INTERFACE_MOUSE
qemu: error reading initrd /rhev/data-center/c9133b98-f765-11e1-990e-001a4a1697ca/3a03cbc2-0394-4eea-8020-4aabf271698a/images/11111111-1111-1111-1111-111111111111/rhel6.initrd 
Thread-549429::DEBUG::2012-11-01 12:38:23,433::vm::925::vm.Vm::(setDownStatus) vmId=`7d2eed25-439b-4dd3-aa9e-d494d20f376c`::Changed state to Down: internal error Process exited while reading
 console log output: char device redirected to /dev/pts/1

Comment 1 Frantisek Kobzik 2012-11-28 14:30:11 UTC
In gerrit: http://gerrit.ovirt.org/#/c/9550/

Comment 2 Daniel Erez 2013-01-21 12:40:59 UTC
Fix: http://gerrit.ovirt.org/#/c/11254/

Comment 3 Jiri Belka 2013-02-06 09:49:33 UTC
sf5 - broken in run once.

Comment 5 Frantisek Kobzik 2013-03-19 06:21:53 UTC
Merged U/S: 2b9b4a635fd6125844e8d214a039d9c30fcd931d

Comment 6 Frantisek Kobzik 2013-04-05 11:08:07 UTC
*** Bug 908265 has been marked as a duplicate of this bug. ***

Comment 7 Jiri Belka 2013-05-27 11:31:02 UTC
ok, is1 (both vm dialog and run once were OK).

Comment 8 Itamar Heim 2014-01-21 22:20:28 UTC
Closing - RHEV 3.3 Released

Comment 9 Itamar Heim 2014-01-21 22:26:09 UTC
Closing - RHEV 3.3 Released


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