IBM / ibm-spectrum-scale-install-infra

Spectrum Scale Installation and Configuration
Apache License 2.0
64 stars 68 forks source link

Should this upgrade scenario from 5.0.4 to 5.0.5 work on RHEL with the playbook? #112

Open whowutwut opened 4 years ago

whowutwut commented 4 years ago

Environment:

Is the upgrade of RPMs suppose to work if we provide a 5.0.4 and then the 5.0.5 self extracting image?

Here's what I did....

  1. I'm running RHEL 7.7 but it's running the 7.8 kernel, which, i know, is not supported for 5.0.4.0. So you can just make sure it's on -1127 kernel. Running this kernel gets us set up for this issue.

  2. Tried installed 5.0.4.0, and it installs the RPMs OK, but then it fails at mmbuildgpl, which is expected, as 5.0.4.0 does not supporting this kernel.

  3. Brought over the 5.0.5.0 package and updated my playbook to point at this one....

# grep 5.0 playbook.yml
    - scale_version: 5.0.5.0
    - scale_install_localpkg_path: /root/install-infra/Spectrum_Scale_Data_Management-5.0.5.0-x86_64-Linux-install
  1. Re-ran .... I get to the Install GPFS RPMs task , getting a rpm dependency check issue.
fatal: [scale-owningCluster-x-worker1]: FAILED! => {"changed": false, "changes": {"installed": ["/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.base-5.0.5-0.x86_64.rpm", "/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.docs-5.0.5-0.noarch.rpm", "/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.msg.en_US-5.0.5-0.noarch.rpm", "/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gskit-8.0.55-12.x86_64.rpm", "/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.compression-5.0.5-0.x86_64.rpm", "/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gpl-5.0.5-0.noarch.rpm"]}, "msg": "Error: Package: gpfs.crypto-5.0.4-0.x86_64 (@/gpfs.crypto-5.0.4-0.x86_64)\n           Requires: gpfs.base = 5.0.4-0\n           Removing: gpfs.base-5.0.4-0.x86_64 (@/gpfs.base-5.0.4-0.x86_64)\n               gpfs.base = 5.0.4-0\n           Updated By: gpfs.base-5.0.5-0.x86_64 (/gpfs.base-5.0.5-0.x86_64)\n               gpfs.base = 5.0.5-0\nError: Package: gpfs.adv-5.0.4-0.x86_64 (@/gpfs.adv-5.0.4-0.x86_64)\n           Requires: gpfs.base = 5.0.4-0\n           Removing: gpfs.base-5.0.4-0.x86_64 (@/gpfs.base-5.0.4-0.x86_64)\n               gpfs.base = 5.0.4-0\n           Updated By: gpfs.base-5.0.5-0.x86_64 (/gpfs.base-5.0.5-0.x86_64)\n               gpfs.base = 5.0.5-0\n", "rc": 1, "results": ["Loaded plugins: product-id, search-disabled-repos\nExamining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.base-5.0.5-0.x86_64.rpm: gpfs.base-5.0.5-0.x86_64\nMarking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.base-5.0.5-0.x86_64.rpm as an update to gpfs.base-5.0.4-0.x86_64\nExamining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.docs-5.0.5-0.noarch.rpm: gpfs.docs-5.0.5-0.noarch\nMarking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.docs-5.0.5-0.noarch.rpm as an update to gpfs.docs-5.0.4-0.noarch\nExamining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.msg.en_US-5.0.5-0.noarch.rpm: gpfs.msg.en_US-5.0.5-0.noarch\nMarking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.msg.en_US-5.0.5-0.noarch.rpm as an update to gpfs.msg.en_US-5.0.4-0.noarch\nExamining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gskit-8.0.55-12.x86_64.rpm: gpfs.gskit-8.0.55-12.x86_64\nMarking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gskit-8.0.55-12.x86_64.rpm as an update to gpfs.gskit-8.0.50-86.x86_64\nExamining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.compression-5.0.5-0.x86_64.rpm: gpfs.compression-5.0.5-0.x86_64\nMarking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.compression-5.0.5-0.x86_64.rpm as an update to gpfs.compression-5.0.4-0.x86_64\nExamining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gpl-5.0.5-0.noarch.rpm: gpfs.gpl-5.0.5-0.noarch\nMarking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gpl-5.0.5-0.noarch.rpm as an update to gpfs.gpl-5.0.4-0.noarch\nResolving Dependencies\n--> Running transaction check\n---> Package gpfs.base.x86_64 0:5.0.4-0 will be updated\n--> Processing Dependency: gpfs.base = 5.0.4-0 for package: gpfs.adv-5.0.4-0.x86_64\n--> Processing Dependency: gpfs.base = 5.0.4-0 for package: gpfs.crypto-5.0.4-0.x86_64\n---> Package gpfs.base.x86_64 0:5.0.5-0 will be an update\n---> Package gpfs.compression.x86_64 0:5.0.4-0 will be updated\n---> Package gpfs.compression.x86_64 0:5.0.5-0 will be an update\n---> Package gpfs.docs.noarch 0:5.0.4-0 will be updated\n---> Package gpfs.docs.noarch 0:5.0.5-0 will be an update\n---> Package gpfs.gpl.noarch 0:5.0.4-0 will be updated\n---> Package gpfs.gpl.noarch 0:5.0.5-0 will be an update\n---> Package gpfs.gskit.x86_64 0:8.0.50-86 will be updated\n---> Package gpfs.gskit.x86_64 0:8.0.55-12 will be an update\n---> Package gpfs.msg.en_US.noarch 0:5.0.4-0 will be updated\n---> Package gpfs.msg.en_US.noarch 0:5.0.5-0 will be an update\n--> Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"]}

To help readability of the above error, I printed out the pkg list it's trying to install and this is the error it's hitting:

#  yum install  /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.base-5.0.5-0.x86_64.rpm /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.docs-5.0.5-0.noarch.rpm /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.msg.en_US-5.0.5-0.noarch.rpm /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gskit-8.0.55-12.x86_64.rpm /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.compression-5.0.5-0.x86_64.rpm /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gpl-5.0.5-0.noarch.rpm
Loaded plugins: product-id, search-disabled-repos
Examining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.base-5.0.5-0.x86_64.rpm: gpfs.base-5.0.5-0.x86_64
Marking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.base-5.0.5-0.x86_64.rpm as an update to gpfs.base-5.0.4-0.x86_64
Examining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.docs-5.0.5-0.noarch.rpm: gpfs.docs-5.0.5-0.noarch
Marking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.docs-5.0.5-0.noarch.rpm as an update to gpfs.docs-5.0.4-0.noarch
Examining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.msg.en_US-5.0.5-0.noarch.rpm: gpfs.msg.en_US-5.0.5-0.noarch
Marking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.msg.en_US-5.0.5-0.noarch.rpm as an update to gpfs.msg.en_US-5.0.4-0.noarch
Examining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gskit-8.0.55-12.x86_64.rpm: gpfs.gskit-8.0.55-12.x86_64
Marking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gskit-8.0.55-12.x86_64.rpm as an update to gpfs.gskit-8.0.50-86.x86_64
Examining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.compression-5.0.5-0.x86_64.rpm: gpfs.compression-5.0.5-0.x86_64
Marking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.compression-5.0.5-0.x86_64.rpm as an update to gpfs.compression-5.0.4-0.x86_64
Examining /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gpl-5.0.5-0.noarch.rpm: gpfs.gpl-5.0.5-0.noarch
Marking /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gpl-5.0.5-0.noarch.rpm as an update to gpfs.gpl-5.0.4-0.noarch
Resolving Dependencies
--> Running transaction check
---> Package gpfs.base.x86_64 0:5.0.4-0 will be updated
--> Processing Dependency: gpfs.base = 5.0.4-0 for package: gpfs.adv-5.0.4-0.x86_64
--> Processing Dependency: gpfs.base = 5.0.4-0 for package: gpfs.crypto-5.0.4-0.x86_64
---> Package gpfs.base.x86_64 0:5.0.5-0 will be an update
---> Package gpfs.compression.x86_64 0:5.0.4-0 will be updated
---> Package gpfs.compression.x86_64 0:5.0.5-0 will be an update
---> Package gpfs.docs.noarch 0:5.0.4-0 will be updated
---> Package gpfs.docs.noarch 0:5.0.5-0 will be an update
---> Package gpfs.gpl.noarch 0:5.0.4-0 will be updated
---> Package gpfs.gpl.noarch 0:5.0.5-0 will be an update
---> Package gpfs.gskit.x86_64 0:8.0.50-86 will be updated
---> Package gpfs.gskit.x86_64 0:8.0.55-12 will be an update
---> Package gpfs.msg.en_US.noarch 0:5.0.4-0 will be updated
---> Package gpfs.msg.en_US.noarch 0:5.0.5-0 will be an update
--> Finished Dependency Resolution
Error: Package: gpfs.crypto-5.0.4-0.x86_64 (@/gpfs.crypto-5.0.4-0.x86_64)
           Requires: gpfs.base = 5.0.4-0
           Removing: gpfs.base-5.0.4-0.x86_64 (@/gpfs.base-5.0.4-0.x86_64)
               gpfs.base = 5.0.4-0
           Updated By: gpfs.base-5.0.5-0.x86_64 (/gpfs.base-5.0.5-0.x86_64)
               gpfs.base = 5.0.5-0
Error: Package: gpfs.adv-5.0.4-0.x86_64 (@/gpfs.adv-5.0.4-0.x86_64)
           Requires: gpfs.base = 5.0.4-0
           Removing: gpfs.base-5.0.4-0.x86_64 (@/gpfs.base-5.0.4-0.x86_64)
               gpfs.base = 5.0.4-0
           Updated By: gpfs.base-5.0.5-0.x86_64 (/gpfs.base-5.0.5-0.x86_64)
               gpfs.base = 5.0.5-0
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
whowutwut commented 4 years ago

Looking at the pkglist, I think we need to provide the crypto and adv so they are also "upgraded", so it seems like we are not generating the pkg list fully?

The list in {{ scale_install_all_rpms }} is the following:

yum install  /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.base-5.0.5-0.x86_64.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.docs-5.0.5-0.noarch.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.msg.en_US-5.0.5-0.noarch.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gskit-8.0.55-12.x86_64.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.compression-5.0.5-0.x86_64.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gpl-5.0.5-0.noarch.rpm

Yup.... if I add those two....

yum install  /usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.base-5.0.5-0.x86_64.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.docs-5.0.5-0.noarch.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.msg.en_US-5.0.5-0.noarch.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gskit-8.0.55-12.x86_64.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.compression-5.0.5-0.x86_64.rpm \
/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.gpl-5.0.5-0.noarch.rpm  \
!/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.adv-5.0.5-0.x86_64.rpm \
!/usr/lpp/mmfs/5.0.5.0/gpfs_rpms/gpfs.crypto-5.0.5-0.x86_64.rpm

And run:

...
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================
 Package                            Arch                     Version                       Repository                                          Size
====================================================================================================================================================
Updating:
 gpfs.adv                           x86_64                   5.0.5-0                       /gpfs.adv-5.0.5-0.x86_64                            96 k
 gpfs.base                          x86_64                   5.0.5-0                       /gpfs.base-5.0.5-0.x86_64                           69 M
 gpfs.compression                   x86_64                   5.0.5-0                       /gpfs.compression-5.0.5-0.x86_64                   122 k
 gpfs.crypto                        x86_64                   5.0.5-0                       /gpfs.crypto-5.0.5-0.x86_64                        1.4 M
 gpfs.docs                          noarch                   5.0.5-0                       /gpfs.docs-5.0.5-0.noarch                          2.6 M
 gpfs.gpl                           noarch                   5.0.5-0                       /gpfs.gpl-5.0.5-0.noarch                           2.9 M
 gpfs.gskit                         x86_64                   8.0.55-12                     /gpfs.gskit-8.0.55-12.x86_64                        34 M
 gpfs.msg.en_US                     noarch                   5.0.5-0                       /gpfs.msg.en_US-5.0.5-0.noarch                     789 k

Transaction Summary
====================================================================================================================================================
Upgrade  8 Packages

Total size: 111 M
Is this ok [y/d/N]: n