Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-4082

[release-4.16] RF Keyword can produce a false-negative during RPM install

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • uShift Sprint 258, uShift Sprint 259

      Description of problem:

      Resource File: microshift/test/resources/microshift-rpm.resource
      Keyword: Install MicroShift RPM Packages From System Repo
      
      The keyword checks `dnf install...` output for the string "error". During installation, it's possible for curl, running under the hood, to timeout and produce the following message: 
      
      [MIRROR] openvswitch3.3-3.3.0-2.el9fdp.x86_64.rpm: Curl error (28): Timeout was reached for https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/os/Packages/o/openvswitch3.3-3.3.0-2.el9fdp.x86_64.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
      
      However the dnf command succeedes and the openvswitch3.3... package is installed.  Since test success depends on the simple string matching, the test is considered failed.
      
      Here is the full keyword message, which wraps the dnf process:
      
      'Updating Subscription Management repositories.
      Last metadata expiration check: 0:00:02 ago on Thu May 30 16:36:32 2024.
      Dependencies resolved.
      ==============================================================================================================================================================================
       Package                 Arch    Version                                                                                          Repository                              Size
      ==============================================================================================================================================================================
      Upgrading:
       microshift              x86_64  4.17.0_0.nightly_2024_05_24_193308_20240530175730_a7e009647af03c4a1c401f71ba1711e97462fc7b-1.el9 microshift-local                        58 M
       microshift-greenboot    noarch  4.17.0_0.nightly_2024_05_24_193308_20240530175730_a7e009647af03c4a1c401f71ba1711e97462fc7b-1.el9 microshift-local                        19 k
       microshift-networking   x86_64  4.17.0_0.nightly_2024_05_24_193308_20240530175730_a7e009647af03c4a1c401f71ba1711e97462fc7b-1.el9 microshift-local                        19 k
       microshift-selinux      noarch  4.17.0_0.nightly_2024_05_24_193308_20240530175730_a7e009647af03c4a1c401f71ba1711e97462fc7b-1.el9 microshift-local                        25 k
      Installing dependencies:
       openvswitch3.3          x86_64  3.3.0-2.el9fdp                                                                                   fast-datapath-for-rhel-9-x86_64-rpms   6.8 M
      Removing dependent packages:
       openvswitch3.1          x86_64  3.1.0-94.el9fdp                                                                                  @fast-datapath-for-rhel-9-x86_64-rpms   22 M
      
      Transaction Summary
      ==============================================================================================================================================================================
      Install  1 Package
      Upgrade  4 Packages
      Remove   1 Package
      
      Total download size: 65 M
      Downloading Packages:
      (1/5): microshift-greenboot-4.17.0_0.nightly_20 4.8 MB/s |  19 kB     00:00    
      (2/5): microshift-networking-4.17.0_0.nightly_2 5.1 MB/s |  19 kB     00:00    
      (3/5): microshift-selinux-4.17.0_0.nightly_2024 6.1 MB/s |  25 kB     00:00    
      (4/5): microshift-4.17.0_0.nightly_2024_05_24_1 205 MB/s |  58 MB     00:00    
      [MIRROR] openvswitch3.3-3.3.0-2.el9fdp.x86_64.rpm: Curl error (28): Timeout was reached for https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/os/Packages/o/openvswitch3.3-3.3.0-2.el9fdp.x86_64.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
      (5/5): openvswitch3.3-3.3.0-2.el9fdp.x86_64.rpm 182 kB/s | 6.8 MB     00:38    
      --------------------------------------------------------------------------------
      Total                                           1.7 MB/s |  65 MB     00:38     
      Running transaction check
      Transaction check succeeded.
      Running transaction test
      Transaction test succeeded.
      Running transaction
        Preparing        :                                                        1/1 
        Running scriptlet: openvswitch3.3-3.3.0-2.el9fdp.x86_64                  1/10 
        Installing       : openvswitch3.3-3.3.0-2.el9fdp.x86_64                  1/10 
        Running scriptlet: openvswitch3.3-3.3.0-2.el9fdp.x86_64                  1/10 
      Removed "/etc/systemd/system/multi-user.target.wants/openvswitch.service".
      
        Upgrading        : microshift-greenboot-4.17.0_0.nightly_2024_05_24_1    2/10 
        Running scriptlet: microshift-selinux-4.17.0_0.nightly_2024_05_24_193    3/10 
        Upgrading        : microshift-selinux-4.17.0_0.nightly_2024_05_24_193    3/10 
        Running scriptlet: microshift-selinux-4.17.0_0.nightly_2024_05_24_193    3/10 
        Upgrading        : microshift-4.17.0_0.nightly_2024_05_24_193308_2024    4/10 
        Running scriptlet: microshift-4.17.0_0.nightly_2024_05_24_193308_2024    4/10 
        Running scriptlet: microshift-networking-4.17.0_0.nightly_2024_05_24_    5/10 
        Upgrading        : microshift-networking-4.17.0_0.nightly_2024_05_24_    5/10 
        Running scriptlet: microshift-networking-4.17.0_0.nightly_2024_05_24_    5/10 
        Running scriptlet: microshift-4.16.0~rc.1-202405101626.p0.g1407777.as    6/10 
        Cleanup          : microshift-4.16.0~rc.1-202405101626.p0.g1407777.as    6/10 
        Running scriptlet: microshift-networking-4.16.0~rc.1-202405101626.p0.    7/10 
        Cleanup          : microshift-networking-4.16.0~rc.1-202405101626.p0.    7/10 
        Cleanup          : microshift-greenboot-4.16.0~rc.1-202405101626.p0.g    8/10 
        Cleanup          : microshift-selinux-4.16.0~rc.1-202405101626.p0.g14    9/10 
        Running scriptlet: microshift-selinux-4.16.0~rc.1-202405101626.p0.g14    9/10 
        Running scriptlet: openvswitch3.1-3.1.0-94.el9fdp.x86_64                10/10 
      Removed "/etc/systemd/system/multi-user.target.wants/openvswitch.service".
      
        Erasing          : openvswitch3.1-3.1.0-94.el9fdp.x86_64                10/10 
        Running scriptlet: openvswitch3.1-3.1.0-94.el9fdp.x86_64                10/10 
        Running scriptlet: microshift-selinux-4.17.0_0.nightly_2024_05_24_193   10/10 
        Running scriptlet: openvswitch3.1-3.1.0-94.el9fdp.x86_64                10/10 
        Verifying        : openvswitch3.3-3.3.0-2.el9fdp.x86_64                  1/10 
        Verifying        : microshift-4.17.0_0.nightly_2024_05_24_193308_2024    2/10 
        Verifying        : microshift-4.16.0~rc.1-202405101626.p0.g1407777.as    3/10 
        Verifying        : microshift-greenboot-4.17.0_0.nightly_2024_05_24_1    4/10 
        Verifying        : microshift-greenboot-4.16.0~rc.1-202405101626.p0.g    5/10 
        Verifying        : microshift-networking-4.17.0_0.nightly_2024_05_24_    6/10 
        Verifying        : microshift-networking-4.16.0~rc.1-202405101626.p0.    7/10 
        Verifying        : microshift-selinux-4.17.0_0.nightly_2024_05_24_193    8/10 
        Verifying        : microshift-selinux-4.16.0~rc.1-202405101626.p0.g14    9/10 
        Verifying        : openvswitch3.1-3.1.0-94.el9fdp.x86_64                10/10 
      Installed products updated.
      
      Upgraded:
        microshift-4.17.0_0.nightly_2024_05_24_193308_20240530175730_a7e009647af03c4a1c401f71ba1711e97462fc7b-1.el9.x86_64
        microshift-greenboot-4.17.0_0.nightly_2024_05_24_193308_20240530175730_a7e009647af03c4a1c401f71ba1711e97462fc7b-1.el9.noarch
        microshift-networking-4.17.0_0.nightly_2024_05_24_193308_20240530175730_a7e009647af03c4a1c401f71ba1711e97462fc7b-1.el9.x86_64
        microshift-selinux-4.17.0_0.nightly_2024_05_24_193308_20240530175730_a7e009647af03c4a1c401f71ba1711e97462fc7b-1.el9.noarch
      Installed:
        openvswitch3.3-3.3.0-2.el9fdp.x86_64                                          
      Removed:
        openvswitch3.1-3.1.0-94.el9fdp.x86_64                                         
      
      Complete!' contains 'error'

      Version-Release number of selected component (if applicable):

       

      How reproducible:

      Unknown and difficult to repro

      Steps to Reproduce:

      1. 
      2.
      3.
      

      Actual results:

      Keyword reports runtime failure

      Expected results:

      Keyword should have succeeded and the test should have executed

      Additional info:

       

              jcope@redhat.com Jon Cope
              jcope@redhat.com Jon Cope
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: