Comment 2 for bug 1462392

Revision history for this message
Matt Riedemann (mriedem) wrote :

trove-integration looks uses the $USE_DEVSTACK_TROVE_PLUGIN var to tell it if enable_plugin should be used, and USE_DEVSTACK_TROVE_PLUGIN is set based on the path structure in devstack, that happens in the redstack file.

    TROVE_SETUP_CMD_FILE="$PATH_DEVSTACK_SRC/lib/trove"
    if [ -f "$TROVE_SETUP_CMD_FILE" ]; then
        USE_DEVSTACK_TROVE_PLUGIN=false
    else
        TROVE_SETUP_CMD_FILE="$DEST/trove/devstack/plugin.sh"
        USE_DEVSTACK_TROVE_PLUGIN=true
    fi

PATH_DEVSTACK_SRC is set in the job config in project-config repo for trove:

          function post_test_hook {{
              export BRIDGE_IP=10.1.0.1
              export DEST=$BASE/new
              export PATH_DEVSTACK_SRC=$DEST/devstack
              cd /opt/stack/new/trove-integration/scripts
              ./redstack dsvm-gate-tests {datastore}
          }}
          export -f post_test_hook

The /opt/stack/new/devstack/lib/trove path does exist but there is a problem:

http://logs.openstack.org/29/173129/2/check/gate-trove-functional-dsvm-mysql/2c72a27/logs/devstacklog.txt.gz#_2015-06-05_09_03_26_474

2015-06-05 09:03:26.474 | /opt/stack/new/devstack/lib/trove: line 204: [: missing `]'

The path still exists though so I'm not sure why trove-integration isn't finding that and setting USE_DEVSTACK_TROVE_PLUGIN properly.