-
Notifications
You must be signed in to change notification settings - Fork 59
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
zincati.service is missing zincati user. #457
Comments
Hi @dustymabe thank for this quick answer, you'll find the used file in here: https://github.com/gtherond/ignition/blob/2c9277fe90ce7148c8bad2954e628696f42ff7b0/src/bootstrap.yml I didn't used the group directive with this configuration as the group is correctly created and named/detected. I'll test with the UID later on today or this weekend. All in all, that issue may be related with |
@gtherond thanks for the report. Both the As Dusty said, if those configuration files do not contain secrets then the default mode Does this work if you drop the |
I can answer this one. It fails if I specify the user/group ownership of the file via name ( |
Yes, this is the correct thing to do. There's no reason to make configuration files in In other words just make it owned by |
Agree. Though I think there is still a bug here. During ignition we should be able to write files out and make them owned by the |
I think we should be using |
(I'd rather not start hijacking tickets, it's very hard to triage stuff this way) The
So, while not a blocker for @gtherond (who can just use default mode/ownership as shown in the docs), this is still a bug worth investigating. I can clearly see the entries in |
So, all in all, you're right, having root owning the configuration file and making it available to an isolated service using the 0644 modal access right is better I'll fix my ownership and rights configuration accordingly. However, the root cause of this issue is the zincati user creation being problematic as @dustymabe explained it way better than me ^^ I'll continue to test and fix my configuration, feel free to consider that issue as close if you think that this user discussion require more than just an issue, however, I would really push for the documentation page to explain that and have a higher documentation page explaining how users are set/configured within FCOS as its kinda frustrating to "discover" it at runtime, thankfully you guys are prompt to answer and follow up either on github or IRC, but I really think that a better documentation could benefit new comers to FCOS. PS: I'll be more than happy to wrote that documentation if you want. |
I think it's pretty simple, |
Ah, that looks indeed painfully right. https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format seems to be still ongoing. |
@gtherond agreed on the docs side comment. I think you are basically looking for coreos/fedora-coreos-docs#23 to be fixed. Feel free to followup there with anything else you see that should be covered. |
@lucab yep, I'll subscribe to that issue and look at what I can fix within it this weekend. Can I close the issue so ? Or do you guys want it to be opened for records ? |
We discussed this in IRC: we need to run This is also discussed in #155. |
Hi team, I think I've might have catch up a bug with the way FCOS handle zincati or something unclear/missing within the FCOS documentation.
Zincati service unit specify that the agent need to be runned as the zincati user/group, and therefore that the zincati configuration files should be either owned by such user or created with a relaxed 644 permission for the configuration to be written by root while doing the ignition provisioning but still allowing zincati agent to access/read them.
When using an ignition configuration file specifying
user:zincati
andgroup:zincati
as user/group directive for the file section, without previously create the appropriate zincati user, it end up with a failed and hanging boot because the zincati user doesn't exist initially within the FCOS image.So either FCOS need to have this user created by default, or the FCOS documentation need to be updated to reflect that situation.
Here is a capture of the boot error:
TBN: Debugging this issue was a pain point as the boot endup freezing with a emergency.service failed message that do not bring any rescue console. I may have to open another issue related to ignition or FCOS itself as not showing any debug/rescue command when ignition fail hard is a little bit cumbersome.
PS: And I can't get rpm-ostree information due to the upper note.
The text was updated successfully, but these errors were encountered: