yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #03963
[Bug 1190431] Re: config-drive datasource does not provide availability_zone
This was fixed in 0.7.3~bzr845-0ubuntu1, fix is now available in archive
at 0.7.3~bzr849-0ubuntu1.
** Changed in: cloud-init (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1190431
Title:
config-drive datasource does not provide availability_zone
Status in Init scripts for use on cloud images:
Fix Committed
Status in “cloud-init” package in Ubuntu:
Fix Released
Bug description:
The place this was noticed was in trying to use the
'nova.clouds.archive.ubuntu.com' mirror selection.
Because the config-drive-v2 has a metadata entry of
'availability_zone', it didn't get found by the availabilty_zone
property in cloudinit/sources/__init__.py
Simple patch is:
--- /usr/share/pyshared/cloudinit/sources/__init__.py.dist 2013-06-13 01:08:47.806938999 +0000
+++ /usr/share/pyshared/cloudinit/sources/__init__.py 2013-06-13 01:08:58.678938999 +0000
@@ -135,7 +135,8 @@
@property
def availability_zone(self):
- return self.metadata.get('availability-zone')
+ return self.metadata.get('availability-zone',
+ self.metadata.get('availability_zone'))
def get_instance_id(self):
if not self.metadata or 'instance-id' not in self.metadata:
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: cloud-init 0.7.2~bzr809-0ubuntu1 [modified: usr/share/pyshared/cloudinit/distros/__init__.py usr/share/pyshared/cloudinit/sources/__init__.py]
ProcVersionSignature: User Name 3.8.0-22.33-generic 3.8.11
Uname: Linux 3.8.0-22-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
Date: Thu Jun 13 01:09:48 2013
Ec2AMI: ami-00000008
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: aki-00000002
Ec2Ramdisk: ari-00000002
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1190431/+subscriptions