truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.16k stars 615 forks source link

[blocky] cnpg-main-1 not created #21365

Closed kqmaverick closed 7 months ago

kqmaverick commented 7 months ago

chart Name

blocky

Operating System

TrueNAS SCALE 24.04.0

Deployment Method

TrueNAS SCALE charts

Chart Version

14.8.20

Kubernetes Events

2024-04-25 17:23:04
Updated LoadBalancer with new IPs: [] -> [192.168.1.2]
2024-04-25 17:23:04
Started container blocky-system-cnpg-wait
2024-04-25 17:23:03
Created container blocky-redis
2024-04-25 17:23:03
Started container blocky-redis
2024-04-25 17:23:03
Created container blocky-system-cnpg-wait
2024-04-25 17:23:01
Add eth0 [172.16.0.97/16] from ix-net
2024-04-25 17:23:01
Container image "bitnami/redis:7.2.4@sha256:7e5ff96ecddf40ced240ed7836dd5362a0a95ef4da68d5f7d3de40fec974da71" already present on machine
2024-04-25 17:23:01
Add eth0 [172.16.0.98/16] from ix-net
2024-04-25 17:23:01
Container image "tccr.io/tccr/db-wait-postgres:v1.1.0@sha256:4e4e5b9f37a5d0c8d90d744de23d1857079095fbb55d2944ec91d83241f60376" already present on machine
2024-04-25 17:23:00
Scaled up replica set blocky-7469968fbb to 1
2024-04-25 17:23:00
Created pod: blocky-7469968fbb-bfjr2
2024-04-25 17:23:00
Successfully assigned ix-blocky/blocky-7469968fbb-bfjr2 to ix-truenas
2024-04-25 17:23:00
create Pod blocky-redis-0 in StatefulSet blocky-redis successful
2024-04-25 17:23:00
Successfully assigned ix-blocky/blocky-redis-0 to ix-truenas
2024-04-25 17:22:59
ClusterIP -> LoadBalancer
2024-04-25 17:22:59
Failed to update endpoint ix-blocky/blocky-dns: Operation cannot be fulfilled on endpoints "blocky-dns": the object has been modified; please apply your changes to the latest version and try again
2024-04-25 17:22:59
Ensuring load balancer
2024-04-25 17:22:59
There are no available nodes for LoadBalancer
2024-04-25 17:22:59
Applied LoadBalancer DaemonSet kube-system/svclb-blocky-dns-10d1bd49
2024-04-25 17:22:36
Creating ServiceAccount
2024-04-25 17:22:36
Creating Cluster Role

chartlication Logs

cloudnative-pg logs:

2024-04-25 17:24:40.096252-07:00{"level":"info","ts":"2024-04-26T00:24:40Z","msg":"no orphan PVCs found, skipping the restored cluster reconciliation","controller":"cluster","controllerGroup":"postgresql.cnpg.io","controllerKind":"Cluster","Cluster":{"name":"blocky-cnpg-main","namespace":"ix-blocky"},"namespace":"ix-blocky","name":"blocky-cnpg-main","reconcileID":"ae7a6464-7210-4948-8276-7abbf6a4e0ea"}
2024-04-25 17:24:40.113338-07:00{"level":"error","ts":"2024-04-26T00:24:40Z","msg":"Reconciler error","controller":"cluster","controllerGroup":"postgresql.cnpg.io","controllerKind":"Cluster","Cluster":{"name":"blocky-cnpg-main","namespace":"ix-blocky"},"namespace":"ix-blocky","name":"blocky-cnpg-main","reconcileID":"ae7a6464-7210-4948-8276-7abbf6a4e0ea","error":"cannot create Cluster auxiliary objects: expected pointer, but got invalid kind","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tpkg/mod/sigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tpkg/mod/sigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tpkg/mod/sigs.k8s.io/controller-runtime@v0.17.3/pkg/internal/controller/controller.go:227"}

Chart Configuration

TrueNAS-192-168-1-2

Describe the bug

Migration failed due to the lack of a cnpg-main-1 pod. From discussion with @Heavybullets8 believe the issue is related to #21335

To Reproduce

Update cloudnative-pg to 6.10.0 and attempt to migrate.

Expected Behavior

cnpg-main-1 pod is created.

Screenshots

image

Additional Context

Discussion with @Heavybullets8 https://discord.com/channels/830763548678291466/1233213167316762624

I've read and agree with the following

kqmaverick commented 7 months ago

Created a clean VM of 24.04 (fresh install). Installed only operators and then attempted blocky with the same indication as above.

PrivatePuffin commented 7 months ago

Found the issue: https://github.com/cloudnative-pg/cloudnative-pg/issues/4286

Fixing

PrivatePuffin commented 7 months ago

Temporarily fixed in common!

truecharts-admin commented 1 month ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists