
Clearly nobody really uses the "application/vnd.openstack.image" links in the returned results from GET /v2/{tenant}/images REST API call, since the link URI returned in it is wrong. Glance URIs do *not* contain a project or tenant in the URI structure like Nova's REST API URIs do, but _get_alternate_link() method of the image ViewBuilder tacks it on improperly: Change-Id: I4ccb5628569c60026a1772df0794ac0271c48db3 Closes-Bug: #1343080
39 lines
3.5 KiB
XML
39 lines
3.5 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<images xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1">
|
|
<image name="fakeimage7" id="70a599e0-31e7-49b7-b260-868f441e862b">
|
|
<atom:link href="http://openstack.example.com/v2/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b" rel="self"/>
|
|
<atom:link href="http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b" rel="bookmark"/>
|
|
<atom:link href="http://glance.openstack.example.com/images/70a599e0-31e7-49b7-b260-868f441e862b" type="application/vnd.openstack.image" rel="alternate"/>
|
|
</image>
|
|
<image name="fakeimage123456" id="155d900f-4e14-4e4c-a73d-069cbf4541e6">
|
|
<atom:link href="http://openstack.example.com/v2/openstack/images/155d900f-4e14-4e4c-a73d-069cbf4541e6" rel="self"/>
|
|
<atom:link href="http://openstack.example.com/openstack/images/155d900f-4e14-4e4c-a73d-069cbf4541e6" rel="bookmark"/>
|
|
<atom:link href="http://glance.openstack.example.com/images/155d900f-4e14-4e4c-a73d-069cbf4541e6" type="application/vnd.openstack.image" rel="alternate"/>
|
|
</image>
|
|
<image name="fakeimage123456" id="a2459075-d96c-40d5-893e-577ff92e721c">
|
|
<atom:link href="http://openstack.example.com/v2/openstack/images/a2459075-d96c-40d5-893e-577ff92e721c" rel="self"/>
|
|
<atom:link href="http://openstack.example.com/openstack/images/a2459075-d96c-40d5-893e-577ff92e721c" rel="bookmark"/>
|
|
<atom:link href="http://glance.openstack.example.com/images/a2459075-d96c-40d5-893e-577ff92e721c" type="application/vnd.openstack.image" rel="alternate"/>
|
|
</image>
|
|
<image name="fakeimage6" id="a440c04b-79fa-479c-bed1-0b816eaec379">
|
|
<atom:link href="http://openstack.example.com/v2/openstack/images/a440c04b-79fa-479c-bed1-0b816eaec379" rel="self"/>
|
|
<atom:link href="http://openstack.example.com/openstack/images/a440c04b-79fa-479c-bed1-0b816eaec379" rel="bookmark"/>
|
|
<atom:link href="http://glance.openstack.example.com/images/a440c04b-79fa-479c-bed1-0b816eaec379" type="application/vnd.openstack.image" rel="alternate"/>
|
|
</image>
|
|
<image name="fakeimage123456" id="c905cedb-7281-47e4-8a62-f26bc5fc4c77">
|
|
<atom:link href="http://openstack.example.com/v2/openstack/images/c905cedb-7281-47e4-8a62-f26bc5fc4c77" rel="self"/>
|
|
<atom:link href="http://openstack.example.com/openstack/images/c905cedb-7281-47e4-8a62-f26bc5fc4c77" rel="bookmark"/>
|
|
<atom:link href="http://glance.openstack.example.com/images/c905cedb-7281-47e4-8a62-f26bc5fc4c77" type="application/vnd.openstack.image" rel="alternate"/>
|
|
</image>
|
|
<image name="fakeimage123456" id="cedef40a-ed67-4d10-800e-17455edce175">
|
|
<atom:link href="http://openstack.example.com/v2/openstack/images/cedef40a-ed67-4d10-800e-17455edce175" rel="self"/>
|
|
<atom:link href="http://openstack.example.com/openstack/images/cedef40a-ed67-4d10-800e-17455edce175" rel="bookmark"/>
|
|
<atom:link href="http://glance.openstack.example.com/images/cedef40a-ed67-4d10-800e-17455edce175" type="application/vnd.openstack.image" rel="alternate"/>
|
|
</image>
|
|
<image name="fakeimage123456" id="76fa36fc-c930-4bf3-8c8a-ea2a2420deb6">
|
|
<atom:link href="http://openstack.example.com/v2/openstack/images/76fa36fc-c930-4bf3-8c8a-ea2a2420deb6" rel="self"/>
|
|
<atom:link href="http://openstack.example.com/openstack/images/76fa36fc-c930-4bf3-8c8a-ea2a2420deb6" rel="bookmark"/>
|
|
<atom:link href="http://glance.openstack.example.com/images/76fa36fc-c930-4bf3-8c8a-ea2a2420deb6" type="application/vnd.openstack.image" rel="alternate"/>
|
|
</image>
|
|
</images>
|