Bug 1381256 - unexpected error and a traceback on the abort action while deleting CDS and HAProxy
Summary: unexpected error and a traceback on the abort action while deleting CDS and H...
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-10-03 13:49 UTC by Irina Gulina
Modified: 2017-03-01 22:13 UTC (History)
3 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:30 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-10-03 13:49:37 UTC
Description of problem:
If to abort deleting of CDS or HAProxy, an unexpected error and a traceback are shown.

Version-Release number of selected component (if applicable):
RHEL6 and RHEL7 ISO's 20160921

How reproducible:
always

Steps to Reproduce:
1. have registered CDS and/or HAProxy
2. press 'd' to unregister/delete any
3. press 'b' to abort action

Actual results:

************
For CDS:
************
rhui (cds) => d

Select the CDS to unregister:
  -  1 : 
  Hostname:             cds01.example.com
  SSH Username:         ec2-user
  SSH Private Key:      /root/.ssh/id_rsa_rhua

Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: ?

  <num> : toggles selection, value values between 1 and 1
  x-y  : toggle the selection of a range of items (example: "2-5" toggles items 2 through 5)
  a    : select all items
  n    : select no items
  c    : confirm the currently selected items
  b    : abort the item selection
  l    : clears the screen and redraws the menu

Select the CDS to unregister:
  -  1 : 
  Hostname:             cds01.example.com
  SSH Username:         ec2-user
  SSH Private Key:      /root/.ssh/id_rsa_rhua

Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: b


An unexpected error has occurred during the last operation.
More information can be found in /root/.rhui/rhui.log.

************
For HAProxy:
************

rhui (loadbalancers) => d

Select the HAProxy Load-balancer to unregister:
  -  1 : 
  Hostname:             hap01.example.com
  SSH Username:         ec2-user
  SSH Private Key:      /root/.ssh/id_rsa_rhua

Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: b


An unexpected error has occurred during the last operation.
More information can be found in /root/.rhui/rhui.log.

In both cases the error is the same: 

less /root/.rhui/rhui.log

2016-10-03 09:29:37,733 - 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/cds.py", line 47, in unregister
    InstanceScreen.unregister(self, cleanup_script, force=force)
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/instances.py", line 282, in unregister
    selections.sort()
AttributeError: 'str' object has no attribute 'sort'
2016-10-03 09:29:56,454 - <type 'exceptions.AttributeError'>
2016-10-03 09:29:56,455 - 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/loadbalancers.py", line 30, in unregister
    InstanceScreen.unregister(self, cleanup_script, force=force)
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/instances.py", line 282, in unregister
    selections.sort()
AttributeError: 'str' object has no attribute 'sort'

Comment 2 Irina Gulina 2016-11-23 12:05:04 UTC
works fine for cds and haproxy deletion on iso 20161122

>> rhui (cds) => d

Select the CDS to unregister:
  -  1 : 
  Hostname:             cds01.example.com
  SSH Username:         ec2-user
  SSH Private Key:      /root/.ssh/id_rsa_rhua

Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: b


------------------------------------------------------------------------------
rhui (cds) =>

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