lxc ubuntu-cloud template's -i option does not work

Bug #1197357 reported by Robie Basak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

If I run:

    sudo lxc-create -t ubuntu-cloud -n wip -- -r saucy -i foobar -s daily

then the created container still uses a random instance id. grepping for foobar /etc and /var/lib/cloud gives me nothing.

Expected result:

/var/lib/cloud/data/instance-id should be "foobar".

Cause:

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/lxc/saucy/view/head:/templates/lxc-ubuntu-cloud.in#L368

    host_id=${hostid:-$rhostid}

should be:

    host_id=${host_id:-$rhostid}

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: lxc 0.9.0-0ubuntu16
ProcVersionSignature: User Name 3.9.0-6.14-generic 3.9.6
Uname: Linux 3.9.0-6-generic x86_64
ApportVersion: 2.10.2-0ubuntu3
Architecture: amd64
Date: Wed Jul 3 10:52:43 2013
Ec2AMI: ami-0000039d
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
MarkForUpload: True
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
defaults.conf:
 lxc.network.type = veth
 lxc.network.link = lxcbr0
 lxc.network.flags = up

Related branches

Revision history for this message
Robie Basak (racb) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1197357] [NEW] lxc ubuntu-cloud template's -i option does not work

Thanks for reporting this bug.

 assignee: utlemming
 status: confirmed
 importance: medium

Changed in lxc (Ubuntu):
assignee: nobody → Ben Howard (utlemming)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.9.0-0ubuntu22

---------------
lxc (0.9.0-0ubuntu22) saucy; urgency=low

  * ubuntu-cloud: fix typo keeping --hostid from working (LP: #1197357)
 -- Serge Hallyn <email address hidden> Thu, 15 Aug 2013 14:40:58 -0500

Changed in lxc (Ubuntu):
status: Confirmed → 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.