AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  reposync fails from aixtoolbox/RPMS/noarch on RHEL 8

    Posted Wed October 11, 2023 05:43 AM

    We use RHEL to reposync the various AIX rpm repos to a local repository.

    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-6.1/
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.1/
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.3/

    All repos sync OK and have done so for many years from RHEL 6 and 7, but on RHEL 8 and only for one repo - 'aixtoolbox/RPMS/noarch', reposync fails with:

    Base command: reposync
    Extra commands: ['reposync', '--config=/home/user1/yum/yum.conf', '--delete', '-p', '/data/user1/yum/yumrepo', '--repoid=AIX_Toolbox_noarch', '-a', 'ppc']
    User-Agent: constructed: 'libdnf (Red Hat Enterprise Linux 8.8; generic; Linux.x86_64)'
    AIX noarch repository                                                                                     1.7 kB/s | 2.7 kB     00:01
    reviving: 'AIX_Toolbox_noarch' can be revived - repomd matches.
    AIX_Toolbox_noarch: using metadata from Tue 10 Oct 2023 01:19:59 AEDT.
    Unable to load modular Fail-Safe data for module 'perl:5.26'
    Unable to load modular Fail-Safe data for module 'perl-IO-Socket-SSL:2.066'
    Unable to load modular Fail-Safe data for module 'perl-libwww-perl:6.34'
    Unable to load modular Fail-Safe data for module 'python36:3.6'
    timer: sack setup: 1856 ms
    Cleaning up.
    Plugins were unloaded.


    $ reposync --version
    4.7.0
      Installed: dnf-0:4.7.0-16.el8_8.noarch at Sat 24 Jun 2023 07:24:18 GMT
      Built    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at Wed 08 Mar 2023 10:33:55 GMT

    $ rpm -qa *dnf*
    python3-dnf-4.7.0-16.el8_8.noarch
    dnf-plugins-core-4.0.21-19.el8_8.noarch
    python3-libdnf-0.63.0-14.el8_8.x86_64
    python3-dnf-plugins-core-4.0.21-19.el8_8.noarch
    dnf-data-4.7.0-16.el8_8.noarch
    libdnf-0.63.0-14.el8_8.x86_64
    dnf-4.7.0-16.el8_8.noarch
    dnf-plugin-subscription-manager-1.28.36-3.el8_8.x86_64

    Is there something different about 'aixtoolbox/RPMS/noarch' that might lead to this failure ?



    ------------------------------
    Dennis Mathews
    ------------------------------


  • 2.  RE: reposync fails from aixtoolbox/RPMS/noarch on RHEL 8

    Posted Wed October 11, 2023 12:20 PM

    You're pulling a repo called "noarch" using a reposync command that specifies -a ppc . Remove the "-a ppc".

    Also, dnf's reposync let's you pull metadata, which means you don't have to create the repo after. See the man page for reposync. --download-metadata.



    ------------------------------
    Mario
    ------------------------------



  • 3.  RE: reposync fails from aixtoolbox/RPMS/noarch on RHEL 8

    Posted Wed October 11, 2023 07:11 PM

    Ah yes of course. Removing -a ppc did the trick. Thanks! 

    The 'Unable to load modular Fail-Safe data for module' error remains though. Hopefully that is safe to ignore.
    For some reason, this works fine when using RHEL 6 reposync.

    I did notice several changes/improvements to reposync including --download-metadata option which could save some time after the sync. But the whole thing was scripted and I'd just moved it over from RHEL6 to 8 and was trying to avoid changes unless necessary. 

    Thanks again!



    ------------------------------
    Dennis Mathews
    ------------------------------



  • 4.  RE: reposync fails from aixtoolbox/RPMS/noarch on RHEL 8

    Posted Thu October 12, 2023 09:54 AM

    DNF's reposync understands modules. These errors are probably coming from other repos in your yum.conf. You could try removing references to those repos. 

    The other improvement for DNF's reposync is that you can run more than one reposync at a time now. YUM's reposync would only allow one at a time.



    ------------------------------
    Mario
    ------------------------------