API break: image metadata format changed in Newton
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
Critical
|
Vitalii Gridnev | ||
Newton |
Fix Released
|
Critical
|
Vitalii Gridnev |
Bug Description
Apparently the server returns the metadata for an image registered in Sahara in a different format starting from Newton. This is (if confirmed) an API breakage and should be reverted before the final release.
The following program works when run against Mitaka, but not against Newton, both with saharaclient 0.13 (mitaka) and 0.18 (newton).
-------
#!/usr/bin/python
from keystoneauth1.
from keystoneauth1 import session
from saharaclient import client as sahara_client
def main():
auth = v3.Password(
ses = session.
client = sahara_
# ID of an image registered as Sahara image with some tags
image_id = '41360709-
reg_image = client.
print reg_image.metadata
if __name__ == '__main__':
main()
-------
Returned value when run against Mitaka:
{u'_sahara_
Returned value when run against Newton:
Traceback (most recent call last):
File "./saharaclient
main()
File "./saharaclient
print reg_image.metadata
AttributeError: 'Image' object has no attribute 'metadata'
Apparently on Newton the tags are not in a separate metadata dict, but represented as the other values, inside reg_image.
The breakage seems to trace back to this change:
https:/
For the record, this was found by trying to unblock https:/
Changed in sahara: | |
importance: | Undecided → Critical |
assignee: | nobody → Vitaly Gridnev (vgridnev) |
milestone: | none → ocata-1 |
status: | New → Confirmed |
Changed in sahara: | |
status: | Confirmed → In Progress |
Fix proposed to branch: stable/newton /review. openstack. org/376519
Review: https:/