Fix gcloud SDK permission error in edge-tooling CI monitor step - #83044
Fix gcloud SDK permission error in edge-tooling CI monitor step#83044redhat-chai-bot wants to merge 1 commit into
Conversation
The gcloud install.sh tries to write configuration to /home/claude/.config/gcloud/config_sentinel which is not writable in CI pods. Set CLOUDSDK_CONFIG to redirect config writes to /tmp/gcloud-config/. This fixes the 3-day failure streak (Aug 4-6) on periodic-ci-openshift-eng-edge-tooling-main-ocp-ci-monitor.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe CI monitor script now creates ChangesCI monitor gcloud setup
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/approve |
|
/lgtm |
|
@redhat-chai-bot: |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fonta-rh, redhat-chai-bot The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@redhat-chai-bot: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
Fix the
periodic-ci-openshift-eng-edge-tooling-main-ocp-ci-monitorperiodic job failure caused by a gcloud SDKPermissionErrorduring installation.Details
The CI monitor step installs the gcloud CLI, but the default gcloud config directory (
/home/claude/.config/gcloud/) is not writable in CI pods. This causesinstall.shto crash with:The fix sets
CLOUDSDK_CONFIGto a writable location (/tmp/gcloud-config) before runninginstall.sh, so gcloud writes its config and logs there instead.Changes
ci-operator/step-registry/openshift/edge-tooling/ci-monitor/openshift-edge-tooling-ci-monitor-commands.sh: exportCLOUDSDK_CONFIG=/tmp/gcloud-configandmkdir -pthe directory before the gcloud install step (+4 lines)AI-generated. Review for accuracy.
@vimauro requested in Slack thread
Summary by CodeRabbit
The OpenShift Edge Tooling CI Monitor job now stores gcloud configuration and logs in the writable
/tmp/gcloud-configdirectory during SDK installation. This prevents permission errors caused by the unwritable/home/claude/.config/gcloud/path.