
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
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