Zun

Error on deleting containers with injected files

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

Bug Description

Create a container with injected files and delete the containers later. The status will be pending on "Deleting". The following trace in the zun-compute log:

Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: Traceback (most recent call last):
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 460, in fire_timers
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: timer()
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 59, in __call__
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: cb(*args, **kw)
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/opt/stack/zun/zun/common/utils.py", line 199, in context_wrapper
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: func(*args, **kwargs)
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 328, in inner
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: return f(*args, **kwargs)
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/opt/stack/zun/zun/compute/manager.py", line 504, in do_container_delete
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: self._do_container_delete(context, container, force)
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/opt/stack/zun/zun/compute/manager.py", line 526, in _do_container_delete
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: self._detach_volumes(context, container, reraise=reraise)
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/opt/stack/zun/zun/compute/manager.py", line 426, in _detach_volumes
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: self._wait_for_volumes_deleted(context, volmaps, container)
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/opt/stack/zun/zun/compute/manager.py", line 210, in _wait_for_volumes_deleted
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: context, volmap)
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/opt/stack/zun/zun/container/docker/driver.py", line 1058, in is_volume_deleted
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: return volume_driver.is_volume_deleted(context, volume_mapping)
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: File "/opt/stack/zun/zun/volume/driver.py", line 86, in is_volume_deleted
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: raise NotImplementedError()
Dec 16 15:50:16 ip-172-31-4-101 zun-compute[26948]: NotImplementedError

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

Fix proposed to branch: master
Review: https://review.openstack.org/625437

Changed in zun:
assignee: nobody → hongbin (hongbin034)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zun (master)

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

commit 130371b39cb81976fa02c48de8676796c41b4541
Author: Hongbin Lu <email address hidden>
Date: Sun Dec 16 15:57:47 2018 +0000

    Implement is_volume_deleted for Local volume

    The missing of this implementation lead to failure on deleting
    containers with injected files (local docker volume).

    Closes-Bug: #1808700
    Change-Id: I669135ae407ec34f524224fe9dfadf6fce5c14ff

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

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/625701

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on zun (stable/rocky)

Change abandoned by Hongbin Lu (<email address hidden>) on branch: stable/rocky
Review: https://review.openstack.org/625701

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/zun 3.0.0.0rc1

This issue was fixed in the openstack/zun 3.0.0.0rc1 release candidate.

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.