USHIFT-7499: Ansible: fix service-account lookup - #7340
Conversation
Invoke create-service-account with include_role so Ansible resolves metrics-sa.yaml in the role's files directory. Including its task file directly retains the microshift-start role context and cannot find the manifest after the directory move in openshift#7185. This restores service-account creation during deployment and metrics collection without changing the manifest or its location. Signed-off-by: Sebastian Jug <seb@stianj.ug>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@sjug: This pull request references USHIFT-7499 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "5.1.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sjug The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
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: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughThe service account setup task now invokes the ChangesService account setup
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to The role invocation now preserves role-relative manifest lookup for service-account setup. No concrete merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@sjug: 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. |
MicroShift deployment fails when
microshift-startcopiesmetrics-sa.yaml: #7185 moved the manifest into thecreate-service-accountrole'sfiles/directory, but the caller still includes its task file directly, retaining the parent role's file lookup context.Invoke
create-service-accountthroughansible.builtin.include_roleso Ansible finds the manifest in that role's own directory.Validation: a local Ansible harness reproduced the original missing-file failure and passed with the corrected include using the real role and a mocked
oc. The playbook syntax check, focusedansible-lint --profile min, andgit diff --checkpassed. Live VM and CI rehearsal validation remain outstanding; the scratch VM was shut off when checked.Jira: https://redhat.atlassian.net/browse/USHIFT-7499
Summary by CodeRabbit