Bug 1302793 - unexpected error and a traceback on the abort action while repo creation
Summary: unexpected error and a traceback on the abort action while repo creation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Patrick Creech
QA Contact: Irina Gulina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-28 16:19 UTC by Irina Gulina
Modified: 2017-03-01 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-01 22:11:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0367 0 normal SHIPPED_LIVE Red Hat Update Infrastructure 3.0 Release 2017-03-02 03:05:22 UTC

Description Irina Gulina 2016-01-28 16:19:42 UTC
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"

Comment 4 Irina Gulina 2016-08-26 15:39:34 UTC
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) =>

Comment 5 errata-xmlrpc 2017-03-01 22:11:16 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-2017:0367


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