← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1270817] [NEW] no error reported when image create is killed on quota

 

Public bug reported:

failure to create image on quota has no error in horizon.

to reproduce:

1. set user_storage_quota = 2 in /etc/glance/glance-api.conf 
2. restart glance-api sevice
3. try to create an image from UI

Results: 
the image is killed because size check will fail (due to quota) and there is no appropriate error in Horizon

Expected results:

1. when a

2014-01-20 12:55:28,799 6827 DEBUG glanceclient.common.http curl -i -X HEAD -H 'X-Auth-Token: aaa753d0555528a143802d5380587d2e' -H 'Content-Type: application/octet-stream' -H 'User-Agent: python-glanceclient' http://10.35.160.135:9292/v1/images/96dbb6f8-2f20-437a-81bc-e823b2f83813
2014-01-20 12:55:28,841 6827 DEBUG glanceclient.common.http 
HTTP/1.1 200 OK
content-length: 0
x-image-meta-id: 96dbb6f8-2f20-437a-81bc-e823b2f83813
date: Mon, 20 Jan 2014 12:55:28 GMT
x-image-meta-deleted: False
x-image-meta-container_format: bare
x-image-meta-protected: False
x-image-meta-min_disk: 0
x-image-meta-created_at: 2014-01-20T12:55:27
x-image-meta-size: 6442450945
x-image-meta-status: killed
location: http://10.35.160.135:9292/v1/images/96dbb6f8-2f20-437a-81bc-e823b2f83813
x-image-meta-is_public: False
x-image-meta-min_ram: 0
x-image-meta-owner: d4aaa7c237054d408a65f40bb4ee74d0
x-image-meta-updated_at: 2014-01-20T12:55:27
content-type: text/html; charset=UTF-8
x-openstack-request-id: req-0f073eb8-d85b-4a1d-ad51-fabe1ed40ee6
x-image-meta-disk_format: qcow2
x-image-meta-name: bla

2014-01-20 12:55:28,853 6827 DEBUG openstack_dashboard.api.cinder
cinderclient connec


nothing in http log: 

[Sun Jan 19 03:37:01 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Jan 19 03:37:01 2014] [notice] Digest: done
[Sun Jan 19 03:37:01 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Mon Jan 20 11:12:43 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://cougar06.scl.lab.tlv.redhat.com/dashboard/'
[Mon Jan 20 11:12:43 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://cougar06.scl.lab.tlv.redhat.com/dashboard/'
[Mon Jan 20 11:12:44 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://cougar06.scl.lab.tlv.redhat.com/dashboard/'

This is the only thing in glance api log:

Stderr: '/bin/sh: collie: command not found\n' Disabling add method.
2014-01-20 13:41:25.883 7946 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling add method.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
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/1270817

Title:
  no error reported when image create is killed on quota

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  failure to create image on quota has no error in horizon.

  to reproduce:

  1. set user_storage_quota = 2 in /etc/glance/glance-api.conf 
  2. restart glance-api sevice
  3. try to create an image from UI

  Results: 
  the image is killed because size check will fail (due to quota) and there is no appropriate error in Horizon

  Expected results:

  1. when a

  2014-01-20 12:55:28,799 6827 DEBUG glanceclient.common.http curl -i -X HEAD -H 'X-Auth-Token: aaa753d0555528a143802d5380587d2e' -H 'Content-Type: application/octet-stream' -H 'User-Agent: python-glanceclient' http://10.35.160.135:9292/v1/images/96dbb6f8-2f20-437a-81bc-e823b2f83813
  2014-01-20 12:55:28,841 6827 DEBUG glanceclient.common.http 
  HTTP/1.1 200 OK
  content-length: 0
  x-image-meta-id: 96dbb6f8-2f20-437a-81bc-e823b2f83813
  date: Mon, 20 Jan 2014 12:55:28 GMT
  x-image-meta-deleted: False
  x-image-meta-container_format: bare
  x-image-meta-protected: False
  x-image-meta-min_disk: 0
  x-image-meta-created_at: 2014-01-20T12:55:27
  x-image-meta-size: 6442450945
  x-image-meta-status: killed
  location: http://10.35.160.135:9292/v1/images/96dbb6f8-2f20-437a-81bc-e823b2f83813
  x-image-meta-is_public: False
  x-image-meta-min_ram: 0
  x-image-meta-owner: d4aaa7c237054d408a65f40bb4ee74d0
  x-image-meta-updated_at: 2014-01-20T12:55:27
  content-type: text/html; charset=UTF-8
  x-openstack-request-id: req-0f073eb8-d85b-4a1d-ad51-fabe1ed40ee6
  x-image-meta-disk_format: qcow2
  x-image-meta-name: bla

  2014-01-20 12:55:28,853 6827 DEBUG openstack_dashboard.api.cinder
  cinderclient connec

  
  nothing in http log: 

  [Sun Jan 19 03:37:01 2014] [notice] Digest: generating secret for digest authentication ...
  [Sun Jan 19 03:37:01 2014] [notice] Digest: done
  [Sun Jan 19 03:37:01 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
  [Mon Jan 20 11:12:43 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://cougar06.scl.lab.tlv.redhat.com/dashboard/'
  [Mon Jan 20 11:12:43 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://cougar06.scl.lab.tlv.redhat.com/dashboard/'
  [Mon Jan 20 11:12:44 2014] [warn] [client 10.35.201.108] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://cougar06.scl.lab.tlv.redhat.com/dashboard/'

  This is the only thing in glance api log:

  Stderr: '/bin/sh: collie: command not found\n' Disabling add method.
  2014-01-20 13:41:25.883 7946 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling add method.

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


Follow ups

References