Skip to content
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

fsck: cvmfs-fsck.timer depends on cvmfs-fsck.service. #151

Merged
merged 1 commit into from Feb 21, 2022

Conversation

olifre
Copy link
Contributor

@olifre olifre commented Feb 17, 2022

Pull Request (PR) description

cvmfs-fsck.timer should depend on cvmfs-fsck.service, otherwise they may be instantiated in different order.

This Pull Request (PR) fixes the following issues

Without this dependency, the error message:

cvmfs-fsck.timer: Refusing to start, unit cvmfs-fsck.service to trigger not loaded.

may appear during the first Puppet run, depending on resource evaluation order.

@traylenator
Copy link
Contributor

Should migrate to systemd::timer of course and avoid this.

@olifre
Copy link
Contributor Author

olifre commented Feb 18, 2022

@traylenator Indeed, that seems like the much better approach! I must have missed that type in puppet-systemd until now.
I will update the PR later, switching to systemd::timer. Thanks!

@olifre
Copy link
Contributor Author

olifre commented Feb 18, 2022

@traylenator Looking at:
https://github.com/voxpupuli/puppet-systemd/blob/eaf66ff12c5b58ab41127f6979701d48c2304161/manifests/timer.pp
it seems puppet-systemd does not have this dependency as of yet, i.e. it might also fail. A fix does not seem to be entirely trivial, since systemd::timer also allows to not manage the service within that resource.

@traylenator
Copy link
Contributor

Can't the conditional service be before the timer?

Not looked properly.

@olifre
Copy link
Contributor Author

olifre commented Feb 18, 2022

Can't the conditional service be before the timer?

👍

That would be a possibility indeed. Users managing the service themselves may still do things wrong by not setting before, but then it's a usage error ;-).
I'll then first do a PR against puppet-systemd (but not today) and then come back to this.

@olifre
Copy link
Contributor Author

olifre commented Feb 19, 2022

PR against puppet-systemd now open here:
voxpupuli/puppet-systemd#253

@olifre olifre force-pushed the fix-fsck-deps branch 2 times, most recently from bb51d8b to 1ee75cf Compare February 19, 2022 19:33
@olifre
Copy link
Contributor Author

olifre commented Feb 19, 2022

@traylenator Done, the latest force-push switches to systemd::timer and adapts the test suite accordingly :-).,

@traylenator traylenator added the bug Something isn't working label Feb 21, 2022
@traylenator traylenator merged commit c95d341 into voxpupuli:master Feb 21, 2022
@olifre olifre deleted the fix-fsck-deps branch February 22, 2022 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants