console logging does not work for OL instances on xen compute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Testing with pike on an OVM 3.4.4 xen compute node, Oracle Linux instances do not have working console logging in horizon. (on kvm compute, they are fine)
Note: The OL 7.3 image used to create these instances is marked with --property vm_mode=hvm
On kvm the relevant configuration is similar to this:
<serial type='file'>
<source path='/
<target port='0'/>
<alias name='serial0'/>
</serial>
<serial type='pty'>
<source path='/
<target port='1'/>
<alias name='serial1'/>
</serial>
<console type='file'>
<source path='/
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
By making experimental changes (adding in "xen") to the create_console method in https:/
def _create_
# NOTE(markus_z): Beware! Below are so many conditionals that it is
# easy to lose track. Use this chart to figure out your case:
#
# case | is serial | has | is qemu | resulting
# | enabled? | virtlogd? | or kvm? | devices
# -------
# 1 | no | no | no | pty*
# 2 | no | no | yes | file + pty
# 3 | no | yes | no | see case 1
# 4 | no | yes | yes | pty with logd
# 5 | yes | no | no | see case 1
# 6 | yes | no | yes | tcp + pty
# 7 | yes | yes | no | see case 1
# 8 | yes | yes | yes | tcp with logd
# * exception: virt_type "parallels" doesn't create a device
if virt_type == 'parallels':
pass
elif virt_type not in ("qemu", "kvm", "xen"):
elif (virt_type in ("qemu", "kvm") and
elif virt_type in ("qemu", "kvm", "xen"):
This allows for the creation of similar configuration on xen, which then looks to allow the console logging to work correctly.
The instance also had a modified /etc/default/grub, like so:
...
GRUB_TERMINAL=
GRUB_SERIAL_
GRUB_CMDLINE_
I do not know if this works correctly in all cases, a more complete test matrix may be needed here.
tags: | added: console libvirt xen |
Changed in nova: | |
status: | New → Confirmed |