yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04478
[Bug 1220610] [NEW] glance image-create with --owner only work on tenant ID
You have been subscribed to a public bug:
running:
glance image-create --name tenant --disk-format qcow2 --container-format bare --location http://XXXXXXXX --owner dafna
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | None |
| container_format | bare |
| created_at | 2013-09-04T08:55:45 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 52357c0a-7d9e-4c22-85ab-84a71bb0cfdc |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | tenant |
| owner | dafna |
| protected | False |
| size | 1974140928 |
| status | active |
| updated_at | 2013-09-04T08:55:45 |
+------------------+--------------------------------------+
will give no errors but the image is not created.
only if I give the ID of the image, the image is created
[root@opens-vdsb ~(keystone_admin)]# glance image-create --name tenant --disk-format qcow2 --container-format bare --location http://XXXXXXXX --owner e91123ca35724285a783f33103875dcb
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | None |
| container_format | bare |
| created_at | 2013-09-04T08:56:26 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 68df9bcc-492e-470d-bbce-bb40f94ec27b |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | tenant |
| owner | e91123ca35724285a783f33103875dcb |
| protected | False |
| size | 1974140928 |
| status | active |
| updated_at | 2013-09-04T08:56:27 |
+------------------+--------------------------------------+
[dron@opens-vdsb /(keystone_admin)]$ glance image-list
+--------------------------------------+--------+-------------+------------------+------------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+--------+-------------+------------------+------------+--------+
| cf34a754-5dec-4537-b2d3-0446cd5a3a18 | dron | qcow2 | bare | 699592704 | active |
| 68df9bcc-492e-470d-bbce-bb40f94ec27b | tenant | qcow2 | bare | 1974140928 | active |
+--------------------------------------+--------+-------------+------------------+------------+--------+
I think we need at least one of the blow fixes to improve glance api:
1. we should be able to create an owned image using tenant name
2. if this will be blocked we should block commnad from running for wrong param supplied.
** Affects: glance
Importance: Undecided
Status: New
--
glance image-create with --owner only work on tenant ID
https://bugs.launchpad.net/bugs/1220610
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance.