Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1117806

Summary: Setting user_storage_quota Glance api service fails, log -> no such option: user_storage_quota
Product: Red Hat OpenStack Reporter: Tzach Shefi <tshefi>
Component: openstack-glanceAssignee: Flavio Percoco <fpercoco>
Status: CLOSED NOTABUG QA Contact: Dafna Ron <dron>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: eglynn, fpercoco, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-09 13:22:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Api.log none

Description Tzach Shefi 2014-07-09 12:27:09 UTC
Created attachment 916756 [details]
Api.log

Description of problem:  When setting Glance user_storage_quota=4GB service won't start: 

014-07-09 14:49:23.908 16546 DEBUG glance.common.config [-] use_user_token                 = True log_opt_values /usr/lib/python2.7/site-packages/oslo/config/cfg.py:1945
2014-07-09 14:49:23.908 16546 CRITICAL glance [-] NoSuchOptError: no such option: user_storage_quota
2014-07-09 14:49:23.908 16546 TRACE glance Traceback (most recent call last):
2014-07-09 14:49:23.908 16546 TRACE glance   File "/usr/bin/glance-api", line 10, in <module>
2014-07-09 14:49:23.908 16546 TRACE glance     sys.exit(main())
2014-07-09 14:49:23.908 16546 TRACE glance   File "/usr/lib/python2.7/site-packages/glance/cmd/api.py", line 63, in main
2014-07-09 14:49:23.908 16546 TRACE glance     server.start(config.load_paste_app('glance-api'), default_port=9292)
2014-07-09 14:49:23.908 16546 TRACE glance   File "/usr/lib/python2.7/site-packages/glance/common/config.py", line 213, in load_paste_app
2014-07-09 14:49:23.908 16546 TRACE glance     CONF.log_opt_values(logger, logging.DEBUG)
2014-07-09 14:49:23.908 16546 TRACE glance   File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1945, in log_opt_values
2014-07-09 14:49:23.908 16546 TRACE glance     _sanitize(opt, getattr(self, opt_name)))
2014-07-09 14:49:23.908 16546 TRACE glance   File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1652, in __getattr__
2014-07-09 14:49:23.908 16546 TRACE glance     raise NoSuchOptError(name)
2014-07-09 14:49:23.908 16546 TRACE glance NoSuchOptError: no such option: user_storage_quota
2014-07-09 14:49:23.908 16546 TRACE glance


Version-Release number of selected component (if applicable):
RHEL 7 
python-glanceclient-0.12.0-1.el7ost.noarch
python-glance-2014.1-4.el7ost.noarch
openstack-glance-2014.1-4.el7ost.noarch

How reproducible:
Every time, on two seprate deployments. 

Steps to Reproduce:
1. Stop glance service
2. Enable and set  user_storage_quota=4GB  (4gb 4MB .. none work)
3. Start Glance service 
4. Check Glance service status -> openstack-glance-api (pid 0) is failed
5. Review Glance api.log

Actual results:
Service openstack-glance-api failed. 

Expected results:
Service and qouta should work. 

Additional info: 
On a third seprate deployment
versions
RHEL 6.5
python-glanceclient-0.12.0-2.el6ost.noarch
openstack-glance-2014.1-3.el6ost.noarch
python-glance-2014.1-3.el6ost.noarch

Setting user_storage_quota=4Gb works fine service starts up without error.

Comment 1 Flavio Percoco 2014-07-09 13:22:33 UTC
Such syntax is not supported in Icehouse[0]. A patch to support other units for user quotas was added in Juno.

[0] https://github.com/openstack/glance/blob/stable/icehouse/glance/common/config.py#L102