cleanup-containers doesn't remove ovs and compute fake containers

Bug #1576277 reported by Prithiv
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Prithiv

Bug Description

In a setup with fake libvirt, tools/cleanup-containers doesn't remove the following containers

neutron_openvswitch_agent_fake_*
and
nova_compute_fake_*

# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4245f33660a0 kollaglue/ubuntu-source-neutron-openvswitch-agent:2.0.0 "kolla_start" 7 days ago Up 7 days neutron_openvswitch_agent_fake_1
cde56436c830 kollaglue/ubuntu-source-nova-compute:2.0.0 "kolla_start" 7 days ago Up 7 days nova_compute_fake_1

Prithiv (prithiv)
Changed in kolla:
assignee: nobody → Prithiv (prithiv)
Revision history for this message
Hui Kang (huikang27) wrote :

This is true. However, docker rm does not support wild card. We may want to implement this in the ansible playbook.

https://github.com/openstack/kolla/tree/master/ansible/roles/cleanup/tasks

Changed in kolla:
status: New → Confirmed
Revision history for this message
Carlos Cesario (ccesario) wrote :

Hui, what do you think something like this?

docker rm $(docker ps -a | egrep "neutron_openvswitch_agent_fake_|nova_compute_fake_" | awk '{print $1}')

This can be a workaround to "wildcard" feature :)

Carlos

Prithiv (prithiv)
Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
Carlos Cesario (ccesario) wrote :

Hello Prithiv,

   This http://paste.openstack.org/show/495755/ can be a solution for this.
   For me, it works.

Carlos

Prithiv (prithiv)
Changed in kolla:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/312629

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

Reviewed: https://review.openstack.org/312629
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=0fda8badd2e16edc65a624c34f0d09809bf9b22c
Submitter: Jenkins
Branch: master

commit 0fda8badd2e16edc65a624c34f0d09809bf9b22c
Author: prithiv <email address hidden>
Date: Wed May 4 17:11:33 2016 +0100

    Deletes fake containers on cleanup

    Closes-Bug: #1576277

    Change-Id: Ie68d1d5da620f26a0aa21aa5c6473bc464994ed8

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 3.0.0.0b1

This issue was fixed in the openstack/kolla 3.0.0.0b1 development milestone.

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.