ec2: provisioning machines sometimes fails with "tagging instance: The instance ID <ID> does not exist"

Bug #1474788 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Andrew Wilkins
1.24
Fix Released
High
Andrew Wilkins

Bug Description

Tagging was added to Juju 1.24. Sometimes tagging fails right after the instance is created, because eventual consistency.

```
machines:
  ...
  "5":
    agent-state-info: 'tagging instance: The instance ID ''i-c7a76519'' does not exist
      (InvalidInstanceID.NotFound)'
    instance-id: pending
    life: dead
    series: trusty
```

We need to change the tagging code to retry for a short time after creating the instance.

Tags: ec2-provider
Andrew Wilkins (axwalk)
Changed in juju-core:
milestone: 1.24.3 → 1.25.0
Andrew Wilkins (axwalk)
Changed in juju-core:
status: Triaged → In Progress
Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
assignee: nobody → Andrew Wilkins (axwalk)
Revision history for this message
John George (jog) wrote :

This looks like an instance of the the tagging still failing during bootstrap: http://reports.vapour.ws/releases/2946/job/functional-ha-recovery/attempt/2093

Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Revision history for this message
Peter Matulis (petermatulis) wrote :

I got bit by this today with Juju (1.25.6-0ubuntu1.14.04.2) on Trusty, using AWS. It worked on the second bootstrap attempt.

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.