Hi,
When I am running Glance Client tool against glance service using the following command:
> glance --debug --os-image-api-version 2 image-list
I get the followng output:
curl -i -X GET -H 'X-Auth-Token: rO0ABXc4ACAyYzlkYTk4ZDQwZGVmNWU2MDE0MGZjZDI0OThiMzk3MQAGbWdyb3N6AAQzMDQ3AAABQP0JOAs' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' -k https://cb.alucloud.local/al-openstack/v2/schemas/image
(9, 'Bad file descriptor')
--------------------------------------------------------------------------------------------------------------------------------------------
*BUT* when I am running just the exact curl command you see in the debug log
> curl -i -X GET -H 'X-Auth-Token: rO0ABXc4ACAyYzlkYTk4ZDQwZGVmNWU2MDE0MGZjZDI0OThiMzk3MQAGbWdyb3N6AAQzMDQ3AAABQP0JOAs' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' -k https://cb.alucloud.local/al-openstack/v2/schemas/image
I get what am I expecting to get - the JSON schema:
HTTP/1.1 200 OK
Date: Sun, 08 Sep 2013 09:51:04 GMT
Content-Type: application/json
Content-Length: 4958
Connection: close
{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"visibility":{"type":"string","enum":["public","private"]},"file":{"type":"string"},"status":{"type":"string"},"minDisk":{"type":"integer"},"minRam":{"type":"integer"},"progress":{"type":"integer"},"userId":{"type":"string"},"metadata":{"type":"object"},"self":{"type":"string"},"size":{"type":"number"},"schema":{"type":"string"},"checksum":{"type":"string"},"customerId":{"type":"string"},"updated_at":{"type":"string"},"created_at":{"type":"string"},"container_format":{"type":"string","enum":["ovf","bare","aki","ari","ami"]},"disk_format":{"type":"string","enum":["raw","vhd","vmdk","vdi","iso","qcow2","aki","ari","ami"]},"name":"image"}
Can you try a curl command similar to the above but changing "v2/schemas/image" to "v2/images", please?