I noticed that the flavor self link is missing from a server's GET response. Since we return the self link for the server's image, it seems odd for it to be missing for the flavor.
Daryls-MacBook-Pro:zodiac dwalleck$ curl -i -H "X-Auth-Token: 9ceb158daab24d5e813bbbcb7c2f503b" http://127.0.0.1:8774/v2/a7d84f9effeb47f59b1838d6ebc3aef7/servers/aef8ac3f-60d2-4e6c-9085-6ab01dd354a2
HTTP/1.1 200 OK
X-Compute-Request-Id: req-9554caec-c78e-46f5-a8c4-4dc6adc28789
Content-Type: application/json
Content-Length: 1371
Date: Fri, 06 Apr 2012 14:47:05 GMT
{"server": {"OS-EXT-STS:task_state": null, "addresses": {"private": [{"version": 4, "addr": "10.0.0.2"}]}, "links": [{"href": "http://127.0.0.1:8774/v2/a7d84f9effeb47f59b1838d6ebc3aef7/servers/aef8ac3f-60d2-4e6c-9085-6ab01dd354a2", "rel": "self"}, {"href": "http://127.0.0.1:8774/a7d84f9effeb47f59b1838d6ebc3aef7/servers/aef8ac3f-60d2-4e6c-9085-6ab01dd354a2", "rel": "bookmark"}], "image": {"id": "f0ab6f51-65c5-4375-8891-41498e5a0f4f", "links": [{"href": "http://127.0.0.1:8774/a7d84f9effeb47f59b1838d6ebc3aef7/images/f0ab6f51-65c5-4375-8891-41498e5a0f4f", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000001", "flavor": {"id": "1", "links": [{"href": "http://127.0.0.1:8774/a7d84f9effeb47f59b1838d6ebc3aef7/flavors/1", "rel": "bookmark"}]}, "id": "aef8ac3f-60d2-4e6c-9085-6ab01dd354a2", "user_id": "18d53cdbbef0443c80c675fa5b77a935", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "status": "ACTIVE", "updated": "2012-04-06T14:45:53Z", "hostId": "70ca6c8a65a0bf557cbf611a2f67d351b20298a6f7985fb0fca5c591", "OS-EXT-SRV-ATTR:host": "devstack2", "key_name": "", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "name": "a1", "created": "2012-04-06T14:45:40Z", "tenant_id": "a7d84f9effeb47f59b1838d6ebc3aef7", "metadata": {}}}
We don't return the images self link either. Perhaps we should start returning self links in both? Maybe we don't because we can't guarantee what version they were from?