Skip to content

helios/deploy: Wait for inventory collection #8650

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jgallagher
Copy link
Contributor

@jgallagher jgallagher commented Jul 21, 2025

This adds another "wait for a thing to happen" loop in between waiting for the RSS -> Nexus handoff and waiting for all the zpools to show up. Attempting to query for the zpools fails if there hasn't been an inventory collection yet, so prior to this change we were racing.

Fixes #8647.

This adds another "wait for a thing to happen" loop in between waiting
for the RSS -> Nexus handoff and waiting for all the zpools to show up.
Attempting to query for the zpools fails if there hasn't been an
inventory collection yet, so prior to this change we were racing.

Fixes flake #8647.
@jgallagher jgallagher requested review from iliana and jmpesp July 21, 2025 15:13
INVENTORY_COLLECTION_COUNT=$(pfexec zlogin oxz_switch /opt/oxide/omdb/bin/omdb db inventory collections list | wc -l)
until [[ "${INVENTORY_COLLECTION_COUNT}" -gt 1 ]]; do
if [[ $retry -gt 300 ]]; then
echo "Failed to handoff to Nexus after 300 seconds"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "Failed to handoff to Nexus after 300 seconds"
echo "Failed to wait for inventory collection after 300 seconds"

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.

test failed in CI: helios/deploy (omdb permission error with zpool)
2 participants