Use same host in both copy and run of deploy_optane.sh 63/114463/1
authorTodd Malsbary <todd.malsbary@intel.com>
Fri, 23 Oct 2020 23:18:58 +0000 (16:18 -0700)
committerTodd Malsbary <todd.malsbary@intel.com>
Fri, 30 Oct 2020 23:41:43 +0000 (16:41 -0700)
NOTE: This is not a complete fix, it is only a workaround so that
installer.sh can succeed when Optane hardware is not present.

Without this, "No such file or directory" is reported during the
"Apply Optane PMEM CSI Daemonset" task of the configure-optane
playbook.  This error was observed with kubespray 2.14.1 and not with
2.12.6.

Issue-ID: MULTICLOUD-1234
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I1e23741d704ab117a84b4ed11e2f7ac02f0f2ec2

kud/deployment_infra/playbooks/configure-optane.yml
kud/deployment_infra/playbooks/preconfigure-optane.yml

index 8e000aa..0118980 100644 (file)
@@ -12,4 +12,4 @@
 - hosts: localhost
   tasks:
     - name: Apply Optane PMEM CSI Daemonset
-      command: "{{ base_dest }}/optane/deploy_optane.sh"
+      command: "{{ optane_dest }}/deploy_optane.sh"
index 6462289..135371e 100644 (file)
         state: directory
         path: "{{ optane_dest }}"
       ignore_errors: yes
+    - copy:
+        src: "{{ playbook_dir }}/deploy_optane.sh"
+        dest: "{{ optane_dest }}"
+    - name: Changing perm of "sh", adding "+x"
+      shell: "chmod +x deploy_optane.sh"
+      args:
+        chdir: "{{ optane_dest }}"
+        warn: False
 
 - hosts: kube-node
   become: yes
       args:
         chdir: "optane"
         warn: False
-    - copy:
-        src: "{{ playbook_dir }}/deploy_optane.sh"
-        dest: optane
-    - name: Changing perm of "sh", adding "+x"
-      shell: "chmod +x deploy_optane.sh"
-      args:
-        chdir: "optane"
-        warn: False
     - copy:
         src: "{{ playbook_dir }}/../images/pmem-csi-lvm.yaml"
         dest: optane