← Back to team overview

yahoo-eng-team team mailing list archive

[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 |
+--------------------------------------+------------+-------------+------------------+----------+--------+
| 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

** 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/1348046

Title:
  glance image created successfully but it is not displaying through
  "glance image-list"

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

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


Follow ups

References