[Bug 726938] [NEW] config resizefs fails

Scott Moser smoser at canonical.com
Tue Mar 1 02:39:29 UTC 2011


Public bug reported:

Binary package hint: cloud-init

booting under kvm, I get the following:
2011-03-01 02:35:57,308 - cc_resizefs.py[WARNING]: Failed to get filesystem type via ['blkid', '-c', '/dev/null', '-sTYPE', '-ovalue', '/dev/root']
2011-03-01 02:35:57,319 - __init__.py[WARNING]: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 108, in run_cc_modules
    cc.handle(name, run_args, freq=freq)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 72, in handle
    [ name, self.cfg, self.cloud, cloudinit.log, args ])
  File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 307, in sem_and_run
    func(*args)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_resizefs.py", line 36, in handle
    (fstype,err) = util.subp(cmd)
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 150, in subp
    raise subprocess.CalledProcessError(sp.returncode,args)
CalledProcessError: Command '['blkid', '-c', '/dev/null', '-sTYPE', '-ovalue', '/dev/root']' returned non-zero exit status 2

2011-03-01 02:35:57,320 - __init__.py[ERROR]: config handling of
resizefs, None, [] failed


This was booted under kvm from the ovf image with command line changed in grub.
$ kvm -drive file=disk.img,if=virtio,boot=on -curses -serial file:out.console
# then modifying grub with:
/boot/vmlinuz-2.6.38-5-virtual root=LABEL=uec-rootfs ro console=ttyS0 ds=nocloud cc: password: passw0rd

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: cloud-init 0.6.1-0ubuntu1
ProcVersionSignature: User Name 2.6.38-5.32-virtual 2.6.38-rc6
Uname: Linux 2.6.38-5-virtual i686
Architecture: i386
Date: Tue Mar  1 02:18:43 2011
Ec2AMI: ami-4a669523
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: t1.micro
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug ec2-images i386 natty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in ubuntu.
https://bugs.launchpad.net/bugs/726938

Title:
  config resizefs fails



More information about the Ubuntu-server-bugs mailing list