Bug 1197359

Summary: upgraded system: zypper -n in salt-master salt-minion' failed with code 8
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP4 Reporter: Lubos Kocman <lubos.kocman>
Component: SaltAssignee: E-Mail List <salt-maintainers>
Status: VERIFIED FIXED QA Contact:
Severity: Normal    
Priority: P2 - High CC: lubos.kocman, mlin, mloviska, pablo.suarezhernandez, rtsvetkov
Version: PublicBeta-202202   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://openqa.opensuse.org/tests/2255752/modules/salt/steps/22
See Also: http://bugzilla.opensuse.org/show_bug.cgi?id=1199591
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---

Description Lubos Kocman 2022-03-21 16:50:11 UTC
## Observation

zypper returns exit code 8 during instlalation of salt and salt-minion on Leap 15.4

       8 - ZYPPER_EXIT_ERR_COMMIT
           An error occurred during installation or removal of packages. You may run zypper verify to repair any dependency problems.

This is somethign that needs to be investigated by packager.


openQA test in scenario opensuse-15.4-DVD-x86_64-upgrade_Leap_42.1_kde@64bit fails in
[salt](https://openqa.opensuse.org/tests/2255752/modules/salt/steps/22)

## Test suite description



## Reproducible

Fails since (at least) Build [124.1](https://openqa.opensuse.org/tests/2087842)


## Expected result

Last good: (unknown) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=upgrade_Leap_42.1_kde&version=15.4)
Comment 1 Lubos Kocman 2022-03-21 16:51:00 UTC
This has happened on the previous build. I originally though it will be a one-off but it seems to be reproducible.
Comment 2 Lubos Kocman 2022-03-21 16:58:21 UTC
Just to mention that this test is running in our "old" upgrade suites. If you think this should not be tested please request deletion of the test in https://progress.opensuse.org/projects/openqatests/issues
Comment 3 Pablo Suárez Hernández 2022-03-21 17:00:04 UTC
It seems the error is caused by one of the pulled dependencies: python3-numpy

Looking at the openQA logs:

# wait_serial expected: qr/A9LGb-\d+-/u
# Result:
in-0.6.3-2.18.noarch (30/51),  12.9 KiB ( 13.3 KiB unpacked)
Retrieving: python3-zypp-plugin-0.6.3-2.18.noarch.rpm [done]
Retrieving package python3-PyNaCl-1.2.1-3.3.1.x86_64 (31/51),  75.6 KiB (423.4 KiB unpacked)
Retrieving: python3-PyNaCl-1.2.1-3.3.1.x86_64.rpm [done]
Retrieving package libzmq5-4.2.3-3.15.4.x86_64 (32/51), 211.5 KiB (622.4 KiB unpacked)
Retrieving: libzmq5-4.2.3-3.15.4.x86_64.rpm [done]
Retrieving package python3-pygit2-1.7.0-bp154.1.4.x86_64 (33/51), 177.5 KiB (853.0 KiB unpacked)
Retrieving: python3-pygit2-1.7.0-bp154.1.4.x86_64.rpm [done]
Retrieving package python3-gevent-1.2.2-3.26.x86_64 (34/51), 718.6 KiB (  5.2 MiB unpacked)
Retrieving: python3-gevent-1.2.2-3.26.x86_64.rpm [done]
Retrieving package python3-h2-3.2.0-3.2.2.noarch (35/51),  95.5 KiB (582.2 KiB unpacked)
Retrieving: python3-h2-3.2.0-3.2.2.noarch.rpm [done]
Retrieving package python3-contextvars-2.4-150400.1.2.noarch (36/51),  17.9 KiB ( 27.4 KiB unpacked)
Retrieving: python3-contextvars-2.4-150400.1.2.noarch.rpm [done]
Retrieving package python3-pexpect-4.8.0-150400.13.1.noarch (37/51), 139.3 KiB (617.1 KiB unpacked)
Retrieving: python3-pexpect-4.8.0-150400.13.1.noarch.rpm [done]
Retrieving package python3-service_identity-18.1.0-3.2.1.noarch (38/51),  30.6 KiB ( 78.7 KiB unpacked)
Retrieving: python3-service_identity-18.1.0-3.2.1.noarch.rpm [done]
Retrieving package python3-Babel-2.8.0-3.3.1.noarch (39/51),   5.0 MiB ( 26.4 MiB unpacked)
Retrieving: python3-Babel-2.8.0-3.3.1.noarch.rpm [done]
Retrieving package python3-paramiko-2.4.2-6.9.1.noarch (40/51), 278.9 KiB (  1.6 MiB unpacked)
Retrieving: python3-paramiko-2.4.2-6.9.1.noarch.rpm [done]
Retrieving package zeromq-tools-4.2.3-3.15.4.x86_64 (41/51),  31.4 KiB ( 48.8 KiB unpacked)
Retrieving: zeromq-tools-4.2.3-3.15.4.x86_64.rpm [done]
Retrieving package python3-incremental-21.3.0-150400.1.2.noarch (42/51),  34.6 KiB (196.6 KiB unpacked)
Retrieving: python3-incremental-21.3.0-150400.1.2.noarch.rpm [done]
Retrieving package python3-Jinja2-2.10.1-3.10.2.noarch (43/51), 237.4 KiB (  1.2 MiB unpacked)
Retrieving: python3-Jinja2-2.10.1-3.10.2.noarch.rpm [done]
Retrieving package python3-Automat-20.2.0-150400.1.2.noarch (44/51),  67.4 KiB (323.9 KiB unpacked)
Retrieving: python3-Automat-20.2.0-150400.1.2.noarch.rpm [done]
Retrieving package python3-Twisted-21.7.0-150400.1.1.x86_64 (45/51),   4.8 MiB ( 34.9 MiB unpacked)
Retrieving: python3-Twisted-21.7.0-150400.1.1.x86_64.rpm [.done (3.7 MiB/s)]
Retrieving package python3-tornado-4.5.3-3.3.1.x86_64 (46/51), 666.9 KiB (  4.2 MiB unpacked)
Retrieving: python3-tornado-4.5.3-3.3.1.x86_64.rpm [done]
Retrieving package python3-pyzmq-17.1.2-3.3.1.x86_64 (47/51), 464.5 KiB (  2.1 MiB unpacked)
Retrieving: python3-pyzmq-17.1.2-3.3.1.x86_64.rpm [done]
Retrieving package python3-salt-3004-150400.3.4.x86_64 (48/51),   8.4 MiB ( 45.3 MiB unpacked)
Retrieving: python3-salt-3004-150400.3.4.x86_64.rpm [done]
Retrieving package salt-3004-150400.3.4.x86_64 (49/51), 189.0 KiB ( 39.0 KiB unpacked)
Retrieving: salt-3004-150400.3.4.x86_64.rpm [done]
Retrieving package salt-minion-3004-150400.3.4.x86_64 (50/51), 187.4 KiB ( 42.0 KiB unpacked)
Retrieving: salt-minion-3004-150400.3.4.x86_64.rpm [done]
Retrieving package salt-master-3004-150400.3.4.x86_64 (51/51),   3.3 MiB (  3.2 MiB unpacked)
Retrieving: salt-master-3004-150400.3.4.x86_64.rpm [done]

Checking for file conflicts: [........error]
Detected 1 file conflict:

File /usr/bin/f2py
  from install of
     python3-numpy-1.17.3-150400.21.12.x86_64 (OSS)
  conflicts with file from package
     python-numpy-1.8.0-3.5.x86_64 (@System)

File conflicts happen when two packages attempt to install files with the same name but different contents. If you continue, conflicting files will be replaced losing the previous content.
Continue? [yes/no] (no): no

Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
History:
 - ABORT request: 

Please see the above error message for a hint.
A9LGb-8-

Looks like the instance has an old and conflicting "python-numpy-1.8.0-3.5.x86_64" package installed that conflicts with the new "python3-numpy-1.17.3-150400.21.12.x86_64" coming from the OS channel.

This sounds like something to fix on the instances that are used for running the openQA tests. This is definetely not a problem with Salt.

Lubos, could you please double check this? Thanks!
Comment 4 Lubos Kocman 2022-04-14 15:14:25 UTC
I did ask Max for assistance here due to Easter break.
Comment 5 Max Lin 2022-04-15 10:09:18 UTC
ftp-tree doesn't have python-numpy and we do have Provides: weakremover(python-numpy) from release-package, I think something is still depend on python-numpy on the 42.1 SUT thus it can not to be removed smoothly, as 42.1 GNOME doesn't have this issue. 42.1 is a EOL product, I'm not sure it worth to invest time on that...
Comment 6 openQA Review 2022-04-30 00:11:11 UTC
This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: upgrade_Leap_42.1_kde
https://openqa.opensuse.org/tests/2316215#step/salt/1

To prevent further reminder comments one of the following options should be followed:
1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
2. The openQA job group is moved to "Released" or "EOL" (End-of-Life)
3. The bugref in the openQA scenario is removed or replaced, e.g. `label:wontfix:boo1234`

Expect the next reminder at the earliest in 28 days if nothing changes in this ticket.
Comment 7 Lubos Kocman 2022-05-16 17:14:04 UTC
Let's make sure that this test is ripped away from the test suite, Martin Loviska suggested to remove scope. Closing in favor of our migration test suite https://progress.opensuse.org/issues/108692
Comment 8 Martin Loviska 2022-05-18 08:43:12 UTC
(In reply to Max Lin from comment #5)
> ftp-tree doesn't have python-numpy and we do have Provides:
> weakremover(python-numpy) from release-package, I think something is still
> depend on python-numpy on the 42.1 SUT thus it can not to be removed
> smoothly, as 42.1 GNOME doesn't have this issue. 42.1 is a EOL product, I'm
> not sure it worth to invest time on that...

The issue appears only in KDE installations, gnome jobs seems to be fine
https://openqa.opensuse.org/tests/2350701#step/salt/6

linux-yv1x:~ # cat /etc/os-release 
NAME="openSUSE Leap"
VERSION="42.1"
VERSION_ID="42.1"
PRETTY_NAME="openSUSE Leap 42.1 (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:42.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"

linux-yv1x:~ # rpm -q --whatrequires python-numpy
python-gtk-2.24.0-15.1.x86_64
linux-yv1x:~ # rpm -q --whatrequires python-gtk
gimp-plugins-python-2.8.16-4.1.x86_64
linux-yv1x:~ # rpm -q --whatrequires gimp-plugins-python
no package requires gimp-plugins-python

linux-yv1x:~ # zypper rm python-numpy
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 3 packages are going to be REMOVED:
  gimp-plugins-python python-gtk python-numpy

3 packages to remove.
After the operation, 14.2 MiB will be freed.
Continue? [y/n/? shows all options] (y): n

Please let me know what do you prefer, either remove this test (also inkscape - https://bugzilla.opensuse.org/show_bug.cgi?id=1199591) or you prefer to remove these packages in case we are running this test case on leap < 15.0 with KDE
Comment 9 Max Lin 2022-05-22 15:49:49 UTC
I did tweak weakremovers in the release-package to deal with this problem, the result looks ok on the latest build https://openqa.opensuse.org/tests/2364071
Comment 10 Martin Loviska 2022-05-23 12:38:55 UTC
(In reply to Max Lin from comment #9)
> I did tweak weakremovers in the release-package to deal with this problem,
> the result looks ok on the latest build
> https://openqa.opensuse.org/tests/2364071

Thanks Max, it has also fixed *inkspace* as I can see.
Can we resolve then this report along with https://bugzilla.opensuse.org/show_bug.cgi?id=1199591?
Comment 11 Max Lin 2022-05-23 16:38:04 UTC
*** Bug 1199591 has been marked as a duplicate of this bug. ***
Comment 12 Martin Loviska 2022-05-24 10:23:24 UTC
##### VRs

* [opensuse-15.4-NET-x86_64-Build236.1-upgrade_Leap_42.1_kde@64bit](https://openqa.opensuse.org/tests/2364071)
* [opensuse-15.4-NET-x86_64-Build237.1-upgrade_Leap_42.1_kde@64bit](https://openqa.opensuse.org/tests/2368228)