Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1387467 - glance image-create owner option not working
glance image-create owner option not working
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance (Show other bugs)
8.0 (Liberty)
Unspecified Unspecified
unspecified Severity unspecified
: async
: 8.0 (Liberty)
Assigned To: Cyril Roelandt
Avi Avraham
: Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-20 20:55 EDT by Faiaz Ahmed
Modified: 2016-12-21 11:42 EST (History)
8 users (show)

See Also:
Fixed In Version: openstack-glance-11.0.1-6.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-12-21 11:42:21 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Bugzilla 1087050 None CLOSED [glance] The API v2 reserved property error is not raised when there's nothing to update 2018-10-10 07:56 EDT
Launchpad 1399778 None None None 2016-10-20 20:58 EDT
Launchpad 1420008 None None None 2016-10-20 20:57 EDT
Red Hat Product Errata RHSA-2016:2991 normal SHIPPED_LIVE Moderate: openstack-cinder, openstack-glance, and openstack-nova update 2016-12-21 16:34:31 EST

  None (edit)
Description Faiaz Ahmed 2016-10-20 20:55:17 EDT
Description of problem:
This is similar to the BZ https://bugzilla.redhat.com/show_bug.cgi?id=1087050

Though, this is working on OSP7

Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
# glance image-create --name cirros-owner-test --disk-format qcow2  --container-format bare --file ./cirros-0.3.4-x86_64-disk.img --owner admin
403 Forbidden: Attribute 'owner' is reserved. (HTTP 403)

Additional info:
As per the CLI DOC, 8.4.2. glance image-create (v2) "Owner" option still exists. 

~~~~~~~~~~
--owner <OWNER>
    Owner of the image 
~~~~~~~~~~

https://access.redhat.com/documentation/en/red-hat-openstack-platform/8/single/command-line-interface-reference/#glanceclient_subcommand_image-create_v2,
Comment 3 Cyril Roelandt 2016-11-02 12:08:02 EDT
So, the reason why it works in OSP7 is because v1 was the default back then.

I think backporting https://git.openstack.org/cgit/openstack/glance/commit/?id=d384d4c5b1f69785214a95ef65aaf1c081ca697a would be enough. Unless you have a simple workaround, I'll try that.
Comment 8 Avi Avraham 2016-12-05 06:23:47 EST
verified
[root@undercloud-0 ~]# rpm -qa openstack-glance
openstack-glance-11.0.1-6.el7ost.noarch
glance image-create --name cirros-owner-test3 --disk-format qcow2  --container-format bare --file ./cirros-0.3.4-x86_64-disk.img --owner admin 
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | ee1eca47dc88f4879d8a229cc70a07c6     |
| container_format | bare                                 |
| created_at       | 2016-12-05T11:22:20.000000           |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | 61afefb0-a69c-410c-83da-1cff95319884 |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros-owner-test3                   |
| owner            | admin                                |
| protected        | False                                |
| size             | 13287936                             |
| status           | active                               |
| updated_at       | 2016-12-05T11:22:21.000000           |
| virtual_size     | None                                 |
+------------------+--------------------------------------+
Comment 10 errata-xmlrpc 2016-12-21 11:42:21 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2991.html

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