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
This commit is contained in:
Gaetan Trellu 2018-01-25 17:09:37 -05:00
parent fd5ad7f112
commit 3bc8a63c33
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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'"