aerospike / aerospike-kubernetes-init

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with start statefulset

gricuk opened this issue · comments

Hi, I try to start aerospike(deployed by manifests) on my k8s cluster but I got the following error:

kubectl logs -n aerospike aerospike-1 aerospike
link eth0 state up
link eth0 state up in 0
Mar 31 2020 11:20:48 GMT: FAILED ASSERTION (config): (cfg.c:1897) couldn't open configuration file /etc/aerospike/aerospike.conf: No such file or directory
Mar 31 2020 11:20:48 GMT: WARNING (as): (signal.c:153) SIGINT received, shutting down
Mar 31 2020 11:20:48 GMT: WARNING (as): (signal.c:156) startup was not complete, exiting immediately
kubectl logs -n aerospike aerospike-0 aerospike-init
installing aerospike.conf into /etc/aerospike
2020/03/30 14:21:42 aerospike-0.aerospike.aerospike.svc.cluster.local - [10.42.128.7]
2020/03/30 14:21:42 aerospike-1.aerospike.aerospike.svc.cluster.local - [10.42.240.3]
2020/03/30 14:21:42 Peer list updated
was []
now [aerospike-0.aerospike.aerospike.svc.cluster.local aerospike-1.aerospike.aerospike.svc.cluster.local]
2020/03/30 14:21:42 execing: /on-start.sh with stdin: aerospike-0.aerospike.aerospike.svc.cluster.local
aerospike-1.aerospike.aerospike.svc.cluster.local
2020/03/30 14:21:42 + set -e
+ CFG=/etc/aerospike/aerospike.template.conf
+ HB_PORT=3002
+ '[' '!' -z ']'
+ '[' '' = true ']'
+ '[' '' = true ']'
+ '[' '' = true ']'
+ '[' '' = true ']'
+ '[' '' = true ']'
++ hostname
+ HOSTNAME=aerospike-0
+ IFS=-
+ read -ra ADDR
++ hostname
+ CLUSTER_NAME=aerospike
+ read -ra LINE
+ [[ aerospike-0.aerospike.aerospike.svc.cluster.local == *\a\e\r\o\s\p\i\k\e\-\0* ]]
+ MY_NAME=aerospike-0.aerospike.aerospike.svc.cluster.local
+ PEERS=("${PEERS[@]}" $LINE)
+ read -ra LINE
+ [[ aerospike-1.aerospike.aerospike.svc.cluster.local == *\a\e\r\o\s\p\i\k\e\-\0* ]]
+ PEERS=("${PEERS[@]}" $LINE)
+ read -ra LINE
+ for PEER in "${PEERS[@]}"
+ sed -i -e '/mesh-seed-placeholder/a \\t\tmesh-seed-address-port aerospike-0.aerospike.aerospike.svc.cluster.local 3002' /etc/aerospike/aerospike.template.conf
+ for PEER in "${PEERS[@]}"
+ sed -i -e '/mesh-seed-placeholder/a \\t\tmesh-seed-address-port aerospike-1.aerospike.aerospike.svc.cluster.local 3002' /etc/aerospike/aerospike.template.conf
2020/03/30 14:21:43 Peer finder exiting

Also I've checked init scripts , but i don't understand when aerospike.conf should be created.

aerospike version 3.12.1

UPDATED: Working fine with aerospike 3.16.0.6

Hi @gricuk

Thanks for update.
I would recommend using latest version aerospike server or at least 4.6+ versions. Our Helm Charts and other kubernetes components are developed and tested with 4.6+ versions.