IBM Support

Installing multiple PowerVC 2.0.1 ifixes simultaneously

How To


Summary

This document gives the instructions for installing multiple PowerVC 2.0.1 ifixes simultaneously, by utilizing a script which comments out the restart function in the individual ifix install scripts.

Objective

Installing multiple PowerVC 2.0.1 ifixes can be time consuming, because the install script includes a restart function. This document provides instructions and a script for installing multiple fixes at once, by commenting out the restart function in the scripts.

Environment

PowerVC 2.0.1

Steps

Note: Since this document was first created, fix pack 2.0.1.1 for PowerVC 2.0.1 has been created, and is available for download at IBM Fix Central. That fix pack should be used to install multiple fixes on a 2.0.1 system instead of the script in this document.
 
The list of fixes which should be installed on PowerVC 2.0.1 at one time, and supersede earlier fixes, is:
 
Fix Component Notes
IT37330 PVC_OS_cinder
IT37541_IT37039_IT36970 Various NovaLink fix also included
IT37650 Image
IT38746 Compute Discovery
IT38058 Clerk and Monitor For Cloud version of PowerVC only. Includes IT38119. Must be installed before IT38656.
IT38656 Monitor Includes IT37987
IT39016 Block Includes IT37029
IT38283 Nova Includes IT38556
There are also fixes which must be installed individually after the other fixes.
 
Fix Area/Component Notes
IT36920 Threading Issue Requires the patch command be installed. Do not install this patch if you have a level of python3-libs above 3.6.8-37. (For example we have seen errors for customers with python3-libs-3.6.8-39.el8_4.)
IT38749 UI NovaLink fix also included
IT37780 Image Mandatory but for NovaLink only
 
The steps to install the fixes are:
  1. Download all of the fixes you will install to the /root/ifixes folder on your PowerVC server.
  2. Copy and paste the following to create the install script.

    #!/usr/bin/bash
    fix_path='/root/ifixes'
    if [ ! -d "$fix_path" ]; then
    # Control will enter here if $fix_path doesn't exist.
    echo "Expected fix_path does not exist. Exiting."
    exit
    fi
    grep -rl "restart_pvc" $fix_path
    grep -rl "restart_pvc" $fix_path | xargs sed -i 's/restart_pvc$/# restart_pvc/g'
    cp /opt/ibm/powervc/new-ui/.env /tmp
    cat /tmp/.env
    cd $fix_path
    sh IT37330-2.0.1/install
    sh IT37541_IT37039_IT36970-2.0.1/install
    sh IT37650-2.0.1/install
    sh IT38746-2.0.1/install
    sh IT39016-2.0.1/install
    sh IT38283-2.0.1/install
    echo -n "Install PowerVC Cloud only fix IT38058 (y/n)? "
    read answer
    if [ "$answer" != "${answer#[Yy]}" ] ;then
    sh IT38058-2.0.1/install
    else
    echo "Skipping IT38058"
    fi
    sh IT38656-2.0.1/install
    grep -rl "restart_pvc" $fix_path | xargs sed -i 's/# restart_pvc$/restart_pvc/g'
grep -rl "restart_pvc"  $fix_path | xargs sed -i 's/# restart_pvc$/restart_pvc/g'
 
  • Understand what the install script is doing before running it:
    • It defines the fix path as /root/ifixes.
    • It returns a recursive list of all of the files containing the string "restart_pvc" in the fix path.
    • It changes all occurrences of "restart_pvc" in files in the fix path to "# restart pvc" to comment it out.
    • It copies the /opt/ibm/powervc/new-ui/.env file to the /tmp directory and then displays it.
    • It changes to the fix path directory.
    • It runs the installer for each ifix.
    • It changes all occurrences of "# restart_pvc" in files in the fix path to "restart pvc" to uncomment it.
    • Note: The developer has said that instead of running this script as a script you can run each command individually. If you do this, please run the script command to generate a "typescript" file of the commands you run. That would be useful if we need to troubleshoot.
  • After the ifix install is done you will want to install the three other fixes, IT36920 (see note above), IT38749, and IT37780.
  • Then run the command cp /tmp/.env /opt/ibm/powervc/new-ui to recopy your UI environment file to the /opt/ibm/powervc/new-ui directory.
  • Finally, restart PowerVC services with the command powervc-services restart

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXK2N","label":"PowerVC Standard Edition"},"ARM Category":[{"code":"a8m50000000L0jDAAS","label":"PowerVC"}],"ARM Case Number":"TS006952489","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
17 December 2021

UID

ibm16495087