Bug 2255942

Summary: [abrt] cockpit-bridge: merge_patch(): packages.py:366:merge_patch:KeyError: 'storage'
Product: [Fedora] Fedora Reporter: Neftali Yagua <neftali.yagua>
Component: cockpitAssignee: Martin Pitt <mpitt>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: kkoukiou, mmarusak, mpitt, neftali.yagua, patrick, stefw
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/8dfd81bcbd1ec47470e8e1ea1b617d26f2b2129
Whiteboard: abrt_hash:2e5c7c1658ddc07401144d35df8c5053de21de6d;VARIANT_ID=workstation;
Fixed In Version: cockpit-310-1.fc38 cockpit-310.1-1.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-02 02:22:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description Neftali Yagua 2023-12-26 23:54:28 UTC
Version-Release number of selected component:
cockpit-bridge-306-1.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.6.6-200.fc39.x86_64
cmdline:        /usr/bin/python3 /usr/bin/cockpit-bridge --packages
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-5df5a124-64ce-4485-940a-42ca1fdd6aa4.scope
uid:            1000
reason:         packages.py:366:merge_patch:KeyError: 'storage'
executable:     /usr/bin/cockpit-bridge
type:           Python3
package:        cockpit-bridge-306-1.fc39
runlevel:       N 5
exception_type: KeyError
crash_function: merge_patch
interpreter:    python3-3.12.0-1.fc39.x86_64

Truncated backtrace:
#1 [/usr/lib/python3.12/site-packages/cockpit/packages.py:366] merge_patch
#2 [/usr/lib/python3.12/site-packages/cockpit/packages.py:364] merge_patch
#3 [/usr/lib/python3.12/site-packages/cockpit/packages.py:390] patch_manifest
#4 [/usr/lib/python3.12/site-packages/cockpit/packages.py:410] load_manifests
#5 [/usr/lib/python3.12/site-packages/cockpit/packages.py:444] load_packages
#6 [/usr/lib/python3.12/site-packages/cockpit/packages.py:486] load
#7 [/usr/lib/python3.12/site-packages/cockpit/packages.py:475] __init__
#8 [/usr/lib/python3.12/site-packages/cockpit/bridge.py:279] main
#9 [/usr/bin/cockpit-bridge:8] <module>

Comment 1 Neftali Yagua 2023-12-26 23:54:34 UTC
Created attachment 2006027 [details]
File: os_info

Comment 2 Neftali Yagua 2023-12-26 23:54:37 UTC
Created attachment 2006028 [details]
File: environ

Comment 3 Neftali Yagua 2023-12-26 23:54:39 UTC
Created attachment 2006029 [details]
File: mountinfo

Comment 4 Neftali Yagua 2023-12-26 23:54:42 UTC
Created attachment 2006030 [details]
File: open_fds

Comment 5 Neftali Yagua 2023-12-26 23:54:44 UTC
Created attachment 2006031 [details]
File: namespaces

Comment 6 Neftali Yagua 2023-12-26 23:54:47 UTC
Created attachment 2006032 [details]
File: backtrace

Comment 7 Neftali Yagua 2023-12-26 23:54:49 UTC
Created attachment 2006033 [details]
File: cpuinfo

Comment 8 Martin Pitt 2024-01-01 19:55:59 UTC
Unfortunately the ABRT backtrace URL is a 404, and it's not immediately clear to me how this can happen.

Can you please give me the output of:
rpm -qa '*cockpit*'
ls -l ~/.local/share/cockpit /usr/share/cockpit/

Thanks!

Comment 9 Neftali Yagua 2024-01-29 06:28:50 UTC
(In reply to Martin Pitt from comment #8)
> Unfortunately the ABRT backtrace URL is a 404, and it's not immediately
> clear to me how this can happen.
> 
> Can you please give me the output of:
> rpm -qa '*cockpit*'
> ls -l ~/.local/share/cockpit /usr/share/cockpit/
> 
> Thanks!
[neftaliyagua@neftali ~]$ rpm -qa '*cockpit*'
cockpit-389-ds-2.4.4-1.fc39.noarch
cockpit-bridge-309-1.fc39.x86_64
cockpit-system-309-1.fc39.noarch
cockpit-networkmanager-309-1.fc39.noarch
cockpit-packagekit-309-1.fc39.noarch
cockpit-pcp-309-1.fc39.x86_64
cockpit-ws-309-1.fc39.x86_64
cockpit-storaged-309-1.fc39.noarch
cockpit-309-1.fc39.x86_64
cockpit-machines-305-1.fc39.noarch
[neftaliyagua@neftali ~]$ ls -l ~/.local/share/cockpit /usr/share/cockpit/
/home/neftaliyagua/.local/share/cockpit:
total 12
lrwxrwxrwx. 1 neftaliyagua neftaliyagua 63 ene 15 21:08 databases -> /home/neftaliyagua/dev/cockpit-community/cockpit-databases/dist
lrwxrwxrwx. 1 neftaliyagua neftaliyagua 58 ene 15 21:09 mail -> /home/neftaliyagua/dev/cockpit-community/cockpit-mail/dist
lrwxrwxrwx. 1 neftaliyagua neftaliyagua 64 ene 15 21:01 webservers -> /home/neftaliyagua/dev/cockpit-community/cockpit-webservers/dist

/usr/share/cockpit/:
total 0
drwxr-xr-x. 1 root root  210 dic 10 22:20 389-console
drwxr-xr-x. 1 root root 1456 ene 21 16:07 apps
drwxr-xr-x. 1 root root 1368 ene 21 16:07 base1
drwxr-xr-x. 1 root root  150 ene 17 19:00 branding
drwxr-xr-x. 1 root root 1306 ene 27 08:13 machines
drwxr-xr-x. 1 root root 1442 ene 21 16:07 metrics
drwxr-xr-x. 1 root root   48 ene 21 16:08 motd
drwxr-xr-x. 1 root root 1684 ene 21 16:07 networkmanager
drwxr-xr-x. 1 root root 1458 ene 21 16:07 packagekit
drwxr-xr-x. 1 root root   26 ene 21 16:07 pcp
drwxr-xr-x. 1 root root 1474 ene 21 16:07 shell
drwxr-xr-x. 1 root root 1200 ene 21 16:08 static
drwxr-xr-x. 1 root root 1466 ene 21 16:08 storaged
drwxr-xr-x. 1 root root 2086 ene 21 16:07 systemd
drwxr-xr-x. 1 root root 1442 ene 21 16:07 users


The sources for 
databases -> /home/neftaliyagua/dev/cockpit-community/cockpit-databases/dist
mail -> /home/neftaliyagua/dev/cockpit-community/cockpit-mail/dist
webservers -> /home/neftaliyagua/dev/cockpit-community/cockpit-webservers/dist

It is available in the following repositories:

https://github.com/codericLatam/cockpit-webservers
https://github.com/codericLatam/cockpit-mail
https://github.com/codericLatam/cockpit-databases

Comment 10 Martin Pitt 2024-01-30 10:24:15 UTC
I cloned the three repos and tried to build them, with `make`. They all fail with a segfault ("fatal error: all goroutines are asleep - deadlock!"), which is https://github.com/evanw/esbuild/issues/3542 (you already use stylelint 16). `./build.js -es` works around that, however, cockpit-mail fails to build:

✘ [ERROR] Could not resolve "./TabsBoxLight"

    src/app.jsx:24:29:
      24 │ import { TabsBoxLight } from './TabsBoxLight';
         ╵                              ~~~~~~~~~~~~~~~~

11:12:19: Build finished in 812 ms

But with that, `cockpit-bridge --packages` succeeds:

base1                                                         /usr/share/cockpit/base1
databases            Databases                                /home/martin/.local/share/cockpit/databases
mail                 Mail                                     /home/martin/.local/share/cockpit/mail
metrics                                                       /usr/share/cockpit/metrics
shell                                                         /usr/share/cockpit/shell
static                                                        /usr/share/cockpit/static
system               Overview, Services, Logs, Terminal       /usr/share/cockpit/systemd
users                Accounts                                 /usr/share/cockpit/users
webservers           Webservers                               /home/martin/.local/share/cockpit/webservers

That's cockpit-bridge-309-1.fc39.x86_64.


I suspect that you have some manifest override [1] somewhere which disable the storage page? I tried some variants, but didn't manage to reproduce the crash. But nevertheless, that crash should be fixed by a recent commit [2] which will be in cockpit 310, to be released tomorrow. If you want to give it a try, you can upgrade to https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/ , these builds contain the fix.

[1] https://cockpit-project.org/guide/latest/packages.html#package-manifest-override
[2] https://github.com/cockpit-project/cockpit/commit/190e121e99afbd7f4cfe7850f7d9028e0190abdd

Comment 11 Fedora Update System 2024-01-31 15:58:45 UTC
FEDORA-2024-f44114a0f9 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f44114a0f9

Comment 12 Fedora Update System 2024-01-31 15:59:05 UTC
FEDORA-2024-74c8bd3c4c has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-74c8bd3c4c

Comment 13 Fedora Update System 2024-02-01 01:31:15 UTC
FEDORA-2024-f44114a0f9 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f44114a0f9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f44114a0f9

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

Comment 14 Fedora Update System 2024-02-02 02:16:45 UTC
FEDORA-2024-74c8bd3c4c has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-74c8bd3c4c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-74c8bd3c4c

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

Comment 15 Fedora Update System 2024-02-02 02:22:56 UTC
FEDORA-2024-f44114a0f9 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-02-05 01:26:06 UTC
FEDORA-2024-95f8bfccfe has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.