yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #17983
[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 | 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 |
+--------------------------------------+------------+-------------+------------------+----------+--------+
| 4c5d2462-ead3-48f5-9fda-012697b40f67 | ubuntu.iso | iso | bare | 38797312 | active |
+--------------------------------------+------------+-------------+------------------+----------+--------+
Form CLI document-
glance image-list command: List images you can access.
glance image-list command: Print a list of available images to boot from.
I am not sure how I am able to boot from a image which I can't access.
JFYI-
1. I am getting no logs in "/var/log/glance" regading my operations. there are api.log and registry.log files which are blank.
2. necadmin@controller:~$ glance --version
0.13.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1348046/+subscriptions
References