libvirt error when adding the os_command_line on non ami images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Vladan Popovic |
Bug Description
qemu fails when booting an instance with the os_command_line on non ami images
-------
Traceback (most recent call last):
File "/usr/lib/
set_
File "/usr/lib/
return function(self, context, *args, **kwargs)
File "/usr/lib/
LOG.
File "/usr/lib/
six.
File "/usr/lib/
block_
File "/usr/lib/
block_
File "/usr/lib/
domain = self._create_
File "/usr/lib/
domain.
File "/usr/lib/
six.
File "/usr/lib/
domain.
File "/usr/lib/
result = proxy_call(
File "/usr/lib/
rv = execute(
File "/usr/lib/
rv = meth(*args,
File "/usr/lib64/
if ret == -1: raise libvirtError ('virDomainCrea
libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/5
-append only allowed with -kernel option
-------
Is this the correct behaviour or should the instance be booted with a log warning that the os_command_line isn't considered since it only applies to ami images in qemu?
The easiest and least painful solution I could think of is to move the code in the kernel_id check, but I don't know how that would affect other hypervisors. Any comments by people with greater experience with the other hypervisors are more than welcome.
tags: | added: libvirt |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
Changed in nova: | |
assignee: | nobody → Vladan Popovic (vpopovic) |
status: | Confirmed → In Progress |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
It's worth noting that neither the original blueprint [1] or the commit message for the patch [2] that added this functionality mention any restrictions around image type, though the behaviour is understandable it should have been noted for documentation etc.
[1] https:/ /blueprints. launchpad. net/nova/ +spec/enable- libvirt- driver- to-read- kernel- command- line-from- glance- image /review. openstack. org/#/c/ 65028/
[2] https:/