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

Fix noobaa-db-pg-0 Pod stuck CrashLoopBackOff state #853

Merged
merged 1 commit into from Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions deploy/internal/configmap-postgres-initdb.yaml
Expand Up @@ -17,6 +17,14 @@ data:
# Wrap the postgres binary, force huge_pages=off for initdb
# see https://bugzilla.redhat.com/show_bug.cgi?id=1946792
p=/opt/rh/rh-postgresql12/root/usr/bin/postgres

# Latest RH images moved the postgres binary
# from /opt/rh/rh-postgresql12/root/usr/bin/postgres to /usr/bin/postgres
# see https://bugzilla.redhat.com/show_bug.cgi?id=2051249
if [ ! -x $p ]; then
p=/usr/bin/postgres
fi

mv $p $p.orig
echo exec $p.orig \"\$@\" -c huge_pages=off > $p
chmod 755 $p
Expand Down
10 changes: 9 additions & 1 deletion pkg/bundle/deploy.go
Expand Up @@ -3123,7 +3123,7 @@ data:
shared_preload_libraries = 'pg_stat_statements'
`

const Sha256_deploy_internal_configmap_postgres_initdb_yaml = "4d18ac61f52f46c0764b8ae4f1a17912c3afda2f1655406ae338579cc3821bed"
const Sha256_deploy_internal_configmap_postgres_initdb_yaml = "016881f9a5e0561dbf10e7034dead0ee636556c162439d4d54c974a65253357c"

const File_deploy_internal_configmap_postgres_initdb_yaml = `apiVersion: v1
kind: ConfigMap
Expand All @@ -3144,6 +3144,14 @@ data:
# Wrap the postgres binary, force huge_pages=off for initdb
# see https://bugzilla.redhat.com/show_bug.cgi?id=1946792
p=/opt/rh/rh-postgresql12/root/usr/bin/postgres

# Latest RH images moved the postgres binary
# from /opt/rh/rh-postgresql12/root/usr/bin/postgres to /usr/bin/postgres
# see https://bugzilla.redhat.com/show_bug.cgi?id=2051249
if [ ! -x $p ]; then
p=/usr/bin/postgres
fi

mv $p $p.orig
echo exec $p.orig \"\$@\" -c huge_pages=off > $p
chmod 755 $p
Expand Down