[Bug 978329] [NEW] stack trace in cd_landscape if /etc/landscape is not a directory

Scott Moser smoser at ubuntu.com
Tue Apr 10 20:13:44 UTC 2012


Public bug reported:

$ sudo rm -Rf /etc/landscape/ 
$ sudo cloud-init-cfg landscape always
2012-04-10 20:13:26,806 - __init__.py[WARNING]: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 117, in run_cc_modules
    cc.handle(name, run_args, freq=freq)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 78, in handle
    [name, self.cfg, self.cloud, cloudinit.log, args])
  File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 326, in sem_and_run
    func(*args)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_landscape.py", line 53, in handle
    with open(lsc_client_cfg_file, "w") as fp:
IOError: [Errno 2] No such file or directory: '/etc/landscape/client.conf'

2012-04-10 20:13:26,808 - __init__.py[ERROR]: config handling of
landscape, always, [] failed

2012-04-10 20:13:26,808 - cloud-init-cfg[ERROR]: errors running cloud_config [config]: ['landscape']
errors running cloud_config [config]: ['landscape']

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cloud-init 0.6.3~bzr554-0ubuntu1
ProcVersionSignature: User Name 3.2.0-22.35-virtual 3.2.14
Uname: Linux 3.2.0-22-virtual x86_64
ApportVersion: 2.0-0ubuntu4
Architecture: amd64
Date: Tue Apr 10 20:06:01 2012
Ec2AMI: ami-00000095
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/978329

Title:
  stack trace in cd_landscape if /etc/landscape is not a directory

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



More information about the Ubuntu-server-bugs mailing list