kvm module not loaded on compute hosts

Bug #1512788 reported by Hui Kang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Invalid
Low
Hui Kang

Bug Description

In kolla, nova compute uses kvm by default. However, chances are KVM module is not loaded on the host. Then launching VM instance will fail and show

"error: no supported architecture for os type 'hvm' notify about instance usage "

A quick fix would be to add a vairlabe like "enable_kvm" in the ansible playbook. If "enable_kvm=yes", load the kernel module in the nova role on the compute hosts.

- Hui

Changed in kolla:
assignee: nobody → Jaiveek Shah (jaiveek-shah)
Revision history for this message
Hui Kang (huikang27) wrote :

do we need to wait for some core to triage this bug?

Changed in kolla:
assignee: Jaiveek Shah (jaiveek-shah) → Hui Kang (huikang27)
Revision history for this message
Sam Yaple (s8m) wrote :

This is a regression. In the past we did actually modprobe the kvm module in the nova compute container.

Hui do you want to handle this or would you like me too?

Changed in kolla:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Hui Kang (huikang27) wrote : Re: [Bug 1512788] Re: kvm module not loaded on compute hosts

Hi, Sam
I am very glad to take the task. So would like to add this to one of
the ansible nova role?

- Hui

On Wed, Nov 4, 2015 at 6:04 PM, Sam Yaple <email address hidden> wrote:
> This is a regression. In the past we did actually modprobe the kvm
> module in the nova compute container.
>
> Hui do you want to handle this or would you like me too?
>
> ** Changed in: kolla
> Status: New => Triaged
>
> ** Changed in: kolla
> Importance: Undecided => High
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1512788
>
> Title:
> kvm module not loaded on compute hosts
>
> Status in kolla:
> Triaged
>
> Bug description:
> In kolla, nova compute uses kvm by default. However, chances are KVM
> module is not loaded on the host. Then launching VM instance will fail
> and show
>
> "error: no supported architecture for os type 'hvm' notify about
> instance usage "
>
> A quick fix would be to add a vairlabe like "enable_kvm" in the
> ansible playbook. If "enable_kvm=yes", load the kernel module in the
> nova role on the compute hosts.
>
> - Hui
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kolla/+bug/1512788/+subscriptions

Revision history for this message
Hui Kang (huikang27) wrote :

Hi, Sam
I am very glad to take the task.

But I tested run modprode kvm inside nova-compute container; it does not solve the problem.
Only I run "modprobe kvm" on the host, KVM takes effect.

Revision history for this message
Hui Kang (huikang27) wrote :

Sam, I think we can ensure kvm module is loaded in the pre-check playbook.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/249446

Changed in kolla:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by Christian Berendt (<email address hidden>) on branch: master
Review: https://review.openstack.org/249446
Reason: After 1 year without activity i think it is fine to abandon this change. Please re-open if you want to continue to work on it.

Changed in kolla:
importance: High → Low
Changed in kolla:
status: In Progress → Invalid
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.