Bug 662717 - Tasking randomly throws an error about progress_callback
Summary: Tasking randomly throws an error about progress_callback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
high
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close 673206
TreeView+ depends on / blocked
 
Reported: 2010-12-13 17:08 UTC by Jay Dobies
Modified: 2014-03-31 01:38 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:00:56 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Dobies 2010-12-13 17:08:59 UTC
Seen during testing of the CDS sync calls. For some reason, it clears up when I bounced httpd.



[root@guardian ~]# pulp-admin cds sync --hostname nightwing.batcave.org
Sync for CDS [nightwing.batcave.org] started
Use "cds status" to check on the progress

[root@guardian ~]# pulp-admin cds status --hostname nightwing.batcave.org
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	nightwing.batcave.org    
Hostname            	nightwing.batcave.org    
Description         	None                     
Repos               	pulp-testing             
Last Sync           	2010-12-13 11:08:23.564000

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

State               	error                    
Start Time          	2010-12-13 12:03:30.836000
Finish Time         	2010-12-13 12:03:30.839000
Exception           	TypeError("sync() got an unexpected keyword argument 'progress_callback'",)
Traceback
    Traceback (most recent call last):
        File "/home/jdob/code/pulp/src/pulp/server/tasking/task.py", line 129, in run
    result = self.callable(*self.args, **self.kwargs)
        File "/home/jdob/code/pulp/src/pulp/server/auditing.py", line 209, in _audit
    result = method(*args, **kwargs)
      TypeError: sync() got an unexpected keyword argument 'progress_callback'


<bounced httpd>


[root@guardian ~]# pulp-admin cds sync --hostname nightwing.batcave.org
Sync for CDS [nightwing.batcave.org] started
Use "cds status" to check on the progress

[root@guardian ~]# pulp-admin cds status --hostname nightwing.batcave.org
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	nightwing.batcave.org    
Hostname            	nightwing.batcave.org    
Description         	None                     
Repos               	pulp-testing             
Last Sync           	2010-12-13 11:08:23.564000

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

State               	running                  
Start Time          	2010-12-13 12:04:30.237000
Finish Time         	In Progress              

[root@guardian ~]# pulp-admin cds status --hostname nightwing.batcave.org
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	nightwing.batcave.org    
Hostname            	nightwing.batcave.org    
Description         	None                     
Repos               	pulp-testing             
Last Sync           	2010-12-13 12:04:33.381000

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

State               	finished                 
Start Time          	2010-12-13 12:04:30.237000
Finish Time         	2010-12-13 12:04:33.383000

[root@guardian ~]#

Comment 1 Jay Dobies 2010-12-13 19:43:46 UTC
I think I can consistently reproduce this by running a repo sync before a cds sync. Both use the async task system. The following output is immediately following a restart of httpd:



[root@guardian ~]# pulp-admin repo sync --id pulp-testing -FSync for repository pulp-testing started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (10 of 10 pkgs)
Sync: Finished

[root@guardian ~]# pulp-admin cds sync --hostname nightwing.batcave.org
Sync for CDS [nightwing.batcave.org] started
Use "cds status" to check on the progress

[root@guardian ~]# pulp-admin cds status --hostname nightwing.batcave.org
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	nightwing.batcave.org    
Hostname            	nightwing.batcave.org    
Description         	None                     
Repos               	pulp-testing             
Last Sync           	2010-12-13 14:38:40.088000

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

State               	error                    
Start Time          	2010-12-13 14:43:39.950000
Finish Time         	2010-12-13 14:43:39.957000
Exception           	TypeError("sync() got an unexpected keyword argument 'progress_callback'",)
Traceback
    Traceback (most recent call last):
        File "/home/jdob/code/pulp/src/pulp/server/tasking/task.py", line 129, in run
    result = self.callable(*self.args, **self.kwargs)
        File "/home/jdob/code/pulp/src/pulp/server/auditing.py", line 209, in _audit
    result = method(*args, **kwargs)
      TypeError: sync() got an unexpected keyword argument 'progress_callback'

Comment 2 Jason Connor 2011-01-26 23:59:50 UTC
I have not been able to reproduce this,
is anyone still seeing it?

Comment 3 Preethi Thomas 2011-05-31 19:27:23 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.181-1.fc14.noarch
[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                     
Group               	None                     
Sync Schedule       	None                     
Repos               	f15                      
Last Sync           	2011-05-31 15:36:58-04:00
Status:
   Responding       	Yes                      
   Last Heartbeat   	2011-05-31 19:39:12.879172+00:00

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

State               	finished                 
Start Time          	2011-05-31 15:22:43-04:00
Finish Time         	2011-05-31 15:24:42-04:00

[root@preethi ~]#

Comment 4 Preethi Thomas 2011-08-16 14:00:56 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.