libguestfs backport needed (unknown command "guestmount")

Bug #915971 reported by Michael Still
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Invalid
High
Unassigned

Bug Description

The latest nova-compute adds a new command which needs sudo privs:

2012-01-13 22:24:27,385 DEBUG nova.utils [-] Running cmd (subprocess): sudo guestmount --rw -a /var/lib/nova/instances/instance-0000000c/disk -m /dev/sda1 /tmp/tmpXrLkev from (pid=2743) execute /data/backups-meta/linux/x220/data/src/openstack/nova/nova/utils.py:201

This command is not set up in /etc/sudoers.d/nova_sudoers, and therefore my test instance prompts for the password. Interestingly I can't find the command guestmount packaged anywhere, so I'm not sure what its meant to be doing.

The code to call guestmount seems to have been around for a while, so I'm not sure why this is only just coming up now. Perhaps I only just noticed it.

I see that guestmount is packaged for precise, but not for oneiric.

Dave Walker (davewalker)
Changed in nova (Ubuntu):
assignee: nobody → Chuck Short (zulcss)
importance: Undecided → High
Chuck Short (zulcss)
no longer affects: nova
Revision history for this message
Chuck Short (zulcss) wrote :

Are you running essex on oneiric?

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

guestmount (from libguestfs) was added as a method for mounting disk images before doing operations on them. By default Nova tries to use loop, then nbd, then guestfs (you can change the order using the 'img_handlers' flag). For COW images, it skips loop...

So it could be possible that you used COW images, hit an issue with NBD and stumbled on the libguestfs code.

If for some reason guestmount can't be packaged in Ubuntu (or is an unreasonable dependency), I guess we could set img_handlers = [ 'loop', 'nbd' ] in the nova.conf file we ship to avoid trying using guestmount and error on the NBD failure instead...

Revision history for this message
Dave Walker (davewalker) wrote :

This seems to be an Essex on Oneiric bug, so impacts the PPA - but not Ubuntu Archive.

Thanks.

Changed in nova (Ubuntu):
assignee: Chuck Short (zulcss) → nobody
status: New → Invalid
Thierry Carrez (ttx)
summary: - New command "guestmount"
+ libguestfs backport needed (unknown command "guestmount")
Thierry Carrez (ttx)
Changed in openstack-ppa:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

These PPAs are deprecated in favor of Ubuntu ones.

Changed in openstack-ppa:
status: Confirmed → Won't Fix
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.