autopkgtest-cloud-worker charm does not set ssh key name in worker.conf

Bug #1480962 reported by Martin Pitt on 2015-08-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Auto Package Testing
Medium
Iain Lane

Bug Description

Deploying deployment/charms/trusty/autopkgtest-cloud-worker (in particular, the config-changed hook) is supposed to update this in worker.conf:

  novaopts = --keyname=testbed

but this does not happen.

Martin Pitt (pitti) on 2015-08-03
Changed in auto-package-testing:
status: New → Triaged
importance: Undecided → Medium
tags: added: autopkgtest-cloud
Changed in auto-package-testing:
assignee: nobody → Martin Pitt (pitti)
Iain Lane (laney) wrote :

Should this be "key-name"?

usage: nova boot […] [--key-name <key-name>] […]

Iain Lane (laney) wrote :

Oh, is it translated inside ssh-setup?

Martin Pitt (pitti) wrote :

Yes, it's translated to nova's --key_name. This looks so unusual that I didn't want to use the same name for the setup script.

If you want to look into this, this is a sed expression in deployment/charms/trusty/autopkgtest-cloud-worker/hooks/config-changed to replace --keyname=testbed with e. g. --keyname=--keyname=testbed-juju-prod-ues-proposed-migration-machine-3

Iain Lane (laney) wrote :

commit f8c1403613f77bc8d8c9da7c1ea469c717eaac6e
Author: Iain Lane <email address hidden>
Date: Thu Oct 1 17:27:13 2015 +0100

    hooks/config-changed: sed the right file to update --keyname

Should be fixed on the next redeploy.

Changed in auto-package-testing:
status: Triaged → Fix Released
Martin Pitt (pitti) on 2015-10-01
Changed in auto-package-testing:
assignee: Martin Pitt (pitti) → Iain Lane (laney)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers