[Yahoo-eng-team] [Bug 1389618] [NEW] "glance member-create" CLI adds non existing member/tenant with image
Public bug reported: "glance member-create" CLI Shares a specific image with a tenant. usage: glance member-create [--can-share] Positional arguments: Image to add member to. Tenant to add as member If I pass a non-existing tenant as , it also accept that and adds as a member of that image while it should raise error as "No tenant with a name or ID of '-' exists." Below are the command execution logs- $ keystone tenant-list +--+--+-+ |id| name | enabled | +--+--+-+ | a1c37cc595024369aa2124b50adaa0b8 | admin | True | | 31dd5bdca08e4ce0b208ef618142875b | cephtest | True | | 944ffc3c82f088eb7f61bc77bef0 | demo | True | | ed34d901e2314ab6a93e01ebad44e445 | service | True | +--+--+-+ $ glance image-list +--++-+--+++ | ID | Name | Disk Format | Container Format | Size | Status | +--++-+--+++ | 90368993-bd57-4b99-b371-98ff771b9c3f | ceph-test-image| raw | bare | 13147648 | active | | e3d88dcf-8c96-425e-b5eb-0d64c737d193 | ceph-test-snapshot | raw | bare | 1073741824 | active | | 8ead940a-6ee8-43db-b45d-8895c5c59805 | ceph-test-yatin| raw | bare | 13147648 | active | $ glance member-create 8ead940a-6ee8-43db-b45d-8895c5c59805 a1c37cc595024369 --> with incomplete or wrong Tenant-ID $ glance member-list --image-id 8ead940a-6ee8-43db-b45d-8895c5c59805 +--+--+---+ | Image ID | Member ID| Can Share | +--+--+---+ | 8ead940a-6ee8-43db-b45d-8895c5c59805 | a1c37cc595024369 | | +--+--+---+ ** Affects: glance Importance: Undecided Status: New ** Description changed: "glance member-create" CLI Shares a specific image with a tenant. usage: glance member-create [--can-share] Positional arguments: - Image to add member to. - Tenant to add as member + Image to add member to. + Tenant to add as member - - If I pass a non-existing tenant as , it also accept that and adds as a member of that image while it should raise + If I pass a non-existing tenant as , it also accept that and adds as a member of that image while it should raise error as "No tenant with a name or ID of '-' exists." Below are the command execution logs- $ keystone tenant-list +--+--+-+ |id| name | enabled | +--+--+-+ | a1c37cc595024369aa2124b50adaa0b8 | admin | True | | 31dd5bdca08e4ce0b208ef618142875b | cephtest | True | | 944ffc3c82f088eb7f61bc77bef0 | demo | True | | ed34d901e2314ab6a93e01ebad44e445 | service | True | +--+--+-+ $ glance image-list +--++-+--+++ | ID | Name | Disk Format | Container Format | Size | Status | +--++-+--+++ | 90368993-bd57-4b99-b371-98ff771b9c3f | ceph-test-image| raw | bare | 13147648 | active | | e3d88dcf-8c96-425e-b5eb-0d64c737d193 | ceph-test-snapshot | raw | bare | 1073741824 | active | | 8ead940a-6ee8-43db-b45d-8895c5c59805 | ceph-test-yatin| raw | bare | 13147648 | active | + $ glance member-create 8ead940a-6ee8-43db-b45d-8895c5c59805 + a1c37cc595024369 --> with incomplete or wrong Tenant-ID - $ glance member-create 8ead940a-6ee8-43db-b45d-8895c5c59805 a1c37cc595024369 --> with incomplete or wrong Tenant-ID - - necadmin@nechldcst-PowerEdge-2950:~$ glance member-list --image-id 8ead940a-6ee8-43db-b45d-8895c5c59805 + $ glance member-list --image-id 8ead940a-6ee8-43db-b45d-8895c5c59805 +--+--+---+ | Image ID | Member ID| Can Share | +--+--+---+ | 8ead940a-6ee8-43db-b45d-8895c5c59805 | a1c37cc595024369 | | +-
[Yahoo-eng-team] [Bug 1389110] [NEW] 'glance member-list' CLI lists information with wrong tenant-id
Public bug reported: "glance member-list" CLI with wrong tenant-id returns "200 OK" and generate information while it is expected 404 Not Found. Below are the command execution logs- $ keystone tenant-list +--+--+-+ |id| name | enabled | +--+--+-+ | a1c37cc595024369aa2124b50adaa0b8 | admin | True | | 31dd5bdca08e4ce0b208ef618142875b | cephtest | True | | 944ffc3c82f088eb7f61bc77bef0 | demo | True | | ed34d901e2314ab6a93e01ebad44e445 | service | True | +--+--+-+ $ glance --debug member-list --tenant-id 31dd5bd curl -i -X GET -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'Accept-Encoding: gzip, deflate, compress' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}bf02401aa8b7a79b29e5db2c015bee9d111ea600' http://controller:9292/v1/shared-images/31dd5bd HTTP/1.1 200 OK date: Tue, 04 Nov 2014 07:44:49 GMT content-length: 21 content-type: application/json; charset=UTF-8 x-openstack-request-id: req-398f3434-d5d1-4d22-a126-c4edcd6b7cfd {"shared_images": []} +--+---+---+ | Image ID | Member ID | Can Share | +--+---+---+ +--+---+-------+ ** Affects: glance Importance: Undecided Assignee: Ankur Gupta (ankur-gupta-v) Status: New ** Changed in: glance Assignee: (unassigned) => Ankur Gupta (ankur-gupta-v) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1389110 Title: 'glance member-list' CLI lists information with wrong tenant-id Status in OpenStack Image Registry and Delivery Service (Glance): New Bug description: "glance member-list" CLI with wrong tenant-id returns "200 OK" and generate information while it is expected 404 Not Found. Below are the command execution logs- $ keystone tenant-list +--+--+-+ |id| name | enabled | +--+--+-+ | a1c37cc595024369aa2124b50adaa0b8 | admin | True | | 31dd5bdca08e4ce0b208ef618142875b | cephtest | True | | 944ffc3c82f088eb7f61bc77bef0 | demo | True | | ed34d901e2314ab6a93e01ebad44e445 | service | True | +--+--+-+ $ glance --debug member-list --tenant-id 31dd5bd curl -i -X GET -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'Accept-Encoding: gzip, deflate, compress' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}bf02401aa8b7a79b29e5db2c015bee9d111ea600' http://controller:9292/v1/shared-images/31dd5bd HTTP/1.1 200 OK date: Tue, 04 Nov 2014 07:44:49 GMT content-length: 21 content-type: application/json; charset=UTF-8 x-openstack-request-id: req-398f3434-d5d1-4d22-a126-c4edcd6b7cfd {"shared_images": []} +--+---+---+ | Image ID | Member ID | Can Share | +--+---+---+ +--+---+---+ To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1389110/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1369992] [NEW] "glance image-delete" CLI is not functioning as expected.
Public bug reported: Below are the help content of Glance image delete- $ glance help image-delete usage: glance image-delete [ ...] Delete specified image(s). Positional arguments: Name or ID of image(s) to delete. Here were can pass Name or ID of image to delete. There problem is here that if I am trying to delete a non public image through its name, it returns below message - "No image with a name or ID of '' exists" while if I am passing "ID" of non public image, it deletes it successfully. JFYI- In the case of public image, CLI works as expected for Name and ID both. Below are the command execution logs- $ glance image-list --is-public="False" +--+--+-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--+--+-+--+--++ | 37adaa79-7b09-4d65-abb2-7d8848447ddb | Cirros 0.3.1 | qcow2 | bare | 13147648 | active | | c5566731-e9a5-4b63-b409-813f9d83fb40 | test13 | vmdk| ovf | | queued | +--+--+-+--+--++ $ glance image-delete test13 No image with a name or ID of 'test13' exists $ glance image-list --is-public="False" +--+--+-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--+--+-+--+--++ | 37adaa79-7b09-4d65-abb2-7d8848447ddb | Cirros 0.3.1 | qcow2 | bare | 13147648 | active | | c5566731-e9a5-4b63-b409-813f9d83fb40 | test13 | vmdk| ovf | | queued | +--+--+-+--+--++ $ glance image-delete c5566731-e9a5-4b63-b409-813f9d83fb40 $ glance image-list --is-public="False" +--+--+-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--+--+-+--+--++ | 37adaa79-7b09-4d65-abb2-7d8848447ddb | Cirros 0.3.1 | qcow2 | bare | 13147648 | active | +--+--+-+--+--++ $ glance --version 0.12.0 ** Affects: glance Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1369992 Title: "glance image-delete" CLI is not functioning as expected. Status in OpenStack Image Registry and Delivery Service (Glance): New Bug description: Below are the help content of Glance image delete- $ glance help image-delete usage: glance image-delete [ ...] Delete specified image(s). Positional arguments: Name or ID of image(s) to delete. Here were can pass Name or ID of image to delete. There problem is here that if I am trying to delete a non public image through its name, it returns below message - "No image with a name or ID of '' exists" while if I am passing "ID" of non public image, it deletes it successfully. JFYI- In the case of public image, CLI works as expected for Name and ID both. Below are the command execution logs- $ glance image-list --is-public="False" +--+--+-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--+--+-+--+--++ | 37adaa79-7b09-4d65-abb2-7d8848447ddb | Cirros 0.3.1 | qcow2 | bare | 13147648 | active | | c5566731-e9a5-4b63-b409-813f9d83fb40 | test13 | vmdk| ovf | | queued | +--+--+-+--+--++ $ glance image-delete test13 No image with a name or ID of 'test13' exists $ glance image-list --is-public="False" +--+--+-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +---
[Yahoo-eng-team] [Bug 1348046] Re: glance image created successfully but it is not displaying through "glance image-list"
My apologies for my lack of knowledge. I got my answers. If I excute command "glance image-list" default it will be excuted with "--is-public=TRUE" option and if I want to check for non-public images, I should excute command- "glance image-list --is-public=FALSE". -necadmin@controller:~$ glance image-list +--++-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--++-+--+--++ | 8f70f9f8-1b4b-41c3-ac51-5ebe223c00f2 | myimage3 | raw | bare | 13167616 | active | | ef884e27-54f7-4ec3-b355-35beef53fedb | myimage6 | raw | bare | 13167616 | active | | 4c5d2462-ead3-48f5-9fda-012697b40f67 | ubuntu.iso | iso | bare | 38797312 | active | +--++-+--+--++ necadmin@controller:~$ glance image-list --is-public=FALSE +--+--+-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--+--+-+--+--++ | 55771b7b-08af-448d-8a7f-204759d5768d | myimage | qcow2 | bare | 13167616 | active | | e0d1f097-2d1b-4ab8-a1a9-96dc70426682 | myimage1 | qcow2 | bare | 13167616 | active | | e9cc2150-7e7a-4a8f-92cc-f12267e13ceb | myimage4 | raw | bare | 13167616 | active | | 3af7b4bc-8240-4b63-9880-e8b1b2606426 | myimage5 | raw | bare | 13167616 | active | +--+--+-+--+--++ necadmin@controller:~$ glance image-list --is-public=TRUE +--++-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--++-+--+--++ | 8f70f9f8-1b4b-41c3-ac51-5ebe223c00f2 | myimage3 | raw | bare | 13167616 | active | | ef884e27-54f7-4ec3-b355-35beef53fedb | myimage6 | raw | bare | 13167616 | active | | 4c5d2462-ead3-48f5-9fda-012697b40f67 | ubuntu.iso | iso | bare | 38797312 | active | +--++-+--+--++ ** Changed in: glance Status: New => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1348046 Title: glance image created successfully but it is not displaying through "glance image-list" Status in OpenStack Image Registry and Delivery Service (Glance): Invalid Bug description: I created glance image through below CLI- glance image-create --name myimage1 --disk-format=raw --container-format=bare --location=http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img +--+--+ | Property | Value| +--+--+ | checksum | None | | container_format | bare | | created_at | 2014-07-24T05:58:56 | | deleted | False| | deleted_at | None | | disk_format | raw | | id | e0d1f097-2d1b-4ab8-a1a9-96dc70426682 | | is_public| False| | min_disk | 0| | min_ram | 0| | name | myimage1 | | owner| None | | protected| False| | size | 13167616 | | status | active | | updated_at | 2014-07-24T05:58:58 | | virtual_size | None | +--+--+ Check image List through "glance image-list" --> necadmin@controller:~$ glance image-list +--++-+--+--++ | ID | Name | Disk Format | Container Format | Si
[Yahoo-eng-team] [Bug 1348046] [NEW] glance image created successfully but it is not displaying through "glance image-list"
Public bug reported: I created glance image through below CLI- glance image-create --name myimage1 --disk-format=raw --container-format=bare --location=http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img +--+--+ | Property | Value| +--+--+ | checksum | None | | container_format | bare | | created_at | 2014-07-24T05:58:56 | | deleted | False| | deleted_at | None | | disk_format | raw | | id | e0d1f097-2d1b-4ab8-a1a9-96dc70426682 | | is_public| False| | min_disk | 0| | min_ram | 0| | name | myimage1 | | owner| None | | protected| False| | size | 13167616 | | status | active | | updated_at | 2014-07-24T05:58:58 | | virtual_size | None | +--+--+ Check image List through "glance image-list" --> necadmin@controller:~$ glance image-list +--++-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--++-+--+--++ | 4c5d2462-ead3-48f5-9fda-012697b40f67 | ubuntu.iso | iso | bare | 38797312 | active | +--++-+--+--++ Check image list through "nova image-list" --> necadmin@controller:~$ nova image-list +--++++ | ID | Name | Status | Server | +--++++ | 55771b7b-08af-448d-8a7f-204759d5768d | myimage| ACTIVE || | e0d1f097-2d1b-4ab8-a1a9-96dc70426682 | myimage1 | ACTIVE || | 4c5d2462-ead3-48f5-9fda-012697b40f67 | ubuntu.iso | ACTIVE || +--++++ I though it may be because of disk format. So I updated disk format to "qcow2" and check again- necadmin@controller:~$ glance image-update --disk-format=qcow2 e0d1f097-2d1b-4ab8-a1a9-96dc70426682 +--+--+ | Property | Value| +--+--+ | checksum | None | | container_format | bare | | created_at | 2014-07-24T05:58:56 | | deleted | False| | deleted_at | None | | disk_format | qcow2| | id | e0d1f097-2d1b-4ab8-a1a9-96dc70426682 | | is_public| False| | min_disk | 0| | min_ram | 0| | name | myimage1 | | owner| None | | protected| False| | size | 13167616 | | status | active | | updated_at | 2014-07-24T06:02:52 | | virtual_size | None | +--+--+ necadmin@controller:~$ nova image-list +--++++ | ID | Name | Status | Server | +--++++ | 55771b7b-08af-448d-8a7f-204759d5768d | myimage| ACTIVE || | e0d1f097-2d1b-4ab8-a1a9-96dc70426682 | myimage1 | ACTIVE || | 4c5d2462-ead3-48f5-9fda-012697b40f67 | ubuntu.iso | ACTIVE || +--++++ necadmin@controller:~$ glance image-list +--++-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +