Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
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: ASSIGNED
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: Jan Tulak
QA Contact: Boyang Xue
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-04 07:26 UTC by Boyang Xue
Modified: 2019-03-12 02:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

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


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