Nova Docker driver cannot destroy instance because context variable is missing

Bug #1245466 reported by Daniel Kuffner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

Nova Docker driver cannot destroy instance because context variable is missing.

https://github.com/openstack/nova/blob/master/nova/virt/docker/driver.py#L318

def destroy(self, instance, network_info, block_device_info=None,
                destroy_disks=True):

must be

def destroy(self, instance, network_info, block_device_info=None,
                destroy_disks=True, context=None):

to make the docker driver full functional

Steps to reproduce:
1. (Horizon) Create multiple docker container
2. Wait until all container are up and running (in my case I had even failing container because of a setup issue).
3. (Horizon) Select all container and press terminate instance

Result some container are not deleted/removed from docker. The instances will still be displayed in horizon.

Unfortunately I have currently no setup to provide the stack trace. The stace trace clearly said that method destroy cannot be called since variable "context" isn't expected.

Tags: docker nova
Revision history for this message
Daniel Kuffner (daniel-kuffner) wrote :
Revision history for this message
Andrew Laski (alaski) wrote :

It would be helpful if you could document what issue is being caused by this.

affects: neutron → nova
description: updated
description: updated
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.