docker plugin fails to delete a container resource in CREATE_FAILED state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Lars Kellogg-Stedman |
Bug Description
The docker plugin (plugin from master, running in stable/icehouse) is unable to delete failed container. Given the following resource:
docker_dbserver:
type: "DockerInc:
properties:
image: mysql
port_specs:
- 3306
port_
3306: 3306
env:
- MYSQL_ROOT_
name: dbserver
If a container named "dbserver" already exists, the create fails with:
409 Client Error: Conflict ("Conflict, The name dbserver is already assigned to ff7791c42f29. You have to delete (or rename) that container to be able to assign dbserver to a container again.")
This puts the container into a CREATE_FAILED state:
$ heat resource-list local
+----
| resource_name | resource_type | resource_status | updated_time |
+----
| docker_dbserver | DockerInc:
+----
Trying to delete this stack will result in a new error:
APIError: 404 Client Error: Not Found ("No such container: None")
At this point, the only option is "heat stack-abandon".
Changed in heat: | |
assignee: | nobody → Lars Kellogg-Stedman (larsks) |
status: | New → In Progress |
Changed in heat: | |
importance: | Undecided → Medium |
Fix proposed in: https:/ /review. openstack. org/#/c/ 118185/