system-upgrade-controller icon indicating copy to clipboard operation
system-upgrade-controller copied to clipboard

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

Open knu-code opened this issue 1 year ago • 2 comments

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?

knu-code avatar Feb 20 '24 12:02 knu-code

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?

brandond avatar Feb 20 '24 19:02 brandond

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.

MartySherrill avatar Apr 03 '24 15:04 MartySherrill