Procházet zdrojové kódy

Issue #768: AWX Pod going to CrashLoopBackoff

Signed-off-by: Lakshmi-Patneedi <Lakshmi_Patneedi@Dellteam.com>
Lakshmi-Patneedi před 3 roky
rodič
revize
20e5e63cb1

+ 14 - 2
control_plane/roles/webui_awx/tasks/install_awx.yml

@@ -32,6 +32,18 @@
     dest: "{{ awx_operator_folder }}"
     version: "{{ awx_tag }}"
 
+- name: Modifying livenessprobe value
+  replace:
+    path: "{{ awx_manager_file }}"
+    regexp: 'initialDelaySeconds: 15'
+    replace: 'initialDelaySeconds: 600'
+
+- name: Modifying readinessprobe value
+  replace:
+    path: "{{ awx_manager_file }}"
+    regexp: 'initialDelaySeconds: 5'
+    replace: 'initialDelaySeconds: 300'
+
 - name: Create namespace
   command: "kubectl create namespace {{ awx_namespace }}"
   changed_when: true
@@ -86,7 +98,7 @@
   retries: "{{ min_retries }}"
 
 - name: Waiting for awx-operator deployment to be up and running
-  command: kubectl wait --for=condition=available deployment awx-operator-controller-manager -n {{ awx_namespace }} --timeout=600s
+  command: kubectl wait --for=condition=available deployment awx-operator-controller-manager -n {{ awx_namespace }} --timeout=900s
   changed_when: false
 
 - name: Deploy awx
@@ -112,7 +124,7 @@
 - name: Fails if the pods go into ImagePullBackOff state
   block:
     - name: Waiting for awx deployment to be up and running
-      command: kubectl wait --for=condition=available deployment awx -n {{ awx_namespace }} --timeout=1200s
+      command: kubectl wait --for=condition=available deployment awx -n {{ awx_namespace }} --timeout=1500s
       changed_when: false
 
   rescue:

+ 1 - 0
control_plane/roles/webui_awx/vars/main.yml

@@ -29,6 +29,7 @@ file_perm: '0644'
 awx_wait_time: 90
 deployment_failure_msg: "Deployment failed due to docker pull rate limit"
 awx_operator_link: "https://github.com/ansible/awx-operator.git"
+awx_manager_file: '/root/awx-operator/config/manager/manager.yaml'
 
 # Usage: configure_settings.yml
 awx_port: 8052