Bug 2458608
| Summary: | pcs resource list produces traceback | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Luca Cavana <luca.cavana> |
| Component: | pcs | Assignee: | Michal Pospisil <mpospisi> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 43 | CC: | anprice, cfeist, idevat, luca.cavana, mlisik, mpospisi, omular, tojeline |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | pcs-0.12.2-2.fc44 pcs-0.12.2-2.fc43 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-06-10 00:55:10 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: | |||
Just to clarify, I'm waiting for the fix of bz2461143 to do a new build. It will also include a fixed pcs-web-ui for bz2454042. FEDORA-2026-c0f7d885ee (pcs-0.12.2-2.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2026-c0f7d885ee FEDORA-2026-d420bebe72 (pcs-0.12.2-2.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2026-d420bebe72 FEDORA-2026-a5176717a9 (pcs-0.12.2-2.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-a5176717a9 FEDORA-2026-d420bebe72 has been pushed to the Fedora 44 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d420bebe72` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d420bebe72 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2026-c0f7d885ee has been pushed to the Fedora 43 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-c0f7d885ee` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-c0f7d885ee See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2026-d420bebe72 (pcs-0.12.2-2.fc44) has been pushed to the Fedora 44 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2026-c0f7d885ee (pcs-0.12.2-2.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report. |
Hello, the command "pcs resource list" produces a traceback after a few 10s of seconds of high CPU usage and no useful output appears. A very similar traceback happens for "pcs stonith list" (but I think that's because they share the same code as stonith devices are primitives themselves), Reproducible: Always Steps to Reproduce: 1. Install the cluster components pcs pacemaker 2. Create a basic cluster 3. Run "pcs resource list" or "pcs stonith list" 4. If you manage the cluster via pcsd web ui or cockpit, you can list resource types Actual Results: For "pcs resource list": Traceback (most recent call last): File "/usr/sbin/pcs", line 8, in <module> sys.exit(main()) ~~~~^^ File "/usr/lib/python3.14/site-packages/pcs/app.py", line 271, in main routing.create_router(cmd_map, [])( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ utils.get_library_wrapper(), argv, utils.get_input_modifiers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/pcs/cli/common/routing.py", line 33, in _router return cmd_map[sub_cmd](lib, argv_next, modifiers) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/pcs/cli/common/routing.py", line 33, in _router return cmd_map[sub_cmd](lib, argv_next, modifiers) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/pcs/resource.py", line 511, in resource_list_available _format_desc( ~~~~~~~~~~~~^ len(name + " - "), shortdesc.replace("\n", " ") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ), ^ File "/usr/lib/python3.14/site-packages/pcs/resource.py", line 567, in _format_desc dummy_rows, columns = utils.getTerminalSize() ~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.14/site-packages/pcs/utils.py", line 1800, in getTerminalSize str("hh"), fcntl.ioctl(fd, termios.TIOCGWINSZ, "1234") ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SystemError: buffer overflow For "pcs stonith list": Traceback (most recent call last): File "/usr/sbin/pcs", line 8, in <module> sys.exit(main()) ~~~~^^ File "/usr/lib/python3.14/site-packages/pcs/app.py", line 271, in main routing.create_router(cmd_map, [])( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ utils.get_library_wrapper(), argv, utils.get_input_modifiers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/pcs/cli/common/routing.py", line 33, in _router return cmd_map[sub_cmd](lib, argv_next, modifiers) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/pcs/cli/common/routing.py", line 33, in _router return cmd_map[sub_cmd](lib, argv_next, modifiers) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/pcs/stonith.py", line 88, in stonith_list_available resource._format_desc( # noqa: SLF001 ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ len(name + " - "), shortdesc.replace("\n", " ") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ), ^ File "/usr/lib/python3.14/site-packages/pcs/resource.py", line 567, in _format_desc dummy_rows, columns = utils.getTerminalSize() ~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.14/site-packages/pcs/utils.py", line 1800, in getTerminalSize str("hh"), fcntl.ioctl(fd, termios.TIOCGWINSZ, "1234") ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SystemError: buffer overflow Expected Results: You get the list.