← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1270832] [NEW] no error is printed to glance.api log when we fail to create image on quota

 

Public bug reported:

I set user_storage_quota = 2 in /etc/glance/glance-api.conf and tried to
create an image with --copy-from:

[root@cougar07 tmp(keystone_admin)]# echo '>>>>>>>' >>  /var/log/glance/api.log 
[root@cougar07 tmp(keystone_admin)]# glance image-create --name dafna2 --disk-format  qcow2 --container-format bare --copy-from http://download.eng.tlv.redhat.com/pub/rhel/released/RHEL-6/6.4/Appliance/rhel-workstation-x86_64-ec2-starter-6.4_20130130.0-1-sda.raw
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | bare                                 |
| created_at       | 2014-01-20T13:56:13                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | 858ae6af-d9e1-4e24-9193-b85955aa0597 |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | dafna2                               |
| owner            | d4aaa7c237054d408a65f40bb4ee74d0     |
| protected        | False                                |
| size             | 6442450945                           |
| status           | queued                               |
| updated_at       | 2014-01-20T13:56:13                  |
+------------------+--------------------------------------+
[root@cougar07 tmp(keystone_admin)]# less /var/log/glance/api.log 

there is no error logged in the glance.api log (as you can see the >>>>
I added in echo before running the create command - no error related to
this issue is logged).

Stderr: '/bin/sh: collie: command not found\n'
2014-01-20 13:41:25.844 7946 WARNING glance.store.base [-] Failed to configure store correctly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: Unexpected error while running command.
Command: collie
Exit code: 127
Stdout: ''
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: 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/1270832

Title:
  no error is printed to glance.api log when we fail to create image on
  quota

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

Bug description:
  I set user_storage_quota = 2 in /etc/glance/glance-api.conf and tried
  to create an image with --copy-from:

  [root@cougar07 tmp(keystone_admin)]# echo '>>>>>>>' >>  /var/log/glance/api.log 
  [root@cougar07 tmp(keystone_admin)]# glance image-create --name dafna2 --disk-format  qcow2 --container-format bare --copy-from http://download.eng.tlv.redhat.com/pub/rhel/released/RHEL-6/6.4/Appliance/rhel-workstation-x86_64-ec2-starter-6.4_20130130.0-1-sda.raw
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | None                                 |
  | container_format | bare                                 |
  | created_at       | 2014-01-20T13:56:13                  |
  | deleted          | False                                |
  | deleted_at       | None                                 |
  | disk_format      | qcow2                                |
  | id               | 858ae6af-d9e1-4e24-9193-b85955aa0597 |
  | is_public        | False                                |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | dafna2                               |
  | owner            | d4aaa7c237054d408a65f40bb4ee74d0     |
  | protected        | False                                |
  | size             | 6442450945                           |
  | status           | queued                               |
  | updated_at       | 2014-01-20T13:56:13                  |
  +------------------+--------------------------------------+
  [root@cougar07 tmp(keystone_admin)]# less /var/log/glance/api.log 

  there is no error logged in the glance.api log (as you can see the
  >>>> I added in echo before running the create command - no error
  related to this issue is logged).

  Stderr: '/bin/sh: collie: command not found\n'
  2014-01-20 13:41:25.844 7946 WARNING glance.store.base [-] Failed to configure store correctly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: Unexpected error while running command.
  Command: collie
  Exit code: 127
  Stdout: ''
  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/glance/+bug/1270832/+subscriptions


Follow ups

References