Public bug reported: 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 ** Affects: horizon Importance: Undecided Status: New ** Tags: configuration horizon translation ugettext ** Attachment added: "django_stacktrace.txt" https://bugs.launchpad.net/bugs/1520008/+attachment/4525519/+files/django_stacktrace.txt -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1520008 Title: JSON Encoder crashes on settings with translations Status in OpenStack Dashboard (Horizon): New Bug 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 To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1520008/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp