I think this is actually a glanceclient bug.
In glance v2, the image creation and image data upload are two separate steps.
The reason why this command is failing is because image-create is actually
trying to create a property 'file' with value 'cirros-0.3.1-x86_64-disk.img'.
It is not trying to read and upload the contents of that file.
** Also affects: python-glanceclient
Importance: Undecided
Status: New
** Changed in: python-glanceclient
Status: New => Confirmed
** Changed in: glance
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1302351
Title:
v2 API can't create image - Attribute 'file' is reserved.
Status in OpenStack Image Registry and Delivery Service (Glance):
Invalid
Status in Python client library for Glance:
Confirmed
Bug description:
Trying to create an image with V2 API and get the following error:
glance --os-image-api-version 2 --os-image-url http://glance-icehouse:9292/
image-create --container-format bare --disk-format raw --name trusty2 --file
trusty-server-cloudimg-amd64-disk1.img
Request returned failure status.
403 Forbidden
Attribute 'file' is reserved.
(HTTP 403)
It works fine if I do --os-image-api-version 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1302351/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp