retry for manage share fails with an API error
Bug #1565903 reported by
Yogesh
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Undecided
|
Goutham Pacha Ravi |
Bug Description
Here are the steps -
1. Manage a share with invalid share_type
2. The share should result in "manage_error" state.
3. Now, try to manage the same share with valid share_type.
Expected Result - Share should be managed successfully.
Actual Result - An API error is raised -
KeyError - 'host
Changed in manila: | |
assignee: | nobody → Yogesh (ykshirsa) |
tags: | added: low-hanging-fruit |
Changed in manila: | |
assignee: | Goutham Pacha Ravi (gouthamr) → Yogesh (ykshirsa) |
Changed in manila: | |
assignee: | Yogesh (ykshirsa) → Goutham Pacha Ravi (gouthamr) |
To post a comment you must log in.
se use appropriate property from share instance. 5af3-41c3- b7ad-2ce25876e6 06 f06ded8c557346b f9f3c255fe8793e 96 707aa4f9804549a e828200b0c53816 e9] Manage: Found shares 1. from (pid=20162) manage manila/ manila/ share/api. py:527 5af3-41c3- b7ad-2ce25876e6 06 f06ded8c557346b f9f3c255fe8793e 96 707aa4f9804549a e828200b0c53816 e9] {'share_type_id': u'98badc75- 55bd-4dc8- 87e3-f 6bf9f3c255fe879 3e96', 'replication_type': u'dr', 'share_proto': u'NFS', 'display_ description' : None, 'is_public': False, 'project_id': u'707aa 00b0c53816e9' , 'snapshot_support': True} api.middleware. fault [req-f87d56c7- 5af3-41c3- b7ad-2ce25876e6 06 f06ded8c557346b f9f3c255fe8793e 96 707aa4f9804549a e828200b0c53816 e9] Caught error: 'host' api.middleware. fault Traceback (most recent call last): api.middleware. fault File "/opt/stack/ manila/ manila/ api/middleware/ fault.py" , line 73, in __call__ api.middleware. fault return req.get_ response( self.applicatio n) api.middleware. fault File "/usr/local/ lib/python2. 7/dist- packages/ webob/request. py", line 1317, in send api.middleware. fault application, catch_exc_ info=False) api.middleware. fault File "/usr/local/ lib/python2. 7/dist- packages/ webob/request. py", line 1281, in call_application api.middleware. fault app_iter = application( self.environ, start_response) api.middleware. fault File "/usr/local/ lib/python2. 7/dist- packages/ webob/dec. py", line 130, in __call__ api.middleware. fault resp = self.call_func(req, *args, **self.kwargs) api.middleware. fault File "/usr/local/ lib/python2. 7/dist- packages/ webob/dec. py", line 195, in call_func api.middleware. fault return self.func(req, *args, **kwargs) api.middleware. fault File "/usr/local/ lib/python2. 7/dist- packages/ oslo_middleware /base.py" , line 114, in __call__ api.middleware. fault response = req.get_ response( self.applicatio n) api.middleware. fault File "/usr/local/ lib/python2. 7/dist- packages/ webob/request. py", line 1317, in send api.middleware. fault application, catch_exc_ info=False) api.middleware. fault File "/usr/local/ lib/python2. 7/dist- packages/ webob/request. py", line 1281, in call_application api.middleware. fault app_iter = application( self.environ, start_response) api.middleware. fault File "/usr/local/ lib/python2. 7/dist- packages/ webob/dec. py", line 144, in __cal...
2016-04-04 11:55:49.608 DEBUG manila.share.api [req-f87d56c7-
/opt/stack/
2016-04-04 11:55:49.726 CRITICAL manila.share.api [req-f87d56c7-
53ae01867c7', 'display_name': None, 'user_id': u'f06ded8c55734
4f9804549ae8282
2016-04-04 11:55:49.727 ERROR manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.
2016-04-04 11:55:49.727 TRACE manila.