stack trace in cc_landscape if /etc/landscape is not a directory

Bug #978329 reported by Scott Moser
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Scott Moser
cloud-init (Ubuntu)
Fix Released
Medium
Scott Moser

Bug Description

$ 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)

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

fix-committed in 557.

Changed in cloud-init:
assignee: nobody → Scott Moser (smoser)
importance: Undecided → Medium
status: New → Fix Committed
Changed in cloud-init (Ubuntu):
assignee: nobody → Scott Moser (smoser)
importance: Undecided → Medium
status: New → Triaged
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.6.3-0ubuntu1

---------------
cloud-init (0.6.3-0ubuntu1) precise; urgency=low

  * New upstream release.
    * improve chef examples for working configurations on 11.10 and 12.04
      [Lorin Hochstein] (LP: #960564)
    * fix bug in landscape module if /etc/landscape did not exist
      (LP: #978329)
 -- Scott Moser <email address hidden> Wed, 11 Apr 2012 00:05:00 -0400

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
Scott Moser (smoser)
summary: - stack trace in cd_landscape if /etc/landscape is not a directory
+ stack trace in cc_landscape if /etc/landscape is not a directory
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.