ibm-spectrum-scale-install-infra icon indicating copy to clipboard operation
ibm-spectrum-scale-install-infra copied to clipboard

Multiple license files in directory path fails installation

Open mrolyat opened this issue 4 years ago • 6 comments

Originally testing installation on 5.0.5.0 code using the following playbook.yml

---
- hosts: cluster01
  vars:
    - scale_version: 5.0.5.0
    - scale_install_directory_pkg_path: /root/gpfs_rpms_pkg
  roles:
     - core/precheck
     - core/node
     - core/cluster
     - gui/precheck
     - gui/node
     - gui/cluster
     - gui/postcheck
     - zimon/precheck
     - zimon/node
     - zimon/cluster
     - zimon/postcheck```

Then later came back and added 5.1.0.0 rpms to the same directory path along with the 5.0.5.0 packages and updated the `playbook.yml` to use version 5.1.0.0. (*note* The node was completely cleaned up and no Scale packages were installed... this was a new first time installation)
```[root@node-vm1 ibm-spectrum-scale-install-infra]# cat playbook.yml
---
- hosts: cluster01
  vars:
    - scale_version: 5.1.0.0
    - scale_install_directory_pkg_path: /root/gpfs_rpms_pkg
  roles:
     - core/precheck
     - core/node
     - core/cluster
     - gui/precheck
     - gui/node
     - gui/cluster
     - gui/postcheck
     - zimon/precheck
     - zimon/node
     - zimon/cluster
     - zimon/postcheck```


```[root@node-vm1 ibm-spectrum-scale-install-infra]# ls -ltr /root/gpfs_rpms_pkg
total 754272
-rwxr-xr-x. 1 root root    414968 Feb 14 12:05 gpfs.gss.pmsensors-5.0.5-0.200214.114538.el8.x86_64.rpm
-rwxr-xr-x. 1 root root    413076 Feb 14 12:05 gpfs.gss.pmsensors-5.0.5-0.200214.114538.el7.x86_64.rpm
-rwxr-xr-x. 1 root root   1086616 Feb 14 12:05 gpfs.gss.pmcollector-5.0.5-0.200214.114538.el8.x86_64.rpm
-rwxr-xr-x. 1 root root   1160496 Feb 14 12:05 gpfs.gss.pmcollector-5.0.5-0.200214.114538.el7.x86_64.rpm
-rw-r--r--. 1 root root     42760 Feb 14 12:05 gpfs.adv-5.0.5-0.200214.114538.x86_64.rpm
-rw-r--r--. 1 root root  24230830 Feb 14 12:05 gpfs.base-5.0.5-0.200214.114538.x86_64.rpm
-rw-r--r--. 1 root root    685248 Feb 14 12:05 gpfs.gpl-5.0.5-0.200214.114538.noarch.rpm
-rw-r--r--. 1 root root    527011 Feb 14 12:05 gpfs.docs-5.0.5-0.200214.114538.noarch.rpm
-rw-r--r--. 1 root root    564238 Feb 14 12:05 gpfs.crypto-5.0.5-0.200214.114538.x86_64.rpm
-rw-r--r--. 1 root root     40943 Feb 14 12:05 gpfs.compression-5.0.5-0.200214.114538.x86_64.rpm
-rw-r--r--. 1 root root  23111468 Feb 14 12:05 gpfs.callhome-ecc-client-5.0.5-0.200214.114538.noarch.rpm
-rw-r--r--. 1 root root  12765240 Feb 14 12:05 gpfs.gskit-8.0.55-12.x86_64.rpm
-rw-r--r--. 1 root root      2290 Feb 14 12:06 gpfs.protocols-support-5.0.5-0.200214.114538.noarch.rpm
-rw-r--r--. 1 root root    203120 Feb 14 12:06 gpfs.msg.en_US-5.0.5-0.200214.114538.noarch.rpm
-rw-r--r--. 1 root root      4654 Feb 14 12:06 gpfs.license.adv-5.0.5-0.200214.114538.x86_64.rpm
-rw-r--r--. 1 root root  41373542 Feb 14 12:06 gpfs.java-5.0.5-0.200214.131118.x86_64.rpm
-rw-r--r--. 1 root root    525472 Feb 14 12:06 gpfs.tct.client-1.1.7.3.x86_64.rpm
-rw-r--r--. 1 root root 159812668 Feb 14 12:07 gpfs.tct.server-1.1.7.3.x86_64.rpm
drwxr-xr-x. 2 root root         6 Mar 30 14:49 gpfs_packages
-rw-r--r--. 1 root root   1090428 Jun 15 08:53 gpfs.gss.pmcollector-5.1.0-0.200615.093616.el8.x86_64.rpm
-rw-r--r--. 1 root root     24072 Jun 15 08:53 gpfs.pm-ganesha-10.0.0-1.el8.x86_64.rpm
-rw-r--r--. 1 root root    421704 Jun 15 08:53 gpfs.gss.pmsensors-5.1.0-0.200615.093616.el8.x86_64.rpm
-rw-r--r--. 1 root root     43222 Jun 15 08:53 gpfs.adv-5.1.0-0.200615.093616.x86_64.rpm
-rw-r--r--. 1 root root  24709148 Jun 15 08:53 gpfs.base-5.1.0-0.200615.093616.x86_64.rpm
-rw-r--r--. 1 root root    695257 Jun 15 08:53 gpfs.gpl-5.1.0-0.200615.093616.noarch.rpm
-rw-r--r--. 1 root root    541327 Jun 15 08:53 gpfs.docs-5.1.0-0.200615.093616.noarch.rpm
-rw-r--r--. 1 root root    408197 Jun 15 08:53 gpfs.crypto-5.1.0-0.200615.093616.x86_64.rpm
-rw-r--r--. 1 root root     52107 Jun 15 08:53 gpfs.compression-5.1.0-0.200615.093616.x86_64.rpm
-rw-r--r--. 1 root root  23111468 Jun 15 08:53 gpfs.callhome-ecc-client-5.1.0-0.200615.093616.noarch.rpm
-rw-r--r--. 1 root root  90396472 Jun 15 08:54 gpfs.gui-5.1.0-0.200615.095231.noarch.rpm
-rw-r--r--. 1 root root    714252 Jun 15 08:54 gpfs.tct.client-1.1.8.el8.x86_64.rpm
-rw-r--r--. 1 root root    714440 Jun 15 08:54 gpfs.tct.client-1.1.8.el7.x86_64.rpm
-rw-r--r--. 1 root root      2290 Jun 15 08:54 gpfs.protocols-support-5.1.0-0.200615.093616.noarch.rpm
-rw-r--r--. 1 root root    205066 Jun 15 08:54 gpfs.msg.en_US-5.1.0-0.200615.093616.noarch.rpm
-rw-r--r--. 1 root root      4658 Jun 15 08:54 gpfs.license.adv-5.1.0-0.200615.093616.x86_64.rpm
-rw-r--r--. 1 root root  42657402 Jun 15 08:54 gpfs.java-5.1.0-0.200615.100153.x86_64.rpm
-rw-r--r--. 1 root root 159688664 Jun 15 08:54 gpfs.tct.server-1.1.8.el7.x86_64.rpm
-rw-r--r--. 1 root root 159858384 Jun 15 08:55 gpfs.tct.server-1.1.8.el8.x86_64.rpm```

./ansible.sh failed with the following:
```fatal: [node-vm4]: FAILED! => {
    "assertion": "scale_install_gpfs_license.matched == 1",
    "changed": false,
    "evaluated_to": false,
    "msg": "More than one GPFS License (gpfs.license) package found: \"/usr/lpp/mmfs/5.1.0.0/gpfs_rpms_pkg/gpfs.license*x86_64*\"" 
}

PLAY RECAP *************************************************************************************************************************************
node-vm1               : ok=37   changed=2    unreachable=0    failed=1    skipped=27   rescued=0    ignored=0
node-vm2               : ok=33   changed=2    unreachable=0    failed=1    skipped=16   rescued=0    ignored=0
node-vm3               : ok=33   changed=2    unreachable=0    failed=1    skipped=16   rescued=0    ignored=0
node-vm4               : ok=33   changed=2    unreachable=0    failed=1    skipped=16   rescued=0    ignored=0

[root@node-vm1 ibm-spectrum-scale-install-infra]# ls -ltr /root/gpfs_rpms_pkg | grep gpfs.lic
-rw-r--r--. 1 root root      4654 Feb 14 12:06 gpfs.license.adv-5.0.5-0.200214.114538.x86_64.rpm
-rw-r--r--. 1 root root      4658 Jun 15 08:54 gpfs.license.adv-5.1.0-0.200615.093616.x86_64.rpm```

Given the scale version was set to 5.1.0.0 should the installation not have attempted to install the gpfs.license file associated with that version?  

Or can prechecks get better to warn the user to not place multiple versions of rpms in the same directory?

mrolyat avatar Jun 19 '20 21:06 mrolyat