AIX Open Source

 View Only
  • 1.  PSA: Spectrum Scale (formerly GPFS) and Python 3

    IBM Champion
    Posted Sun October 24, 2021 09:28 PM
    Hi All,

    Just a public service announcement regarding Spectrum Scale (formerly GPFS) and Python 3 from these repositories.

    I've updated Spectrum Scale to 5.1.1.3 and am receiving the following error when trying to start the Spectrum Scale monitoring service.

    $ mmsysmoncontrol restart
    Wed Oct 20 12:09:08 AEDT 2021: [W] Python 3 not found in /usr/bin/python3. The Spectrum Scale monitoring service will not be started.

    [1] All operating systems that are running IBM Spectrum Scale 5.1.x, including AIX nodes, must have Python 3.6 or later installed.
    I installed Python 3.7.11 from the AIX Open Source packages provided by IBM.

    # yum info python3
    Installed Packages
    Name : python3
    Arch : ppc
    Version : 3.7.11
    Release : 1
    Size : 127 M
    Repo : installed

    A post by Sanket Rathi [2] speaks towards packaging changes being made to all maintained open source packages on AIX. IBM will no longer be creating symbolic links in /usr/bin or /usr/sbin back to binaries in /opt/freeware/bin and /opt/freeware/sbin.
    It appears the Python 3 files in gpfs.base are still configured to point to /usr/bin/python3 (which no longer exists).

    # head /usr/lpp/mmfs/lib/mmsysmon/NodeState.py
    #!/usr/bin/python3
    #
    # Licensed Materials - Property of IBM
    #
    # "Restricted Materials of IBM"
    #
    # (C) COPYRIGHT IBM Corp. 2014 All Rights Reserved
    #
    # US Government Users Restricted Rights - Use, duplication or
    # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

    I raised a support ticket with IBM, and their recommendation is to create symbolic link in /usr/bin to resolve the issue.
    They advised that AIX 7.3 will have Python 3 in its base install, which means that they will not have to create the symlink. They have no plans to change the behavior of GPFS on AIX 7.1 or 7.2.

    [1] - https://www.ibm.com/docs/en/spectrum-scale/5.1.1?topic=monitoring-system-health-by-using-mmhealth-command
    [2] - https://community.ibm.com/community/user/power/communities/community-home/digestviewer/viewthread?GroupId=6211&MessageKey=396d1fc1-ecb6-45f4-ad80-22ffe3e4c88c&CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9&tab=digestviewer&ReturnUrl=%2fcommunity%2fuser%2fpower%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d10c1d831-47ee-4d92-a138-b03f7896f7c9%26tab%3ddigestviewer

    Regards,
    Kristian Milos

    ------------------------------
    Kristian Milos
    ------------------------------


  • 2.  RE: PSA: Spectrum Scale (formerly GPFS) and Python 3

    Posted Mon October 25, 2021 06:29 AM
    Hi Kristian,

    I think the best solution is for spectrum scale to use "#!/usr/bin/env python3" instead of "#!/usr/bin/python3" 
    In this way the python3 that is in the PATH will be used and it will solve both python3 in AIX 7.1/7.2 from AIX toolbox and python3 in AIX 7.3 base.


    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: PSA: Spectrum Scale (formerly GPFS) and Python 3

    IBM Champion
    Posted Mon October 25, 2021 06:28 PM
    Hi Sanket,

    I had the same suggestion discussing it with a colleague. Is this something you're able to follow up on internally at IBM with the team managing GPFS?
    Feel free to email me, or send me a private message on here, and I can pass along the case details if needed.

    ------------------------------
    Kristian Milos
    ------------------------------



  • 4.  RE: PSA: Spectrum Scale (formerly GPFS) and Python 3

    Posted Tue October 26, 2021 09:14 AM
    Hi Kristian, 
    I will try to follow internally with GPFS team.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 5.  RE: PSA: Spectrum Scale (formerly GPFS) and Python 3

    IBM Champion
    Posted Tue October 26, 2021 07:38 AM
    They probably need something more sophisticated... like whatever RHEL uses to identify the "system python" versus any others installed. I imagine that they need to test with exactly the version that is distributed with AIX 7.3, for example.

    Maybe they'll bundle their own, as they did that with ksh.

    -- 
    Stephen L. Ulmer
    Enterprise Architect
    Mainline Information Systems
    (m) 352-870-8649










  • 6.  RE: PSA: Spectrum Scale (formerly GPFS) and Python 3

    Posted Tue October 26, 2021 09:13 AM
    Probably they can do this with AIX 7.3 but AIX 7.1/7.2 do not provide python with AIX and to accommodate all AIX release this could be the solution. Where python3 will be picked from user preferred python3. As per the current statement it is supported on >python3.6.

    ------------------------------
    SANKET RATHI
    ------------------------------