[Bug 1043582] Re: lxc-create -t ubuntu-cloud --userdata ignores userdata
Serge Hallyn
1043582 at bugs.launchpad.net
Fri Sep 21 18:28:51 UTC 2012
** Changed in: lxc (Ubuntu Precise)
Importance: Undecided => Medium
** Changed in: lxc (Ubuntu Precise)
Status: New => In Progress
** Description changed:
+ ====================================
+ 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/.ssh/id_rsa.pub \
- --userdata my-userdata
+ --release=precise --arch=amd64 --auth-key=$HOME/.ssh/id_rsa.pub \
+ --userdata my-userdata
- $ sudo cat /var/lib/lxc/maas/rootfs/var/lib/cloud/seed/nocloud-net/user-data
+ $ sudo cat /var/lib/lxc/maas/rootfs/var/lib/cloud/seed/nocloud-net/user-data
#cloud-config
output: {all: '| tee -a /var/log/cloud-init-output.log'}
apt-mirror: http://archive.ubuntu.com/ubuntu
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
ProcVersionSignature: User Name 3.2.0-29.46-virtual 3.2.24
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
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
- TERM=screen
- PATH=(custom, user)
- LANG=en_US.UTF-8
- SHELL=/bin/bash
+ TERM=screen
+ PATH=(custom, user)
+ LANG=en_US.UTF-8
+ SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043582
Title:
lxc-create -t ubuntu-cloud --userdata ignores userdata
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1043582/+subscriptions
More information about the Ubuntu-server-bugs
mailing list