← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1470880] Re: [SRU] GCE datasource reports availability zones incorrectly

 

Hello Dan, or anyone else affected,

Accepted cloud-init into vivid-proposed. The package will build now and
be available at https://launchpad.net/ubuntu/+source/cloud-
init/0.7.7~bzr1091-0ubuntu5 in a few hours, and then in the -proposed
repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Also affects: cloud-init (Ubuntu Vivid)
   Importance: Undecided
       Status: New

** Also affects: cloud-init (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Also affects: cloud-init (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu)
       Status: New => Fix Released

** Changed in: cloud-init (Ubuntu Vivid)
       Status: New => Fix Committed

** Tags added: verification-needed

** Changed in: cloud-init (Ubuntu Trusty)
       Status: New => Fix Committed

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

Title:
  [SRU] GCE datasource reports availability zones incorrectly

Status in cloud-init:
  In Progress
Status in cloud-init package in Ubuntu:
  Fix Released
Status in cloud-init source package in Precise:
  Fix Committed
Status in cloud-init source package in Trusty:
  Fix Committed
Status in cloud-init source package in Vivid:
  Fix Committed

Bug description:
  [Impact]
  Availability zones and regions on GCE cannot be used for mirror substitution, making in-cloud mirrors impossible.

  [Test Case]
  Run the following Python code on trusty and later:

  from cloudinit.sources.DataSourceGCE import DataSourceGCE
  ds = DataSourceGCE({}, None, None)
  ds.get_data()
  ds.availability_zone

  Or the following code on precise:

  from cloudinit.DataSourceGCE import DataSourceGCE
  ds = DataSourceGCE({})
  ds.get_data()
  ds.get_availability_zone()

  and confirm that the availability zone is returned (rather than a
  relative URL).

  [Regression Potential]
  This is completely broken at the moment, so it can't get any more broken.

  [Original Report]
  After querying the cloud fabric, DataSourceGCE will return something along the lines of "projects/969378662406/zones/europe-west1-d" as its availability_zone.

  This means that other parts of the code that expect a sensible value
  for this (most notably the mirror discovery code), are broken on GCE.

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


References