← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1470890] Re: [SRU] cc_apt_configure does not understand regions

 

This bug was fixed in the package cloud-init - 0.7.5-0ubuntu1.8

---------------
cloud-init (0.7.5-0ubuntu1.8) trusty; urgency=medium

  * debian/patches/lp-1411582-azure-udev-ephemeral-disks.patch:
      - Use udev rules to discover ephemeral disk locations rather than
        hard-coded device names (LP: #1411582).
  * debian/patches/lp-1470880-fix-gce-az-determination.patch:
      - Correctly parse GCE's availability zones (LP: #1470880).
  * d/patches/lp-1470890-include-regions-in-dynamic-mirror-discovery.patch:
      - Make %(region)s a valid substitution in mirror discovery
        (LP: #1470890).
  * Remove python-serial from Build-Depends; it was mistakenly added last
    upload.

 -- Daniel Watkins <daniel.watkins@xxxxxxxxxxxxx>  Fri, 14 Aug 2015
13:54:02 +0100

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

** Changed in: cloud-init (Ubuntu Vivid)
       Status: Fix Committed => 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/1470890

Title:
  [SRU] cc_apt_configure does not understand regions

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

Bug description:
  [Impact]
  In GCE, we want to deploy Ubuntu mirrors per-region.  At the moment, it is impossible to configure cloud-init to look for mirrors with the instance's region substituted in to the mirror DNS name.  This will allow us to do so, which will allow us to improve the experience for Ubuntu users on GCE, both in terms of mirror responsiveness and bandwidth costs.

  [Test Case]
  On GCE, specify a primary mirror search URL of "http://%(region)s.gce.clouds.archive.ubuntu.com/ubuntu/" and run cloud-init. When running 'apt-get update', you should see a mirror URL which matches the above with the instance's region substituted in.

  [Regression Potential]
  There are two existing substitutions for mirror strings: availability_zone and ec2_region.  We will need to ensure that each of these can still be used (testing specifically on EC2 for the latter).

  [Original Report]
  In _get_package_mirror_info (in cloudinit/distros/__init__.py), there is code that specifically handles converting EC2 availability zones to their corresponding regions. This won't work for other clouds that don't have the same form for availability zones (and even if they _do_, they'll have to be configured using strings containing 'ec2'; weird), which is problematic.

  This is particularly a problem for GCE.

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


References