lxc-create -t ubuntu-cloud --userdata ignores userdata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Serge Hallyn | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Quantal |
Fix Released
|
Medium
|
Serge Hallyn |
Bug Description
=======
SRU Justification
1. Impact: --userdata argument is ignored
2. Development fix: get full path to userdata script before switching cwd
3. Stable fix: same as development fix
4. Test case: See the recipe below in bug description
5. Regression potential: none
=======
$ sudo lxc-destroy -n maas
$ cat my-userdata
#!/bin/sh
ifconfig eth0 > /ifconfig-eth0
$ sudo lxc-create -t ubuntu-cloud -n maas -- \
--release precise --arch amd64 --auth-key $HOME/.
--userdata my-userdata
$ sudo cat /var/lib/
#cloud-config
output: {all: '| tee -a /var/log/
apt-mirror: http://
manage_etc_hosts: localhost
locale: en_US.UTF-8
Basically, --userdata was ignored entirely.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu62
ProcVersionSign
Uname: Linux 3.2.0-29-virtual x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Thu Aug 30 00:31:00 2012
Ec2AMI: ami-0000013e
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
TERM=screen
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in lxc (Ubuntu): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
tags: | added: needsru |
Changed in lxc (Ubuntu Precise): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
importance: | Undecided → Medium |
status: | New → In Progress |
description: | updated |
Changed in lxc (Ubuntu Precise): | |
assignee: | Serge Hallyn (serge-hallyn) → nobody |
The bug here is that it silently ignores the argument to --userdata if its not a full path.