-
Notifications
You must be signed in to change notification settings - Fork 41
Converted readiness.py to bash script. #256
Conversation
pulled your patch & tested on our cluster with
Looks like you missed a bash in the deployment.yaml
|
@wilreichert Can you pull again and test on your server |
Single instance case above works fine now but clustered still has issues. When launching
it looks like the peer-finder script has perms isues & init goes bad - pod logs FWIW, I made sure to nuke pvc's in-between tests. |
@wilreichert There were some extra items in the script bang entry. Can you try again |
hmm, same problem - https://gist.github.com/wilreichert/df413f6ab6ae918bfb747fa6d061978c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change required to fix permissions.
mariadb/templates/bin/_seed.sh.tpl
Outdated
@@ -49,7 +49,7 @@ function wait_for_cluster { | |||
continue | |||
fi | |||
# Count number of endpoint separators. | |||
ENDPOINTS_CNT=`python /tmp/peer-finder.py mariadb 1 | grep -o ',' | wc -l` | |||
ENDPOINTS_CNT=`/tmp/peer-finder.sh mariadb 1 | grep -o ',' | wc -l` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line should read: ENDPOINTS_CNT=`bash /tmp/peer-finder.sh mariadb 1 | grep -o ',' | wc -l
which will fix the permissions issue in @wilreichert's linked output.
Found two places that did an eval and bash was missing from the eval. Permission issue should be gone |
Redoing pull request |
What is the purpose of this pull request?: Replace readiness python script since python not in kolla base image
What issue does this pull request address?: Fixes #253
Notes for reviewers to consider: Still need to convert peerfinder python script next
Specific reviewers for pull request: