Activity log for bug #1674233

Date Who What changed Old value New value Message
2017-03-20 06:23:25 Dinesh Bhor bug added bug
2017-03-20 06:23:34 Dinesh Bhor cinder: assignee Dinesh Bhor (dinesh-bhor)
2017-03-21 06:15:44 Dinesh Bhor description This issue is there in the common method 'utils.check_metadata_properties' [1] which is not doing metadata validation properly which causes failure in below listed api's: manage_volume, create_volume, update_volume, create_snapshot, metadata, update_snapshot [1] https://github.com/openstack/cinder/blob/master/cinder/utils.py#L161-L181 Command: cinder metadata 6876d9c6-0e3e-48c9-a833-c377591affc9 set sdf OUTPUT: ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-1d774817-8671-49cc-bd21-f44f7ad19b06) c-api logs: 2017-03-19 17:08:55.022 INFO cinder.volume.api [req-1d774817-8671-49cc-bd21-f44f7ad19b06 admin admin] Volume info retrieved success fully. 2017-03-19 17:08:55.032 ERROR cinder.api.openstack.wsgi [req-1d774817-8671-49cc-bd21-f44f7ad19b06 admin admin] Exception handling r esource: object of type 'NoneType' has no len() 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi Traceback (most recent call last): 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 902, in _proc ess_stack 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 997, in dispa tch 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi return method(req=request, **action_args) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/v2/volume_metadata.py", line 55, in cr eate 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi use_create=True) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/v2/volume_metadata.py", line 96, in _u pdate_volume_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 101, in wrapped 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi return func(self, context, target_obj, *args, **kwargs) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 1043, in create_volum e_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi db_meta = self._update_volume_metadata(context, volume, metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 1069, in _update_volu me_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi utils.check_metadata_properties(metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/utils.py", line 177, in check_metadata_pro perties 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi if len(v) > 255: 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi TypeError: object of type 'NoneType' has no len() 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi The metadata should be of format key=value. This issue is there in the common method 'utils.check_metadata_properties' [1] which is not doing metadata validation properly which causes failure in below listed api's: manage_volume, create_volume, update_volume, create_snapshot, metadata, update_snapshot [1] https://github.com/openstack/cinder/blob/master/cinder/utils.py#L161-L181 Command: cinder metadata 6876d9c6-0e3e-48c9-a833-c377591affc9 set sdf Curl generated: curl -g -i -X POST http://10.232.48.201:8776/v2/a3fe59b4d05141bf9c1e76d41701c7bc/volumes/5adc0381-5e57-4e3a-9771-18b53d973f50/metadata -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}22cc6371f97a4cbffb977ac4650c1cde25f83d07" -d '{"metadata": {"sdf": null}}' OUTPUT: ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-1d774817-8671-49cc-bd21-f44f7ad19b06) c-api logs: 2017-03-19 17:08:55.022 INFO cinder.volume.api [req-1d774817-8671-49cc-bd21-f44f7ad19b06 admin admin] Volume info retrieved success fully. 2017-03-19 17:08:55.032 ERROR cinder.api.openstack.wsgi [req-1d774817-8671-49cc-bd21-f44f7ad19b06 admin admin] Exception handling r esource: object of type 'NoneType' has no len() 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi Traceback (most recent call last): 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 902, in _proc ess_stack 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 997, in dispa tch 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi return method(req=request, **action_args) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/v2/volume_metadata.py", line 55, in cr eate 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi use_create=True) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/v2/volume_metadata.py", line 96, in _u pdate_volume_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 101, in wrapped 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi return func(self, context, target_obj, *args, **kwargs) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 1043, in create_volum e_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi db_meta = self._update_volume_metadata(context, volume, metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 1069, in _update_volu me_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi utils.check_metadata_properties(metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/utils.py", line 177, in check_metadata_pro perties 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi if len(v) > 255: 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi TypeError: object of type 'NoneType' has no len() 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi The metadata should be of format key=value.
2017-03-21 06:16:09 Dinesh Bhor description This issue is there in the common method 'utils.check_metadata_properties' [1] which is not doing metadata validation properly which causes failure in below listed api's: manage_volume, create_volume, update_volume, create_snapshot, metadata, update_snapshot [1] https://github.com/openstack/cinder/blob/master/cinder/utils.py#L161-L181 Command: cinder metadata 6876d9c6-0e3e-48c9-a833-c377591affc9 set sdf Curl generated: curl -g -i -X POST http://10.232.48.201:8776/v2/a3fe59b4d05141bf9c1e76d41701c7bc/volumes/5adc0381-5e57-4e3a-9771-18b53d973f50/metadata -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}22cc6371f97a4cbffb977ac4650c1cde25f83d07" -d '{"metadata": {"sdf": null}}' OUTPUT: ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-1d774817-8671-49cc-bd21-f44f7ad19b06) c-api logs: 2017-03-19 17:08:55.022 INFO cinder.volume.api [req-1d774817-8671-49cc-bd21-f44f7ad19b06 admin admin] Volume info retrieved success fully. 2017-03-19 17:08:55.032 ERROR cinder.api.openstack.wsgi [req-1d774817-8671-49cc-bd21-f44f7ad19b06 admin admin] Exception handling r esource: object of type 'NoneType' has no len() 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi Traceback (most recent call last): 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 902, in _proc ess_stack 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 997, in dispa tch 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi return method(req=request, **action_args) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/v2/volume_metadata.py", line 55, in cr eate 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi use_create=True) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/v2/volume_metadata.py", line 96, in _u pdate_volume_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 101, in wrapped 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi return func(self, context, target_obj, *args, **kwargs) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 1043, in create_volum e_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi db_meta = self._update_volume_metadata(context, volume, metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 1069, in _update_volu me_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi utils.check_metadata_properties(metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/utils.py", line 177, in check_metadata_pro perties 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi if len(v) > 255: 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi TypeError: object of type 'NoneType' has no len() 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi The metadata should be of format key=value. This issue is there in the common method 'utils.check_metadata_properties' [1] which is not doing metadata validation properly which causes failure in below listed api's: manage_volume, create_volume, update_volume, create_snapshot, metadata, update_snapshot [1] https://github.com/openstack/cinder/blob/master/cinder/utils.py#L161-L181 Command: cinder metadata 6876d9c6-0e3e-48c9-a833-c377591affc9 set sdf Curl generated: curl -g -i -X POST http://10.232.48.201:8776/v2/a3fe59b4d05141bf9c1e76d41701c7bc/volumes/6876d9c6-0e3e-48c9-a833-c377591affc9/metadata -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}22cc6371f97a4cbffb977ac4650c1cde25f83d07" -d '{"metadata": {"sdf": null}}' OUTPUT: ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-1d774817-8671-49cc-bd21-f44f7ad19b06) c-api logs: 2017-03-19 17:08:55.022 INFO cinder.volume.api [req-1d774817-8671-49cc-bd21-f44f7ad19b06 admin admin] Volume info retrieved success fully. 2017-03-19 17:08:55.032 ERROR cinder.api.openstack.wsgi [req-1d774817-8671-49cc-bd21-f44f7ad19b06 admin admin] Exception handling r esource: object of type 'NoneType' has no len() 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi Traceback (most recent call last): 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 902, in _proc ess_stack 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/openstack/wsgi.py", line 997, in dispa tch 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi return method(req=request, **action_args) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/v2/volume_metadata.py", line 55, in cr eate 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi use_create=True) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/api/v2/volume_metadata.py", line 96, in _u pdate_volume_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 101, in wrapped 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi return func(self, context, target_obj, *args, **kwargs) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 1043, in create_volum e_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi db_meta = self._update_volume_metadata(context, volume, metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/volume/api.py", line 1069, in _update_volu me_metadata 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi utils.check_metadata_properties(metadata) 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi File "/opt/stack/cinder/cinder/utils.py", line 177, in check_metadata_pro perties 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi if len(v) > 255: 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi TypeError: object of type 'NoneType' has no len() 2017-03-19 17:08:55.032 TRACE cinder.api.openstack.wsgi The metadata should be of format key=value.
2017-03-31 06:16:43 OpenStack Infra cinder: status New In Progress
2017-04-12 22:23:18 OpenStack Infra cinder: status In Progress Fix Released