Bug 755919 - Creating an activation key should not work for the locker
Summary: Creating an activation key should not work for the locker
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-11-22 12:17 UTC by Tomas Strachota
Modified: 2019-09-25 21:27 UTC (History)
1 user (show)

Fixed In Version: katello-0.1.131-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:08:18 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Tomas Strachota 2011-11-22 12:17:43 UTC
Description of problem:

It is possible to create an activation key for the locker environment. Such activation key is not valid as it should not be possible to register against locker environments.


Steps to Reproduce:
1. katello activation_key create --name ak --environment Locker
2.
3.
  
Actual results:
Creates an activation key without any error.

Expected results:
Should not create the activation key but print a message and return a non-zero return code.

Comment 1 Tomas Strachota 2011-12-08 09:37:25 UTC
commit 39d1defa09753c50a6f57be07797700396804d5c
Author: Tomas Strachota <tstrachota>
Date:   Thu Dec 8 10:12:28 2011 +0100

    755919 - validation in activation key model, can't be created for Locker env

Comment 2 Kedar Bidarkar 2011-12-15 10:58:55 UTC
[root@XXXX ~]# katello --username admin --password admin activation_key create --name kb --environment Locker --org ACME_Corporation
Validation failed: Cannot create activation keys in Locker environment 


rpm -qav | grep -i katello 
katello-trusted-ssl-cert-1.0-1.noarch
katello-cli-common-0.1.23-3.el6.noarch
katello-certs-tools-1.0.1-2.el6.noarch
katello-glue-foreman-0.1.135-2.el6.x86_64
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-0.1.23-3.el6.noarch
katello-all-0.1.135-2.el6.x86_64
katello-configure-0.1.31-2.el6.noarch
katello-common-0.1.135-2.el6.noarch
katello-glue-candlepin-0.1.135-2.el6.x86_64
katello-0.1.135-2.el6.x86_64
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-glue-pulp-0.1.135-2.el6.x86_64


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