2012-09-04 18:20:38 |
Scott Moser |
bug |
|
|
added bug |
2012-09-04 18:21:38 |
Scott Moser |
bug |
|
|
added subscriber Ben Howard |
2012-09-04 20:01:34 |
Launchpad Janitor |
branch linked |
|
lp:~smoser/ubuntu/quantal/lxc/lp-1045955 |
|
2012-09-04 20:03:02 |
Scott Moser |
lxc (Ubuntu): importance |
Undecided |
Medium |
|
2012-09-04 20:03:02 |
Scott Moser |
lxc (Ubuntu): status |
New |
Triaged |
|
2012-09-04 20:03:02 |
Scott Moser |
lxc (Ubuntu): assignee |
|
Scott Moser (smoser) |
|
2012-09-06 17:50:39 |
Stéphane Graber |
lxc (Ubuntu): status |
Triaged |
Fix Committed |
|
2012-09-06 21:00:22 |
Launchpad Janitor |
lxc (Ubuntu): status |
Fix Committed |
Fix Released |
|
2012-09-06 21:39:48 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/lxc |
|
2013-01-31 15:13:09 |
Scott Moser |
nominated for series |
|
Ubuntu Precise |
|
2013-01-31 15:13:09 |
Scott Moser |
bug task added |
|
lxc (Ubuntu Precise) |
|
2013-01-31 15:20:14 |
Scott Moser |
lxc (Ubuntu Precise): status |
New |
Triaged |
|
2013-01-31 15:20:19 |
Scott Moser |
lxc (Ubuntu Precise): importance |
Undecided |
Medium |
|
2013-02-07 16:05:28 |
Stéphane Graber |
lxc (Ubuntu Precise): status |
Triaged |
In Progress |
|
2013-02-07 16:05:32 |
Stéphane Graber |
lxc (Ubuntu Precise): assignee |
|
Stéphane Graber (stgraber) |
|
2013-02-07 16:10:25 |
Stéphane Graber |
description |
'lxc-create -t ubuntu-cloud' was broken on quantal images as it assumes presense of 'ubuntu' user, and that has been removed from the images. Now, cloud-init creates the ubuntu user on first boot.
$ lxc-create -t ubuntu-cloud -n source-quantal-amd64 -- --release quantal --arch amd64 --stream daily
No config file specified, using the default config
ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query
wget is /usr/bin/wget
--2012-09-04 18:16:36-- https://cloud-images.ubuntu.com/server/quantal/20120904/quantal-server-cloudimg-amd64-root.tar.gz
Resolving cloud-images.ubuntu.com (cloud-images.ubuntu.com)... 91.189.88.141
Connecting to cloud-images.ubuntu.com (cloud-images.ubuntu.com)|91.189.88.141|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cloud-images.ubuntu.com/quantal/20120904/quantal-server-cloudimg-amd64-root.tar.gz [following]
--2012-09-04 18:16:36-- https://cloud-images.ubuntu.com/quantal/20120904/quantal-server-cloudimg-amd64-root.tar.gz
Reusing existing connection to cloud-images.ubuntu.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 172848992 (165M) [application/x-gzip]
Saving to: `quantal-server-cloudimg-amd64-root.tar.gz'
100%[======================================================>] 172,848,992 17.5M/s in 10s
2012-09-04 18:16:46 (16.4 MB/s) - `quantal-server-cloudimg-amd64-root.tar.gz' saved [172848992/172848992]
Extracting container rootfs
Configuring for running outside of a cloud environment
If you want to configure for a cloud evironment, please use '-- -C' to create the container
usermod: user 'ubuntu' does not exist
failed to execute template 'ubuntu-cloud'
aborted
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: lxc 0.8.0~rc1-4ubuntu32
ProcVersionSignature: User Name 3.5.0-13.13-generic 3.5.3
Uname: Linux 3.5.0-13-generic x86_64
Architecture: amd64
Date: Tue Sep 4 18:17:47 2012
KernLog:
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
lxcsyslog: |
=== Rationale ===
The quantal cloud image doesn't ship with an existing ubuntu user, instead it uses cloud-utils to create it at boot time.
This breaks older versions of lxc-ubuntucloud which expects the user to be there.
The fix is a backport from what was pushed into quantal and basically moves the user handling code to the cloud-init config file.
=== Test case ===
1) lxc-create -t ubuntucloud -n p1 -- -r q
2) If this works, you're good (otherwise it'll fail when setting up the user saying that "ubuntu" doesn't exist.)
=== Regression potential ===
The fix is a direct port of the change that was pushed to quantal and it's been tested on 12.04 with both a precise and quantal container. In the worst case, cloud-init would fail to run, rendering the container close to useless, but the testing I've been doing would have shown anything that bad.
------ original bug report --------
'lxc-create -t ubuntu-cloud' was broken on quantal images as it assumes presense of 'ubuntu' user, and that has been removed from the images. Now, cloud-init creates the ubuntu user on first boot.
$ lxc-create -t ubuntu-cloud -n source-quantal-amd64 -- --release quantal --arch amd64 --stream daily
No config file specified, using the default config
ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query
wget is /usr/bin/wget
--2012-09-04 18:16:36-- https://cloud-images.ubuntu.com/server/quantal/20120904/quantal-server-cloudimg-amd64-root.tar.gz
Resolving cloud-images.ubuntu.com (cloud-images.ubuntu.com)... 91.189.88.141
Connecting to cloud-images.ubuntu.com (cloud-images.ubuntu.com)|91.189.88.141|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cloud-images.ubuntu.com/quantal/20120904/quantal-server-cloudimg-amd64-root.tar.gz [following]
--2012-09-04 18:16:36-- https://cloud-images.ubuntu.com/quantal/20120904/quantal-server-cloudimg-amd64-root.tar.gz
Reusing existing connection to cloud-images.ubuntu.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 172848992 (165M) [application/x-gzip]
Saving to: `quantal-server-cloudimg-amd64-root.tar.gz'
100%[======================================================>] 172,848,992 17.5M/s in 10s
2012-09-04 18:16:46 (16.4 MB/s) - `quantal-server-cloudimg-amd64-root.tar.gz' saved [172848992/172848992]
Extracting container rootfs
Configuring for running outside of a cloud environment
If you want to configure for a cloud evironment, please use '-- -C' to create the container
usermod: user 'ubuntu' does not exist
failed to execute template 'ubuntu-cloud'
aborted
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: lxc 0.8.0~rc1-4ubuntu32
ProcVersionSignature: User Name 3.5.0-13.13-generic 3.5.3
Uname: Linux 3.5.0-13-generic x86_64
Architecture: amd64
Date: Tue Sep 4 18:17:47 2012
KernLog:
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
lxcsyslog: |
|
2013-02-14 11:40:42 |
Nobuto Murata |
bug |
|
|
added subscriber Nobuto MURATA |
2013-02-20 19:50:30 |
Clint Byrum |
lxc (Ubuntu Precise): status |
In Progress |
Fix Committed |
|
2013-02-20 19:50:33 |
Clint Byrum |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2013-02-20 19:50:35 |
Clint Byrum |
bug |
|
|
added subscriber SRU Verification |
2013-02-20 19:50:37 |
Clint Byrum |
tags |
amd64 apport-bug quantal |
amd64 apport-bug quantal verification-needed |
|
2013-02-20 21:50:41 |
Scott Moser |
tags |
amd64 apport-bug quantal verification-needed |
amd64 apport-bug quantal verification-done |
|
2013-02-28 06:40:51 |
Colin Watson |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2013-02-28 06:42:13 |
Launchpad Janitor |
lxc (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|