Bug 1332243

Summary: An error dialogue with message "Consumer has been deleted" should pop up when you try to remove a subscription on a deleted consumer
Product: Red Hat Enterprise Linux 7 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: Chris Snyder <csnyder>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: high    
Version: 7.3CC: csnyder, redakkan, skallesh, vrjain
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.17.7-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-15 14:21:11 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:
Attachments:
Description Flags
Message box displayed
none
Dialog with a message none

Description Shwetha Kallesh 2016-05-02 15:21:25 UTC
Description of problem:
An error dialogue with message "Consumer has been deleted" should pop up when you try to remove a subscription on a deleted consumer

Version-Release number of selected component (if applicable):
[root@dhcp35-31 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.15-1
subscription management rules: 5.15.1
subscription-manager: 1.17.5-1.el7
python-rhsm: 1.17.2-1.el7
[root@dhcp35-31 ~]# 

How reproducible:


Steps to Reproduce:
1.Register the system and attach the subscriptions
2.Delete the consumer using the api or thro portal
3.launch gui ------> My subscriptions tab , try to remove the subscriptions

Actual results:
No error message is popped to user

Expected results:
error message is popped to user

Additional info:

[root@dhcp35-31 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   CloudForms Employee Subscription
Provides:            Oracle Java (for RHEL Server)
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat CloudForms Beta
                     Red Hat Enterprise Linux Server
                     Red Hat CloudForms
                     Red Hat Beta
                     Red Hat Software Collections (for RHEL Server)
SKU:                 SER0412
Contract:            10041814
Account:             477931
Serial:              5347864009224470450
Pool ID:             8a85f9843affb61f013b1fae79e26a75
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       Self-Support
Service Type:        L1-L3
Status Details:      Subscription management service doesn't support Status Details.
Subscription Type:   
Starts:              11/20/2012
Ends:                01/01/2022
System Type:         Physical

[root@dhcp35-31 ~]# subscription-manager remove --all
Unit 44ceec40-a693-4073-8af3-77e9bdeb7bdc has been deleted

[root@dhcp35-31 ~]# subscription-manager remove --serial 5347864009224470450
Unit 44ceec40-a693-4073-8af3-77e9bdeb7bdc has been deleted

Comment 4 Chris Snyder 2016-06-15 00:08:20 UTC
Created attachment 1168016 [details]
Message box displayed

Comment 5 Chris Snyder 2016-06-15 00:09:45 UTC
A message box is displayed (see new attachment). Is this regression to display a certain icon along with the message?

Comment 6 Shwetha Kallesh 2016-06-15 12:08:47 UTC
Created attachment 1168339 [details]
Dialog with a message

Works fine with following version

[root@shwetha-workstation product]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.0.13-1
subscription management rules: 5.20
subscription-manager: 1.17.7-1.el7
python-rhsm: 1.17.2-1.el7