AIX Open Source

 View Only
Expand all | Collapse all

python3 and cloud-init support on AIX7.2TL05SP01

  • 1.  python3 and cloud-init support on AIX7.2TL05SP01

    Posted Tue March 02, 2021 07:45 AM
    Hi 
    Fully automated deployment of AIX LPAR's (AIX7.2TL05SP01) through PowerVC is broken since cloud-init does not support python3 (Python 3.7.9). python 2.7.10 is out of support and we have to remove it. Is there any solution or road map for developing cloud-init support with python3 (Python 3.7.9)?
    Thanks
    Rizwan

    ------------------------------
    Rizwan Khaliq
    ------------------------------


  • 2.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    IBM Champion
    Posted Wed March 03, 2021 02:17 AM
    Hello!

    I am still using Python 2.7 + cloud-init-0.7.5-4.2 with AIX7.2TL05SP01, and that setup works OK (at least with PowerVC 1.4.4; PowerVC 2.0.0 haven't tested yet)
    so from that point of view U can at least get the deployments working OK; before python3 is officially supported.

    Br,
    tommi


    ------------------------------
    Tommi Sihvo, Lead Service Architect
    TietoEVRY, Compute Services
    email tommi.sihvo@tieto.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 3.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Thu March 04, 2021 06:42 AM
    Hi Tommi
    Currently we are using Python 2.7 and it works fine. Since Python 2.7 is no longer supported we need to remove it from our PowerVC image servers and capture new images so that we are not using obsolete technology. That's where the issues is.

    Cheer's
    Rizwan


    ------------------------------
    Rizwan Khaliq
    ------------------------------



  • 4.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Thu March 04, 2021 03:51 AM
    Yes it is under discussion but right now we do not have timeline for python3 based cloud-init for AIX.

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



  • 5.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    IBM Champion
    Posted Thu May 20, 2021 03:11 AM
    Hello!

    Any news for this? (python3 support for cloud-init on AIX)

    Br,
    tommi

    ------------------------------
    Tommi Sihvo, Lead Service Architect
    TietoEVRY, Compute Services
    email tommi.sihvo@tieto.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 6.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Fri July 09, 2021 01:03 AM
    Hi Tommi,

    We are working on a plan and looking to update AIX cloud init for Python3 in the first half of 2022.

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



  • 7.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    IBM Champion
    Posted Fri July 09, 2021 05:09 AM
    Thanks Sanket!
    Br,
    tommi

    ------------------------------
    Tommi Sihvo, Lead Service Architect
    TietoEVRY, Compute Services
    email tommi.sihvo@tieto.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 8.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Thu October 20, 2022 12:53 PM
    Is there support for AIX cloud-init with python3, now?

    ------------------------------
    Mackey Morgan
    ------------------------------



  • 9.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Fri October 21, 2022 03:11 AM
    Hi Mackey, As python 3.7 is going out of support next year so we are first focusing on upgrading to python3 and then all the modules of python3 on AIX toolbox. Then we will upgrade cloud-init with python3. So it will take some time. Our current target is 1Q2023​

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



  • 10.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Thu July 13, 2023 08:42 AM

    Hello,

    I am happy to announce that IBM has shipped Cloud-init V22 with support for python3 via IBM toolbox ,https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha#C

    This should be used to update any images for AIX.

    Thank you

    Walt Scanlan 



    ------------------------------
    Walt Scanlan
    ------------------------------



  • 11.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Thu July 13, 2023 05:09 PM

    Walt,

    This is most welcome though I have not tested it yet in our environment. However I notice it is 22.1 which lacks the Ansible module available in the more recent 23.2   Is there any chance we might see an updated package to enable that functionality as well if it is not too much trouble?

    Thanks,

    Chris



    ------------------------------
    Chris Horn
    ------------------------------



  • 12.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    IBM Champion
    Posted Fri July 14, 2023 03:44 AM

    Thanks for the info Walt!

    Br,

    tommi



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry, Compute Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 13.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    IBM Champion
    Posted Tue January 02, 2024 04:29 AM

    Hello,

    Updated (dnf update) my AIX72 PowerVC image to the latest packages ; including cloud-init to v22.

    However, now it seems that PowerVC does not run cloud-init at all. :( 

    After deployment there is no networks set, no hostname set, no nothing:

    root@localhost:/home/root # ifconfig -a

    lo0: flags=e08084b,c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,LARGESEND,CHAIN>

            inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255

            inet6 ::1%1/64

             tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1

    Before update it was working perfectly (with python 2.7 + old cloud-init..) 

    Any idea where to start debugging for the root cause? 

    As such ; the cloud-init seems to work OK, since I tried to run cloud-init modules manually after deployment:

    cloud-init init
    cloud-init init --local

    cloud-init modules --mode=config 

    cloud-init modules --mode=final

    >> Then all needed steps were done (networks were defined, hostname was set etc) 



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry, Compute Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 14.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Tue January 02, 2024 07:39 AM

    Tommi, PowerVC doesn't run cloud-init,  AIX does.  Did your AIX cloud-init.log file update showing any operation during first boot?

    The AIX image that you deploy from PowerVC would be configured to run on first boot, PowerVC just sends the config data (meta data) for cloud-init to read, given if you manually run, cloud-init it is configuring the vm correctly, suggests the metadata is fine, the issue would be whatever is happening (or not) during first boot of the AIX vm,   the cloud-init.log would show what did or did not happen first boot. 



    ------------------------------
    Walt Scanlan
    ------------------------------



  • 15.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    IBM Champion
    Posted Tue January 02, 2024 07:48 AM

    Hi Walt!

    Thanks for quick reply!

    cloud-init.log was not updated at all, so my assumption is that AIX did not even try running cloud-init at all.

    In addition to my previous posting; I did the exact same updates to my AIX73 image; and there cloud-init works out of the box as expected. So this problem occurs only on AIX72

    Since cloud-init is not officially supported by IBM, not really sure if creating Support Case would do any good?

    So seeking here now some advice from where to start digging / debugging why cloud-init run is not triggered on the new version.

    Br,

    tommi



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry, Compute Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 16.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Tue January 02, 2024 07:56 AM

    cloud-init has no support offering outside this community for AIX. Opening a post sales support case with IBM AIX support, would not have any value,

    Have you looked at the AIX logs to see if the  rc.d scripts are running at boot?

    alog -o -t boot

    That would need to be run on FIRST boot of the vm, before a reboot.

     



    ------------------------------
    Walt Scanlan
    ------------------------------



  • 17.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    IBM Champion
    Posted Wed January 03, 2024 12:08 AM

    Hi,

    Bullseye with the 1st dart! 

    Compared my AIX72 & AIX73 images; for some reason AIX72 had lost the links to cloud-init modules under /etc/rc.d/rc2.d: 

    lrwxrwxrwx    1 root     system           33 Jan 03 06:49 S01cloud-init-local -> /etc/rc.d/init.d/cloud-init-local

    lrwxrwxrwx    1 root     system           27 Jan 03 06:50 S02cloud-init -> /etc/rc.d/init.d/cloud-init

    lrwxrwxrwx    1 root     system           28 Jan 03 06:50 S04cloud-final -> /etc/rc.d/init.d/cloud-final

    lrwxrwxrwx    1 root     system           29 Jan 03 06:50 S03cloud-config -> /etc/rc.d/init.d/cloud-config

    Added those and Voila! :)

    Many Thanks for Super help Walt!

    Br,

    tommi



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry, Compute Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 18.  RE: python3 and cloud-init support on AIX7.2TL05SP01

    Posted Wed January 03, 2024 08:12 AM

    Happy to Help Tommi,  



    ------------------------------
    Walt Scanlan
    ------------------------------