Comment 4 for bug 1541594

Revision history for this message
Bhargavi (challa-bhargavi1) wrote :

We tried to reproduce the issue using below sequence, however we were not able to reproduce the issue.

1. glance image-list
+--------------------------------------+---------------------+
| ID | Name |
+--------------------------------------+---------------------+
| 80662b56-b9b1-4ea6-917b-8b4b649658bb | cirros-0.3.4-x86_64 |
+--------------------------------------+---------------------+

2. glance image-show 80662b56-b9b1-4ea6-917b-8b4b649658bb

Property Value
checksum ee1eca47dc88f4879d8a229cc70a07c6
container_format bare
created_at 2016-03-08T13:35:01Z
disk_format qcow2
id 80662b56-b9b1-4ea6-917b-8b4b649658bb
min_disk 0
min_ram 0
name cirros-0.3.4-x86_64
owner e3b23ca7a1fb4981b80268c2f1c4e352
protected FALSE
size 13287936
status active
tags []
updated_at 2016-03-08T13:35:01Z
virtual_size None
visibility public

3. When I use glance endpoint:
curl -i http://hostname:9292/v2/images/80662b56-b9b1-4ea6-917b-8b4b649658bb -X PATCH -H "Content-Type: application/openstack-images-v2.1-json-patch" -H "Accept: application/json" -H "X-Auth-Token: 358af5f9d8c14637a5729443e1363220" -d '[{"path": "/owner", "value": "1234", "op": "add"}]'

HTTP/1.1 403 Forbidden
Content-Length: 50
Content-Type: text/plain; charset=UTF-8
X-Openstack-Request-Id: req-7b12bb24-2818-4cb6-baea-951ad7a6804a
Date: Wed, 09 Mar 2016 08:54:17 GMT

403 Forbidden

Attribute 'owner' is reserved.

4. When I use keystone endpoint:

curl -i http://bhagi:5000/v2/images/80662b56-b9b1-4ea6-917b-8b4b649658bb -X PATCH -H "Content-Type: application/openstack-images-v2.1-json-patch" -H "Accept: application/json" -H "X-Auth-Token: 358af5f9d8c14637a5729443e1363220" -d '[{"path": "/owner", "value": "1234", "op": "add"}]'
HTTP/1.1 404 Not Found
Date: Wed, 09 Mar 2016 08:53:26 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: X-Auth-Token
X-Distribution: Ubuntu
Content-Length: 93
Content-Type: application/json

{"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

Can you please provide the dumps for above commands when you are seeing the issue