cloud-init sources without filename overwrite each other

Bug #627597 reported by Scott Moser
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
Low
Scott Moser

Bug Description

Binary package hint: cloud-init

The following user data results in only the second source being added:

#cloud-config
apt_sources:
  - source: "deb http://ppa.launchpad.net/squinky/es-mumble-backport/ubuntu lucid main"
  - source: "deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu lucid main"

This can be worked around like:
#cloud-config
apt_sources:
  - source: "deb http://ppa.launchpad.net/squinky/es-mumble-backport/ubuntu lucid main"
    filename: "es-mumble-backport.list"
  - source: "deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu lucid main"
    filename: "pidgin-developers.list"

The issue is that the code that writes to /etc/apt/sources.list.d/cloud_config_sources.list just overwrites each time, so the last entry wins.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: cloud-init 0.5.14-0ubuntu4
ProcVersionSignature: User Name 2.6.35-19.28-virtual 2.6.35.3
Uname: Linux 2.6.35-19-virtual i686
Architecture: i386
Date: Tue Aug 31 18:04:41 2010
Ec2AMI: ami-821cf6eb
Ec2AMIManifest: ubuntu-images-testing-us/ubuntu-maverick-daily-i386-server-20100831.manifest.xml
Ec2AvailabilityZone: us-east-1b
Ec2InstanceType: m1.small
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Changed in cloud-init (Ubuntu):
assignee: nobody → Scott Moser (smoser)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.5.14-0ubuntu5

---------------
cloud-init (0.5.14-0ubuntu5) maverick; urgency=low

  * add missing imports for cc_puppet (LP: #632744)
  * append to apt_sources files rather than truncating (LP: #627597)
  * get double commented lines into sources.list (LP: #627439)
 -- Scott Moser <email address hidden> Wed, 08 Sep 2010 10:31:58 -0400

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.