Bug 1332243 - An error dialogue with message "Consumer has been deleted" should pop up when you try to remove a subscription on a deleted consumer
Summary: An error dialogue with message "Consumer has been deleted" should pop up when...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.3
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: rc
: ---
Assignee: Chris Snyder
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-02 15:21 UTC by Shwetha Kallesh
Modified: 2016-06-15 14:21 UTC (History)
4 users (show)

Fixed In Version: 1.17.7-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-15 14:21:11 UTC
Target Upstream Version:


Attachments (Terms of Use)
Message box displayed (493.82 KB, image/png)
2016-06-15 00:08 UTC, Chris Snyder
no flags Details
Dialog with a message (442.42 KB, image/png)
2016-06-15 12:08 UTC, Shwetha Kallesh
no flags Details

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


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