Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config-drive datasource does not provide availability_zone #2375

Closed
ubuntu-server-builder opened this issue May 10, 2023 · 4 comments
Closed
Labels
launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1190431

Launchpad details
affected_projects = ['cloud-init (Ubuntu)']
assignee = None
assignee_name = None
date_closed = 2013-11-19T21:58:54.740089+00:00
date_created = 2013-06-13T01:19:48.145190+00:00
date_fix_committed = 2013-07-23T17:12:06.933338+00:00
date_fix_released = 2013-11-19T21:58:54.740089+00:00
id = 1190431
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1190431
milestone = None
owner = smoser
owner_name = Scott Moser
private = False
status = fix_released
submitter = smoser
submitter_name = Scott Moser
tags = ['amd64', 'apport-bug', 'ec2-images', 'raring']
duplicates = []

Launchpad user Scott Moser(smoser) wrote on 2013-06-13T01:19:48.145190+00:00

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)

@ubuntu-server-builder ubuntu-server-builder added the launchpad Migrated from Launchpad label May 10, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2013-06-13T01:19:48.145190+00:00

Launchpad attachments: Dependencies.txt

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2013-07-23T17:12:16.525682+00:00

fixed in trunk at revno 838.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2013-07-26T12:49:40.830130+00:00

This was fixed in 0.7.3bzr845-0ubuntu1, fix is now available in archive at 0.7.3bzr849-0ubuntu1.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2013-11-19T21:58:53.479143+00:00

fixed in 0.7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant