[Bug 941955] [NEW] util.islxc() method is broken without is-lxc-container

Scott Moser smoser at ubuntu.com
Mon Feb 27 14:42:52 UTC 2012


Public bug reported:

as reported in comment 5 of bug 800856, 'islxc()' is not working
correctly.  Copied report is below:

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
    func(*args)
  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
1:blkio,freezer,devices,memory,cpuacct,cpu:/libvirt/lxc/instance-00000032

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

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cloud-init 0.6.3~bzr527-0ubuntu1
ProcVersionSignature: User Name 3.2.0-17.27-virtual 3.2.6
Uname: Linux 3.2.0-17-virtual x86_64
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Mon Feb 27 14:36:36 2012
Ec2AMI: ami-00000000
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 TERM=screen
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

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


** Tags: amd64 apport-bug ec2-images precise

-- 
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/941955

Title:
  util.islxc() method is broken without is-lxc-container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/941955/+subscriptions



More information about the Ubuntu-server-bugs mailing list