Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Not able to mount directories for "/run" dir #2382

Open
sangee2004 opened this issue Dec 18, 2023 · 0 comments
Open

Not able to mount directories for "/run" dir #2382

sangee2004 opened this issue Dec 18, 2023 · 0 comments
Labels
kind/bug Something isn't working
Milestone

Comments

@sangee2004
Copy link
Contributor

acorn version - v0.10.0-rc1-7-g8b9acb47+8b9acb47

Steps to reproduce the problem:

  1. Deploy app that has containers with directory entries for /run
containers: {
	db: {
		image:   "mariadb:10-focal"
		command: "--default-authentication-plugin=mysql_native_password"
		dirs: {
			"/var/lib/mysql": "volume://db-data"
			"/run/secrets":   "secret://db-password"
		}
		environment: {
			MYSQL_DATABASE:           "example"
			MYSQL_ROOT_PASSWORD_FILE: "/run/secrets/db-password"
		}
		ports: ["3306/tcp", "33060/tcp"]
	}
}
secrets: {
	"db-password": {
		type: "opaque"
		data: {
			"db-password": "test1"
		}
	}
}

App deployment fails with following error -

testdir1   a2c10ed8e866             108s ago               (container: db): CrashLoopBackOff: StartError: Exit Code 128: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/lib/kubelet/pods/327ac335-c51e-4019-b7dd-ad2a17cdf8c9/volumes/kubernetes.io~projected/kube-api-access-q897d" to rootfs at "/var/run/secrets/kubernetes.io/serviceaccount": mkdir /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/c85392e6e385b92d476174bae3d4612fc13e2ce2acb5463adf5fb1a86345e7a5/rootfs/run/secrets/kubernetes.io: read-only file system: unknown
@sangee2004 sangee2004 added kind/bug Something isn't working help wanted Extra attention is needed labels Dec 18, 2023
@sangee2004 sangee2004 added this to the Backlog milestone Dec 18, 2023
@cjellick cjellick removed the help wanted Extra attention is needed label Jan 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants