ansible/awx-operator

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

Open

#321 opened on May 18, 2021

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Jinja (712 forks)auto 404
help wantedtype:bug

Repository metrics

Stars
 (1,488 stars)
PR merge metrics
 (PR metrics pending)

Description

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>

Contributor guide