Bug 577102 - Able to register one client multiple time to candlepin.
Summary: Able to register one client multiple time to candlepin.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Todd Sanders
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: ent2
TreeView+ depends on / blocked
 
Reported: 2010-03-26 06:14 UTC by spandey
Modified: 2019-09-24 14:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-24 14:17:31 UTC
Embargoed:


Attachments (Terms of Use)

Description spandey 2010-03-26 06:14:49 UTC
Description of problem:


Version-Release number of selected component (if applicable):

Candlepin used : prad.rdu.redhat.com
client with subscription manager version 21

How reproducible:
100%

Steps to Repro :

Login to client host with valid credentials.
Edit /etc/rhsm/rhsm.conf for prad.rdu.redhat.com

Execute Following command on client console 

subscription-manager-cli register --username=redhat –password=redhat

subscription-manager-cli register --username=sach –password=sach
subscription-manager-cli register --username=test –password=test
subscription-manager-cli register --username=test123 –password=test123
subscription-manager-cli register --username=admin –password=redhat

subscription-manager-cli register --username=sachin –password=sachin

Expected Result :

At second time registration message should  display for Already registered

Actual Result : 
At every registration step creates new entry in canplepin Host 
At every step certificate present in /etc/pki/consumer reloaded.

we can find multiple entry of client host at following URL

http://prad.rdu.redhat.com:8080/candlepin/consumers

Comment 1 Bryan Kearney 2010-03-26 14:15:09 UTC
Based on conversations, here are the plans of how we will address this.

<PLAN>
The goal should be to warn the customer of what is going on, but give them flexibility to override the warnings. To this end:

1) If an identity cert exists on the machine, then the cli will warn the user if they attempt to register again. This warning will be in form of a system out message telling them to pass in --force to actually do th  If the user passes in --force on the cli it will not warn.

2) Same model on the GUI. Warn i there is an indentity cert. Allow them to overide

3) Add a new feature to CP will support duplicate checking based on a configurable set of facts. Users can turn this on or not. That way, the clients just slap down whetever they get back. 

</PLAN>


This bug should be closed when (1) is in place.

Comment 3 wes hayutin 2010-05-12 19:50:51 UTC
k.. lets get this tested.. on_qa

Comment 4 spandey 2010-05-13 06:35:37 UTC
Working as expected 

so i am changing the status of ON_QA to verified

Comment 5 John Sefler 2011-05-04 14:40:35 UTC
Group move of VERIFIED Candlepin component bugs to RELEASE_PENDING


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