diff options
author | Gaetan Trellu <gaetan.trellu@incloudus.com> | 2018-02-02 16:12:20 -0500 |
---|---|---|
committer | Gaetan Trellu <gaetan.trellu@incloudus.com> | 2018-02-02 16:12:20 -0500 |
commit | 4d747a997f8553dff46bc3422ba73db24fca4528 (patch) | |
tree | ff9829dfe555495022ba0eb57bf4ebd9c2b1f86e | |
parent | 4b95da49cb0b04237226f21fa6289367fe2cf1e3 (diff) | |
download | trove-4d747a997f8553dff46bc3422ba73db24fca4528.tar.gz |
Unable to grow/shrink Vertica 9.x cluster
During the Vertica cluster growing/shrinking,
the "update_vertica" command tries 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.
This is very similar to this bug[1] but this time
this for the "trove cluster-grow" and "trove
cluster-shrink" commands.
[1] https://bugs.launchpad.net/trove/+bug/1745493
Change-Id: I35f2035039f72b3aa2d9beb665096d4fb57e1c4c
Closes-Bug: #1747050
-rw-r--r-- | trove/guestagent/datastore/experimental/vertica/system.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/trove/guestagent/datastore/experimental/vertica/system.py b/trove/guestagent/datastore/experimental/vertica/system.py index daae44ef..66c7df89 100644 --- a/trove/guestagent/datastore/experimental/vertica/system.py +++ b/trove/guestagent/datastore/experimental/vertica/system.py @@ -49,15 +49,18 @@ SSH_KEY_GEN = "ssh-keygen -f %s/.ssh/id_rsa -t rsa -N ''" UPDATE_VERTICA = ("/opt/vertica/sbin/update_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") UPDATE_REMOVE = ("/opt/vertica/sbin/update_vertica --remove-hosts %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") UPDATE_ADD = ("/opt/vertica/sbin/update_vertica --add-hosts %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") USER_EXISTS = ("/opt/vertica/bin/vsql -w '%s' -c " "\"select 1 from users where user_name = '%s'\" " "| grep row | awk '{print $1}' | cut -c2-") |