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

Fix rook install #1490

Merged
merged 3 commits into from
Apr 19, 2021
Merged

Fix rook install #1490

merged 3 commits into from
Apr 19, 2021

Conversation

emosbaugh
Copy link
Member

@emosbaugh emosbaugh commented Apr 17, 2021

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.

@emosbaugh emosbaugh requested a review from areed April 17, 2021 13:19
@@ -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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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.

@emosbaugh emosbaugh merged commit 1cc891e into master Apr 19, 2021
@emosbaugh emosbaugh deleted the fox-rook-install branch April 19, 2021 17:11
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 this pull request may close these issues.

None yet

3 participants