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

Test and make sure the default CR configuration works properly on OpenShift #31

Closed
rm3l opened this issue Nov 21, 2023 · 1 comment
Closed
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@rm3l
Copy link
Member

rm3l commented Nov 21, 2023

I just tried to use the operator locally against an OpenShift cluster (provided by ClusterBot), and noticed a few issues:

  • PostgreSQL database in CrashLoopBackOff state, with the following logs (maybe the image we are using can't be run with a non-root user; I guess we should probably use a different image):
chmod: /var/lib/postgresql/data: Permission denied
chmod: /var/run/postgresql: Operation not permitted
The files belonging to this database system will be owned by user "1000690000".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
initdb: error: could not access directory "/var/lib/postgresql/data": Permission denied
  • Backstage Pod, failing as well. Not sure from the logs if this was due to the lack of connection to the DB:
node:internal/modules/cjs/loader:1031
throw err;
^
Error: Cannot find module '/app/packages/backend'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
at Function.Module._load (node:internal/modules/cjs/loader:873:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Repro Steps

$ make install run
$ oc apply -f examples/postgres-secret.yaml
$ oc apply -f examples/bs1.yaml

image

TODO:

  • Perhaps use the same PostgreSQL image as the one used by the Helm Chart. Check if this image is certified or not.
@rm3l rm3l added this to the M2 (RHDH 1.1 Code Freeze) milestone Nov 21, 2023
@rm3l rm3l added the kind/bug Categorizes issue or PR as related to a bug. label Nov 21, 2023
@rm3l rm3l changed the title Test and make sure the operator works properly on OpenShift Test and make sure the default CR configuration works properly on OpenShift Nov 21, 2023
@rm3l
Copy link
Member Author

rm3l commented Jan 3, 2024

Closing this issue as done. Everything is working on OpenShift and is being regularly checked.

@rm3l rm3l closed this as completed Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants