Debian Codegraph @

ansible_collections/ibm/storage_virtualize/playbooks/firmware_upgrade/README.md

raw symbols SCIP
1 # Automated Firmware Upgrade of IBM FlashSystem Using Ansible Playbook
2
3 This document explains the Ansible playbook required for upgrading IBM FlashSystem firmware. The playbooks are designed to automate the upgrade process, ensuring a smooth and efficient transition to the latest software version.
4
5 ## Table of Contents
6
7 - [Prerequisites](#prerequisites)
8 - [Overview](#overview)
9 - [Variables](#variables)
10
11 ## Prerequisites
12 - IBM Storage Virtualize Ansible Collection must be installed.
13 - The pexpect `package` must be installed in the execution environment.
14 - The latest Upgrade Test Utility should be downloaded from the IBM Fix Central site. (https://www.ibm.com/support/fixcentral/)
15 - The desired firmware version must be downloaded from IBM Support website.
16
17 ## Overview
18
19 The playbook to upgrade IBM FlashSystem firmware performs the following steps:
20 - Copies the Upgrade Test Utility to the system.
21 - Verifies whether system can be upgraded to desired firmware update from current firmware level.
22 - Copies the firmware upgrade package to the system.
23 - Updates the firmware.
24 - Ensure firmware upgrade is successful.
25
26 The playbook structure is as below:
27 ```
28 ibm.storage_virtualize
29 │
30 └─playbooks
31 │
32 └─firmware_upgrade
33 │
34 └─main.yaml
35 └─README.md
36 └─inventory.ini
37 ...
38 ```
39
40 ## Variables
41 ### These variables should be defined in inventory.ini file
42
43
44 | Variable | Notes |
45 |----------------------------|---------------------------------------------------------------------------------------|
46 | clustername | Cluster's FQDN or cluster IP address |
47 | username | Username for the system |
48 | password | Password for the system |
49 | firmware_package_src_path | Path of the downloaded firmware package on the Ansible controller |
50 | firmware_version_number | Version of the firmware package to be installed on the system |
51 | upgrade_test_util_src_path | Path of the downloaded Upgrade Test Utility on the Ansible controller |
52 | poll_period | Polling period in seconds for checking the upgrade status (default: 900 seconds) |
53 | poll_retries | Number of retries for checking the upgrade status (default: 30 retries) |
54
55 **Example inventory.ini File**
56 Here is an example inventory.ini file that demonstrates how to configure the variables:
57 ```
58 clustername: X.X.X.X
59 username: username1234
60 password: password1234
61 firmware_package_src_path: /Users/IBM_FlashSystem_NVMe_INSTALL_8.7.3.2.tgz.gpg
62 firmware_version_number: 8.7.3.2
63 upgrade_test_util_src_path: /Users/IBM_INSTALL_FROM_8.5_AND_LATER_upgradetest_46.14
64 ```
65
66 > [!CAUTION]
67 > If the `Run svcupgradetest utility` task fails due to upgrade readiness issues (errors or warnings), the playbook will stop with a clear error message.
68 >
69 > To proceed despite these warnings, please set the `ignore_errors` to true in the `Run svcupgradetest utility` task and re-run the playbook.
70 >
71 > ```yaml
72 > ignore_errors: true
73 > ```
74
75 > [!IMPORTANT]
76 > The playbook uses SCP to transfer the firmware package to the FlashSystem. If Ansible controller supports SFTP, remove the `-O` flag before running the playbook.
77
78 ## Authors
79
80 - Sumit Kumar Gupta ([email protected])
81 - Aditya Bhosale ([email protected])
82 - Prathamesh Deshpande ([email protected])