regression: nova boot --file does not work

Bug #1376176 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient (Ubuntu)
New
Undecided
Unassigned

Bug Description

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@172.19.0.90
ubuntu@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)

Revision history for this message
Martin Pitt (pitti) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.