container cannot be deleted

Bug #1709009 reported by raja
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun UI
Fix Released
Critical
raja

Bug Description

container cannot be deleted by the ui, the log looks like this:

```
Traceback (most recent call last):
  File "/root/workspace/openstack/horizon/openstack_dashboard/api/rest/utils.py", line 128, in _wrapped
    data = function(self, request, *args, **kw)
  File "/usr/lib/python2.7/site-packages/zun_ui/api/rest_api.py", line 117, in delete
    client.container_delete(request, id)
  File "/usr/lib/python2.7/site-packages/zun_ui/api/client.py", line 134, in container_delete
    return zunclient(request).containers.delete(id, force)
TypeError: delete() takes exactly 2 arguments (3 given)

```

I check the code of zunclient and zun-api, the `force` argument in `zun_ui/api/client.py` should change to a keyword argument.

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

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

Changed in zun-ui:
assignee: nobody → raja (jiangpch)
status: New → In Progress
Shu Muto (shu-mutou)
Changed in zun-ui:
importance: Undecided → Critical
milestone: none → pike-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zun-ui (master)

Reviewed: https://review.openstack.org/491369
Committed: https://git.openstack.org/cgit/openstack/zun-ui/commit/?id=a33e2c43595342c557a837fa7f9ba63612f22ccc
Submitter: Jenkins
Branch: master

commit a33e2c43595342c557a837fa7f9ba63612f22ccc
Author: jiangpch <email address hidden>
Date: Mon Aug 7 02:40:24 2017 -0400

    Fix container deletion error

    Change the argument `force` to a keyword argument as the delete
    method of zunclient's container doesn't accept a `force` argument.

    Closes-Bug: #1709009

    Change-Id: I98283c93aef0ce9bda8395f9db9fdbc0b3664dbc

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

This issue was fixed in the openstack/zun-ui 0.2.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.