[Bug 1376176] [NEW] regression: nova boot --file does not work
Martin Pitt
martin.pitt at ubuntu.com
Wed Oct 1 09:20:23 UTC 2014
Public bug reported:
Since more often than not cloud instances have a broken /etc/hosts,
autopkgtest's nova setup script does this to force an update of
/etc/hosts to include the own hostname:
# cloud-init config to fix broken hostname resolution
local cfg=`mktemp`
echo "manage_etc_hosts: true" > $cfg
nova boot --flavor $FLAVOR --key_name $KEYNAME \
--file /etc/cloud/cloud.cfg.d/01manage_hosts.cfg=$cfg \
--image $IMAGE $NET_ID --poll $SRVNAME
This did work in the past (several months ago, thus in the saucy/trusty
era, with Canonistack), but seems to have broken in utopic or with
Bootstack:
$ cat /tmp/cfg
manage_etc_hosts: true
$ nova boot --flavor m1.small --key_name pitti --image ubuntu-utopic-14.10-beta2-amd64-server-20140923-disk1.img --nic net-id=415a0839-eb05-4e7a-907c-413c657f4bf5 --file /etc/cloud/cloud.cfg.d/01manage_hosts.cfg=/tmp/cfg --poll adt-nova-1
$ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu at 172.19.0.90
ubuntu at adt-nova-1:~$ ls /etc/cloud/cloud.cfg.d/
05_logging.cfg 90_dpkg.cfg README
I. e. the file is not there. /var/log/cloud-init.log has no trace of
this, but then I'm not sure whether --file is supposed to reflect in
cloud-init.log (the effect of installing the file certainly should
though, but it's not even getting that far).
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: python-novaclient 1:2.19.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-18.25-generic 3.16.3
Uname: Linux 3.16.0-18-generic x86_64
ApportVersion: 2.14.7-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Oct 1 11:15:15 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-02-27 (216 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140224)
PackageArchitecture: all
SourcePackage: python-novaclient
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: python-novaclient (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug utopic
** Attachment added: "/var/log/cloud-init.log"
https://bugs.launchpad.net/bugs/1376176/+attachment/4221276/+files/cloud-init.log
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-novaclient in Ubuntu.
https://bugs.launchpad.net/bugs/1376176
Title:
regression: nova boot --file does not work
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-novaclient/+bug/1376176/+subscriptions
More information about the Ubuntu-server-bugs
mailing list