magnum/devstack
Dane LeBlanc 617b772e55 Modify magnum api context to use user_name and project_name
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
2015-06-15 18:27:15 -04:00
..
lib Modify magnum api context to use user_name and project_name 2015-06-15 18:27:15 -04:00
README.rst Change from kubernetes 0.11 to 0.15 2015-04-26 18:42:09 -07:00
plugin.sh Remove old hack for requirements 2015-06-02 09:57:48 +08:00
settings Fix the localrc issue 2015-04-09 20:10:21 +08:00

README.rst

Devstack Integration

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