Bug 1395725 - No error handler on Cancel RH repo import
Summary: No error handler on Cancel RH repo import
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: ---
: 3.0.0
Assignee: bizhang
QA Contact: Irina Gulina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-16 14:26 UTC by Irina Gulina
Modified: 2017-03-01 22:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-01 22:13:53 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-11-16 14:26:11 UTC
Description of problem:
When a user wants to cancel a RH repo import, an error is shown and a traceback is in logs

Version-Release number of selected component (if applicable):
iso 2016115

How reproducible:
always

Steps to Reproduce:
1. add a RH repo, It doesn't matter how 1- all in the cert, 2- by product or 3- by repo
2. press 'n' when prompted "Proceed? (y/n)"


Actual results:
    Red Hat Update Infrastructure 2.0 (SRPMS) (6Server-x86_64)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6Server-i386)
Proceed? (y/n) n


Something happened, check the log file for more information: ~/.rhui/rhui.log

2016-11-16 09:07:05,976 - Import canceled.
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 127, 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 175, in add
    mode_handlers[mode](products)
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/repo.py", line 340, in _add_by_product
    raise RhuiException(message='Import canceled.')
RhuiException: Import canceled.

Expected results:
No error

Comment 3 Irina Gulina 2016-11-23 09:43:32 UTC
ISO 20161122

'1 - all in the cert'

    Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)
  Red Hat Update Infrastructure 2.0 (SRPMS)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6Server-x86_64)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6Server-i386)
Proceed? (y/n) n


------------------------------------------------------------------------------
rhui (repo) => 

'2 - by product'

  Red Hat Storage Server 2.1 for Public Cloud (Debug RPMs) from RHUI
  Red Hat Storage Server 2.1 for Public Cloud (RPMs) from RHUI
  Red Hat Storage Server 2.1 for Public Cloud (Source RPMs) from RHUI
  Red Hat Update Infrastructure 2.0 (RPMs)
  Red Hat Update Infrastructure 2.0 (SRPMS)
Proceed? (y/n) n


------------------------------------------------------------------------------
rhui (repo) => 


'3 - by repository'

  RHEL RHUI Server 7 Rhscl 1 OS
    RHEL RHUI Server 7 Rhscl 1 OS (7Server-x86_64) (Yum)
  Red Hat Storage 2.0 (source) for RHUI
    Red Hat Storage 2.0 (source) for RHUI (x86_64) (Yum)
  Beta RHEL RHUI Server 7 Optional OS
    Beta RHEL RHUI Server 7 Optional OS (x86_64) (Yum)
Proceed? (y/n) n


------------------------------------------------------------------------------
rhui (repo) =>

Comment 4 errata-xmlrpc 2017-03-01 22:13:53 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.