Seems to work ok now
$ glance --os-image-api-version 2 image-create --container-format bare
--disk-format raw --name trusty2 --file /etc/fstab
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 9cb02fe7fcac26f8a25d6db3109063ae |
| container_format | bare |
| created_at | 2015-08-27T16:45:40Z |
| disk_format | raw |
| id | b16dbfb2-f435-40a8-aa08-2aadaee99cd1 |
| min_disk | 0 |
| min_ram | 0 |
| name | trusty2 |
| owner | 411423405e10431fb9c47ac5b2446557 |
| protected | False |
| size | 145 |
| status | active |
| tags | [] |
| updated_at | 2015-08-27T16:45:40Z |
| virtual_size | None |
| visibility | private |
+------------------+--------------------------------------+
** Changed in: python-glanceclient
Status: Confirmed => Fix Released
--
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 Glance:
Invalid
Status in python-glanceclient:
Fix Released
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