Multiple drivers support for nova_compute container

Bug #1545389 reported by Lingfeng Xiong
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kolla
Invalid
Low
Lingfeng Xiong

Bug Description

nova_compute container installs nova-compute package for now. This package automatically installs nova-compute-kvm. There are some problem with this approach:
1. By installing nova-compute-kvm, it introduces a hard dependency of kvm and eliminate the possibilities configuring nova_compute container to use other drivers, for example, xen through libvirt.
2. nova-compute-kvm contains a configuration file (/etc/nova/nova-compute.conf). This file cannot be overriden with current ansible script.

Because nova-compute cannot be installed independently, I think we have three ways to workaround:
1. Add a parameter in globals.yml, e.g. nova_driver. Build images based on the value of this parameter.
2. Do not install nova-compute at building time. Instead, dynamically install corresponding nova-compute-* packages based on the parameter set in globals.yml through extend_start.sh.
3. Install any of those packages, then offer a way to override nova-compute.conf (just like nova.conf).

Which way is better?

Changed in kolla:
assignee: nobody → Lingfeng Xiong (xionglingfeng)
status: New → In Progress
summary: - use nova-compute-libvirt instead of nova-compute-kvm in nova-compute
- container
+ allow overriding nova-compute.conf in nova-compute container
description: updated
summary: - allow overriding nova-compute.conf in nova-compute container
+ Multiple drivers support for nova_compute container
description: updated
description: updated
description: updated
Revision history for this message
Sam Yaple (s8m) wrote :

xen, libvirt, qemu

All of those can be made configurable

Changed in kolla:
milestone: none → newton-1
importance: Undecided → High
Changed in kolla:
milestone: newton-1 → newton-2
Changed in kolla:
milestone: newton-2 → newton-3
Changed in kolla:
milestone: newton-3 → newton-rc1
Changed in kolla:
milestone: newton-rc1 → newton-rc2
Revision history for this message
zhubingbing (zhubingbing) wrote :

you can setting nova-compute.conf virt_type=kvm ort öemu or xen
[libvirt]
virt_type=qemu
http://docs.openstack.org/developer/kolla/quickstart.html

Changed in kolla:
status: In Progress → Invalid
Changed in kolla:
importance: High → Low
Duong Ha-Quang (duonghq)
Changed in kolla:
milestone: newton-rc2 → ocata-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.