Bug 1004777 - consumer status reports that its registered to a new server if you change the server without unregistering from another
Summary: consumer status reports that its registered to a new server if you change the...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: consumers
Version: 2.2 Beta
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-05 13:06 UTC by Preethi Thomas
Modified: 2015-02-28 21:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 21:58:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 368 0 None None None Never

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


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