Deleting the manila share from horizon dashboard results in traceback

Bug #1453464 reported by Sobhan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
manila-ui
Invalid
Undecided
Unassigned

Bug Description

While deleting the share from the horizon dashboard I hit the following traceback.

DEBUG:manilaclient.httpclient:RESP: [404] {'date': 'Fri, 08 May 2015 14:41:00 GMT', 'connection': 'keep-alive', 'content-type': 'application/json; charset=UTF-8', 'content-length': '78', 'x-compute-request-id': 'req-e237390e-8430-4ce7-ad2e-b84ca4f107bd'}
RESP BODY: {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

Internal Server Error: /project/shares/
Traceback (most recent call last):
  File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/tabs/views.py", line 133, in get
    preempted = table.maybe_preempt()
  File "/opt/stack/horizon/horizon/tables/base.py", line 1523, in maybe_preempt
    error = exceptions.handle(request, ignore=True)
  File "/opt/stack/horizon/horizon/exceptions.py", line 364, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/opt/stack/horizon/horizon/tables/base.py", line 1515, in maybe_preempt
    datum = new_row.get_data(request, obj_id)
  File "/opt/stack/manila-ui/manila_ui/dashboards/project/shares/shares/tables.py", line 127, in get_data
    share = manila.share_get(request, share_id)
  File "/opt/stack/manila-ui/manila_ui/api/manila.py", line 74, in share_get
    share_data = manilaclient(request).shares.get(share_id)
  File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/manilaclient/v1/shares.py", line 206, in get
    return self._get("/shares/%s" % share_id, "share")
  File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/manilaclient/base.py", line 135, in _get
    resp, body = self.api.client.get(url)
  File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/manilaclient/httpclient.py", line 128, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/manilaclient/httpclient.py", line 107, in _cs_request
    **kwargs)
  File "/opt/stack/horizon/.venv/lib/python2.7/site-packages/manilaclient/httpclient.py", line 96, in request
    raise exceptions.from_response(resp, method, url)
NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-e237390e-8430-4ce7-ad2e-b84ca4f107bd)
[08/May/2015 14:41:01] "GET /project/shares/?action=row_update&table=shares&obj_id=73238e73-c265-450d-84da-c6e91174772f HTTP/1.1" 500 38609

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

Can not reproduce. Even deletion of share in CLI after rendering page with list of shares does not result to error.

Please, specify version of horizon, manila-ui, python, distro, etc...

Revision history for this message
Sobhan (sobhan-saman) wrote :

Now I am not able to reproduce it with latest master

The following steps had been executed to reproduce the issue.

1.Create a share from horizon
2. Provide access-allow to the share and mount from nova VM
3. access-deny to the share and mount from nova VM and verify the mount fails
3. Create snapshot of the share
4. Delete the snapshot of the share
5. Delete the share

After Step-5 the deletion of the share takes long time at horizon GUI(After refreshing the GUI it shows the share is deleted). when I verified through the CLI (manila list) the share is actually deleted.

But there is a the traceback.

With the master branch on May 9th ( Last Horizon: commit 7f348d0ea04d4f2744ab3d199945b8e0710a6b5f
) the problem was reproducible. I will try couple of more times and if the problem is reproducible then I will update with more details

Horizon version: 1.7.8
openstack_dashboard : 1.7.8
manila-ui : 1.7.8
distro: fedora 20 (3.19.5-100.fc20.x86_64 )

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

Hello Sobhan,

is this bug still relevant for you?

Revision history for this message
Sobhan (sobhan-saman) wrote :

I could not able reproduce the issue.

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

Setting status "invalid" as it can not be reproduced even by reporter.

Changed in manila-ui:
status: New → Invalid
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.