Error during force snapshot creation for volume with "error" state

Bug #1628536 reported by Michael Dovgal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Eric Harney

Bug Description

We've got 500 http error in cinder api during snapshot creation with force=True for volume that's state is error (volume's host = None)

Revision history for this message
Eric Harney (eharney) wrote :
Download full text (8.4 KiB)

$ cinder type-key 039feefc-67ce-4e38-b0d8-74ec4713be32 set volume_backend_name=doesnotexist
$ cinder create 1 --volume-type 039feefc-67ce-4e38-b0d8-74ec4713be32
$ cinder --debug snapshot-create 07d6bf8f-91e2-4de5-84a3-4824ad79ac9c --force
...
POST call to volumev2 for http://192.168.110.180:8776/v2/f8f1d641343f4d998fa3f230f1feec22/snapshots used request id req-4be122ee-4079-4c4e-8cec-28216832bd7d
DEBUG:cinderclient.client:POST call to volumev2 for http://192.168.110.180:8776/v2/f8f1d641343f4d998fa3f230f1feec22/snapshots used request id req-4be122ee-4079-4c4e-8cec-28216832bd7d
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-4be122ee-4079-4c4e-8cec-28216832bd7d)

2016-09-28 11:21:28.216 ERROR cinder.api.middleware.fault [req-4be122ee-4079-4c4e-8cec-28216832bd7d d8f3940ff04942a0b0c4970f78d8ceca f8f1d641343f4d998fa3f230f1feec22] Caught error: <type 'exceptions.AttributeError'> 'NoneType' object has no attribute 'split'
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault Traceback (most recent call last):
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/opt/stack/cinder/cinder/api/middleware/fault.py", line 79, in __call__
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault return req.get_response(self.application)
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault application, catch_exc_info=False)
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1263, in call_application
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault app_iter = application(self.environ, start_response)
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault return resp(environ, start_response)
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault resp = self.call_func(req, *args, **self.kwargs)
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault return self.func(req, *args, **kwargs)
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/osprofiler/web.py", line 108, in __call__
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault return request.get_response(self.application)
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1299, in send
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault application, catch_exc_info=False)
2016-09-28 11:21:28.216 TRACE cinder.api.middleware.fault File "/usr/local/lib/python2.7/dist-packages/webob/request.py...

Read more...

Changed in cinder:
status: New → Confirmed
assignee: nobody → Eric Harney (eharney)
Revision history for this message
Eric Harney (eharney) wrote :

Setting to High prio since this is an HTTP 500.

Changed in cinder:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: Confirmed → In Progress
Changed in cinder:
milestone: none → ocata-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/378719
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=b66a41cefe32178425a6b3ec9ad36dd1afa63c72
Submitter: Jenkins
Branch: master

commit b66a41cefe32178425a6b3ec9ad36dd1afa63c72
Author: Eric Harney <email address hidden>
Date: Wed Sep 28 11:35:21 2016 -0400

    extract_host: Handle empty host string input

    This fixes an HTTP 500 error caused by the assumption
    that this field is always populated for a volume.

    Closes-Bug: #1628536

    Change-Id: I19df26c37c03f8220fb3d87395f32b5ddef6bf9d

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

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

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

Reviewed: https://review.openstack.org/380630
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=a0b0d110da97412389dc91d931a22ee3b91d9826
Submitter: Jenkins
Branch: stable/newton

commit a0b0d110da97412389dc91d931a22ee3b91d9826
Author: Eric Harney <email address hidden>
Date: Wed Sep 28 11:35:21 2016 -0400

    extract_host: Handle empty host string input

    This fixes an HTTP 500 error caused by the assumption
    that this field is always populated for a volume.

    Closes-Bug: #1628536

    Change-Id: I19df26c37c03f8220fb3d87395f32b5ddef6bf9d
    (cherry picked from commit b66a41cefe32178425a6b3ec9ad36dd1afa63c72)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 9.1.0

This issue was fixed in the openstack/cinder 9.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 10.0.0.0b1

This issue was fixed in the openstack/cinder 10.0.0.0b1 development milestone.

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

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