summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Trellu <gaetan.trellu@incloudus.com>2018-01-25 17:09:37 -0500
committerGaetan Trellu <gaetan.trellu@incloudus.com>2018-02-01 12:32:38 -0500
commit3bc8a63c33a940d03a6ecd3ff059a0e48e7732e1 (patch)
tree01914b915d3babcee41f67435986a2789bff7a76
parentfd5ad7f1122c6cff286f101dffbd5de45a5d51d8 (diff)
downloadtrove-3bc8a63c33a940d03a6ecd3ff059a0e48e7732e1.tar.gz
Improve Vertica 9.x support
During the Vertica installation, the install script try to get AWS metadata even if --ignore-aws-instance-type is specified. The only way to avoid the _get_macs error is to define --ignore-install-config option. During the cluster creation, if the process is too long, Vertica ask a question: Do you want to continue waiting? (yes/no) [yes] From the adminTools documentation there is no non-interactive or timeout options. The only way to have this question answered is to run "echo yes | " before the "adminTools -t create_db" command. The only available version from Vertica website is 9.0.1. Closes-Bug: #1745493 Change-Id: I94472082fac606f4ff14f26c2ca2b620ef0a3bbb
-rwxr-xr-xintegration/scripts/trovestack2
-rw-r--r--trove/guestagent/datastore/experimental/vertica/system.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/integration/scripts/trovestack b/integration/scripts/trovestack
index 244737c5..9e0fd8de 100755
--- a/integration/scripts/trovestack
+++ b/integration/scripts/trovestack
@@ -590,7 +590,7 @@ function cmd_set_datastore() {
VERSION="1.6.1"
elif [ "$DATASTORE_TYPE" == "vertica" ]; then
PACKAGES=${PACKAGES:-"vertica"}
- VERSION="7.1"
+ VERSION="9.0.1"
elif [ "$DATASTORE_TYPE" == "db2" ]; then
PACKAGES=${PACKAGES:-""}
VERSION="10.5"
diff --git a/trove/guestagent/datastore/experimental/vertica/system.py b/trove/guestagent/datastore/experimental/vertica/system.py
index 50de1b4f..daae44ef 100644
--- a/trove/guestagent/datastore/experimental/vertica/system.py
+++ b/trove/guestagent/datastore/experimental/vertica/system.py
@@ -23,7 +23,7 @@ ADD_DB_TO_NODE = ("/opt/vertica/bin/adminTools -t db_add_node -a"
" %s -d %s -p '%s'")
REMOVE_DB_FROM_NODE = ("/opt/vertica/bin/adminTools -t db_remove_node -s"
" %s -d %s -i -p '%s'")
-CREATE_DB = ("/opt/vertica/bin/adminTools -t create_db -s"
+CREATE_DB = ("echo yes | /opt/vertica/bin/adminTools -t create_db -s"
" %s -d %s -c %s -D %s -p '%s'")
CREATE_USER = "CREATE USER %s IDENTIFIED BY '%s'"
ENABLE_FOR_USER = "ALTER USER %s DEFAULT ROLE %s"
@@ -31,7 +31,8 @@ GRANT_TO_USER = "GRANT %s to %s"
INSTALL_VERTICA = ("/opt/vertica/sbin/install_vertica -s %s"
" -d %s -X -N -S default -r"
" /vertica.deb -L CE -Y --no-system-checks"
- " --ignore-aws-instance-type")
+ " --ignore-aws-instance-type"
+ " --ignore-install-config")
MARK_DESIGN_KSAFE = "SELECT MARK_DESIGN_KSAFE(%s)"
NODE_STATUS = "SELECT node_state FROM nodes where node_state <> '%s'"
STOP_DB = "/opt/vertica/bin/adminTools -t stop_db -F -d %s -p '%s'"