Hello,

so the problem comes indeed from the fact I am not using CentOS or rhel

The list of rhel distribution supportedby the tool is in the `scale_rhel_distribution` list in `/usr/lpp/mmfs/5.1.9.2/ansible-toolkit/ansible/ibm-spectrum-scale-install-infra/roles/core_common/vars/main.yml` and `/usr/lpp/mmfs/5.1.9.2/ansible-toolkit/ansible/ibm-spectrum-scale-install-infra/roles/core_upgrade/vars/main.yml` or `/usr/lpp/mmfs/5.1.9.2/ansible-toolkit/ansible/ibm-spectrum-scale-install-infra/roles/core_install/vars/main.yml` depending if you upgradingare installing  your cluster

You first have to find under which name ansible recognise your OS with:
# ansible localhost -m'ansible.builtin.setup' | grep \"ansible_distribution\":
       "ansible_distribution": "Scientific",

Then you add it to the files described above.

scale_rhel_distribution:
 - RedHat
 - CentOS
 - Scientific

After that I managed to upgrade

I suppose it works also for other centos/rhel alternative like rocky and alma

Best
Paul



On 12/04/2024 16.48, [email protected] wrote:
I would think that if you export LINUX_DISTRIBUTION=REDHAT_AS_LINUX before you 
run the precheck, it might work

-----Original Message-----
From: gpfsug-discuss <[email protected]> On Behalf Of Paul 
Musset
Sent: Friday, April 12, 2024 10:33 AM
To: [email protected]
Subject: Re: [gpfsug-discuss] upgrading cluster with toolkit: precheck fails with 
"'scale_nfs_url' is undefined"

Hello,

I think I found part of the cause of the problem.

I am using scientific linux 7 so maybe its too different from RHEL7 so the 
following part of the ansible code doesn't find the correct version

         - name: upgrade | nfs path
           set_fact:
scale_nfs_url: 'ganesha_rpms/rhel7/'
           when: ansible_distribution in scale_rhel_distribution and 
ansible_distribution_major_version == '7'

would there be a way for the precheck command to understand that it is an os 
similar to rhel 7 ?

For exemple, running that `LINUX_DISTRIBUTION=REDHAT_AS_LINUX
   mmbuildgpl` worked previously for mmbuildgpl

Best regards
Paul


On 12/04/2024 15.33, Paul Musset wrote:
Hello,

I am working for the Max Planck Institute for Brain Research where we
have a 4 nodes-3PB cluster.

The cluster was installed manually but I am trying to use the toolkit
to upgrade.
During the precheck phase, launched with ./spectrumscale upgrade
precheck, there is an error on all 4 nodes saying

FAILED! => {"msg": "The task includes an option with an undefined
variable. The error was: 'scale_nfs_url' is undefined\n\nThe error
appears to be in
'/usr/lpp/mmfs/5.1.9.2/ansible-toolkit/ansible/upgrade_sample/playbook_repo_create.yml':
line 455, column 11, but may\nbe elsewhere in the file depending on
the exact syntax problem.\n\nThe offending line appears to be:\n\n\n
        - name: upgrade | configure nfs YUM repository\n   ^ here\n"}

Has anyone seen something like that before and/or knows where it could
come from ?

Thanks in advance

Paul

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org


_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org


_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org

Reply via email to