trove/devstack
Lingxian Kong 4a85d9b77f Fix the way to get localhost IP in devstack
In Ubuntu Bionic, the following command returns "uid" so that the
guest-agent service will fail because of invalid IP address.

$ ip route get 8.8.8.8 | head -1 | cut -d' ' -f8
uid
$ ip route get 8.8.8.8 | head -1
8.8.8.8 via 10.0.17.1 dev ens3 src 10.0.17.131 uid 0

In Ubuntu Xenial:

$ ip route get 8.8.8.8 | head -1 | cut -d' ' -f8
10.0.17.132
$ ip route get 8.8.8.8 | head -1
8.8.8.8 via 192.168.192.1 dev eth0  src 10.0.17.132

Change-Id: Iae24686fa65603b7d22b09da99b7590e4e117454
2019-03-26 11:22:26 +13:00
..
2017-04-25 06:54:29 -04:00

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