Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

Getting error when try to install packages through dnf bootstrap

  • 1.  Getting error when try to install packages through dnf bootstrap

    Posted Mon September 18, 2023 07:51 AM

    Hi Team,

    I am getting following error when try to install dnf. Please check.

    fatal: [dsmppa003t]: FAILED! => {"changed": false, "module_stderr": "Connection to dsmppa003t closed.\r\n", "module_stdout": "/bin/sh: /opt/freeware/bin/python3:  not found.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 127}

    PLAY [Bootstrap Yum on AIX] ********************************************************************************************************************************************

    TASK [ibm.power_aix.power_aix_bootstrap : Fail if pkgtype is defined as yum] *******************************************************************************************
    skipping: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Fail if pkgtype not specified] ***********************************************************************************************
    skipping: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Fail if download_dir not specified] ******************************************************************************************
    skipping: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Fail if target_dir not specified] ********************************************************************************************
    skipping: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Fail if rpm_src not specified] ***********************************************************************************************
    skipping: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Fail if dnf_src not specified] ***********************************************************************************************
    skipping: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Bootstrap dnf] ***************************************************************************************************************
    included: /root/.ansible/collections/ansible_collections/ibm/power_aix/roles/power_aix_bootstrap/tasks/dnf_install.yml for dsmppa003t

    TASK [ibm.power_aix.power_aix_bootstrap : Verify the host is at least aix 7.1, if not, exit host] **********************************************************************
    ok: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Check for existence of dnf] **************************************************************************************************
    ok: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Print if dnf is installed] ***************************************************************************************************
    skipping: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Check for existence of yum] **************************************************************************************************
    ok: [dsmppa003t]

    TASK [ibm.power_aix.power_aix_bootstrap : Create target filesystem "/tmp/.ansible.cpdir" for image transfer if it does not exist.] *************************************
    fatal: [dsmppa003t]: FAILED! => {"changed": false, "module_stderr": "Connection to dsmppa003t closed.\r\n", "module_stdout": "/bin/sh: /opt/freeware/bin/python3:  not found.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 127}

    PLAY RECAP *************************************************************************************************************************************************************
    dsmppa003t                 : ok=4    changed=0    unreachable=0    failed=1    skipped=7    rescued=0    ignored=0

    Regards

    Manoj



    ------------------------------
    Manoj Kumar
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Thu September 21, 2023 12:58 AM

    Hi Manoj !

    Yeah we are aware of some issues with dnf bootstrap role and working on it. You can expect the fix available on github repo within a week. We will update you here once we are done with that.



    ------------------------------
    Nitish Mishra
    ------------------------------



  • 3.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Thu September 21, 2023 04:25 AM

    Thanks Nitesh for the update, please keep it posted



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue October 03, 2023 03:34 AM

    Hi Manoj !

    We have fixed the role and pushed it to our github repository : https://github.com/IBM/ansible-power-aix/tree/dev-collection/roles/power_aix_bootstrap

    You have two options:

    1. Either you can download all the role from github and replace it in your controller.
    2. Or, wait for our next release (within couple of weeks), and then update the your whole power_aix collection.

    Thanks,

    Nitish



    ------------------------------
    Nitish Mishra
    ------------------------------



  • 5.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue October 17, 2023 04:35 AM

    Thanks Nitish for the update.

    How can we download roles from github ? can't we modified the content of that dnf installation playbook only? 

    and how can update whole power_aix_collection tool? 



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 6.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue October 17, 2023 04:49 AM
    Edited by Nitish Mishra Tue October 17, 2023 04:52 AM

    Hi Manoj !

    power_aix collection 1.7.0 is released and it is now available on ansible-galaxy. You can update the whole collection now.

    Run this command: 

    ansible-galaxy collection install ibm.power_aix --upgrade

    Thanks,

    Nitish



    ------------------------------
    Nitish Mishra
    ------------------------------



  • 7.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue October 17, 2023 05:45 AM

    Thanks Nitish.

    Now we have try to installed dnf bootstrap. but we are not able to do. We are getting below error.

    TASK [ibm.power_aix.power_aix_bootstrap : Create target filesystem "/tmp/.ansible.cpdir" for image transfer if it does not exist.] **********************************************************************************************************
    fatal: [dsmppa001s]: FAILED! => {"changed": false, "module_stderr": "Connection to dsmppa001s closed.\r\n", "module_stdout": "/bin/sh: /usr/bin/python3:  not found.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 127}



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 8.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue October 17, 2023 07:35 AM

    Are you using AIX-7.1 or 7.2 ? There seems to be some issue with those AIX versions. You can expect an update from us in next couple of days.

    Thanks,

    Nitish



    ------------------------------
    Nitish Mishra
    ------------------------------



  • 9.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue October 17, 2023 08:13 AM

    This is 7.2 server. 



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 10.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Mon October 23, 2023 02:23 AM

    Hi Manoj !

    There is some issue with ansible-galaxy platform and we got in touch with them. They have asked for couple of weeks to fix that issue. This is the reason we are not able to upload our new version in galaxy where we have fixed this your issue. Howerver, you can download one file from here and replace it in your machine for time being. This will fix your issue.

    Please replace this file in your machine: https://github.com/IBM/ansible-power-aix/blob/dev-collection/roles/power_aix_bootstrap/tasks/dnf_install.yml

    Thanks



    ------------------------------
    Nitish Mishra
    ------------------------------



  • 11.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue October 24, 2023 07:59 AM

    Thanks Nitish, so which playbook content we should use for 7.2. 



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 12.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Wed October 25, 2023 03:09 AM

    Hi Manoj !
    I am delighted to inform you that power_aix v1.7.2 is now available on galaxy now. So now again you can update your collection as mentioned in above chats and try again. This should work on your environment.

    Yeah and the playbook that you should use is: demo_dnf_bootstrap.yml

    Thanks



    ------------------------------
    Nitish Mishra
    ------------------------------



  • 13.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Mon October 30, 2023 09:18 AM

    Thanks Nitish,

    I tried to update and getting following error. Do we have any clue on that?

    ansible-playbook demo_dnf_bootstrap.yml
    [WARNING]: running playbook inside collection ibm.power_aix
     
    PLAY [Bootstrap Yum on AIX] *****************************************************************************************************************************************************************************************************************
     
    TASK [ibm.power_aix.power_aix_bootstrap : Fail if pkgtype is defined as yum] ****************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Fail if pkgtype not specified] ********************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Fail if download_dir not specified] ***************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Fail if target_dir not specified] *****************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Fail if rpm_src not specified] ********************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Fail if dnf_src not specified] ********************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Bootstrap dnf] ************************************************************************************************************************************************************************************
    included: /root/.ansible/collections/ansible_collections/ibm/power_aix/roles/power_aix_bootstrap/tasks/dnf_install.yml for dsmppa001s
     
    TASK [ibm.power_aix.power_aix_bootstrap : Verify the host is at least aix 7.1, if not, exit host] *******************************************************************************************************************************************
    ok: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Fail if AIX version is less than 7.1] *************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Check for existence of dnf] ***********************************************************************************************************************************************************************
    ok: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Print if dnf is installed] ************************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Check for existence of yum] ***********************************************************************************************************************************************************************
    ok: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Create target filesystem for image transfer] ******************************************************************************************************************************************************
    changed: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Mount target filesystem] **************************************************************************************************************************************************************************
    changed: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Set the python interpreter to python3] ************************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Create target filesystem "/tmp/.ansible.cpdir" for image transfer if it does not exist.] **********************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Mount target filesystem "/tmp/.ansible.cpdir"] ****************************************************************************************************************************************************
    skipping: [dsmppa001s]
     
    TASK [ibm.power_aix.power_aix_bootstrap : Copy dnf install script to "dsmppa001s:/tmp/.ansible.cpdir"] **************************************************************************************************************************************
    fatal: [dsmppa001s]: FAILED! => {"msg": "Failed to get information on remote file (/tmp/.ansible.cpdir): Connection to dsmppa001s closed.\r\n"}
     
    PLAY RECAP **********************************************************************************************************************************************************************************************************************************
    dsmppa001s                 : ok=6    changed=2    unreachable=0    failed=1    skipped=11   rescued=0    ignored=0



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 14.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Mon November 20, 2023 06:56 AM

    Hello Nitish/Team,

    Did anyone look into the above error pasted in my earlier conversation.



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 15.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Mon November 20, 2023 07:07 AM

    Hi Manoj !

    We are not able to recreate this issue in our environment. There seems to be some connection issue when ansible is trying to copy the install script on target node. Did you check the connection or are you getting it repeatedly ?



    ------------------------------
    Nitish Mishra
    ------------------------------



  • 16.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Mon November 20, 2023 07:27 AM

    Hello Nitish,

    If we install dnf manually it works fine, so I can say it must not be the connection issue. 



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 17.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Mon November 20, 2023 07:27 AM

    I am getting it repeatedly. 



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 18.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue November 28, 2023 03:23 AM

    Hello Team,

    Do we have any thought or suggestion on it?



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 19.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Tue November 28, 2023 10:57 AM

    Hi Manoj !

    Today we were able to recreate the issue and it is happening in few cases. The problem seems to be in ansible-core builtin "copy" module which we are using to copy installer script to target node. May be it is trying to use ftp/sftp which might not be supported in some target nodes. We are trying some other error proof solutions. Give us a couple of days. Also, if we tell solution to you here in the comment, Can you test it in your environment ?



    ------------------------------
    Nitish Mishra
    ------------------------------



  • 20.  RE: Getting error when try to install packages through dnf bootstrap

    Posted Wed November 29, 2023 05:37 AM

    Yes Nitish, we can test in our environment.



    ------------------------------
    Manoj Kumar
    ------------------------------