Description of problem: If to abort the repo creation, an unexpected error will be reported with a traceback in logs. Version-Release number of selected component (if applicable): >> rpm -qa "*rhui*" rh-amazon-rhui-client-rhs30-2.2.124-1.el7.noarch rhui-installer-base-0.0.24-1.el7ui.noarch rh-rhui-tools-libs-pre.3.0.16-1.el7ui.noarch rhui-installer-0.0.24-1.el7ui.noarch rh-rhui-tools-pre.3.0.16-1.el7ui.noarch rhui-default-ca-1.0-1.noarch rh-amazon-rhui-client-2.2.118-1.el7.noarch RHUI iso 20151013 How reproducible: always Steps to Reproduce: From home screen: 1 'r' - manage repositories 2. 'c' - create a new custom repository (RPM content only) >> Unique ID for the custom repository (alphanumerics, _, and - only): test_repo >> Display name for the custom repository [test_repo]: [ENTER] Path at which the repository will be served [test_repo]: [ENTER] Algorithm to use when calculating the checksum values for repository metadata: * Select "sha256" for RHEL6: * Select "sha1" for either RHEL5 or RHEL6: 1 - sha256 2 - sha1 Enter value (1-2) or 'b' to abort: >> b An unexpected error has occurred during the last operation. More information can be found in /root/.rhui/rhui.log Actual results: >> less /root/.rhui/rhui.log 2016-01-28 11:12:19,086 - Successfully connected to [rhua.example.com] 2016-01-28 11:15:33,975 - <type 'exceptions.TypeError'> 2016-01-28 11:15:33,976 - Unexpected error caught at the shell level Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/rhui/tools/shell.py", line 88, in safe_listen self.listen(clear=first_run) File "/usr/lib/python2.7/site-packages/rhui/tools/shell.py", line 122, in listen Shell.listen(self) File "/usr/lib/python2.7/site-packages/rhui/common/shell.py", line 186, in listen item.func(*args, **item.kwargs) File "/usr/lib/python2.7/site-packages/rhui/tools/screens/repo.py", line 416, in create_custom checksum_type = checksum_types[checksum_type_index] TypeError: list indices must be integers, not str Expected results: No unknown error No traceback in logs Maybe a message like ~ "The operation was aborted"
Abort on custom repo creation works on RHEL6 and RHEL7 ISOes 20160823 e.g. on RHEL6 iso: rhui (repo) => c Unique ID for the custom repository (alphanumerics, _, and - only): repo1 Display name for the custom repository [repo1]: Path at which the repository will be served [repo1]: Algorithm to use when calculating the checksum values for repository metadata: * Select "sha256" for RHEL6: * Select "sha1" for either RHEL5 or RHEL6: 1 - sha256 2 - sha1 Enter value (1-2) or 'b' to abort: b ------------------------------------------------------------------------------ rhui (repo) =>
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-2017:0367