needs to use add-apt-repository for cloud-archive:string

Bug #1244355 reported by Scott Moser
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cloud-init
Medium
Unassigned
cloud-init (Ubuntu)
Medium
Unassigned
Precise
Medium
Unassigned

Bug Description

we added support for cloud-archive:tools and cloud-archive:havana and such.

cloud-init needs to know that it can call 'add-apt-repository' if the input is 'cloud-archive:'

Related branches

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

apt_sources:
 - source: "ppa:smoser/ppa"
 - source: "cloud-archive:tools"
 - source: deb $MIRROR $RELEASE multiverse

Scott Moser (smoser)
Changed in cloud-init (Ubuntu Precise):
status: New → Triaged
importance: Undecided → Medium
Changed in cloud-init (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in cloud-init:
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

fixed in 0.7.4

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.7.5~bzr902-0ubuntu1

---------------
cloud-init (0.7.5~bzr902-0ubuntu1) trusty; urgency=medium

  * debian/control: Build-Depend on python-jsonpatch as #717916 is now fixed.
  * debian/control: Recommend eatmydata (LP: #1236531)
  * New upstream snapshot.
    * support invoking apt with 'eatmydata' (LP: #1236531)
    * add a message in log about dynamic import failures
  * New in '0.7.4' release.
    * fix reading of mount information on kernels < 2.6.26 (LP: #1248625)
    * SmartOS: change 'region' to 'datacenter_name' to address change
      in data provided to instance (LP: #1249124)
    * support calling 'add-apt-repository' for 'cloud-archive:' entries
      (LP: #1244355)
    * DataSourceAzure: fix incompatibility with python 2.6 (LP: #1232175)
    * fix bug mounting first partition of a alias'd name. (LP: #1236594)
    * SmartOS: fix bug with hostname due to trailing whitespace (LP: #1236445)
    * fix creation of partitions on Azure (LP: #1233698)
    * cc_growpart: respect /etc/growroot-disabled (LP: #1234331)
    * ubuntu config: add default user to 'sudo' group (LP: #1228228)
    * Fix usage of libselinux-python when selinux is disabled
    * add OpenNebula datasource
 -- Scott Moser <email address hidden> Tue, 17 Dec 2013 16:51:30 -0500

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
Scott Moser (smoser)
summary: - needs to use add-apt-archive for cloud-archive:string
+ needs to use add-apt-repository for cloud-archive:string
Revision history for this message
Dave Walker (davewalker) wrote : Please test proposed package

Hello Scott, or anyone else affected,

Accepted cloud-init into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/cloud-init/0.6.3-0ubuntu1.11 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!

Changed in cloud-init (Ubuntu Precise):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Scott Moser (smoser) wrote :

I've verified this on a recent instance of precise. See below for how.

## launch instance with user-data showing the bug we've sqaushed

$ cat user-data.txt
#cloud-config
apt_sources:
 - source: "cloud-archive:havana"
output: {all: '| tee -a /var/log/cloud-init-output.log'}

## now on the instance

$ cat /etc/apt/sources.list.d/cloud_config_sources.list
cloud-archive:havana

$ echo "deb http://archive.ubuntu.com/ubuntu precise-proposed main" |
  sudo tee /etc/apt/sources.list.d/precise-proposed.list
deb http://archive.ubuntu.com/ubuntu precise-proposed main

$ sudo apt-get update
E: Type 'cloud-archive:havana' is not known on line 1 in source list /etc/apt/sources.list.d/cloud_config_sources.list
E: The list of sources could not be read.

$ sudo rm /etc/apt/sources.list.d/cloud_config_sources.list

$ sudo apt-get update -q
$ sudo apt-cache policy cloud-init
cloud-init:
  Installed: 0.6.3-0ubuntu1.10
  Candidate: 0.6.3-0ubuntu1.11
  Version table:
     0.6.3-0ubuntu1.11 0
        500 http://archive.ubuntu.com/ubuntu/ precise-proposed/main amd64 Packages
 *** 0.6.3-0ubuntu1.10 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.6.3-0ubuntu1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
$ sudo apt-get install -qy cloud-init

$ sudo rm -Rf /var/lib/cloud/ /var/log/cloud-init*
$ sudo reboot

## ssh back in, and expect it to have applied our cloud-archive:havana

$ ( cd /etc/apt/sources.list.d && ls -l )
total 12
-rw-r--r-- 1 root root 166 Mar 20 07:02 cloudarchive-havana.list
-rw-r--r-- 1 root root 59 Mar 20 07:02 precise-proposed.list
-rw-r--r-- 1 root root 59 Mar 20 07:01 precise-proposed.list.save

$ cat /etc/apt/sources.list.d/cloudarchive-havana.list
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/havana main
deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/havana main

$ sudo apt-get update -q
$ sudo apt-cache policy python-novaclient
python-novaclient:
  Installed: (none)
  Candidate: 1:2.15.0-0ubuntu1~cloud0
  Version table:
     1:2.15.0-0ubuntu1~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/havana/main amd64 Packages
     2012.1-0ubuntu1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

tags: added: verification-done
removed: verification-needed
Revision history for this message
Dave Walker (davewalker) wrote : Update Released

The verification of the Stable Release Update for cloud-init has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * support apt-add-archive with 'cloud-archive:' format. (LP: #1244355)
 -- <email address hidden> (Jay R. Wren) Thu, 30 Jan 2014 20:57:09 +0000

Changed in cloud-init (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers