Bug 1045302

Summary: Two error message shows when press "Attach" button in rhsm gui when the system can not connect to the candlepin server
Product: Red Hat Enterprise Linux 7 Reporter: xingge <gxing>
Component: subscription-managerAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED WONTFIX QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: dgoodwin, ldai, liliu, qianzhan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-17 20:22:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 863175    
Attachments:
Description Flags
the two error message window. none

Description xingge 2013-12-20 06:04:22 UTC
Description of problem:
Two error message shows when press "Attach" button in rhsm gui "All available Subscriptions" tab when the system can not connect to the candlepin server 

Version-Release number of selected component (if applicable):
subscription-manager-1.10.8-1.el7
subscription-manager-gui-1.10.8-1.el7
subscription-manager-firstboot-1.10.8-1.el7
python-rhsm-1.10.8-1.el7

How reproducible:
always

Steps to Reproduce:
1.register the system
2.open subscription-manager-gui and go to "All available Subscriptions" tab, press "Update" button
3.let the candlepin server become unreachable, in my case I use cmd "ifconfig eth0 down"
4.select one of the listed subscription and press "Attach" button.

Actual results:
Two error message shows to tell you that "Network error". They located in the same place so after you press "OK" button on the front one, you will find there is still a error message. 

Expected results:
Only one error message window should show.

Additional info:

Comment 1 xingge 2013-12-20 06:05:10 UTC
Created attachment 839385 [details]
the two error message window.

Comment 2 Devan Goodwin 2014-01-17 20:22:29 UTC
I think I'm going to close this, I understand that this behaviour is weird but the double error occurs once because the bind fails, then we return to the all subscriptions screen, which automatically tries to refresh and fails causing another error popup.

However to even get to this point, the server must be up when we list subscriptions, but go down by the time we hit attach. Given the likely very small interval between these two events, the complexity in communicating between these two pieces of code that an error has occurred previously, and the fact that this is a very minor bug, I'm going to close this as a WONTFIX as I don't think it's worth the errort / complexity to solve.

If this proves to be a serious issue for anyone we can reopen.