Original Message:
Sent: Wed January 03, 2024 12:08 AM
From: Tommi Sihvo
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Tue January 02, 2024 07:56 AM
From: Walt Scanlan
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Tue January 02, 2024 07:47 AM
From: Tommi Sihvo
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Tue January 02, 2024 07:39 AM
From: Walt Scanlan
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Tue January 02, 2024 04:28 AM
From: Tommi Sihvo
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Thu July 13, 2023 08:42 AM
From: Walt Scanlan
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Fri October 21, 2022 03:11 AM
From: SANKET RATHI
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Thu October 20, 2022 12:53 PM
From: Mackey Morgan
Subject: python3 and cloud-init support on AIX7.2TL05SP01
Is there support for AIX cloud-init with python3, now?
------------------------------
Mackey Morgan
Original Message:
Sent: Fri July 09, 2021 01:02 AM
From: SANKET RATHI
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Thu May 20, 2021 03:11 AM
From: Tommi Sihvo
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
Original Message:
Sent: Thu March 04, 2021 03:51 AM
From: SANKET RATHI
Subject: python3 and cloud-init support on AIX7.2TL05SP01
Yes it is under discussion but right now we do not have timeline for python3 based cloud-init for AIX.
------------------------------
SANKET RATHI
Original Message:
Sent: Tue March 02, 2021 07:21 AM
From: Rizwan Khaliq
Subject: python3 and cloud-init support on AIX7.2TL05SP01
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
------------------------------