AIX

 View Only
Expand all | Collapse all

aix 7.3 dnf script

  • 1.  aix 7.3 dnf script

    Posted Thu December 30, 2021 07:35 AM
    Hello

    Aix 7.2 TL5 SP3 with yum installed. After migration to aix 7.3 was started script dnf_aixtoolbox.sh -y option from link actual last version.

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_aixtoolbox.sh

    result
    -------

    dnf check
    libgcc-1:8-1.ppc has missing requires of AIX-rpm < 7.3.0.0
    libgcc8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0
    libgomp-1:8-1.ppc has missing requires of AIX-rpm < 7.3.0.0
    libgomp8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0
    libstdc++-1:8-1.ppc has missing requires of AIX-rpm < 7.3.0.0
    libstdc++8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0
    Error: Check discovered 6 problem(s)

    dnf remove --duplicates
    Last metadata expiration check: 0:29:31 ago on Thu Dec 30 12:43:57 CET 2021.
    Error: No duplicated packages found for removal.

    oslevel -s
    7300-00-01-2148

    lslpp -l | grep rpm
    rpm.rte 4.15.1.2004 COMMITTED RPM Package Manager
    rpm.rte 4.15.1.2004 COMMITTED RPM Package Manager

    rpm -qa | grep rpm
    AIX-rpm-7.3.0.0-10.ppc
    rpm-python3-4.15.1-64_2.ppc

    rpm -qa | grep dnf
    libdnf-0.39.1-64_2.ppc
    dnf-data-4.2.17-64_2.noarch
    dnf-4.2.17-64_2.noarch
    python3-libdnf-0.39.1-64_2.ppc
    python3-dnf-4.2.17-64_2.noarch
    dnf-automatic-4.2.17-64_2.noarch

    I tried to install ansible with dnf a it works.

    Installed:
    ansible-2.6.2-1.ppc gmp-6.1.2-1.ppc libyaml-0.2.2-1.ppc
    python-PyYAML-3.11-1.ppc python-markupsafe-1.0-1.ppc python-paramiko-1.7.6-1.ppc
    python-pycrypto-2.6.1-1.ppc sshpass-1.09-1.ppc python-babel-0.9.6-1.noarch
    python-httplib2-0.9.2-1.noarch python-jinja2-2.10.1-1.noarch python-keyczar-0.716-1.noarch
    python-pyasn1-0.2.3-1.noarch python-setuptools-0.9.8-2.noarch python-six-1.10.0-1.noarch

    Complete!

    the rest after migration

    dnf check
    libgcc-1:8-1.ppc has missing requires of AIX-rpm < 7.3.0.0
    libgcc8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0
    libgomp-1:8-1.ppc has missing requires of AIX-rpm < 7.3.0.0
    libgomp8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0
    libstdc++-1:8-1.ppc has missing requires of AIX-rpm < 7.3.0.0
    libstdc++8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0
    Error: Check discovered 6 problem(s)





    ------------------------------
    Juraj Petráš
    ------------------------------


  • 2.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Thu December 30, 2021 01:45 PM
    I have the same issue after migrating several systems to AIX 7.3.  IBM support posted the info to the community several days ago but so far noone has posted any replies.  Hopefully this will be an easy fix but so far no luck.  DNF itself appears to be working but I prefer having a clean system with no dnf check errors

    Jaqui

    ------------------------------
    Jaqui Lynch
    ------------------------------



  • 3.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Fri December 31, 2021 06:42 AM
    Hi,

    Noticed the same ..on my case only 3 packages complaining though 

    root@tommiaix72:/home/sihvotom # dnf check
    libgcc8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0
    libgomp8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0
    libstdc++8-8.3.0-6.ppc has missing requires of AIX-rpm < 7.3.0.0

    Also noticed that lppchk was complaining on some packages:

    root@tommiaix72:/home/sihvotom # lppchk -v
    lppchk: The following filesets need to be installed or corrected to bring
    the system to a consistent state:

    bos.rte.streams 7.2.3.15 (usr: not installed, root: COMMITTED)
    bos.rte.streams 7.2.4.0 (usr: not installed, root: COMMITTED)
    devices.capi.1410f0041410f004.diag 7.2.3.15 (usr: not installed, root: COMMITTED)
    devices.capi.1410f0041410f004.diag 7.2.4.0 (usr: not installed, root: COMMITTED)
    devices.common.IBM.hdlc.rte 7.2.5.0 (usr: not installed, root: COMMITTED)
    devices.common.IBM.mpt2.diag 7.2.5.0 (usr: not installed, root: COMMITTED)
    devices.pci.00100f00.rte 7.2.4.0 (usr: not installed, root: COMMITTED)
    devices.usbif.080400.rte 7.2.3.15 (usr: not installed, root: COMMITTED)
    devices.usbif.080400.rte 7.2.4.0 (usr: not installed, root: COMMITTED)


    >> My guess is that I am missing these from my AIX 7.3 NIM spot  and / or something that has been deprecated (and be removed prior to the migration..) , does anyone have exact info about these packages, how those should be treated?

    Br,
    tommi

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



  • 4.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Fri December 31, 2021 08:56 AM

    I've recently had several LPARs with a similar lppchk error.  Usually a co-production of an upgrade and an incomplete lpp_source.

    In most cases, fixing the lpp_source and using installp to force installation of the base, followed by update solved, but in others, there was a deeper corruption of the inventory (namely some lpp's had a wrong lpp_id, which caused them to point at some other lpp's files).



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 5.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Fri December 31, 2021 10:25 AM
    Just to add to the thread.  My systems were definitely at 7.2.5.3-21436 and 7.2.5.3-2148.  .I also had the bos.rte.streams issue on lppchk and instfix. Apparently bos.rte.streams has been replaced with bps.rte.streams.server in 7.3 but for some reason it is not being cleaned up during migration.
    I opened a case TS007897125 with IBM and they said:
    the "bos.rte.streams 7.2.4.0" is more like a stale fileset left by previous old AIX 7.2 system.
     
     To fix the problem, we need to remove the bos.rte.streams 7.2 from ODM root part as below:
    They provided a series of instructions to do this but I had to provide a snap first so they could check the id for the fileset to be removed


    Here are the instructions I received from IBM but you should check with them first
    First send them a snap plus output from:
    lslpp -hac bos.rte.streams
    lslpp -f bos.rte.streams
    If this shows none for bos.rte.streams 7.2.0.0 that means it has no filesets associated with it

    ****************************************************************************************
    FROM IBM

    Backup the odm :
    # /usr/lib/instl/saveodms odmbak

    Remove the bos.rte.streams 7.2 fileset from /etc/objrepos ODM.
    # export ODMDIR=/etc/objrepos

    # odmget -q "lpp_name=bos.rte.streams and ver=7 and rel=2" product
    # odmdelete -q "lpp_name=bos.rte.streams and ver=7 and rel=2" -o product
    0518-307 odmdelete: 2 objects deleted.

    # odmget -q "name=bos.rte.streams and ver=7 and rel=2" lpp
    # odmdelete -q "name=bos.rte.streams and ver=7 and rel=2" -o lpp
    0518-307 odmdelete: 1 objects deleted.

    # odmget -q "lpp_id=423" history
    # odmdelete -q "lpp_id=423" -o history
    (I saw the lpp_id of bos.rte.streams 7.2 is 423 from the ODM in snap data).
    0518-307 odmdelete: 4 objects deleted.

    Check the filesets again.
    # lppchk -v

    If you make a mistake deleting things out of the ODM, you can run the command "/usr/lib/instl/restodms odmbak" to restore the last saved version of the ODM.
    *****************************************************

    The above worked for me but again you should check with IBM

    Jaqui

    ------------------------------
    Jaqui Lynch
    ------------------------------



  • 6.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Fri December 31, 2021 10:49 AM

    For others that are preparing to follow the same technique, do note that  in some cases, the lpp_id (a number) of an LPP may point at the lpp_id of another LPP.

    Always verify (for the three ODMs - the mapping is per-directory) that the files in the inventory class correspond to the LPP you're trying to delete, otherwise you may get additional surprises when installing/updating/removing a fileset.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 7.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Fri December 31, 2021 10:56 AM
    Absolutely - that's why I suggested checking with IBM and providing them with the snap

    Jaqui

    ------------------------------
    Jaqui Lynch
    ------------------------------



  • 8.  RE: aix 7.3 dnf script

    Posted Fri December 31, 2021 02:10 PM
     
     
    Hello
     
    I give up. No time. I solved problem with workround
     
    remove all rpm's except aix
    start script -d option
     
    dnf check  is clear
     
    dnf update works also instal or remove without problem
     







  • 9.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Mon January 03, 2022 02:49 PM
    Yeah I really don't want to uninstall and reinstall everything as I have samba installed in some cases and it is integrated with AD - a pain to redo everything

    Am hoping someone from IBM sees this and will help us all out

    ------------------------------
    Jaqui Lynch
    ------------------------------



  • 10.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Tue January 04, 2022 02:54 AM
    Same issue being asked on Open source forums, hopefully we get solution soon, at least there is a promise about instructions coming soo on forum:

    https://community.ibm.com/community/user/power/communities/community-home/digestviewer/viewthread?MessageKey=14a275dd-032e-4a67-8293-c394958c33a8&CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9&tab=digestviewer&bm=14a275dd-032e-4a67-8293-c394958c33a8#bm14a275dd-032e-4a67-8293-c394958c33a8 ;

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



  • 11.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Wed January 05, 2022 02:24 AM
    Hello All,

    First of all a agree with Jaqui, if you make a snap and report it to IBM they are helping you, there support is great!
    But reading all this i think you maybe missed a simple command that fix this for this. updtvpkg

    see also:
    Understanding the AIX Virtual RPM Package for rpm.rte (ibm.com)

    i migrated all of our lpars now, and for some of them i needed to use the updtvpkg this solves many problems.

    Greetings Christian Sonnemans.


    ------------------------------
    Christian Sonnemans
    Tactical Unix system engineer
    De Volksbank
    Den Bosch
    +31 (0) 6 53 27 15 71
    ------------------------------



  • 12.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Wed January 05, 2022 11:11 AM
    I actually run updtvpkg at multiple points during the upgrade process.  The issue was that the AIX 7.3 repository was not being added to the dnf repo list.
    After the migration I added that then reinstalled dnf, ran dnf update and I then only had 3 errors which just needed me to "dnf remove libgcc8-8.3.0-6.ppc"
    After that dnf check shows no errors and everyone is happy

    Jaqui

    ------------------------------
    Jaqui Lynch
    ------------------------------



  • 13.  RE: aix 7.3 dnf script

    Posted Thu January 06, 2022 11:16 PM
    Edited by Jan Harris Thu January 06, 2022 11:17 PM
    Many thanks, Jaqui !!!  I have tested, and re--created, and put together an AIX Technote to assist migrating customers, and will update/archive once the script is modified, if applicable. We appreciate all your details!

    AIX Open Source Tip: Potential DNF errors when migrating to AIX 7.3

    ------------------------------
    Jan Harris
    ------------------------------



  • 14.  RE: aix 7.3 dnf script

    Posted Wed January 05, 2022 11:26 AM
    Can you please check your dnf.conf file if "AIX_Toolbox_73" repo is there or not.
    If so then can you update libgcc and other packages to latest from AIX 73 repo.

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



  • 15.  RE: aix 7.3 dnf script

    IBM Champion
    Posted Wed January 05, 2022 11:33 AM
    I already posted a couple of times that I ended up adding the 73 repo to my dnf.conf which resolved alle xcept 3 of the errors.  The last 3 errors were resolved by uninstalling the problem packages - "dnf remove libgcc8-8.3.0-6.ppc"

    ------------------------------
    Jaqui Lynch
    ------------------------------



  • 16.  RE: aix 7.3 dnf script

    Posted Fri December 31, 2021 09:48 AM
    Juraj,
    I can't offer you a solution, but there are a few things I noticed about what you posted from your system. First, you mentioned that your system is at 7.2.5.3, but oslevel -s shows that it is not. Second, I notice that you are at the 2148 build date, whereas I am at the 2136 build date (plus an ifix). Third, I also noticed that my AIX-rpm* fileset is indeed "< 7.3.0.0", though I cannot immediately tell you why (perhaps also a function of build date?).
    root@xxxxxx24 / >
    # oslevel -s
    7200-05-03-2136
    root@xxxxxx24 / >
    # instfix -i | grep ML
    All filesets for 7.2.0.0_AIX_ML were found.
    All filesets for 7200-00_AIX_ML were found.
    All filesets for 7200-01_AIX_ML were found.
    All filesets for 7200-02_AIX_ML were found.
    All filesets for 7200-03_AIX_ML were found.
    All filesets for 7200-04_AIX_ML were found.
    All filesets for 7200-05_AIX_ML were found.
    root@xxxxxx24 / >
    # lppchk -vm3
    root@xxxxxx24 / >
    # lslpp -l | grep rpm
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
    root@xxxxxx24 / >
    # rpm -qa
    screen-3.9.10-2.ppc
    AIX-rpm-7.2.5.100-4.ppc
    bash-4.2-3.ppc
    I would especially like to see your results for instfix and lppchk, as above.

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