[openstack-dev] [cinder] Should we fix XML request issues?

Jethani, Ravishekar ravishekar.jethani at nttdata.com
Fri Jan 15 06:14:45 UTC 2016


Hi Devs,

I have come across a few 500 response issues while sending request
body as XML to cinder service. For example:

------------------
openstack at openstack-136:/opt/stack/cinder$ curl -i -X PUT -H "X-Auth-Token: 79e6f8f529d2494b81dbd1a6ea5e077d"  -H "Accept: application/xml" "http://10.69.4.136:8776/v2/0fea9a45c8504875bcda9690a5625eab/volumes/921d806e-313f-47f5-9a1a-3ecffa0aa8ba/metadata" -H "Content-Type: application/xml" -d '<?xml version='1.0' encoding='UTF-8'?> <metadata>  <meta key="key">v2</meta> </metadata>'
HTTP/1.1 500 Internal Server Error
Content-Length: 215
Content-Type: application/xml; charset=UTF-8
X-Compute-Request-Id: req-177f7212-af65-4bad-84d0-aac0263d46eb
X-Openstack-Request-Id: req-177f7212-af65-4bad-84d0-aac0263d46eb
Date: Thu, 14 Jan 2016 07:28:06 GMT

<computeFault code="500" xmlns="http://docs.openstack.org/api/openstack-block-storage/2.0/content"><message>The server has either erred or is incapable of performing the requested operation.</message></computeFault>openstack at openstack-136:/opt/stack/cinder$


LOG:
2016-01-13 23:28:06.420 DEBUG eventlet.wsgi.server [-] (7587) accepted ('10.69.4.136', 59959) from (pid=7587) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:826
2016-01-13 23:28:06.678 DEBUG oslo_policy._cache_handler [req-177f7212-af65-4bad-84d0-aac0263d46eb e1079bbb3aa54660b2cacd9c8ca1e1d7 0fea9a45c8504875bcda9690a5625eab] Reloading cached file /etc/cinder/policy.json from (pid=7587) read_cached_file /usr/local/lib/python2.7/dist-packages/oslo_policy/_cache_handler.py:38
2016-01-13 23:28:06.680 DEBUG oslo_policy.policy [req-177f7212-af65-4bad-84d0-aac0263d46eb e1079bbb3aa54660b2cacd9c8ca1e1d7 0fea9a45c8504875bcda9690a5625eab] Reloaded policy file: /etc/cinder/policy.json from (pid=7587) _load_policy_file /usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py:493
2016-01-13 23:28:06.890 INFO cinder.api.openstack.wsgi [req-177f7212-af65-4bad-84d0-aac0263d46eb e1079bbb3aa54660b2cacd9c8ca1e1d7 0fea9a45c8504875bcda9690a5625eab] PUT http://10.69.4.136:8776/v2/0fea9a45c8504875bcda9690a5625eab/volumes/921d806e-313f-47f5-9a1a-3ecffa0aa8ba/metadata
2016-01-13 23:28:06.891 ERROR cinder.api.middleware.fault [req-177f7212-af65-4bad-84d0-aac0263d46eb e1079bbb3aa54660b2cacd9c8ca1e1d7 0fea9a45c8504875bcda9690a5625eab] Caught error:
2016-01-13 23:28:06.892 INFO cinder.api.middleware.fault [req-177f7212-af65-4bad-84d0-aac0263d46eb e1079bbb3aa54660b2cacd9c8ca1e1d7 0fea9a45c8504875bcda9690a5625eab] http://10.69.4.136:8776/v2/0fea9a45c8504875bcda9690a5625eab/volumes/921d806e-313f-47f5-9a1a-3ecffa0aa8ba/metadata returned with HTTP 500
2016-01-13 23:28:06.893 WARNING cinder.api.openstack.wsgi [req-177f7212-af65-4bad-84d0-aac0263d46eb e1079bbb3aa54660b2cacd9c8ca1e1d7 0fea9a45c8504875bcda9690a5625eab] Deprecated: XML support has been deprecated and will be removed in the N release.
2016-01-13 23:28:06.894 INFO eventlet.wsgi.server [req-177f7212-af65-4bad-84d0-aac0263d46eb e1079bbb3aa54660b2cacd9c8ca1e1d7 0fea9a45c8504875bcda9690a5625eab] 10.69.4.136 "PUT /v2/0fea9a45c8504875bcda9690a5625eab/volumes/921d806e-313f-47f5-9a1a-3ecffa0aa8ba/metadata HTTP/1.1" status: 500  len: 487 time: 0.4734759
--------------------

I can see that XML support has been marked as depricated and will be
removed in 'N' release. So is it still worth trying fixing these
issues during Mitaka time frame?

Thanks.
Ravi Jethani

______________________________________________________________________
Disclaimer: This email and any attachments are sent in strictest confidence
for the sole use of the addressee and may contain legally privileged,
confidential, and proprietary data. If you are not the intended recipient,
please advise the sender by replying promptly to this email and then delete
and destroy this email and any attachments without any further use, copying
or forwarding.



More information about the OpenStack-dev mailing list