Fix: Ansible minor bugs 94/25194/2
authorPeter Mikus <pmikus@cisco.com>
Mon, 17 Feb 2020 08:42:16 +0000 (08:42 +0000)
committerPeter Mikus <pmikus@cisco.com>
Mon, 17 Feb 2020 08:47:47 +0000 (08:47 +0000)
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I804e78c3b8586dc9e9ca8b7cf4bf97d3744aeedc

docs/lab/testbeds_sm_clx_hw_bios_cfg.md
resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.17.yaml [deleted file]
resources/tools/testbed-setup/ansible/inventories/lf_inventory/hosts
resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml
resources/tools/testbed-setup/ansible/roles/performance_tuning/defaults/main.yaml
resources/tools/testbed-setup/ansible/roles/performance_tuning/handlers/main.yaml
resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml
resources/tools/testbed-setup/ansible/roles/vexx_hosts/tasks/main.yaml
resources/tools/testbed-setup/ansible/sut_aws.yaml
resources/tools/testbed-setup/ansible/sut_azure.yaml

index 30146cd..1c0848f 100644 (file)
@@ -1121,11 +1121,11 @@ pku ospke avx512_vnni md_clear flush_l1d arch_capabilities
 
 ```
 Host.           IPMI IP.      BIOS. CPLD.     CPU Microcode.  PCI Bus.   X710 Firmware.            XXV710 Firmware.          i40e.
 
 ```
 Host.           IPMI IP.      BIOS. CPLD.     CPU Microcode.  PCI Bus.   X710 Firmware.            XXV710 Firmware.          i40e.
-s32-t14-sut1.   10.30.55.17.  3.0c. 03.B1.05. 05000021.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
-s33-t27-sut1.   10.30.55.18.  3.0c. 03.B1.05. 05000021.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
-s34-t27-tg1.    10.30.55.19.  3.0c. 03.B1.05. 05000021.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
-s35-t28-sut1.   10.30.55.20.  3.0c. 03.B1.05. 05000021.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
-s36-t28-tg1.    10.30.55.21.  3.0c. 03.B1.05. 05000021.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
-s37-t29-sut1.   10.30.55.22.  3.0c. 03.B1.05. 05000021.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
-s38-t29-tg1.    10.30.55.23.  3.0c. 03.B1.05. 05000021.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
+s32-t14-sut1.   10.30.55.17.  3.2. 03.B1.05. 0500002C.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
+s33-t27-sut1.   10.30.55.18.  3.2. 03.B1.05. 0500002C.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
+s34-t27-tg1.    10.30.55.19.  3.2. 03.B1.05. 0500002C.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
+s35-t28-sut1.   10.30.55.20.  3.2. 03.B1.05. 0500002C.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
+s36-t28-tg1.    10.30.55.21.  3.2. 03.B1.05. 0500002C.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
+s37-t29-sut1.   10.30.55.22.  3.2. 03.B1.05. 0500002C.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
+s38-t29-tg1.    10.30.55.23.  3.2. 03.B1.05. 0500002C.       A5.01.18.  6.01 0x80003554 1.1747.0. 6.01 0x80003554 1.1747.0. 2.1.14-k.
 ```
 ```
diff --git a/resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.17.yaml b/resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.17.yaml
deleted file mode 100644 (file)
index 88ebbfc..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
----
-# file: host_vars/10.32.8.17.yaml
-
-hostname: "s32-t14-sut1"
-grub:
-  isolcpus: "1-27,29-55,57-83,85-111"
-  nohz_full: "1-27,29-55,57-83,85-111"
-  rcu_nocbs: "1-27,29-55,57-83,85-111"
-sysctl:
-  kernel:
-    watchdog_cpumask: "0,28,56,84"
-  vm:
-    nr_hugepages: 65536
-    max_map_count: 20000
-
-inventory_ipmi_hostname: '10.30.55.17'
-cobbler_profile: 'ubuntu-18.04.2-server-x86_64'
-cpu_microarchitecture: "cascadelake"
index fe15007..b51c977 100644 (file)
@@ -37,7 +37,6 @@ all:
         10.32.8.11: #s29-t26-sut1 - denverton
         10.32.8.12: #s30-t35-sut1 - denverton
         10.32.8.13: #s31-t35-sut2 - denverton
         10.32.8.11: #s29-t26-sut1 - denverton
         10.32.8.12: #s30-t35-sut1 - denverton
         10.32.8.13: #s31-t35-sut2 - denverton
-        10.32.8.17: #s32-t14-sut1 - cascadelake
         10.32.8.18: #s33-t27-sut1 - cascadelake
         10.32.8.20: #s35-t28-sut1 - cascadelake
         10.32.8.22: #s37-t29-sut1 - cascadelake
         10.32.8.18: #s33-t27-sut1 - cascadelake
         10.32.8.20: #s35-t28-sut1 - cascadelake
         10.32.8.22: #s37-t29-sut1 - cascadelake
index 0971a1a..030cf59 100644 (file)
@@ -11,8 +11,8 @@
 
 - name: Mellanox Install - Get OFED
   get_url:
 
 - name: Mellanox Install - Get OFED
   get_url:
-    url: "http://content.mellanox.com/ofed/MLNX_OFED-{{ mellanox.version }}/MLNX_OFED_LINUX-{{ mellanox.version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
-    dest: "/opt/MLNX_OFED_LINUX-{{ mellanox.version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
+    url: "http://content.mellanox.com/ofed/MLNX_OFED-{{ mellanox_version }}/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
+    dest: "/opt/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
     mode: 0644
   when: mellanox_pcis.stdout_lines | length > 0
   tags:
     mode: 0644
   when: mellanox_pcis.stdout_lines | length > 0
   tags:
@@ -21,9 +21,9 @@
 - name: Mellanox Install - Extract OFED
   unarchive:
     remote_src: true
 - name: Mellanox Install - Extract OFED
   unarchive:
     remote_src: true
-    src: "/opt/MLNX_OFED_LINUX-{{ mellanox.version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
+    src: "/opt/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
     dest: "/opt/"
     dest: "/opt/"
-    creates: "/opt/MLNX_OFED_LINUX-{{ mellanox.version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}"
+    creates: "/opt/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}"
   register: mellanox_firmware_extracted
   when: mellanox_pcis.stdout_lines | length > 0
   tags:
   register: mellanox_firmware_extracted
   when: mellanox_pcis.stdout_lines | length > 0
   tags:
@@ -32,7 +32,7 @@
 - name: Mellanox Install - Install OFED
   command: "./mlnxofedinstall --with-mft --dpdk --force --upstream-libs"
   args:
 - name: Mellanox Install - Install OFED
   command: "./mlnxofedinstall --with-mft --dpdk --force --upstream-libs"
   args:
-    chdir: "/opt/MLNX_OFED_LINUX-{{ mellanox.version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}"
+    chdir: "/opt/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}"
   when: mellanox_pcis.stdout_lines | length > 0 and mellanox_firmware_extracted
   tags:
     - install-mellanox
   when: mellanox_pcis.stdout_lines | length > 0 and mellanox_firmware_extracted
   tags:
     - install-mellanox
index 60c16a9..edec57a 100644 (file)
@@ -18,6 +18,6 @@ packages_by_arch:
 
 grub_cmdline_linux:
   aarch64:
 
 grub_cmdline_linux:
   aarch64:
-    - 'GRUB_CMDLINE_LINUX="isolcpus={{ grub.isolcpus }} nohz_full={{ grub.nohz_full }} rcu_nocbs={{ grub.rcu_nocbs }} intel_iommu=on nmi_watchdog=0 audit=0 nosoftlockup processor.max_cstate=1"'
+    - "GRUB_CMDLINE_LINUX=\"isolcpus={{ grub.isolcpus }} nohz_full={{ grub.nohz_full }} rcu_nocbs={{ grub.rcu_nocbs }} intel_iommu=on nmi_watchdog=0 audit=0 nosoftlockup processor.max_cstate=1\""
   x86_64:
   x86_64:
-    - 'GRUB_CMDLINE_LINUX="isolcpus={{ grub.isolcpus }} nohz_full={{ grub.nohz_full }} rcu_nocbs={{ grub.rcu_nocbs }} numa_balancing=disable intel_pstate=disable intel_iommu=on iommu=pt nmi_watchdog=0 audit=0 nosoftlockup processor.max_cstate=1 intel_idle.max_cstate=1 hpet=disable tsc=reliable mce=off"'
+    - "GRUB_CMDLINE_LINUX=\"isolcpus={{ grub.isolcpus }} nohz_full={{ grub.nohz_full }} rcu_nocbs={{ grub.rcu_nocbs }} numa_balancing=disable intel_pstate=disable intel_iommu=on iommu=pt nmi_watchdog=0 audit=0 nosoftlockup processor.max_cstate=1 intel_idle.max_cstate=1 hpet=disable tsc=reliable mce=off\""
index 917856b..fa2876b 100644 (file)
@@ -1,13 +1,13 @@
 ---
 # file roles/performance_tuning/handlers/main.yaml
 
 ---
 # file roles/performance_tuning/handlers/main.yaml
 
+- name: Update GRUB
+  command: update-grub
+  tags:
+    - update-grub
+
 - name: Reboot server
   reboot:
     reboot_timeout: 3600
   tags:
     - reboot-server
 - name: Reboot server
   reboot:
     reboot_timeout: 3600
   tags:
     - reboot-server
-
-- name: Update GRUB
-  command: update-grub
-  tags:
-    - update-grub
index 9fedd27..e28f9ba 100644 (file)
@@ -14,7 +14,7 @@
     path: "/etc/default/grub"
     state: "present"
     regexp: "^GRUB_CMDLINE_LINUX="
     path: "/etc/default/grub"
     state: "present"
     regexp: "^GRUB_CMDLINE_LINUX="
-    line: "{{ grub_cmdline_linux[ansible_machine] }}"
+    line: "{{ grub_cmdline_linux[ansible_machine] | join() }}"
   notify:
     - "Update GRUB"
     - "Reboot server"
   notify:
     - "Update GRUB"
     - "Reboot server"
index a8aa573..decda18 100644 (file)
@@ -16,7 +16,6 @@
       gateway: "{{ ansible_default_ipv4.gateway }}"
       profile: "{{ cobbler_profile }}"
       name_servers: "{{ name_servers }}"
       gateway: "{{ ansible_default_ipv4.gateway }}"
       profile: "{{ cobbler_profile }}"
       name_servers: "{{ name_servers }}"
-      name_servers_search: "{{ name_servers_search }}"
       kickstart: "/var/lib/cobbler/kickstarts/{{ cobbler_profile }}.seed"
       kernel_options: '"interface={{ ansible_default_ipv4.interface }}"'
       netboot_enabled: yes
       kickstart: "/var/lib/cobbler/kickstarts/{{ cobbler_profile }}.seed"
       kernel_options: '"interface={{ ansible_default_ipv4.interface }}"'
       netboot_enabled: yes
     - cobbler-include
 
 - meta: flush_handlers
     - cobbler-include
 
 - meta: flush_handlers
-
-- name: Copy netplan network config file
-  template:
-    src: "files/netplan_config"
-    dest: "/etc/netplan/01-netcfg.yaml"
-    owner: "root"
-    group: "root"
-    mode: "0644"
-  tags:
-    - copy-interface-file
-
-- meta: flush_handlers
index 4c71e29..3f85485 100644 (file)
@@ -9,6 +9,8 @@
       tags: user_add
     - role: common
       tags: common
       tags: user_add
     - role: common
       tags: common
+    - role: sut
+      tags: sut
     - role: aws
       tags: aws
     - role: iperf
     - role: aws
       tags: aws
     - role: iperf
index 4fd897d..950287b 100644 (file)
@@ -9,6 +9,8 @@
       tags: user_add
     - role: common
       tags: common
       tags: user_add
     - role: common
       tags: common
+    - role: sut
+      tags: sut
     - role: azure
       tags: azure
     - role: iperf
     - role: azure
       tags: azure
     - role: iperf