Bug 1102009 - v2 API Image-create --file, 403 forbidden attribute 'file' is read-only
Summary: v2 API Image-create --file, 403 forbidden attribute 'file' is read-only
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-glanceclient
Version: 5.0 (RHEL 7)
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
: 7.0 (Kilo)
Assignee: CIndy Pallares
QA Contact: Dafna Ron
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-28 10:45 UTC by Tzach Shefi
Modified: 2016-04-26 13:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-25 09:40:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Glance api.log (28.13 KB, text/plain)
2014-05-28 10:45 UTC, Tzach Shefi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1324067 0 None None None Never
OpenStack gerrit 128347 0 None None None Never

Description Tzach Shefi 2014-05-28 10:45:14 UTC
Created attachment 899928 [details]
Glance api.log

Description of problem: On a semi distributed setup, Glance back-end is a Gluster volume, v2 API image-create from source --file fails. 

[root@puma31 ~(keystone_admin)]# glance --os-image-api-version 2  image-create --name apiV2FromFile --disk-format qcow2 --container-format bare --file cirros-0.3.2-x86_64-disk.img
Request returned failure status.
403 Forbidden
Attribute 'file' is read-only.
    (HTTP 403)

Same command from v1 API, works fine. 


Version-Release number of selected component (if applicable):
RHEL7
python-glanceclient-0.12.0-1.el7ost.noarch
python-glance-2014.1-2.el7ost.noarch
openstack-glance-2014.1-2.el7ost.noarch


How reproducible:
Every time

Steps to Reproduce:
1. # glance --os-image-api-version 2  image-create ... --file <file>
2.
3.

Actual results: Failed to create image, error:

Request returned failure status.                                                                         
403 forbidden 

Attribute 'file' is read-only.                                                                                                                                     
    (HTTP 403)    

Expected results:

Image should be created successfully.


Note You need to log in before you can comment on or make changes to this bug.