Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 691732

Summary: Getting traceback while checking CDS sync status on RHEL6
Product: [Retired] Pulp Reporter: Sachin Ghai <sghai>
Component: z_otherAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: tsanders
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:09:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 647488, 688298    

Description Sachin Ghai 2011-03-29 10:48:56 UTC
Description of problem: After registering the CDS with pulp server and associating the repo, I ran 'cds sync' and everything went well. but when I executed 'cds status' immediately after the 'cds sync', got a traceback.

I updated the pulp server and pulp CDS to 158 build from 156 on RHEL6 x86_64. Update was successful.


Version-Release number of selected component (if applicable): version 158 on rhel6 x86_64 (pulp-0.0.158-1.el6.noarch )


How reproducible:
- Register CDS with Pulp server, associate a repo and sync it.
- Execute cds status immediately after CDS sync, the issue should be reproducible

Steps to Reproduce:
1. cds register
root@dhcp193-8 ~]# pulp-admin -u admin -p admin cds register --hostname dhcp193-96.pnq.redhat.com
Successfully registered CDS [dhcp193-96.pnq.redhat.com]

2. associate repo
 [root@dhcp193-8 ~]# pulp-admin -u admin -p admin cds associate_repo --hostname dhcp193-96.pnq.redhat.com --repoid rhel6
Successfully associated CDS [dhcp193-96.pnq.redhat.com] with repo [rhel6]

3. cds sync 
[root@dhcp193-8 ~]# pulp-admin -u admin -p admin cds sync --hostname dhcp193-96.pnq.redhat.com 
Sync for CDS [dhcp193-96.pnq.redhat.com] started
Use "cds status" to check on the progress


4. cds status 
root@dhcp193-8 ~]# pulp-admin -u admin -p admin cds status --hostname dhcp193-96.pnq.redhat.com 

  
Actual results:
[root@dhcp193-8 ~]# pulp-admin -u admin -p admin cds status --hostname dhcp193-96.pnq.redhat.com 
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	dhcp193-96.pnq.redhat.com
Hostname            	dhcp193-96.pnq.redhat.com
Description         	None                     
Repos               	rhel6                    
Last Sync           	2011-03-29 08:18:13      

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

State               	error                    
Start Time          	2011-03-29 08:18:12      
Finish Time         	2011-03-29 08:18:13      
Exception           	PulpException('Error on the CDS during sync; check the server log for more information',)
Traceback
    Traceback (most recent call last):
        File "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py", line 131, in run
    result = self.callable(*self.args, **self.kwargs)
        File "/usr/lib/python2.6/site-packages/pulp/server/api/cds.py", line 324, in cds_sync
    self.dispatcher.sync(cds, repos)
        File "/usr/lib/python2.6/site-packages/pulp/server/cds/dispatcher.py", line 157, in sync
    self._cds_stub(cds).sync(repo_base_url, repos)
        File "/usr/lib/python2.6/site-packages/gofer/messaging/stub.py", line 70, in __call__
    return self.stub._send(request, opts)
        File "/usr/lib/python2.6/site-packages/gofer/messaging/stub.py", line 114, in _send
    any=opts.any)
        File "/usr/lib/python2.6/site-packages/gofer/messaging/policy.py", line 128, in send
    return self.__getreply(sn)
        File "/usr/lib/python2.6/site-packages/gofer/messaging/policy.py", line 152, in __getreply
    return self.__onreply(envelope)
        File "/usr/lib/python2.6/site-packages/gofer/messaging/policy.py", line 168, in __onreply
    raise RemoteException.instance(reply)
      PulpException: 'Error on the CDS during sync; check the server log for more information'



Expected results: Proper status should be displayed after executing 'cds status' command.


Additional info: 

[root@dhcp193-8 ~]# tail -f /var/log/pulp/pulp.log
=============================================================
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/gofer/messaging/consumer.py", line 67, in run
    self.consumer.received(msg)
  File "/usr/lib/python2.6/site-packages/gofer/messaging/consumer.py", line 182, in received
    self.dispatch(envelope)
  File "/usr/lib/python2.6/site-packages/pulp/server/agent.py", line 136, in dispatch
    log.error(envelope, exec_info=True)
  File "/usr/lib64/python2.6/logging/__init__.py", line 1082, in error
    self._log(ERROR, msg, args, **kwargs)
TypeError: _log() got an unexpected keyword argument 'exec_info'
2011-03-29 13:46:04,212 [ERROR][heartbeat] run() @ consumer.py:70 - failed:
Message(ttl=9.9990000000000006, durable=True, content='{\n  "origin": "28ce6d2b-dd73-473f-8025-a2e5b28b9f6e", \n  "version": "0.2", \n  "sn": "7eaed1d7-70ad-4194-9b48-b8213af599bb", \n  "agent": "rhel6", \n  "next": 10\n}')
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/gofer/messaging/consumer.py", line 67, in run
    self.consumer.received(msg)
  File "/usr/lib/python2.6/site-packages/gofer/messaging/consumer.py", line 182, in received
    self.dispatch(envelope)
  File "/usr/lib/python2.6/site-packages/pulp/server/agent.py", line 136, in dispatch
    log.error(envelope, exec_info=True)
  File "/usr/lib64/python2.6/logging/__init__.py", line 1082, in error
    self._log(ERROR, msg, args, **kwargs)
TypeError: _log() got an unexpected keyword argument 'exec_info'
2011-03-29 13:46:15,209 [ERROR][heartbeat] run() @ consumer.py:70 - failed:
Message(ttl=9.9990000000000006, durable=True, content='{\n  "origin": "28ce6d2b-dd73-473f-8025-a2e5b28b9f6e", \n  "version": "0.2", \n  "sn": "6de8e278-7619-4d8f-9c80-3bd2726e0868", \n  "agent": "rhel6", \n  "next": 10\n}')

Comment 1 Jay Dobies 2011-04-20 13:27:36 UTC
This bug was filed on March 29. Since then, there's been a ton of work done, including standardizing on builds. Can you please try this again on the latest RHUI RPMs and let me know if it's still an issue?

Comment 2 Sachin Ghai 2011-04-25 11:46:23 UTC
Verified on latest build; CDS sync status is working fine.
pulp build 0.170

thanks,sachin

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

pulp-0.0.223-4.

Comment 4 Preethi Thomas 2011-08-16 12:21:58 UTC
Closing with Community Release 15

pulp-0.0.223-4.