Red Hat Bugzilla – Bug 901439
libguestfs: error: aug_init: Augeas initialization failed
Last modified: 2013-01-25 17:14:37 EST
Description of problem:
Failed to mount filesystem: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf guestmount --rw -a /var/lib/nova/instances/instance-00000001/disk -i /tmp/openstack-disk-mount-tmpT6ZpmE
Exit code: 1
Stderr: 'libguestfs: error: aug_init: Augeas initialization failed\n')
I'm using the image fetched from http://berrange.fedorapeople.org/images/2012-11-15/f17-x86_64-openstack-sda.qcow2
The following is a log of mounting the image directly with guestmount command.
SELinux is permissive and libguestfs version is as below.
# rpm -qa | grep libguestfs
Created attachment 682200 [details]
ad-hoc patch to disable using virtio-scsi
I suspect this is related to virtio-scsi. So I applied an ad-hoc patch on libguestfs to disable using virtio-scsi (See Comment 1).
guestmount worked well with the patch.
We're really only calling out to libguestfs here. Changing components, thanks.
Likely to be an instance of:
... although why disabling virtio-scsi would make any difference
I have no idea. Anyway, the original bug report does look a
lot like the augeas bug (bug 894241), so you could try asking
dlutter to take a closer look into it.
In fact this is so similar it must be a duplicate.
Etsuji-san, could you capture the /etc directory from the guest.
The instructions for doing this are here:
*** This bug has been marked as a duplicate of bug 894241 ***
Created attachment 682329 [details]
/etc directory contents of guest image
Hi. Do you mean the /etc contents of the guest image (which guestmount fails to mount)? If so, this is one extracted with virt-tar-out.
If you need any other information, please let me know. Thanks.
(In reply to comment #7)
> Created attachment 682329 [details]
> /etc directory contents of guest image
> Hi. Do you mean the /etc contents of the guest image (which guestmount fails
> to mount)? If so, this is one extracted with virt-tar-out.
> If you need any other information, please let me know. Thanks.
Thanks -- actually I don't think we need that.
Please try the following package and up-vote it if it
works for you:
Thanks, it worked well for me :)
By the way, the reason why my ad-hoc patch (disabling virtio-scsi) worked may have nothing to do with virtio-scsi. As in https://bugzilla.redhat.com/show_bug.cgi?id=894241#c11 , it resolved the issue because I rebuilt it to apply the pactch, probably.
*** Bug 904261 has been marked as a duplicate of this bug. ***