-
Notifications
You must be signed in to change notification settings - Fork 114
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
Don't hardcode device image file in unit template #1704
Conversation
The cifmw_block_device role creatas a systemd unit that harcodes the device image file to user for ceph-osd-losetup. Instead it should use the cifmw_block_device_image_file var, since that var will always point to correct path for the file (as it has a default).
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+2 Thank you for fixing this bug.
@@ -9,7 +9,7 @@ After=syslog.target | |||
[Service] | |||
Type=oneshot | |||
ExecStart=/bin/bash -c '/sbin/losetup {{ cifmw_block_device_loop }} || \ | |||
/sbin/losetup {{ cifmw_block_device_loop }} /var/lib/ceph-osd.img ; partprobe {{ cifmw_block_device_loop }}' | |||
/sbin/losetup {{ cifmw_block_device_loop }} {{ cifmw_block_device_image_file }} ; partprobe {{ cifmw_block_device_loop }}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we have the same default for this value and should use the variable in case someone overrides it.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cjeanner The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The cifmw_block_device role creatas a systemd unit that harcodes the
device image file to user for ceph-osd-losetup. Instead it should use
the cifmw_block_device_image_file var, since that var will always point
to correct path for the file (as it has a default).
As a pull request owner and reviewers, I checked that: