[Bug 800856] Re: resizefs module causes problems on LXC containers

Patrick Hetu patrick.hetu at gmail.com
Sat Feb 25 22:07:56 UTC 2012

I'm not sure if it's my setup or because of a recent change in libvirt
or lxc but I'm still having the resize error on a lxc container:

2012-02-25 21:46:53,755 - __init__.py[DEBUG]: handling resizefs with freq=None and args=[]
2012-02-25 21:46:53,764 - cc_resizefs.py[WARNING]: Failed to make device node to resize /
2012-02-25 21:46:53,772 - __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 313, in sem_and_run
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_resizefs.py", line 46, in handle
    os.mknod(devpth, 0400 | stat.S_IFBLK, dev)
OSError: [Errno 1] Operation not permitted

This is what I got from  /proc/1/cgroup instead of /

root at server-50:~# cat /proc/1/cgroup

In the virtual server:

ii  cloud-init                       0.6.3~bzr502-0ubuntu1

In the openstack compute server:

ii  libvirt-bin                               0.9.8-2ubuntu10
ii  lxc                                       0.7.5-3ubuntu30

You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.

  resizefs module causes problems on LXC containers

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list