Open illeatmyhat opened 3 years ago
A long standing issue in OpenShift causes a variety of issues, generally resulting in the non-root user being unable to read or write any files at all.
The relevant YAML files can be found here: https://github.com/illeatmyhat/devops/tree/k8s/mgmt-hub/k8s
This manifests in the management hub services as agbot:
Error: container create failed: time="2021-07-02T09:37:28-05:00" level=error msg="container_linux.go:366: starting container process caused: chdir to cwd (\"/home/agbotuser\") set in config.json failed: permission denied"
css:
/usr/edge-sync-service/bin/css_start.sh: line 3: /etc/edge-sync-service/sync.conf: Permission denied /usr/edge-sync-service/bin/css_start.sh: line 4: /home/cssuser/cloud-sync-service: Permission denied
exchange:
/bin/sh: /etc/horizon/exchange/config.json: Read-only file system
sdo:
Error: container create failed: time="2021-07-02T09:51:15-05:00" level=error msg="container_linux.go:366: starting container process caused: chdir to cwd (\"/home/sdouser\") set in config.json failed: permission denied"
The databases, mongo and postgres, have dedicated OpenShift images which already work. Particularly, they seem to take the solution of changing the ownership and permissions of relevant directories: https://github.com/sclorg/postgresql-container/blob/generated/13/root/usr/libexec/fix-permissions
A long standing issue in OpenShift causes a variety of issues, generally resulting in the non-root user being unable to read or write any files at all.
The relevant YAML files can be found here: https://github.com/illeatmyhat/devops/tree/k8s/mgmt-hub/k8s
This manifests in the management hub services as agbot:
css:
exchange:
sdo:
The databases, mongo and postgres, have dedicated OpenShift images which already work. Particularly, they seem to take the solution of changing the ownership and permissions of relevant directories: https://github.com/sclorg/postgresql-container/blob/generated/13/root/usr/libexec/fix-permissions