trove/devstack
Lingxian Kong 795f2bde88 Fix SUBNETPOOL_V4_ID check in devstack
In the devstack script, `[ -n $SUBNETPOOL_V4_ID ]` returns true even if
SUBNETPOOL_V4_ID variable is not defined, which is not expected.
I can see the error as the following:

```
2019-02-06 07:20:57.095 | Finalizing Neutron networking for Trove
2019-02-06 07:20:57.095 | Dumping current network parameters:
...
2019-02-06 07:20:57.096 |   SUBNETPOOL_V4_ID:
...
2019-02-06 07:21:02.706 | openstack subnet create: error: argument --subnet-pool: expected one argument
```

This patch changes that to `[ -n "$SUBNETPOOL_V4_ID" ]`

Change-Id: Ib37b2ade3d7cf556340944a56944beb4bb47d7d9
2019-02-13 23:13:48 +13:00
..
files enable trove-api behind mod-wsgi 2017-04-25 06:54:29 -04:00
README.rst Add doc8 to pep8 check for trove project 2017-11-30 08:28:55 +07:00
plugin.sh Fix SUBNETPOOL_V4_ID check in devstack 2019-02-13 23:13:48 +13:00
settings Add image setup to trove devstack plugin 2018-12-14 21:26:01 +01:00

README.rst

Enabling Trove in DevStack

To enable Trove in DevStack, perform the following steps:

Note: The python-troveclient is automatically installed.  If you need to
control how the client gets installed, set the TROVECLIENT_REPO,
TROVECLIENT_DIR and TROVECLIENT_BRANCH environment variables appropriately.

Download DevStack

export DEVSTACK_DIR=~/devstack
git clone git://git.openstack.org/openstack-dev/devstack.git $DEVSTACK_DIR

Enable the Trove plugin

Enable the plugin by adding the following section to $DEVSTACK_DIR/local.conf

[[local|localrc]]
enable_plugin trove git://git.openstack.org/openstack/trove

Optionally, a git refspec (branch or tag or commit) may be provided as follows:

[[local|localrc]]
enable_plugin trove git://git.openstack.org/openstack/trove <refspec>

Run the DevStack utility

cd $DEVSTACK_DIR
./stack.sh