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

Invalid mode for zincati configuration on bootstrap #215

Closed
vrutkovs opened this issue Jun 13, 2020 · 5 comments · Fixed by openshift/okd-machine-os#24
Closed

Invalid mode for zincati configuration on bootstrap #215

vrutkovs opened this issue Jun 13, 2020 · 5 comments · Fixed by openshift/okd-machine-os#24

Comments

@vrutkovs
Copy link
Member

Jun 13 04:34:17 localhost zincati[4583]: Error: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
Jun 13 04:34:17 localhost zincati[4583]: failed to open file '/etc/zincati/config.d/90-disable-feature.toml'
Jun 13 04:34:17 localhost zincati[4583]: failed to assemble configuration settings
Jun 13 04:34:17 localhost systemd[1]: zincati.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 04:34:17 localhost systemd[1]: zincati.service: Failed with result 'exit-code'.

Zincati cannot read config file, probably due to an invalid file mode

@vrutkovs
Copy link
Member Author

vrutkovs commented Jul 2, 2020

@LorbusChris
Copy link
Contributor

What's weird in #392 (comment) is that the 90-disable-feature.toml file shouldn't even exist in 4.6 at all.
Anyway, I've opened openshift/okd-machine-os#24 to disable the service even before MCO runs.

@vrutkovs
Copy link
Member Author

vrutkovs commented Dec 4, 2020

Here's a short description of the issue:

Bootstrap configuration is apparently being created with invalid permissions. However this seems to do the trick - Zincati is stopped on bootstrap :) So its a minor nuisanse and it won't be resolved by MCO changes.

The cleanest approach here is to move installer file configuration to okd-machine-os and check file permissions.

@vrutkovs
Copy link
Member Author

vrutkovs commented Dec 5, 2020

It actually got worse in latest 4.7/4.6:

[core@ip-10-0-15-78 ~]$ systemctl status zincati
● zincati.service - Zincati Update Agent
     Loaded: loaded (/usr/lib/systemd/system/zincati.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/zincati.service.d
             └─okd-machine-os-disabled.conf
     Active: active (running) since Sat 2020-12-05 09:55:38 UTC; 58s ago
       Docs: https://github.com/coreos/zincati
   Main PID: 742 (zincati)
      Tasks: 2 (limit: 9197)
     Memory: 15.4M
     CGroup: /system.slice/zincati.service
             └─742 /usr/libexec/zincati agent -v

Dec 05 09:55:38 localhost systemd[1]: Started Zincati Update Agent.
Dec 05 09:55:38 localhost zincati[742]: [INFO ] starting update agent (zincati 0.0.13)
Dec 05 09:55:44 ip-10-0-15-78 zincati[742]: [INFO ] Cincinnati service: https://updates.coreos.fedoraproject.org
Dec 05 09:55:44 ip-10-0-15-78 zincati[742]: [INFO ] agent running on node 'c97af433021d4245801732d157b0b0e0', in update group 'default'
Dec 05 09:55:44 ip-10-0-15-78 zincati[742]: [INFO ] initialization complete, auto-updates logic enabled
[core@ip-10-0-15-78 ~]$ cat /etc/systemd/system/zincati.service.d/okd-machine-os-disabled.conf 
[Unit]
ConditionPathExists=/enoent

@vrutkovs vrutkovs reopened this Dec 5, 2020
@vrutkovs
Copy link
Member Author

vrutkovs commented Dec 5, 2020

Fixed via installer dropin vrutkovs/installer@4a15883 :

[core@ip-10-0-0-171 ~]$ sudo systemctl status zincati
● zincati.service - Zincati Update Agent
     Loaded: loaded (/usr/lib/systemd/system/zincati.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/zincati.service.d
             └─okd-machine-os-disabled.conf
     Active: inactive (dead)
  Condition: start condition failed at Sat 2020-12-05 10:18:48 UTC; 1min 12s ago
       Docs: https://github.com/coreos/zincati

Dec 05 10:18:48 ip-10-0-0-171 systemd[1]: Condition check resulted in Zincati Update Agent being skipped.

@vrutkovs vrutkovs closed this as completed Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants