sighupio / fury-kubernetes-on-premises

Kubernetes Fury Distribution On-Premises Core Module: Create on-prem Kubernetes Clusters
BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

Ensure firewallD is installed before trying to disable #54

Open g-iannelli opened 1 year ago

g-iannelli commented 1 year ago

On https://github.com/sighupio/fury-kubernetes-on-premises/blob/v1.25.6/roles/kube-node-common/tasks/main.yml#L2L4 check if firewalld is installed before trying to disable it.

Issue raised on AWS RHEL8 Ami ami-01a0c58979de8710b

TASK [kube-node-common : be sure firewalld is disabled] **********************************************************************************************************
task path: ~/k8s-poc/vendor/roles/on-premise/kube-node-common/tasks/main.yml:2
fatal: [master1]: FAILED! => changed=false
  msg: 'Could not find the requested service firewalld: host'
fatal: [master3]: FAILED! => changed=false
  msg: 'Could not find the requested service firewalld: host'
fatal: [worker2]: FAILED! => changed=false
  msg: 'Could not find the requested service firewalld: host'
fatal: [master2]: FAILED! => changed=false
  msg: 'Could not find the requested service firewalld: host'
fatal: [worker1]: FAILED! => changed=false
  msg: 'Could not find the requested service firewalld: host'
fatal: [worker3]: FAILED! => changed=false
  msg: 'Could not find the requested service firewalld: host'