-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error failed to register as driver: rpm-ostree deploy –register-driver failed #588
Comments
Thanks for the report. It looks like there was something else possibly interacting with rpm-ostree at the same time, which is however a bit unexpected. At the same, this should be a transient condition and the service unit should eventually restart and succeed without any manual intervention. /cc @kelvinfan001 |
@lucab @kelvinfan001
and journal logs of zincati.service :
Before restart
After restart
|
To provide a little bit more clarification to this, However, Zincati will continue on with the rest of its initialization. Importantly, all of Zincati's functionality (e.g. around checking for and applying updates when possible) will still work as normal. For more context, registering as the "updates driver" in rpm-ostree is mostly a UX improvement; see coreos/rpm-ostree#2536. So far, the only difference that it makes is that, as you've noted, All that said, this is indeed a bug and I'll dig into it. Thanks! |
@kelvinfan001 Thanks for your involvement! I will look forward to further investigation of this issue. I also want to add that I have applied the Periodic strategy update, and I will see how the |
@empikls do you think you can provide some earlier logs of rpm-ostree, preferably around the time when The On Zincati's side, we could probably get Zincati to retry a couple of times to register as driver before giving up, but I'm not sure if this is the best solution to this problem, depending on what kind of transaction rpm-ostree was handling at the time. Another issue with retrying multiple times is that the amount of time for rpm-ostree to process each transaction varies greatly; I'm not sure if it is worth it to block Zincati initialization on driver registration. It also might be helpful if rpm-ostree had the ability to queue transactions. |
@kelvinfan001 for the experiment, I set up a new instance, here are the
And when I check rpm-ostree status -b :
And also i can add logs from
|
@empikls it looks like there are some other tasks running on this machine at boot, like settings In general if there are some other services interacting with rpm-ostree daemon (and possibly rebooting the machine), the units should have proper Before/After dependencies to make sure they run in a deterministic order. |
@lucab yes,
Ignition for services:
|
@empikls I have been able to reproduce this problem. Looking at the Ignition configuration you provided, I believe the conflict is caused by |
@kelvinfan001 Great! I've set up instances with |
For units that require creating rpm-ostree transactions, there is a risk of failing if there are other rpm-ostree transactions taking place at the same time. Order these karg services before `boot-complete.service` to ensure that we run early enough so that other services (e.g. `zincati.service`) or user commands won't cause this unit to fail. This was noticed in coreos/zincati#588.
For units that require creating rpm-ostree transactions, there is a risk of failing if there are other rpm-ostree transactions taking place at the same time. Order these karg services before `boot-complete.target` to ensure that we run early enough so that other services (e.g. `zincati.service`) or user commands won't cause this unit to fail. This was noticed in coreos/zincati#588.
Hi,
I have problem when i start my service zincati in first time.
My instances are managed by terraform and when i check status of service i see error
I can restart my service and error goes away, but i can’t do it manually on all my instances and terraform don’t allow restart services automatically .
Also when i first check
rpm-ostree status -b
i don’t see Zincati in front of BootedDeployment , but later after restart i see the followingPlease help me with my case .
The text was updated successfully, but these errors were encountered: