← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1220315] Re: error when trying to add image with missing or no params

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1220315

Title:
  error when trying to add image with missing or no params

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  I created an image through cli with missing params (glance image-create --name bla) 
  the image is stuck in queued state (different glance bug).
  if I try to edit it through horizon we get an error: 

  [root@opens-vdsb lvm(keystone_admin)]# tail -f
  /var/log/httpd/access_log |grep 3e27c842-24d2-426d-9db4-74fa405a13eb

  10.35.203.14 - - [03/Sep/2013:19:01:07 +0300] "GET
  /dashboard/admin/images/3e27c842-24d2-426d-9db4-74fa405a13eb/update/
  HTTP/1.1" 500 809 "http://10.35.101.10/dashboard/admin/images/images/";
  "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130619 Firefox/17.0"

  
  but I am able to update the image from glance cli: 

  Image bla:

  [root@opens-vdsb lvm(keystone_admin)]# glance image-list
  +--------------------------------------+-----------------------------+-------------+------------------+------------+--------+
  | ID                                   | Name                        | Disk Format | Container Format | Size       | Status |
  +--------------------------------------+-----------------------------+-------------+------------------+------------+--------+
  | dc79349e-de25-4ec5-8b12-5a6145270c47 |                             | qcow2       | bare             | 1974140928 | active |
  | 3e27c842-24d2-426d-9db4-74fa405a13eb | bla                         |             |                  |            | queued |
  | 3ca51afa-531f-428a-9b9c-6dab33da85cd | dafna was here              |             |                  |            | queued |
  | 6981621e-673d-48a5-8c08-ca35eeac0c20 | dafna was here              |             |                  |            | queued |
  | 1264d201-f083-488f-b703-b2d428fefe21 | dafna*was@;ll-9bla-==+ here |             |                  |            | queued |
  | 64593e6b-6edc-4d1f-ad64-0c2a0d8fe8f6 | dafna_was_here              |             |                  |            | queued |
  | 8c5fdb82-d85a-49df-8441-0c940aa62950 | dafna_was_here              |             |                  |            | queued |
  | 05c9b5e2-3082-4ad3-8d03-faf74b61234c | rhel64                      | qcow2       | bare             | 1974140928 | active |
  | a32222e7-f879-41ab-b66b-5cad299b0b8d | test                        | qcow2       | bare             | 31357907   | active |
  | 9a611a39-b028-44dd-a8d0-027bbb3ce1eb | testttt                     | qcow2       | bare             | 699592704  | active |
  +--------------------------------------+-----------------------------+-------------+------------------+------------+--------+

  
  update through glance: 

  [root@opens-vdsb lvm(keystone_admin)]# glance image-update 3e27c842-24d2-426d-9db4-74fa405a13eb --disk-format qcow2 --container-format bare --location http://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | None                                 |
  | container_format | bare                                 |
  | created_at       | 2013-09-03T16:00:13                  |
  | deleted          | False                                |
  | deleted_at       | None                                 |
  | disk_format      | qcow2                                |
  | id               | 3e27c842-24d2-426d-9db4-74fa405a13eb |
  | is_public        | False                                |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | bla                                  |
  | owner            | ad326a6c11a742c6bfdf4ad63be0c889     |
  | protected        | False                                |
  | size             | 1974140928                           |
  | status           | active                               |
  | updated_at       | 2013-09-03T16:01:23                  |
  +------------------+--------------------------------------+
  [root@opens-vdsb lvm(keystone_admin)]# glance image-list
  +--------------------------------------+-----------------------------+-------------+------------------+------------+--------+
  | ID                                   | Name                        | Disk Format | Container Format | Size       | Status |
  +--------------------------------------+-----------------------------+-------------+------------------+------------+--------+
  | dc79349e-de25-4ec5-8b12-5a6145270c47 |                             | qcow2       | bare             | 1974140928 | active |
  | 3e27c842-24d2-426d-9db4-74fa405a13eb | bla                         | qcow2       | bare             | 1974140928 | active |
  | 3ca51afa-531f-428a-9b9c-6dab33da85cd | dafna was here              |             |                  |            | queued |
  | 6981621e-673d-48a5-8c08-ca35eeac0c20 | dafna was here              |             |                  |            | queued |
  | 1264d201-f083-488f-b703-b2d428fefe21 | dafna*was@;ll-9bla-==+ here |             |                  |            | queued |
  | 64593e6b-6edc-4d1f-ad64-0c2a0d8fe8f6 | dafna_was_here              |             |                  |            | queued |
  | 8c5fdb82-d85a-49df-8441-0c940aa62950 | dafna_was_here              |             |                  |            | queued |
  | 05c9b5e2-3082-4ad3-8d03-faf74b61234c | rhel64                      | qcow2       | bare             | 1974140928 | active |
  | a32222e7-f879-41ab-b66b-5cad299b0b8d | test                        | qcow2       | bare             | 31357907   | active |
  | 9a611a39-b028-44dd-a8d0-027bbb3ce1eb | testttt                     | qcow2       | bare             | 699592704  | active |
  +--------------------------------------+-----------------------------+-------------+------------------+------------+--------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1220315/+subscriptions