-
Notifications
You must be signed in to change notification settings - Fork 78
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
Fix rook install #1490
Fix rook install #1490
Conversation
@@ -526,6 +526,7 @@ build/packages/k-3-s/%/rhel-8: | |||
build/templates: build/templates/install.tmpl build/templates/join.tmpl build/templates/upgrade.tmpl build/templates/tasks.tmpl | |||
|
|||
build/bin: build/bin/kurl | |||
rm -rf kurl_util/bin |
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.
Rebuild kurl_utils on make watchrsync
@@ -153,6 +153,17 @@ function rook_cluster_deploy_upgrade() { | |||
return 0 | |||
fi | |||
|
|||
echo "Awaiting rook-ceph operator" | |||
|
|||
if ! spinner_until 600 rook_version_deployed ; then |
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 code only needs to run on upgrades. It is currently blocking new rook installations.
@@ -211,25 +211,37 @@ function rook_ceph_healthy() { | |||
|
|||
# rook_version_deployed check that there is only one rook-version reported across the cluster | |||
function rook_version_deployed() { | |||
# wait for our version to start reporting | |||
if ! kubectl -n rook-ceph get deployment -l rook_cluster=rook-ceph -o jsonpath='{range .items[*]}{"rook-version="}{.metadata.labels.rook-version}{"\n"}{end}' | grep -q "${ROOK_VERSION}" ; then |
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.
make sure that the version is reporting before checking if multiple versions are reporting to prevent race condition.
Rook new installs on 1.4.9 and 1.5.9 are broken as it polls forever for the cluster before deploying the cluster.
Fix race condition on upgrades that causes the cluster to be upgraded before it is ready.