ansible/awx-operator

awx-postgres-0 go into CreateContainerConfigError if multi-node-minikube

Open

#321 aperta il 18 mag 2021

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)Jinja (712 fork)auto 404
help wantedtype:bug

Metriche repository

Star
 (1488 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

ISSUE TYPE
  • Bug Report
SUMMARY

awx-postgres-0 go into CreateContainerConfigError if multi-node-minikube

ENVIRONMENT
  • AWX version: 19.0.0
  • Operator version: in awx
  • Kubernetes version: 1.20
  • AWX install method: docker on linux
STEPS TO REPRODUCE
minikube start -n 3

kubectl get pods -o wide
awx-postgres-0 ...  minikube-m02.

kubectl describe pod awx-postgres-0
Error: stat /tmp/hostpath-provisioner/default/postgres-awx-postgres-0: no such file or directory 

# exists in main node
minikube ssh  'ls /tmp/hostpath-provisioner/default/postgres-awx-postgres-0/ -ld' 
drwxrwxrwx 3 root root 4096 May 18 04:13 /tmp/hostpath-provisioner/default/postgres-awx-postgres-0/

# not in m02 node
minikube ssh  -n m02  'ls /tmp/hostpath-provisioner/default/postgres-awx-postgres-0/ -ld' 

# just tmply fix 
minikube ssh  -n m02  'sudo mkdir -p  /tmp/hostpath-provisioner/default/postgres-awx-postgres-0/; sudo chmod 777 /tmp/hostpath-provisioner/default/postgres-awx-postgres-0/'

# ok now 
kubectl get pods -o wide
NAME                          READY   STATUS    RESTARTS   AGE     IP           NODE           NOMINATED NODE   READINESS GATES
awx-b5f6cf4d4-flxls           4/4     Running   0          3m54s   10.244.1.3   minikube-m02   <none>           <none>
awx-operator-f768499d-tjkg5   1/1     Running   0          5m36s   10.244.2.2   minikube-m03   <none>           <none>
awx-postgres-0                1/1     Running   0          4m1s    10.244.1.2   minikube-m02   <none>           <none>

Guida contributor