Error in injecting SSH public key during the creation of the VM

Bug #705769 reported by Romain Vrignaud
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Thierry Carrez

Bug Description

I got that error when I start a VM :

(nova.virt.libvirt_conn 2011.1-workspace:tarmac-20110120013358-xfvcg3klcjioj9hv): INFO [N/A] instance instance-0000002f: Creating image
(nova.virt.libvirt_conn 2011.1-workspace:tarmac-20110120013358-xfvcg3klcjioj9hv): INFO [N/A] instance instance-0000002f: injecting key into image ami-hmzdjtb8

This problem is due to the fact that that kernel module "nbd" is not loaded automaticaly in the nova-compute server.

OS : Ubuntu 10.10
Kernel : 2.6.35-24-generic #42-Ubuntu SMP x86_64
Packages from PPA :
ii nova-api 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - API frontend
ii nova-common 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - common files
ii nova-compute 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - compute node
ii nova-network 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - Network thingamajig
ii nova-objectstore 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - object store
ii nova-scheduler 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - Scheduler
ii python-nova 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - Python libraries

Regards.

Tags: ubuntu
Revision history for this message
Thierry Carrez (ttx) wrote :

Only affects images relying on direct injection. Ubuntu cloud images for example use cloud-init / metadata service to inject key for the Ubuntu user instead, so they are not affected.

Changed in nova:
importance: Undecided → High
status: New → Confirmed
tags: added: ubuntu
Revision history for this message
Vish Ishaya (vishvananda) wrote : Re: [Bug 705769] Re: Error in injecting SSH public key during the creation of the VM

Is there a way in a debian package to require a modprobe? If so nova-compute should probably modprobe nbd.

On Jan 21, 2011, at 1:24 AM, Thierry Carrez wrote:

> Only affects images relying on direct injection. Ubuntu cloud images for
> example use cloud-init / metadata service to inject key for the Ubuntu
> user instead, so they are not affected.
>
> ** Changed in: nova
> Importance: Undecided => High
>
> ** Changed in: nova
> Status: New => Confirmed
>
> ** Tags added: ubuntu
>
> --
> You received this bug notification because you are a member of Nova Bug
> Team, which is subscribed to OpenStack Compute (nova).
> https://bugs.launchpad.net/bugs/705769
>
> Title:
> Error in injecting SSH public key during the creation of the VM
>
> Status in OpenStack Compute (Nova):
> Confirmed
>
> Bug description:
> I got that error when I start a VM :
>
> (nova.virt.libvirt_conn 2011.1-workspace:tarmac-20110120013358-xfvcg3klcjioj9hv): INFO [N/A] instance instance-0000002f: Creating image
> (nova.virt.libvirt_conn 2011.1-workspace:tarmac-20110120013358-xfvcg3klcjioj9hv): INFO [N/A] instance instance-0000002f: injecting key into image ami-hmzdjtb8
>
> This problem is due to the fact that that kernel module "nbd" is not
> loaded automaticaly in the nova-compute server.
>
> OS : Ubuntu 10.10
> Kernel : 2.6.35-24-generic #42-Ubuntu SMP x86_64
> Packages from PPA :
> ii nova-api 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - API frontend
> ii nova-common 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - common files
> ii nova-compute 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - compute node
> ii nova-network 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - Network thingamajig
> ii nova-objectstore 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - object store
> ii nova-scheduler 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - Scheduler
> ii python-nova 2011.1~bzr592-0ubuntu0ppa1~lucid1 OpenStack Compute - Nova - Python libraries
>
> Regards.
>
>

Revision history for this message
Thierry Carrez (ttx) wrote :

Yes, that can be added to the nova-compute upstart script.

Changed in nova:
status: Confirmed → Triaged
Thierry Carrez (ttx)
Changed in nova:
assignee: nobody → Thierry Carrez (ttx)
status: Triaged → In Progress
Revision history for this message
Thierry Carrez (ttx) wrote :

Fix committed, PPA build with the fix is in progress (will be in 2011.1~bzr604-0ubuntu0ppa1~*2)

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.1
status: Fix Committed → Fix Released
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.