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

Bug #1270832 reported by Dafna Ron
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Matt Fischer

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.
>>>>>>>

Revision history for this message
Leandro Ignacio Costantino (leandro-i-costantino) wrote :

Does wget 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 works for you?

I get a 503. The error is being logged as DEBUG, so maybe the level should be changed on the code.

Revision history for this message
Dafna Ron (dron-3) wrote :

yep :) you are getting an error because you have no permissions to access this image.
you need to give a url from within your own network.

Revision history for this message
Matt Fischer (mfisch) wrote :

Confirmed here. I think that this should be logged even when not in debug mode. I'll take a look at it.

Changed in glance:
assignee: nobody → Matt Fischer (mfisch)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/68189

Matt Fischer (mfisch)
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.