Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Doesn't recognize some packages as installed on ARMv7 Fedora 34 #60994

Closed
mariushoch opened this issue Oct 4, 2021 · 0 comments · Fixed by #60996
Closed

[BUG] Doesn't recognize some packages as installed on ARMv7 Fedora 34 #60994

mariushoch opened this issue Oct 4, 2021 · 0 comments · Fixed by #60996
Assignees
Labels
Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@mariushoch
Copy link
Contributor

mariushoch commented Oct 4, 2021

Description
Salt doesn't recognize some packages as installed on ARMv7 Fedora 34, due to them being in a different, but compatible, arch. This leads to pkg.installed failing on subsequent runs, as it tries to install already installed packages.
For example ffmpeg from rpmfusion is currently ffmpeg-4.4-6.fc34.armv7hnl while the Fedora default is armv7hl (per rpm --eval %{_host_cpu}).

Setup

{%- if not salt['file.file_exists' ]('/etc/yum.repos.d/rpmfusion-free.repo') %}
Enable rpmfusion free:
  cmd.run:
   - name: "dnf -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm"
{%- endif %}
Install packages I need:
  pkg.installed:
    - pkgs:
      - ffmpeg

Ran on a ARMv7 device with Fedora 34.

Steps to Reproduce the behavior
Apply the above state. When ffmpeg is already installed (=> on the second run), it will fail with "The following packages failed to install/update: ffmpeg".

Expected behavior
ffmpeg correctly recognized as already installed.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
          Salt: 3003.3
 
Dependency Versions:
          cffi: 1.14.5
      cherrypy: Not Installed
      dateutil: 2.8.1
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 2.11.3
       libgit2: Not Installed
      M2Crypto: 0.37.1
          Mako: Not Installed
       msgpack: 1.0.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: 2.20
      pycrypto: 2.6.1
  pycryptodome: 3.10.1
        pygit2: Not Installed
        Python: 3.9.7 (default, Aug 30 2021, 00:00:00)
  python-gnupg: Not Installed
        PyYAML: 5.4.1
         PyZMQ: 22.0.3
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.4
 
System Versions:
          dist: fedora 34 
        locale: utf-8
       machine: armv7l
       release: 5.14.9-200.fc34.armv7hl
        system: Linux
       version: Fedora 34

Additional context
Add any other context about the problem here.

@mariushoch mariushoch added Bug broken, incorrect, or confusing behavior needs-triage labels Oct 4, 2021
@frogunder frogunder added this to the Approved milestone Oct 5, 2021
@frogunder frogunder added the severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around label Oct 5, 2021
mariushoch added a commit to mariushoch/salt that referenced this issue Nov 25, 2022
Ch3LL pushed a commit that referenced this issue Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants