Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 860705 - Activation key delete displays error
Summary: Activation key delete displays error
Keywords:
Status: CLOSED DUPLICATE of bug 858802
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: Adam Price
QA Contact: Og Maciel
URL:
Whiteboard:
Depends On: 840792
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-26 14:12 UTC by Jordan OMara
Modified: 2014-11-09 22:56 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 840792
Environment:
Last Closed: 2012-10-11 20:17:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (63.66 KB, image/png)
2012-10-09 14:39 UTC, Og Maciel
no flags Details

Description Jordan OMara 2012-09-26 14:12:46 UTC
+++ This bug was initially created as a clone of Bug #840792 +++

Created attachment 598587 [details]
Activation key delete

Description of problem:
A system is registered using the activation key. deleting 
that activation key displays unknown error
The error should be user friendly stating the reason
for not being deleted
Version-Release number of selected component (if applicable):
[root@nec-em9 ~]# rpm -qa | grep katello
katello-certs-tools-1.1.6-1.fc16.noarch
katello-configure-0.2.30-1.fc16.noarch
katello-headpin-all-0.2.24-1.fc16.noarch
katello-selinux-0.2.6-1.fc16.noarch
katello-cli-common-0.2.43-1.fc16.noarch
katello-glue-candlepin-0.2.45-1.fc16.noarch
katello-cli-headpin-0.1.19-1.fc16.noarch
katello-headpin-0.2.24-1.fc16.noarch
katello-common-0.2.45-1.fc16.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch


How reproducible:
yum install -y katello-headpin-all
katello-configure --deployment=sam

Steps to Reproduce:
1.Login to SAM WEB UI
2.Navigate to Content Tab 
3.select Activation key
4.Create a activation key
5.register a system using that activation key 
6.Remove that key

  
Actual results:
Activation key cannot be deleted
The error is not user friendly

Expected results:
Appropriate error should be displayed
to specify the reason for not deleting the key

Additional info:
screen shot attached

Comment 1 Adam Price 2012-10-05 17:14:02 UTC
asking for more info in 840792 from tazim. cannot currently reproduce.

Comment 2 Adam Price 2012-10-08 14:16:08 UTC
in an email sent from Tazim:

Verified with the packages:
   
   [root@dell-pesc1425-01 ~]# rpm -qa | grep katello-cli
   katello-cli-common-1.1.9-1.git.6.8db32c1.el6.noarch
   katello-cli-1.1.9-1.git.6.8db32c1.el6.noarch
  
   The activation key can be deleted successfully with appropriate error.
  
   Please, update the bug status accordingly to ON_QA so that I can verify and close it.

Comment 3 Og Maciel 2012-10-09 14:39:27 UTC
Created attachment 624122 [details]
Screenshot

* Create an activation key with access to subscriptions
* Register and subscribe a client using activation key
* Delete the activation key through the web ui

Comment 4 Og Maciel 2012-10-09 14:43:41 UTC
To be clear, the issue is to wordsmith the following error message:

  Cannot delete record because of dependent system_activation_keys   (ActiveRecord::DeleteRestrictionError) Click here for more details.

to be a bit clearer as to why the key cannot be deleted

Comment 5 Og Maciel 2012-10-09 15:00:34 UTC
Fails QA:

* candlepin-0.7.8.1-1.el6cf.noarch
* candlepin-selinux-0.7.8.1-1.el6cf.noarch
* candlepin-tomcat6-0.7.8.1-1.el6cf.noarch
* katello-1.1.12-14.el6cf.noarch
* katello-all-1.1.12-14.el6cf.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.1.8-1.el6cf.noarch
* katello-cli-1.1.8-7.el6cf.noarch
* katello-cli-common-1.1.8-7.el6cf.noarch
* katello-common-1.1.12-14.el6cf.noarch
* katello-configure-1.1.9-7.el6cf.noarch
* katello-glue-candlepin-1.1.12-14.el6cf.noarch
* katello-glue-pulp-1.1.12-14.el6cf.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-1.1.1-1.el6cf.noarch
* pulp-1.1.12-1.el6cf.noarch
* pulp-common-1.1.12-1.el6cf.noarch
* pulp-selinux-server-1.1.12-1.el6cf.noarch

Comment 6 Og Maciel 2012-10-10 13:51:17 UTC
Seems that we need katello-cli-common-1.1.10-1h.el6_3.noarch to verify this.

Comment 7 Adam Price 2012-10-11 20:17:30 UTC

*** This bug has been marked as a duplicate of bug 858802 ***

Comment 8 Mike McCune 2013-08-16 18:23:38 UTC
getting rid of 6.0.0 version since that doesn't exist


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