Bug 1004777

Summary: consumer status reports that its registered to a new server if you change the server without unregistering from another
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: consumersAssignee: pulp-bugs
Status: CLOSED UPSTREAM QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 2.2 BetaCC: cduryee, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-28 21:58:15 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:
Embargoed:

Description Preethi Thomas 2013-09-05 13:06:59 UTC
Description of problem:

If you register a consumer to a server and then change the server in consumer.conf and restart the agent, pulp-consumer status shows that it is registered to the new server when actually it is not.

Version-Release number of selected component (if applicable):
[root@rhel5-pulp ~]# rpm -q pulp-consumer-client
pulp-consumer-client-2.2.0-0.32.beta.el5
[root@rhel5-pulp ~]# 


How reproducible:


Steps to Reproduce:
1.Register a consumer to server A
2. Edit consumer.conf and change the server to Server B
3. Restart pulp-agent
4. Run pulp-consumer status 
5. See that the message says it is registered to Server B

But if you check on server B you can see that it is not.

Actual results:


Expected results:


Additional info:

Comment 1 Chris Duryee 2014-11-12 03:23:32 UTC
This is still the case as of pulp 2.4.3.

$ pulp-consumer  status
This consumer is registered to the server [pulp.example.com] with the ID [testconsumer].

<edit /etc/pulp/consumer/consumer.conf to point to new-hostname.example.com>
<restart goferd>

$ pulp-consumer  status
This consumer is registered to the server [new-hostname.example.com] with the ID [testconsumer].

Maybe the hostname could be read from the issuer field in /etc/pki/pulp/consumer/consumer-cert.pem?

Comment 2 Brian Bouterse 2015-02-28 21:58:15 UTC
Moved to https://pulp.plan.io/issues/368