2015-11-30 18:43:52 |
Errol Pais |
description |
Description:
Horizon uses the REST_API_REQUIRED_SETTINGS key in the local_settings.py configuration file In order to make the contained configuration available to the the client side angular code.
Some configurations include ugettext objects which fail to serialize when passing through http.
eg.
OPENSTACK_IMAGE_BACKEND = {
'image_formats': [
('aki', _('AKI - Amazon Kernel Image'))
]
}
Steps to Reproduce:
* Add 'OPENSTACK_IMAGE_BACKEND' to the 'REST_API_REQUIRED_SETTINGS' key in the local_settings.py.
* call the settings endpoint: http://localhost:8000/api/settings
* Django throws a 500 server exception with the following stack trace: see attached |
Description:
Horizon uses the REST_API_REQUIRED_SETTINGS key in the local_settings.py configuration file In order to make the contained configuration available to the the client side angular code.
Some configurations include ugettext objects which fail to serialize when passing through http.
eg.
OPENSTACK_IMAGE_BACKEND = {
'image_formats': [
('aki', _('AKI - Amazon Kernel Image'))
]
}
Steps to Reproduce:
* Add 'OPENSTACK_IMAGE_BACKEND' to the 'REST_API_REQUIRED_SETTINGS' key in the local_settings.py.
* call the settings endpoint: http://localhost:8000/api/settings
* Django throws a 500 server exception with the following stack trace: see attached
Impact:
As a workaround, we are setting configuration settings as constants, instead of getting it from the settings service. See
https://review.openstack.org/#/c/236042/22/openstack_dashboard/static/app/core/images/images.module.js |
|