config generator fails when project enables lazy messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Undecided
|
Luis A. Garcia | ||
Cinder |
Fix Released
|
High
|
Jay Bryant | ||
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
James Carey | ||
oslo-incubator |
Fix Released
|
High
|
James Carey |
Bug Description
When lazy message translation is enabled in Nova, the check_update.sh calls generate_sample.sh, which uses a copy of oslo's config/generator.py which produces the following message:
CRITICAL nova [-] TypeError: Message objects do not support addition.
The config/generator.py module installs i18n without lazy enabled (named parameter 'lazy' not specified):
gettextutils.
To gather information about the projects options, it loads the project modules looking for entry points. When these modules are loaded, they may contain code to enable lazy. In the case of Nova this is the nova/cmds/
gettextutils.
This means that the messages returned with information for the entry points are lazy enabled. Thus when config/generator.py tries to work with the help message for the option associated with the Nova modules:
opt_help += ' (' + OPT_TYPES[opt_type] + ')'
it fails because opt_help is a gettextutils.
Changed in oslo: | |
assignee: | nobody → James Carey (jecarey) |
Changed in nova: | |
assignee: | nobody → James Carey (jecarey) |
Changed in oslo: | |
importance: | Undecided → High |
milestone: | none → icehouse-3 |
tags: | added: oslo |
Changed in cinder: | |
milestone: | none → icehouse-3 |
Changed in nova: | |
milestone: | none → icehouse-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | icehouse-3 → icehouse-rc1 |
Changed in ceilometer: | |
milestone: | none → icehouse-3 |
status: | Fix Committed → Fix Released |
Changed in oslo: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in oslo: | |
milestone: | icehouse-3 → 2014.1 |
Changed in ceilometer: | |
milestone: | icehouse-3 → 2014.1 |
Changed in nova: | |
milestone: | icehouse-3 → 2014.1 |
Changed in cinder: | |
milestone: | icehouse-rc1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/73873
Review: https:/