Bug 751439 - pulp admin unregister does not remove cert
Summary: pulp admin unregister does not remove cert
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: James Slagle
QA Contact: dgao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-04 17:58 UTC by dgao
Modified: 2013-09-09 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-04 18:47:44 UTC


Attachments (Terms of Use)

Description dgao 2011-11-04 17:58:32 UTC
[root@qeblade20 tmp]# pulp-consumer -u admin -p admin consumer register --id=test_consumer
warning: this client is not known to the pulp server; run 'pulp-consumer consumer register' to register it
Successfully registered consumer [ test_consumer ]

[root@qeblade20 tmp]# ls  /etc/pki/consumer/pulp/
cert.pem
[root@qeblade20 tmp]# pulp-admin -u admin -p admin consumer unregister --id=test_consumer
Successfully unregistered consumer [test_consumer]

[root@qeblade20 tmp]# ls  /etc/pki/consumer/pulp/
cert.pem

[root@qeblade20 pulp]# pulp-admin -u admin -p admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+
[root@qeblade20 pulp]# pulp-consumer -u admin -p admin consumer register --id=test_consumer
error:  A consumer [test_consumer] already registered on this system; Please unregister existing consumer before registering.

Comment 1 dgao 2011-11-04 18:14:57 UTC
pulp-consumer unregister removes the cert just fine. Looks like we got a divergence between pulp-admin consumer and pulp-consumer. 

[root@qeblade20 pulp]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.1 (Santiago)
[root@qeblade20 pulp]# ls -larth /etc/pki/consumer/pulp/
total 8.0K
drwxr-xr-x. 3 root root 4.0K Nov  4 13:52 ..
drwxr-xr-x. 2 root root 4.0K Nov  4 14:09 .
[root@qeblade20 pulp]# pulp-consumer -u admin -p admin consumer register --id=test_consumer
warning: this client is not known to the pulp server; run 'pulp-consumer consumer register' to register it
Successfully registered consumer [ test_consumer ]

[root@qeblade20 pulp]# ls -larth /etc/pki/consumer/pulp/
total 12K
drwxr-xr-x. 3 root root 4.0K Nov  4 13:52 ..
-rw-r--r--. 1 root root 1.7K Nov  4 14:13 cert.pem
drwxr-xr-x. 2 root root 4.0K Nov  4 14:13 .
[root@qeblade20 pulp]# pulp-consumer -u admin -p admin consumer unregister 
Successfully unregistered consumer [test_consumer]

[root@qeblade20 pulp]# ls -larth /etc/pki/consumer/pulp/
total 8.0K
drwxr-xr-x. 3 root root 4.0K Nov  4 13:52 ..
drwxr-xr-x. 2 root root 4.0K Nov  4 14:14 .

Comment 2 dgao 2011-11-04 18:47:44 UTC
Restarting gofer resolve this issue. Looks like an old instance of gofer is still running in the background and causing issue. Closing...


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