Skip to content
Snippets Groups Projects
Commit fc606a27 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

Change to remove old driver before installing new one. This is to prevent situations

where old rpm's are still left on the system. As a result of this Lustre packages are
uninstalled so you will need to call lustre role after invoking it. This code comes
directly from update  clusterbuild/local_roles/m3_force_upgrade
parent f00b9f3c
No related branches found
No related tags found
1 merge request!296Remove old mellanox driver before installing new one.
...@@ -65,10 +65,53 @@ ...@@ -65,10 +65,53 @@
become_user: root become_user: root
when: install_now when: install_now
#remove old mellanox drivers as they may interfere with an update
- name: stop lustre
service: name=lustre-client state=stopped
become: true
become_user: root
ignore_errors: true
when: install_now
- name: remove ipa stuff
yum: name={{ item }} state=absent
become: true
become_user: root
ignore_errors: true
with_items:
- ipa-common
- ipa-python-compat
- python2-ipalib
when: install_now
- name: remove unnecessary packages that break stuff
yum: name={{ item }} state=absent
become: true
become_user: root
ignore_errors: true
with_items:
- libgpod
- usbmuxd
- libmlx5
- libmlx4
- libibverbs
when: install_now
- name: remove mellanox rpms
yum: name={{ item }} state=absent
become: true
become_user: root
ignore_errors: true
with_items:
- mlnx-ofa_kernel
- mlnx-ofa_kernel-devel
- mlnx-ofa_kernel-modules
when: install_now
- name: install drivers - name: install drivers
shell: ./mlnxofedinstall -q --add-kernel-support --force --skip-repo shell: ./mlnxofedinstall -q --add-kernel-support --force --skip-repo
args: args:
#more changes
chdir: "/tmp/{{ MELLANOX_DRIVER_SRC }}" chdir: "/tmp/{{ MELLANOX_DRIVER_SRC }}"
become: true become: true
become_user: root become_user: root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment