-
Notifications
You must be signed in to change notification settings - Fork 18
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
Correctly start rhc-canonical-facts.timer and service #157
base: main
Are you sure you want to change the base?
Conversation
07514cd
to
26fb5d6
Compare
/packit rebuild-failed |
b3d8f54
to
ee54746
Compare
d7ace59
to
60c40f6
Compare
60c40f6
to
2fd2cf1
Compare
ec67f69
to
9a1081d
Compare
8ca6042
to
72f554e
Compare
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.
Thanks for the PR. Overall it looks good, and it seems that it works in typical scenario. I have some questions, comments and suggestions.
When starting yggdrasil service failed (due to fact that mosquitto was not running), then nothing is reported, but when I tried to run rhc disconnect
and yggdrasil service was not running, then following error was printed:
root@localhost:/# rhc disconnect
Disconnecting thinkpad-p1 from Red Hat.
This might take a few seconds.
● Cannot deactivate yggdrasil service: cannot disable yggdrasil.service: cannot stop unit yggdrasil.service: timed out waiting for state 'inactive': timed out waiting 1s for unit state 'inactive'
● Disconnected from Red Hat Insights
● Disconnected from Red Hat Subscription Management
Manage your connected systems: https://red.ht/connector
The following errors were encountered during disconnect:
TYPE STEP ERROR
ERROR yggdrasil Cannot deactivate yggdrasil service: cannot disable yggdrasil.service: cannot stop unit yggdrasil.service: timed out waiting for state 'inactive': timed out waiting 1s for unit state 'inactive'
When I run rhc disconnect
and then I run systemct status yggdrasil.service
, then I got following warning message:
Warning: The unit file, source configuration file or drop-ins of yggdrasil.service changed on disk. Run 'systemctl daemon-reload' to reload units.
... The reason is (probably) in one of my comment.
To ensure yggd can read the facts file, create it and change ownership to yggdrasil.
The timer should only be started when `rhc connect` is run, therefore it is no longer necessary to enable the timer by default.
This package implements a basic wrapper around the systemd D-Bus API.
Running 'rhc connect' will explicitly activate and start the rhc-canonical-facts.timer unit. Likewise, running 'rhc disconnect' will explicitly deactivate and stop the rhc-canonical-facts.timer unit.
72f554e
to
013b766
Compare
This error message seems acceptable to me. Would you prefer something else? |
A collection of small changes to the rhc-canonical-facts service and timer. These changes are intended to ensure the timer and services run appropriately. Instead of trying to start rhc-canonical-facts.service as a requirement of yggdrasil.service, this PR changes the behavior of
roc connect
so that first therhc-canonical-facts.timer
is started, followed by theyggdrasil.service
.Card ID: CCT-291