nova: use UUIDs instead of instance names

Bug #1495788 reported by Martin Pitt on 2015-09-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
High
Martin Pitt

Bug Description

With the recent introduction of triggering one test per reverse-dependency kernel image, or in situations where a particular package just happens to be in the queue more than once, we can potentially get naming collisions. From http://autopkgtest.ubuntu.com/packages/n/nvidia-graphics-drivers-304/wily/amd64/ I just saw:

| 2b419580-ac4c-4b94-a4dc-47e8ee5612e9 | adt-wily-amd64-nvidia-graphics-drivers-304-20150914-155306 | ACTIVE | - | Running | net_ues_proposed_migration=10.220.47.70 |
| 80a56c66-cbb0-4cd4-8488-16fb937c9ffb | adt-wily-amd64-nvidia-graphics-drivers-304-20150914-155306 | ACTIVE | - | Running | net_ues_proposed_migration=10.220.47.69 |

which led to

nova boot failed (attempt #1):
ERROR: Quota exceeded for instances: Requested 1, but already used 10 of 10 instances (HTTP 413) (Request-ID: req-5540e478-1305-4a54-93c0-2869e084a437)
ERROR: Multiple server matches found for 'adt-wily-amd64-nvidia-graphics-drivers-304-20150914-155306', use an ID to be more specific.
ERROR: Unable to delete any of the specified servers.

We need to use the instance's UUID instead of its name to avoid this.

Related branches

Martin Pitt (pitti) on 2015-09-15
Changed in autopkgtest (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Martin Pitt (pitti)
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
status: In Progress → Fix Committed
assignee: nobody → Martin Pitt (pitti)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.17.2

---------------
autopkgtest (3.17.2) unstable; urgency=medium

  * ssh-setup/nova: Use instance UUIDs instead of names after initial "nova
    boot", to avoid name collisions. (LP: #1495788)
  * adt-setup-vm: Drop "pin eth0 name" hack, this was fixed properly in
    systemd 226-2.
  * adt-setup-vm: Generalize ethernet ifupdown setup for net.ifnames.
  * adt_binaries.py: Fix resetting of testbed (regression in 3.17).

 -- Martin Pitt <email address hidden> Sun, 20 Sep 2015 17:23:41 +0200

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers