** Changed in: nova
Status: Triaged => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1257405
Title:
Not checking image format produces lots of useless messages
Status in OpenStack Compute (Nova):
Invalid
Bug description:
The code for resizing partitionless images goes with the "tell, don't
ask" idea and attempts to run extfs / mount utilities on an image even
though they may fail. This produces lots of useless messages during
the instance preparation, like these:
2013-11-21 06:45:07 20902 DEBUG nova.virt.disk.mount.api
[req-939d5d50-25ea-4f7a-8882-a880b9671e47 10873781609182 10816527907643] Failed
to mount filesystem: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf mount /dev/nbd8
/tmp/openstack-vfs-localfsSz6ylg
Exit code: 32
Stdout: ''
Stderr: 'mount: you must specify the filesystem type\n' mnt_dev
/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/api.py:198
2013-11-21 06:45:07 20902 DEBUG nova.virt.disk.mount.api
[req-939d5d50-25ea-4f7a-8882-a880b9671e47 10873781609182 10816527907643] Fail
to mount, tearing back down do_mount
/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/api.py:219
2013-11-21 06:45:07 20902 DEBUG nova.virt.disk.mount.api
[req-939d5d50-25ea-4f7a-8882-a880b9671e47 10873781609182 10816527907643] Unmap
dev /dev/nbd8 unmap_dev
/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/api.py:184
2013-11-21 06:45:07 20902 DEBUG nova.virt.disk.mount.nbd
[req-939d5d50-25ea-4f7a-8882-a880b9671e47 10873781609182 10816527907643]
Release nbd device /dev/nbd8 unget_dev
/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/nbd.py:128
2013-11-21 06:45:07 20902 DEBUG nova.openstack.common.processutils
[req-939d5d50-25ea-4f7a-8882-a880b9671e47 10873781609182 10816527907643]
Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf qemu-nbd
-d /dev/nbd8 execute
/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py:147
2013-11-21 06:45:07 20902 DEBUG nova.virt.disk.vfs.localfs
[req-939d5d50-25ea-4f7a-8882-a880b9671e47 10873781609182 10816527907643] Failed
to mount image Failed to mount filesystem: Unexpected error while running
command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf mount /dev/nbd8
/tmp/openstack-vfs-localfsSz6ylg
Exit code: 32
Stdout: ''
Stderr: 'mount: you must specify the filesystem type\n') setup
/usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py:83
2013-11-21 06:45:07 20902 DEBUG nova.virt.disk.api
[req-939d5d50-25ea-4f7a-8882-a880b9671e47 10873781609182 10816527907643] Unable
to mount image
/var/lib/nova/instances/5159cff0-91f6-4521-a0be-d74ce4f81fad/disk with error
Failed to mount filesystem: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf mount /dev/nbd8
/tmp/openstack-vfs-localfsSz6ylg
Exit code: 32
Stdout: ''
Stderr: 'mount: you must specify the filesystem type\n'. Cannot resize.
is_image_partitionless
/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:191
This could be fixed by doing a simple check on the the image itself to
pick up the magic signature. This would allow to skip e2resize on non-
extfs files and simple mounting on partitioned images without the
error messages.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1257405/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp