Bug 702441

Summary: auth disable_global_repo_auth does not return or taking too long
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: nodesAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 24   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:14:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-05-05 16:52:02 UTC
Description of problem:

pulp-admin auth disable_global_repo_auth seem to be hanging.

Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.173-1.fc14.noarch


How reproducible:


Steps to Reproduce:
Not sure if registering a cds and associating/syncing repo have anything to do with the bug. but writing the steps anyways

1. Register a cds 
2. pulp-admin auth enable_global_repo_auth (use certs)
3. associate a repo to cds and sync it (sync fails for me)
3. Do pulp-admin auth disable_global_repo_auth

  
Actual results:
[root@preethi ~]# pulp-admin auth disable_global_repo_auth




from the pulp.log


2011-05-05 12:46:59,422 [INFO][Dummy-2] POST() @ services.py:353 - Disabling global repo authentication
2011-05-05 12:46:59,423 [INFO][Dummy-2] _write_cert_bundle() @ repo_cert_utils.py:347 - Removing repo cert file [/etc/pki/content/pulp-global-repo.ca]
2011-05-05 12:46:59,423 [INFO][Dummy-2] _write_cert_bundle() @ repo_cert_utils.py:347 - Removing repo cert file [/etc/pki/content/pulp-global-repo.cert]
2011-05-05 12:46:59,423 [INFO][Dummy-2] _write_cert_bundle() @ repo_cert_utils.py:347 - Removing repo cert file [/etc/pki/content/pulp-global-repo.key]


Expected results:


Additional info:

Comment 1 Jay Dobies 2011-06-06 18:33:47 UTC
This shouldn't be an issue anymore with the CDS sync refactor I did a few days ago. The global auth commands no longer trigger CDS calls, so it should be a very quick call regardless of CDS state.

With the next QE build, please see if this is still an issue.

Comment 2 Jeff Ortel 2011-06-08 23:58:26 UTC
build: 0.188

Comment 3 Preethi Thomas 2011-09-23 16:52:47 UTC
[root@preethi certs]# pulp-admin  cds sync --hostname=pulp-cds.usersys.redhat.com
Sync for CDS [pulp-cds.usersys.redhat.com] started
Use "cds status" to check on the progress

[root@preethi certs]# pulp-admin cds status --hostname=pulp-cds.usersys.redhat.com
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	pulp-cds.usersys.redhat.com
Hostname            	pulp-cds.usersys.redhat.com
Description         	None                     
Cluster             	None                     
Sync Schedule       	None                     
Repos               	None                     
Last Sync           	2011-09-23 13:01:12-04:00
Status:
   Responding       	Yes                      
   Last Heartbeat   	2011-09-23 17:01:38.542493+00:00

+------------------------------------------+
           Most Recent Sync Tasks
+------------------------------------------+

State               	Finished                 
Start Time          	2011-09-23 13:01:12-04:00
Finish Time         	2011-09-23 13:01:12-04:00

[root@preethi certs]# pulp-admin  auth disable_global_repo_auth --help
Usage: pulp-admin <options> auth disable_global_repo_auth <options>

Options:
  -h, --help  show this help message and exit
[root@preethi certs]# 
[root@preethi certs]# 
[root@preethi certs]# pulp-admin  auth disable_global_repo_auth 
Global repository authentication disabled

Comment 4 Preethi Thomas 2012-02-24 20:14:20 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:19:15 UTC
Pulp v1.0 is released.