Activity log for bug #1196570

Date Who What changed Old value New value Message
2013-07-01 15:09:40 Mate Lakat bug added bug
2013-07-01 15:10:06 Mate Lakat bug added subscriber John Garbutt
2013-07-01 15:19:11 Mate Lakat tags xenserver
2013-07-01 15:20:29 Mate Lakat description While I was playing with boot from volume, I discovered that I end up with a: PV instance if --image-id specified HVM instance if --image-id is NOT specified That should be an issue caused by not having the proper metadata without --image-id switch. But, as part of the investigation, interesting log entries appeared in cpu log: Error while executing pygrub! Please, ensure the binary is installed correctly, and available in your PATH; on some Linux distros, pygrub may be installed in /usr/lib/xen-X.Y/bin/pygrub. Attempting to boot in HVM mode. TRACE nova.virt.xenapi.vm_utils Traceback (most recent call last): TRACE nova.virt.xenapi.vm_utils File "/opt/stack/nova/nova/virt/xenapi/vm_utils.py", line 2039, in _is_vdi_pv TRACE nova.virt.xenapi.vm_utils out, err = utils.execute('pygrub', '-qn', dev_path, run_as_root=True) TRACE nova.virt.xenapi.vm_utils File "/opt/stack/nova/nova/utils.py", line 162, in execute TRACE nova.virt.xenapi.vm_utils return processutils.execute(*cmd, **kwargs) TRACE nova.virt.xenapi.vm_utils File "/opt/stack/nova/nova/openstack/common/processutils.py", line 173, in execute TRACE nova.virt.xenapi.vm_utils cmd=' '.join(cmd)) TRACE nova.virt.xenapi.vm_utils ProcessExecutionError: Unexpected error while running command. TRACE nova.virt.xenapi.vm_utils Command: sudo nova-rootwrap /etc/nova/rootwrap.conf pygrub -qn /dev/xvdc TRACE nova.virt.xenapi.vm_utils Exit code: 96 TRACE nova.virt.xenapi.vm_utils Stdout: '/usr/local/bin/nova-rootwrap: Executable not found: pygrub (filter match = pygrub)\n' TRACE nova.virt.xenapi.vm_utils Stderr: '' TRACE nova.virt.xenapi.vm_utils This error says, you need to have pygrub in domU. I think, we should really be calling down to dom0, and asking those tools to detect if the machine is PV bootable or not. While I was playing with boot from volume, I discovered that I end up with a: PV instance if --image-id specified HVM instance if --image-id is NOT specified That should be an issue caused by not having the proper metadata without --image-id switch. But, as part of the investigation, interesting log entries appeared in cpu log: DEBUG nova.virt.xenapi.vm_utils [req-67592d22-4561-4a81-8868-8ac6895efa9d admin demo] Looking up vdi OpaqueRef:055... WARNING nova.virt.xenapi.vm_utils [req-67592d22-4561-4a81-8868-8ac6895efa9d admin demo] Image format is None: trying to determine PV status using pygrub; if instance with vdi OpaqueRef:05503c3e-f1c2-e789-ac3b-38b616 6c59aa does not boot correctly, try with image metadata. DEBUG nova.virt.xenapi.vm_utils [req-67592d22-4561-4a81-8868-8ac6895efa9d admin demo] Running pygrub against xvdc DEBUG nova.openstack.common.processutils [req-67592d22-4561-4a81-8868-8ac6895efa9d admin demo] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf pygrub -qn /dev/xvdc Error while executing pygrub! Please, ensure the binary is installed correctly, and available in your PATH; on some Linux distros, pygrub may be installed in /usr/lib/xen-X.Y/bin/pygrub. Attempting to boot in HVM mode. TRACE nova.virt.xenapi.vm_utils Traceback (most recent call last): TRACE nova.virt.xenapi.vm_utils File "/opt/stack/nova/nova/virt/xenapi/vm_utils.py", line 2039, in _is_vdi_pv TRACE nova.virt.xenapi.vm_utils out, err = utils.execute('pygrub', '-qn', dev_path, run_as_root=True) TRACE nova.virt.xenapi.vm_utils File "/opt/stack/nova/nova/utils.py", line 162, in execute TRACE nova.virt.xenapi.vm_utils return processutils.execute(*cmd, **kwargs) TRACE nova.virt.xenapi.vm_utils File "/opt/stack/nova/nova/openstack/common/processutils.py", line 173, in execute TRACE nova.virt.xenapi.vm_utils cmd=' '.join(cmd)) TRACE nova.virt.xenapi.vm_utils ProcessExecutionError: Unexpected error while running command. TRACE nova.virt.xenapi.vm_utils Command: sudo nova-rootwrap /etc/nova/rootwrap.conf pygrub -qn /dev/xvdc TRACE nova.virt.xenapi.vm_utils Exit code: 96 TRACE nova.virt.xenapi.vm_utils Stdout: '/usr/local/bin/nova-rootwrap: Executable not found: pygrub (filter match = pygrub)\n' TRACE nova.virt.xenapi.vm_utils Stderr: '' TRACE nova.virt.xenapi.vm_utils This error says, you need to have pygrub in domU. I think, we should really be calling down to dom0, and asking those tools to detect if the machine is PV bootable or not.
2013-07-03 16:26:39 John Garbutt nova: importance Undecided Medium
2013-07-03 16:26:46 John Garbutt nova: importance Medium Low
2013-07-03 16:26:56 John Garbutt nova: status New Triaged
2013-07-09 10:06:39 Mate Lakat nova: assignee Mate Lakat (mate-lakat)
2013-07-10 18:04:59 Mate Lakat nova: status Triaged In Progress
2013-08-07 23:36:47 OpenStack Infra nova: status In Progress Fix Committed
2013-09-05 15:48:28 Thierry Carrez nova: status Fix Committed Fix Released
2013-09-05 15:48:28 Thierry Carrez nova: milestone havana-3
2013-10-17 12:02:59 Thierry Carrez nova: milestone havana-3 2013.2