Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-76129

Snapm exits with a traceback when interrupted by a KeyboardInterrupt

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.1
    • rhel-10.0
    • snapm
    • None
    • rhel-storage-management
    • ssg_platform_storage
    • 11
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • 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

      1. snapm snapset resize backup /home:200%SIZE
      2. 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

       

              rhn-support-bmr Bryn Reeves
              rhn-support-fsuba Filip Suba
              Bryn Reeves Bryn Reeves
              Filip Suba Filip Suba
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: