AIX Open Source

  • 1.  Yum setup on NIM and NIM clients

    Posted Tue September 07, 2021 05:50 PM
    Hello All,

    I am working on a project to setup yum local repos on our NIM server and then configuring yum.conf on clients to be able to use yum repos. I was able to setup/create repos on NIM but having issues with clients to use it. I want some help in confirming that repos has been setup correctly on NIM server ? Once that is confirmed, need to know how i can configure nim clients to use that repos.

    nim:/:# yum repolist
    repo id repo name status
    AIX_Toolbox AIX generic repository 2,685
    AIX_Toolbox_71 AIX 7.1 specific repository 295
    AIX_Toolbox_72 AIX 7.2 specific repository 412
    AIX_Toolbox_noarch AIX noarch repository 285
    repolist: 3,677

    root@client:/:# yum repolist
    anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml:">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml: [Errno 12] Timeout on anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml:">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')
    Trying other mirror.
    repo id repo name status
    AIX_Toolbox AIX generic repository 0
    AIX_Toolbox_71 AIX 7.1 specific repository 0
    AIX_Toolbox_noarch AIX noarch repository 0
    repolist: 0


    ------------------------------
    Ghouse Mohammed
    ------------------------------


  • 2.  RE: Yum setup on NIM and NIM clients

    IBM Select
    Posted Wed September 08, 2021 01:59 AM
    Hi,

    The repos seem to be ok since the yum repolist you execute on the server shows the repos along with the number of packages. On client side take a look at /opt/freeware/etc/yum/yum.conf to verify that you point to your NIM server. Also remove the entry pointing to public.dhe.ibm.com which causes a timeout. If you use http as protocol you might also want to take a look at the access_log of the webserver to see the clients actually reach your NIM server.

    ------------------------------
    Oliver Stadler
    ------------------------------



  • 3.  RE: Yum setup on NIM and NIM clients

    Posted Wed September 08, 2021 02:13 AM
    Edited by SANKET RATHI Wed September 08, 2021 02:13 AM
    Thank you Oliver.

    Hi Ghouse,
    As Oliver pointed out on client you should be pointing to local yum repo not the AIX toolbox.
    As you are setting up local yum clients should be using that repo. Make sure you have http configured on NIM server and have placed rpms and repo at proper location. Use that path in yum.conf file at cleints.

    Here is an article on setting up local yum on AIX
    https://developer.ibm.com/articles/configure-yum-on-aix/

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



  • 4.  RE: Yum setup on NIM and NIM clients

    Posted Thu September 09, 2021 12:45 PM
    Thanks Sanket and Oliver for your input. Based on your inputs, i have changed the yum.conf on clients to point to NIM and i get this below error on client i am testing. Do i need to setup some httpd service on NIM ? I did telent from client to NIM on port 443 and connection is refused but port 443 is open in /etc/services on both client and nim

    root@client/:# yum repolist
    https://rmd-nim.******.com/toolbox_repo/AIX_Toolbox/AIX_Toolbox/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to rmd-nim.coremark.com port 443: Connection refused"


    root@client:/:# telnet nimserver 443
    Trying...
    telnet: connect: Connection refused




    ------------------------------
    Ghouse Mohammed
    ------------------------------



  • 5.  RE: Yum setup on NIM and NIM clients

    Posted Thu September 09, 2021 12:55 PM
    I have changed the https to http on client and now i get below error. On nim server i do see repomd.xml file under toolbox_repo/AIX_Toolbox/AIX_Toolbox/repodata/repomd.xml.

    root@client:/:# yum repolist
    http://rmd-nim.XXXXX.com/toolbox_repo/AIX_Toolbox/AIX_Toolbox/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    repo id repo name status
    AIX_Toolbox AIX generic repository 0
    AIX_Toolbox_71 AIX 7.1 specific repository 0
    AIX_Toolbox_noarch AIX noarch repository 0
    repolist: 0

    ------------------------------
    Ghouse Mohammed
    ------------------------------



  • 6.  RE: Yum setup on NIM and NIM clients

    IBM Select
    Posted Thu September 09, 2021 01:20 PM
    Hi,

    Based on the 404 error you get it looks like you have an httpd server configured on your NIM server but the repository cannot be found under the URL you specify in the yum.conf file. Now I don't know the configuration of your httpd server but basically you would either have to make sure that the toolbox_repo directory you refer to exists in the DocumentRoot of your httpd server. By default that is in /var/www/html. Alternatively you could also add an Alias statement to your httpd.conf (by default locate in /opt/freeware/etc/httpd/conf/httpd.conf) like this:

    Alias /toolbox_repo /somedir/where/toolbox_repo

    ------------------------------
    Oliver Stadler
    ------------------------------



  • 7.  RE: Yum setup on NIM and NIM clients

    Posted Fri September 10, 2021 10:28 AM
    You can check if you have proper connection to your local yum server from client by running  curl command.
    # curl http://rmd-nim.XXXXX.com/toolbox_repo/AIX_Toolbox/AIX_Toolbox/repodata/repomd.xml

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