Skip to content

[cifmw_cephadm] Fix log path when post.yml delegates to localhost#3933

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
rebtoor:fix-ceph
May 15, 2026
Merged

[cifmw_cephadm] Fix log path when post.yml delegates to localhost#3933
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
rebtoor:fix-ceph

Conversation

@rebtoor
Copy link
Copy Markdown
Contributor

@rebtoor rebtoor commented May 15, 2026

cifmw_cephadm_log_path uses ansible_user_dir which resolves to /root on compute nodes running with become: true. The post.yml and logs.yml tasks delegate_to: localhost to write log files, but on the controller the zuul user cannot create directories under /root.

Use cifmw_basedir (always /home/zuul/ci-framework-data in CI) with a fallback to the original expression for non-CI contexts.

Related-Issue: ANVIL-109

cifmw_cephadm_log_path uses ansible_user_dir which resolves to
/root on compute nodes running with become: true. The post.yml
and logs.yml tasks delegate_to: localhost to write log files, but
on the controller the zuul user cannot create directories under
/root.

Use cifmw_basedir (always /home/zuul/ci-framework-data in CI)
with a fallback to the original expression for non-CI contexts.

Related-Issue: ANVIL-109
Co-authored-by: Cursor <cursoragent@cursor.com>

Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
@rebtoor rebtoor requested a review from fmount May 15, 2026 08:24
Copy link
Copy Markdown
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

/lgtm (Thanks!)

Copy link
Copy Markdown
Contributor

@michburk michburk left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 15, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michburk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot Bot merged commit ce8a96f into openstack-k8s-operators:main May 15, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants