Comment 0 for bug 1043582

Scott Moser (smoser) wrote :

$ 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

$ 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
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)