Bug 690903 - CDS status ends in error
Summary: CDS status ends in error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: nodes
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-03-25 18:36 UTC by Preethi Thomas
Modified: 2011-08-16 12:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:09:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-03-25 18:36:12 UTC
Description of problem:


I see this error when I run CDS sync and then CDS status multiple times



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

Name                	pulp-cds.usersys.redhat.com
Hostname            	pulp-cds1                
Description         	pulp-cds1                
Repos               	f14                      
Last Sync           	2011-03-25 18:34:47      

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

State               	error                    
Start Time          	2011-03-25 18:41:11      
Finish Time         	2011-03-25 18:41:11      
Exception           	NameError("global name 'CdsAuthsException' is not defined",)
Traceback
    Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 131, in run
    result = self.callable(*self.args, **self.kwargs)
        File "/usr/lib/python2.7/site-packages/pulp/server/api/cds.py", line 335, in cds_sync
    except CdsAuthsException:
      NameError: global name 'CdsAuthsException' is not defined


[root@preethi ~]#

Comment 1 Jeff Ortel 2011-03-25 22:34:47 UTC
Fixed: d852cfd6461366de33c08b32eba92cc5217aabba

Comment 2 Jeff Ortel 2011-03-29 17:32:39 UTC
Build: 0.158

Comment 3 Preethi Thomas 2011-03-30 17:30:52 UTC
fails_qa
[root@preethi ~]# rpm -q pulp
pulp-0.0.158-1.fc14.noarch


[root@preethi ~]# 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                     
Repos               	f14                      
Last Sync           	2011-03-30 17:37:06      

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

State               	error                    
Start Time          	2011-03-30 17:35:36      
Finish Time         	2011-03-30 17:37:06      
Exception           	PulpException('Timeout occurred during sync; check the server log for more information',)
Traceback
    Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 131, in run
    result = self.callable(*self.args, **self.kwargs)
        File "/usr/lib/python2.7/site-packages/pulp/server/api/cds.py", line 324, in cds_sync
    self.dispatcher.sync(cds, repos)
        File "/usr/lib/python2.7/site-packages/pulp/server/cds/dispatcher.py", line 157, in sync
    self._cds_stub(cds).sync(repo_base_url, repos)
        File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 70, in __call__
    return self.stub._send(request, opts)
        File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 114, in _send
    any=opts.any)
        File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 128, in send
    return self.__getreply(sn)
        File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 154, in __getreply
    raise RequestTimeout(sn)
      PulpException: 'Timeout occurred during sync; check the server log for more information'

Comment 4 Jeff Ortel 2011-04-05 14:29:17 UTC
build: 0.160

Comment 5 Preethi Thomas 2011-04-08 14:29:40 UTC
This still fails.

[root@preethi ~]# rpm -q pulp
pulp-0.0.160-1.fc14.noarch

I think the key here is having a big repo. I am syncing f14 repo. Sync worked without any errors for smaller repos


[root@preethi ~]# 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                     
Repos               	f14, f14-original        
Last Sync           	2011-04-08 14:33:08      

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

State               	error                    
Start Time          	2011-04-08 14:31:38      
Finish Time         	2011-04-08 14:33:08      
Exception           	PulpException('Timeout occurred during sync; check the server log for more information',)
Traceback
    Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 131, in run
    result = self.callable(*self.args, **self.kwargs)
        File "/usr/lib/python2.7/site-packages/pulp/server/api/cds.py", line 348, in cds_sync
    self.dispatcher.sync(cds, repos)
        File "/usr/lib/python2.7/site-packages/pulp/server/cds/dispatcher.py", line 157, in sync
    self._cds_stub(cds).sync(repo_base_url, repos)
        File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 70, in __call__
    return self.stub._send(request, opts)
        File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 114, in _send
    any=opts.any)
        File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 128, in send
    return self.__getreply(sn)
        File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 154, in __getreply
    raise RequestTimeout(sn)
      PulpException: 'Timeout occurred during sync; check the server log for more information'


You have new mail in /var/spool/mail/root

Comment 6 Jeff Ortel 2011-04-08 14:59:49 UTC
In gofer, the default timeout for synchronous RMI is (90/90).  This means 90 seconds for the request to start processing and 90 seconds to complete.  The fix here is to increase the time to something like (10, 3600).  So, the sync has an hour to finish.  What's the longest time reasonable to sync a repo?

Comment 7 Sayli Karmarkar 2011-07-15 21:54:49 UTC
This should be fixed. Please re-verify.

Comment 8 Preethi Thomas 2011-07-27 17:18:50 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.213-1.fc14.noarch
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 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               	f14                      
Last Sync           	Never                    
Status:
   Responding       	Yes                      
   Last Heartbeat   	2011-07-27 17:29:23.125667+00:00

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

State               	Running                  
Start Time          	2011-07-27 13:27:26-04:00
Finish Time         	In Progress

Comment 9 Preethi Thomas 2011-08-16 12:09:59 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 10 Preethi Thomas 2011-08-16 12:22:13 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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