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

apply-system-agent-upgrader job not work when use symble link to /var/lib/rancher #290

Open
knu-code opened this issue Feb 20, 2024 · 2 comments

Comments

@knu-code
Copy link

I hava created a sysmbol link to /var/lib/rancher, but container cant recgonise a symbol link.
how can i fix this?
can i mount an additional volume for the job by changing the system-upgrade-controller crd? or there are some other methods not need to change the crd?

@brandond
Copy link
Member

What does your job spec look like? the system-upgrade-controller itself doesn't care about any paths on the nodes, it sounds like your issue is with the job or job pod?

@MartySherrill
Copy link

I also ran into this apply-system-agent-upgrader error, which I found described here:

https://slack-archive.rancher.com/t/8600780/does-anybody-know-what-is-the-purpose-of-system-upgrade-cont

mkdir: can't create directory '/host/var/lib/rancher/': No such file or directory

I wasn't able to grok the right way to have Rancher utilize a different filesystem for /var/lib/rancher, but ChatGPT encouraged me to try using a "bind mount" instead of a symlink, and the apply-system-agent-upgrader job now seems to succeed.

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

3 participants