[Openstack] unrescue VM instance

Tomas Vondra vondra at czech-itc.cz
Wed Mar 16 14:10:28 UTC 2016


Balazs Varhegyi <varh1ibalazs at ...> writes:

> 
> 
>     Found this in the cloud-init.log:in cloud-init.log:2016-02-10
14:02:09,604 - cc_resizefs.py[DEBUG]: Resizing / (ext4) using resize2fs
>         /dev/disk/by-label/cloudimg-rootfs2016-02-10 14:02:09,604 -
util.py[DEBUG]: Running command ('resize2fs',
>         '/dev/disk/by-label/cloudimg-rootfs') with allowed return
codes [0] (shell=False,
>         capture=True)2016-02-10 14:02:09,615 - util.py[WARNING]: Failed to
resize filesystem (cmd=('resize2fs',
>         '/dev/disk/by-label/cloudimg-rootfs'))2016-02-10 14:02:09,616 -
util.py[DEBUG]: Failed to resize filesystem (cmd=('resize2fs',
>         '/dev/disk/by-label/cloudimg-rootfs'))Traceback (most recent call
last):File
>         "/usr/lib/python2.7/dist-packages/cloudinit/config/cc_resizefs.py",
>         line 172, in do_resizeutil.subp(resize_cmd)File
>         "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1539,
>         in subpcmd=args)ProcessExecutionError: Unexpected error
>         while running command.Command: ('resize2fs',
>         '/dev/disk/by-label/cloudimg-rootfs')Exit code: 1Reason: -Stdout:
''Stderr: "resize2fs 1.42.9
>         (4-Feb-2014)\nPlease run 'e2fsck -f
>         /dev/disk/by-label/cloudimg-rootfs' first.\n\n"2016-02-10
14:02:09,627 - util.py[DEBUG]: Resizing took 0.023 seconds2016-02-10
14:02:09,627 - util.py[WARNING]: Running resizefs (<module
>         'cloudinit.config.cc_resizefs' from
>         '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_resizefs.pyc'>)
>         failed2016-02-10 14:02:09,627 - util.py[DEBUG]: Running resizefs
(<module
>         'cloudinit.config.cc_resizefs' from
>         '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_resizefs.pyc'>)
>         failedTraceback (most recent call last):File
>         "/usr/lib/python2.7/dist-packages/cloudinit/stages.py", line
>         658, in _run_modulescc.run(run_name, mod.handle, func_args,
>         freq=freq)File
>         "/usr/lib/python2.7/dist-packages/cloudinit/cloud.py", line 63,
>         in runreturn self._runners.run(name, functor,
>         args, freq, clear_on_fail)File
>         "/usr/lib/python2.7/dist-packages/cloudinit/helpers.py", line
>         197, in runresults = functor(*args)File
>         "/usr/lib/python2.7/dist-packages/cloudinit/config/cc_resizefs.py",
>         line 161, in handlefunc=do_resize, args=(resize_cmd, log))File
>         "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1875,
>         in log_timeret = func(*args, **kwargs)File
>         "/usr/lib/python2.7/dist-packages/cloudinit/config/cc_resizefs.py",
>         line 172, in do_resizeutil.subp(resize_cmd)File
>         "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1539,
>         in subpcmd=args)ProcessExecutionError: Unexpected error
>         while running command.Command: ('resize2fs',
>         '/dev/disk/by-label/cloudimg-rootfs')Exit code: 1Reason: -Stdout:
''Stderr: "resize2fs 1.42.9
>         (4-Feb-2014)\nPlease run 'e2fsck -f
>         /dev/disk/by-label/cloudimg-rootfs' first.\n\n"Is it
>           possible that after we cleared up the disk openstack
>         tried to resize the disk but it didn't manage and the image got
>         corrupted?
>         Google search gave a case when someone had an image with this
>         error that was not bootable:
https://bugs.launchpad.net/diskimage-builder/+bug/1280709/ 
>       ( "Daniele
>               Venzano wrote on 2014-02-28:" )
>         Regards, Balazs
>       On 15/03/16 14:13, Balazs Varhegyi wrote:
> 

Hi!
This error is completely normal most of the time. resize2fs complains that
the filesystem was not unmounted correctly last time and wants you to run
e2fsck to check it, just for safety. It can't hurt to do that.
There really is nothing in the logs? What about the VNC console? If if shows
a BIOS-like screen, it may be that your bootloader got damaged. Try your
favorite distro's way to reinstall GRUB from the rescue environment.
Tomas



More information about the Openstack mailing list