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

Activation fails when network connectivity is down #1

Open
dnaq opened this issue Sep 9, 2024 · 5 comments
Open

Activation fails when network connectivity is down #1

dnaq opened this issue Sep 9, 2024 · 5 comments

Comments

@dnaq
Copy link

dnaq commented Sep 9, 2024

When doing a rebuild that causes network connectivity to go down (temporarily), then the activationScript used by opnix will fail, causing the activation to fail.

This can be worked around by deploying the new generation and rebooting, but unfortunately makes opnix use a bit painful.

@mrjones2014
Copy link
Owner

This is expected and no way around it since the op CLI has no offline support.

It's called out in the README.md: https://github.com/mrjones2014/opnix#tradeoffs-vs-agenix

This was a hackathon project, but I probably wouldn't recommend actually using it 😅

@mrjones2014 mrjones2014 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
@dnaq
Copy link
Author

dnaq commented Sep 9, 2024

Sorry, I might have been unclear. I don't mean that activation fails for a host without network support, I mean that activation fails if network connectivity temporarily goes down as part of a rebuild.

An example of this happening is when you run a dns server on the same host and that dns server is updated, this will cause the host to not being able to resolve dns for a short while which will cause the activation to fail.

@mrjones2014
Copy link
Owner

Ah okay, sounds like the systemd deps may not be quite right. It should wait till you come back online before trying to redeploy secrets.

@mrjones2014 mrjones2014 reopened this Sep 10, 2024
@mrjones2014
Copy link
Owner

I'm not super great with systemd, I've spent a long time wrangling it, so if you have any input that would be great

@dnaq
Copy link
Author

dnaq commented Sep 10, 2024

I don't think the issue is systemd, it is that you use a system.activationScript on rebuilds. If it would be possible to not use an activationscript at all, but instead a systemd service for each secret, that would likely work. Somewhat like how secrix does it.

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

No branches or pull requests

2 participants