Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling up workers fails due to missing script parameter #49

Open
timroster opened this issue May 27, 2019 · 0 comments · May be fixed by #50
Open

Scaling up workers fails due to missing script parameter #49

timroster opened this issue May 27, 2019 · 0 comments · May be fixed by #50

Comments

@timroster
Copy link

timroster commented May 27, 2019

Scenario: Successfully created ICP cluster using 3.1.1 release version of the terraform module. Actual ICP version is 3.1.2 (but not material to this issue). Attempting to scale number of workers by adding vms (tested on IBM Cloud).

Issue: Increasing the number of workers triggers the icp-worker-scaler function with the correct set of new worker IPs. Scripts fail with messages like:

module.icpprovision.null_resource.icp-worker-scaler: Provisioning with 'remote-exec'...
module.icpprovision.null_resource.icp-worker-scaler (remote-exec): Connecting to remote host via SSH...
module.icpprovision.null_resource.icp-worker-scaler (remote-exec):   Host: ###.###.###.###
module.icpprovision.null_resource.icp-worker-scaler (remote-exec):   User: root
module.icpprovision.null_resource.icp-worker-scaler (remote-exec):   Password: false
module.icpprovision.null_resource.icp-worker-scaler (remote-exec):   Private key: true
module.icpprovision.null_resource.icp-worker-scaler (remote-exec):   SSH Agent: true
module.icpprovision.null_resource.icp-worker-scaler (remote-exec):   Checking Host Key: false
module.icpprovision.null_resource.icp-worker-scaler (remote-exec): Connected!
module.icpprovision.null_resource.icp-worker-scaler (remote-exec): cat: /workerlist.txt: No such file or directory
module.icpprovision.null_resource.icp-worker-scaler (remote-exec): Couldn't find any entries in old list of workers. Exiting'

Cause:

OLDLIST=${cluster_dir}/workerlist.txt
fails to reference the correct old worker list. Refactoring of parameters for scripts has left out invoking scaleworkers.sh with the common set defined in icp-cluster function. A fix consistent with recent changes would be to update main.tf with the correct parameters.

@timroster timroster linked a pull request May 27, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant