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

provision.sh: refactor while loops and fix packaging-related breakage #279

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

smithfarm
Copy link
Collaborator

@smithfarm smithfarm commented Apr 22, 2020

If all the "/tmp/ready-{{ node.name }}" files don't get created in the
first iteration of the loop, the scp fails and that causes the whole
script to fail because it is running under "set -e".

(This while loop was written before we had "set -e" at the top of the
script.)

Since we're touching the code of the loop anyway, take this opportunity
to refactor it.

Fixes: c0d5df1
Fixes: #278
Signed-off-by: Nathan Cutler [email protected]

@smithfarm
Copy link
Collaborator Author

This passed a contrib/standalone.sh --full run.

@smithfarm smithfarm force-pushed the wip-278 branch 6 times, most recently from c187bbc to 2117da2 Compare April 23, 2020 13:49
@smithfarm
Copy link
Collaborator Author

smithfarm commented Apr 23, 2020

Triggered RPM build of this PR's branch in https://build.opensuse.org/package/show/filesystems:ceph/sesdev and will run contrib/standalone.sh --full on that.

@smithfarm smithfarm force-pushed the wip-278 branch 4 times, most recently from 1841f51 to 3175a7a Compare April 23, 2020 15:02
If all the "/tmp/ready-{{ node.name }}" files don't get created in the
first iteration of the loop, the scp fails and that causes the whole
script to fail because it is running under "set -e".

(This while loop was written before we had "set -e" at the top of the
script.)

Since we're touching the code of the loop anyway, take this opportunity
to refactor it.

Fixes: c0d5df1
Fixes: SUSE#278
Signed-off-by: Nathan Cutler <[email protected]>
@smithfarm
Copy link
Collaborator Author

Tested manually.

@smithfarm smithfarm merged commit 1ef4e80 into SUSE:master Apr 23, 2020
@smithfarm smithfarm deleted the wip-278 branch April 23, 2020 22:07
@smithfarm smithfarm changed the title provision.sh: refactor PROVISIONED_NODES while loop provision.sh: refactor PROVISIONED_NODES while loop and fix packaging-related breakage Apr 24, 2020
@smithfarm smithfarm changed the title provision.sh: refactor PROVISIONED_NODES while loop and fix packaging-related breakage provision.sh: refactor while loops and fix packaging-related breakage Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

provision.sh fails transiently with "scp: /tmp/ready: No such file or directory"
1 participant