Nova returns HTTP500 if deleting attached volume

Bug #1630783 reported by Ken'ichi Ohmichi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Matt Riedemann
Liberty
Fix Released
Medium
Ken'ichi Ohmichi
Mitaka
Fix Released
Medium
Ken'ichi Ohmichi
Newton
Fix Committed
Medium
Ken'ichi Ohmichi

Bug Description

To reproduce bug #1621452 on the gate, we tried to add the corresponding test to Tempest (https://review.openstack.org/#/c/382083/).
But the test failed at the unexpected place like:

traceback-1: {{{
Traceback (most recent call last):
  File "tempest/api/compute/base.py", line 350, in delete_volume
    cls._delete_volume(cls.volumes_extensions_client, volume_id)
  File "tempest/api/compute/base.py", line 281, in _delete_volume
    volumes_client.delete_volume(volume_id)
  File "tempest/lib/services/compute/volumes_client.py", line 75, in delete_volume
    resp, body = self.delete("os-volumes/%s" % volume_id)
  File "tempest/lib/common/rest_client.py", line 307, in delete
    return self.request('DELETE', url, extra_headers, headers, body)
  File "tempest/lib/services/compute/base_compute_client.py", line 48, in request
    method, url, extra_headers, headers, body, chunked)
  File "tempest/lib/common/rest_client.py", line 665, in request
    resp, resp_body)
  File "tempest/lib/common/rest_client.py", line 829, in _error_checker
    message=message)
tempest.lib.exceptions.ServerFault: Got server fault
Details: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'nova.exception.InvalidInput'>
}}

The above error happens if deleting the attached volume on os-volumes API.

Changed in nova:
assignee: nobody → Ken'ichi Ohmichi (oomichi)
status: New → In Progress
Matt Riedemann (mriedem)
Changed in nova:
importance: Undecided → Medium
Changed in nova:
assignee: Ken'ichi Ohmichi (oomichi) → Matt Riedemann (mriedem)
Matt Riedemann (mriedem)
tags: added: api volumes
Revision history for this message
Ken'ichi Ohmichi (oomichi) wrote :

The corresponding Tempest test is https://review.openstack.org/#/c/382681/

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

Reviewed: https://review.openstack.org/382660
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2afc4e466958b19a4cbb9147abb69f54a06bd507
Submitter: Jenkins
Branch: master

commit 2afc4e466958b19a4cbb9147abb69f54a06bd507
Author: Ken'ichi Ohmichi <email address hidden>
Date: Wed Oct 5 14:14:30 2016 -0700

    Add error handling for delete-volume API

    Due to lack of an error handling, delete-volume API returns HTTP500
    error when deleting an attached volume.
    This patch adds the error handling.

    The corresponding Tempest test is Idb6267be770bcf2541595babebf269cdc71c2b8d

    Closes-Bug: #1630783
    Change-Id: Ia07556b2dc18678baa4c8fbd65820d8047362ef9

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/384696

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/384697

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/384699

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/newton)

Reviewed: https://review.openstack.org/384696
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=20898389cb152cec3a7bf169358e8d35cd57f205
Submitter: Jenkins
Branch: stable/newton

commit 20898389cb152cec3a7bf169358e8d35cd57f205
Author: Ken'ichi Ohmichi <email address hidden>
Date: Wed Oct 5 14:14:30 2016 -0700

    Add error handling for delete-volume API

    Due to lack of an error handling, delete-volume API returns HTTP500
    error when deleting an attached volume.
    This patch adds the error handling.

    The corresponding Tempest test is Idb6267be770bcf2541595babebf269cdc71c2b8d

    Closes-Bug: #1630783
    Change-Id: Ia07556b2dc18678baa4c8fbd65820d8047362ef9
    (cherry picked from commit 2afc4e466958b19a4cbb9147abb69f54a06bd507)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 14.0.1

This issue was fixed in the openstack/nova 14.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/mitaka)

Reviewed: https://review.openstack.org/384697
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=6ea56f87d1516a7efe3b4dbd5f774fce819d39dc
Submitter: Jenkins
Branch: stable/mitaka

commit 6ea56f87d1516a7efe3b4dbd5f774fce819d39dc
Author: Ken'ichi Ohmichi <email address hidden>
Date: Wed Oct 5 14:14:30 2016 -0700

    Add error handling for delete-volume API

    Due to lack of an error handling, delete-volume API returns HTTP500
    error when deleting an attached volume.
    This patch adds the error handling.

    The corresponding Tempest test is Idb6267be770bcf2541595babebf269cdc71c2b8d

    Closes-Bug: #1630783
    Change-Id: Ia07556b2dc18678baa4c8fbd65820d8047362ef9
    (cherry picked from commit 2afc4e466958b19a4cbb9147abb69f54a06bd507)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/liberty)

Reviewed: https://review.openstack.org/384699
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=090bff767b0b410641dba5adf053e9142d1cdc6d
Submitter: Jenkins
Branch: stable/liberty

commit 090bff767b0b410641dba5adf053e9142d1cdc6d
Author: Ken'ichi Ohmichi <email address hidden>
Date: Wed Oct 5 14:14:30 2016 -0700

    Add error handling for delete-volume API

    Due to lack of an error handling, delete-volume API returns HTTP500
    error when deleting an attached volume.
    This patch adds the error handling.

    The corresponding Tempest test is Idb6267be770bcf2541595babebf269cdc71c2b8d

    Closes-Bug: #1630783
    Change-Id: Ia07556b2dc18678baa4c8fbd65820d8047362ef9
    (cherry picked from commit 2afc4e466958b19a4cbb9147abb69f54a06bd507)

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 15.0.0.0b1

This issue was fixed in the openstack/nova 15.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 12.0.6

This issue was fixed in the openstack/nova 12.0.6 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 13.1.3

This issue was fixed in the openstack/nova 13.1.3 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.