Problem description: If DevStack is used to instantiate the magnum plugin, and the devstack localrc/local.conf has the default values for: LOG_COLOR (default value = True) SYSLOG (default value = False) then upon startup (i.e. running DevStack's stack.sh), the magnum devstack lib calls the DevStack common setup_colorized_logging function, but without passing the optional 'project_var' and 'user_var' arguments to this function. As a result, the setup_colorized_logging function uses its default values of "user_name" and "project_name" when it defines the logging_context_format_string (which in turn gets configured in /etc/magnum/magnum.conf). The problem is that "user_name" and "project_name" are not defined in the API context used by Magnum, so that whenever the magnum plugin does a logging call, a KeyError exception for the non-existant key "user_name" is generated. Fix description: The fix is to modify the Magnum context to use "user_name" and "project_name" attributes to be consistent with the default context format string set up by DevStack. Change-Id: Ia0c34899609735ff9d8b4597101e004e2684657e Closes-Bug: #1464376
|8 years ago|
|lib||8 years ago|
|README.rst||8 years ago|
|plugin.sh||8 years ago|
|settings||8 years ago|
This directory contains the files necessary to integrate Magnum with devstack.
Refer the quickstart guide for more information on using devstack and magnum.
Running devstack with magnum for the first time may take a long time as it needs to download an atomic fedora 21 qcow image. If you already have this image you can copy it to /opt/stack/devstack/files/fedora-21-atomic-3.qcow2 to save you this time.
To install magnum into devstack, add the following settings to enable magnum plugin: :
cat > /opt/stack/devstack/local.conf << END [[local|localrc]] enable_plugin magnum https://github.com/openstack/magnum master END
Run devstack as normal: :
cd /opt/stack/devstack ./stack.sh