RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1685019 - [RHEL-8][ssm] KeyError: 'multipath' with 'ssm -b multipath list'
Summary: [RHEL-8][ssm] KeyError: 'multipath' with 'ssm -b multipath list'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: system-storage-manager
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.1
Assignee: Lukáš Czerner
QA Contact: Boyang Xue
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-04 07:26 UTC by Boyang Xue
Modified: 2020-11-14 14:06 UTC (History)
5 users (show)

Fixed In Version: system-storage-manager-1.4-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:28:09 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3616 0 None None None 2019-11-05 22:28:15 UTC

Description Boyang Xue 2019-03-04 07:26:08 UTC
Description of problem:
ssm has built in multipath backend:
---
  -b BACKEND, --backend BACKEND
                        Choose backend to use. Currently you can choose from
                        (lvm,btrfs,crypt,multipath).
---

specify 'multipath' backend with 'ssm list' hit the bug:
---
[root@host-8-241-49 ~]# ssm -b multipath list
--------------------------------------
Device         Free  Used
--------------------------------------
/dev/vda   20.00 GB  PARTITIONED
/dev/vda1  20.00 GB  /
--------------------------------------
Traceback (most recent call last):
  File "/usr/bin/ssm", line 59, in <module>
    sys.exit(main.main())
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 2831, in main
    args.func(args)
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 1965, in list
    self.pool.psummary()
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 1515, in pool
    self._pool = Pool(options=self.options)
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 1273, in __init__
    backend = self.get_backend(SSM_DEFAULT_BACKEND)
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 1153, in get_backend
    return self._data[name]
KeyError: 'multipath'
---

Version-Release number of selected component (if applicable):
system-storage-manager-1.2-2.el8

How reproducible:
Always

Steps to Reproduce:
1. ssm -b multipath list

Actual results:
No error with the command line

Expected results:
KeyError with the command line

Additional info:
N/A

Comment 2 Boyang Xue 2019-06-11 09:39:42 UTC
TEST PASS.

Reproduced with system-storage-manager-1.2-3.el8

[root@kvm103 ~]# ssm -b multipath list
--------------------------------------
Device         Free  Used       
--------------------------------------
/dev/vda   32.00 GB  PARTITIONED
/dev/vda1   1.00 GB  /boot      
/dev/vda2  11.00 GB             
/dev/vda3  11.00 GB             
/dev/vda4   1.00 KB             
/dev/vda5   2.56 GB  SWAP       
/dev/vda6   1.00 GB             
/dev/vda7   5.44 GB  /          
--------------------------------------
Traceback (most recent call last):
  File "/usr/bin/ssm", line 59, in <module>
    sys.exit(main.main())
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 2831, in main
    args.func(args)
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 1965, in list
    self.pool.psummary()
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 1515, in pool
    self._pool = Pool(options=self.options)
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 1273, in __init__
    backend = self.get_backend(SSM_DEFAULT_BACKEND)
  File "/usr/lib/python3.6/site-packages/ssmlib/main.py", line 1153, in get_backend
    return self._data[name]
KeyError: 'multipath'
---

Verified with system-storage-manager-1.4-1.el8

[root@kvm101 ~]# ssm -b multipath list
usage: ssm [-h] [--version] [-v] [-vv] [-vvv] [-f] [-b BACKEND] [-n]
           {check,resize,create,list,add,remove,snapshot,mount,migrate} ...
ssm: error: argument -b/--backend: invalid choice: 'multipath' (choose from 'lvm', 'btrfs', 'crypt')

Comment 5 errata-xmlrpc 2019-11-05 22:28:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3616


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