cinder metadata api's raises TypeError with 400 BadRequest if incorrect formatted metadata is passed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Dinesh Bhor |
Bug Description
This issue is there in the common method 'utils.
manage_volume, create_volume, update_volume, create_snapshot, metadata, update_snapshot
[1] https:/
Command:
cinder metadata 6876d9c6-
Curl generated:
curl -g -i -X POST http://
OUTPUT:
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-1d774817-
c-api logs:
2017-03-19 17:08:55.022 INFO cinder.volume.api [req-1d774817-
fully.
2017-03-19 17:08:55.032 ERROR cinder.
esource: object of type 'NoneType' has no len()
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
ess_stack
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
tch
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
eate
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
pdate_volume_
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
e_metadata
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
me_metadata
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
perties
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
2017-03-19 17:08:55.032 TRACE cinder.
The metadata should be of format key=value.
Changed in cinder: | |
assignee: | nobody → Dinesh Bhor (dinesh-bhor) |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. openstack. org/452051
Review: https:/