Hide Forgot
Description of problem: When a consumer is bound to a repo, we write client certificates to /etc/pki/pulp/client/. But this doesnt get cleaned up when a consumer is unregistered. [root@domU-12-31-39-07-5C-DC ~]# pulp-consumer consumer bind --repoid=myRepo Successfully subscribed consumer [myConsumer] to repo [myRepo] [root@domU-12-31-39-07-5C-DC ~]# pulp-consumer consumer unregister Successfully unregistered consumer [myConsumer] [root@domU-12-31-39-07-5C-DC ~]# ls -l /etc/pki/pulp/client/repo/ total 4 drwxr-xr-x. 2 root root 4096 Feb 13 14:47 myRepo [root@domU-12-31-39-07-5C-DC ~]# ls -l /etc/pki/pulp/client/repo/* total 8 -rw-r--r--. 1 root root 1440 Feb 13 14:47 ca.crt -rw-r--r--. 1 root root 3211 Feb 13 14:47 client.crt unregistering a consumer should clean up any certificates belonging to the consumer
these certs are now stored in /etc/pki/pulp/consumer/, and they seem to get cleaned up after unregister.
verified [root@pulp-v2-client ~]# pulp-consumer rpm bind --repo-id centos Bind tasks successfully created: Task Id: 79c7e4e8-4191-4dc0-bb3c-e02a91b07eec Task Id: 8cc35377-afa8-4100-be41-8e3a43d81934 [root@pulp-v2-client ~]# ls -l /etc/pki/pulp/ consumer/ nodes/ [root@pulp-v2-client ~]# ls -l /etc/pki/pulp/consumer/ total 4 -rw-r--r--. 1 root root 1729 Oct 4 11:05 consumer-cert.pem [root@pulp-v2-client ~]# [root@pulp-v2-client ~]# pulp-consumer unregister Consumer [pulp-client] successfully unregistered [root@pulp-v2-client ~]# ls -l /etc/pki/p product/ pulp/ [root@pulp-v2-client ~]# ls -l /etc/pki/pulp/ total 8 drwxr-xr-x. 2 root root 4096 Oct 4 14:34 consumer drwxr-xr-x. 2 root root 4096 May 21 11:57 nodes [root@pulp-v2-client ~]# ls -l /etc/pki/pulp/consumer/ total 0 [root@pulp-v2-client ~]#
Setting a target release so this ticket can get closed.
These were already verified in the corresponding releases that they were fixed in. Moving them to closed current release.