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

v0.6.5-0.1 fails to install on Azure AKS 1.29.9 #871

Open
MrPeacockNLB opened this issue Nov 15, 2024 · 3 comments
Open

v0.6.5-0.1 fails to install on Azure AKS 1.29.9 #871

MrPeacockNLB opened this issue Nov 15, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@MrPeacockNLB
Copy link

MrPeacockNLB commented Nov 15, 2024

Description

After fixing #864 the installation of SysBox fails. I've a Node with SysBox v0.6.4 already installed. This works fine. But when I try to update to latest, it fails while it could not write to a read-only FS.

Detected Kubernetes version v1.29
No previous Sysbox version records found, proceed to upgrade to Sysbox v0.6.5-0 release.
Adding K8s taint "sysbox-runtime=not-running:NoSchedule" to node ...
node/aks-coderste16-39959049-vmss00001d modified
Adding K8s label "sysbox-runtime=installing" to node ...
node/aks-XXXXX-39959049-vmss00001d not labeled
Installing Sysbox dependencies on host ...
Copying shiftfs sources to host ...
Kernel version 5.15 is >= 5.15 and < 5.17
Deploying Sysbox installer helper on the host ...
Running Sysbox installer helper on the host (may take several seconds) ...
Stopping the Sysbox installer helper on the host ...
Removing Sysbox installer helper from the host ...
Stopping Sysbox ...
Installing Sysbox on host ...
sed: couldn't open temporary file /opt/sysbox/systemd/sedkZPHXr: Read-only file system

When downgrading back to v0.6.4 everything works as expected

@MrPeacockNLB MrPeacockNLB changed the title v0.6.5-0.1 fails to install v0.6.5-0.1 fails to install on Azure AKS 1.29.9 Nov 15, 2024
@ctalledo
Copy link
Member

ctalledo commented Dec 5, 2024

Hi @MrPeacockNLB , thanks for reporting the issue.

@rodnymolina: I suspect the problem is caused by this commit:

commit 76c732f519ad8ae58dcf8f6fad6646bb4fa9d7ec
Author: Rodny Molina <[email protected]>
Date:   Fri Jul 5 11:00:56 2024 +0200

    k8s: Enhance logic to detect Sysbox's config-environment changes (sysctl)
    
    Signed-off-by: Rodny Molina <[email protected]>

Particularly this new code:

+function config_sysbox_env() {
+       # Set the sysbox edition in the sysbox-mgr and sysbox-fs systemd unit files.
+       sed -i "/^Environment=/ s|SYSBOX_EDITION=.*|SYSBOX_EDITION=${sysbox_edition}|" ${sysbox_artifacts}/systemd/sysbox-mgr.service
+       sed -i "/^Environment=/ s|SYSBOX_EDITION=.*|SYSBOX_EDITION=${sysbox_edition}|" ${sysbox_artifacts}/systemd/sysbox-fs.service
+}

Seems like /opt/sysbox/systemd is on a read-only file system on the Azure AKS node:

sed: couldn't open temporary file /opt/sysbox/systemd/sedkZPHXr: Read-only file system

Not sure why that is though; as a work-around we could we need to use a different host folder (i.e., not /opt/sysbox) to store the sysbox config files in AKS?

@ctalledo ctalledo added the bug Something isn't working label Dec 5, 2024
@rodnymolina
Copy link
Member

Hmm, interesting, haven't ever seen /opt being placed in a RO partition in Ubuntu. Will try to repro when have a chance.

@MrPeacockNLB
Copy link
Author

Let me know if I can test something...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants