-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-10.0
-
None
-
snapm-0.4.3-1.el10
-
No
-
Moderate
-
ZStream
-
rhel-storage-management
-
ssg_platform_storage
-
11
-
2
-
False
-
False
-
-
None
-
None
-
Approved Blocker
-
None
What were you trying to do that didn't work?
When Snapm is interrupted using a KeyboardInterrupt, it currently exits by showing a traceback.
Please provide the package NVR for which the bug is seen:
snapm-0.4.0-2
How reproducible is this bug?:
always
Steps to reproduce
- snapm snapset resize backup /home:200%SIZE
- Interrupt the command
Expected results
snapm snapset create -br upgrade /:100%SIZE /var
^CERROR - Exiting on user cancel
Actual results
snapm snapset resize backup /home:200%SIZE
^CTraceback (most recent call last):
File "/usr/bin/snapm", line 7, in <module>
r = main(sys.argv)
^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/snapm/command.py", line 1552, in main
status = cmd_args.func(cmd_args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/snapm/command.py", line 827, in _resize_cmd
manager = Manager()
^^^^^^^^^
File "/usr/lib/python3.12/site-packages/snapm/manager/manager.py", line 654, in __init_
self.discover_snapshot_sets()
File "/usr/lib/python3.12/site-packages/snapm/manager/_manager.py", line 766, in discover_snapshot_sets
snapshots.extend(plugin.discover_snapshots())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/snapm/manager/plugins/lvm2.py", line 890, in discover_snapshots
lvs_dict = get_lvs_json_report(lvs_all=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/snapm/manager/plugins/lvm2.py", line 261, in get_lvs_json_report
lvs_cmd = run(lvs_cmd_args, capture_output=True, check=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/subprocess.py", line 550, in run
stdout, stderr = process.communicate(input, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/subprocess.py", line 1209, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/subprocess.py", line 2115, in _communicate
ready = selector.select(timeout)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/selectors.py", line 415, in select
fd_event_list = self._selector.poll(timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt
- links to
-
RHBA-2025:149828 snapm update