Zun

Not able to delete container

Bug #1762091 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Released
Low
hongbin

Bug Description

Description
===========
Users won't be able to delete the container if there are some inconsistency on the container's network configuration.

Reproduce
=========
This issue can be reproduced by creating a container in Zun, then manually disconnect the container from its network in Docker.

$ zun run nginx
$ zun list
+--------------------------------------+-----------------+-------+---------+------------+------------------------------------------------+-------+
| uuid | name | image | status | task_state | addresses | ports |
+--------------------------------------+-----------------+-------+---------+------------+------------------------------------------------+-------+
| cb17fc03-61b2-4422-a1ab-f40546a53592 | tau-4-container | nginx | Running | None | 10.0.0.3, fd99:73e8:34a2:0:f816:3eff:fedb:5a28 | [80] |
+--------------------------------------+-----------------+-------+---------+------------+------------------------------------------------+-------+
$ openstack network list --name=private
+--------------------------------------+---------+----------------------------------------------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+---------+----------------------------------------------------------------------------+
| d10b6356-e9fc-4308-9631-ae55785f554e | private | 7ca0d3d5-eeef-489f-8a40-ccb00456628c, a3162b3e-2f02-432e-a18c-78fe2774d026 |
+--------------------------------------+---------+----------------------------------------------------------------------------+
$ docker network disconnect d10b6356-e9fc-4308-9631-ae55785f554e zun-cb17fc03-61b2-4422-a1ab-f40546a53592
$ zun delete --stop cb17fc03-61b2-4422-a1ab-f40546a53592
....

Expected
========
The last command is able to delete the container

Actual
======
The container is not deleted. The following error in the zun-compute log: http://paste.openstack.org/show/718538/

hongbin (hongbin034)
Changed in zun:
importance: Undecided → Low
status: New → Triaged
Changed in zun:
assignee: nobody → hongbin (hongbin034)
status: Triaged → In Progress
Revision history for this message
hongbin (hongbin034) wrote :

This patch attempts to fix it: https://review.openstack.org/#/c/559261/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zun (master)

Reviewed: https://review.openstack.org/559261
Committed: https://git.openstack.org/cgit/openstack/zun/commit/?id=da65b568164c0882448fa93dc2addc545716f930
Submitter: Zuul
Branch: master

commit da65b568164c0882448fa93dc2addc545716f930
Author: Hongbin Lu <email address hidden>
Date: Fri Apr 6 03:23:44 2018 +0000

    Fix an issue on deleteing container

    Closes-Bug: #1762091
    Change-Id: I3dd708b2b84e1cbdd5172bf0617b0db5d9ee508e

Changed in zun:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/zun 2.0.0

This issue was fixed in the openstack/zun 2.0.0 release.

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.