Bug 2120953 - Sos fails on missing magic module
Summary: Sos fails on missing magic module
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sos
Version: 37
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
Assignee: Sandro Bonazzola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: CockpitTest
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-24 06:32 UTC by Matej Marušák
Modified: 2022-09-12 17:37 UTC (History)
2 users (show)

Fixed In Version: sos-4.4-2.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-12 17:37:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matej Marušák 2022-08-24 06:32:15 UTC
Description of problem:
Cockpit CI noticed that calling `sos` fails on missing `magic` module in current rawhide.

How reproducible:

`sos report --batch --label mylabel -v`
Fails with `ModuleNotFoundError: No module named 'magic'`
See https://artifacts.dev.testing-farm.io/62662774-11be-4734-a44b-83229a57b73c/work-allzGttc1/plans/all/execute/data/test/browser/data/TestSOS-testVerbose-fedora-36-localhost-22-FAIL.png

It seems like 'magic' was not installed in the gating VM for new rawhide and sos is not depending on it.

Comment 1 Sandro Bonazzola 2022-08-24 08:22:51 UTC
Workaround is simple, just install python3-magic.
Fixing this for f37 which already bumped to 4.4.

Comment 2 Fedora Update System 2022-08-24 08:35:06 UTC
FEDORA-2022-a02143e5b9 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-a02143e5b9

Comment 3 Fedora Update System 2022-08-24 18:44:00 UTC
FEDORA-2022-a02143e5b9 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-a02143e5b9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-a02143e5b9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2022-09-12 17:37:59 UTC
FEDORA-2022-a02143e5b9 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.