zaqar/devstack
Eva Balycheva 9ac47de9d6 Fix mongodb.conf corruption during stack.sh
MongoDB can't start, if mongodb.conf has duplicate parameters.

When using Zaqar as plugin in DevStack on debian-like system,
each run of stack.sh adds a new line to etc/mongodb.conf:
"smallfiles=true"
So eventually mongodb.conf will contain duplicate parameters.

It means that stack.sh will be able to execute successfully only once,
on subsequent executions it will fail,
because of Zaqar which will fail to start,
because of MongoDB which will fail to start,
because of corrupted mongodb.conf
which will be corrupted by zaqar/devstack/plugin.sh

This commit will make sure that "smallfiles=true" line will be added to
mongodb.conf only if mongodb.conf doesn't contain this line already.

Change-Id: Ieba5abb970ff7565f3a837778e402ea8d5c5c463
Closes-Bug: 1507391
2015-10-19 07:25:30 +03:00
..
gate Allow running zaqarclient for gate tests 2015-09-21 07:19:59 +00:00
README.rst Fix few typos in headings 2015-09-19 16:37:56 +05:30
plugin.sh Fix mongodb.conf corruption during stack.sh 2015-10-19 07:25:30 +03:00
settings Add configuration to run service using uwsgi 2015-08-05 08:51:44 +02:00

README.rst

Enabling in Devstack

  1. Download DevStack

  2. Add this repo as an external repository:

    > cat local.conf
    [[local|localrc]]
    enable_plugin zaqar https://github.com/openstack/zaqar
  3. Run stack.sh