Bug 710093

Summary: Cannot create a scheduled repo on QE Build 0.185
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: jortel, kbidarka, sghai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:10:12 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    

Description Jay Dobies 2011-06-02 12:46:25 UTC
QE is seeing the following traceback when creating a repo with a schedule:

[/etc/pki/content/rhui-1.2-5Server-x86_64/consumer-rhui-1.2-5Server-x86_64.key]
2011-06-02 17:50:20,547 [ERROR][Dummy-2] report_error() @ base.py:57 -
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/base.py",
line 53, in report_error
    return method(self, *args, **kwargs)
  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/base.py",
line 132, in _auth_decorator
    value = method(self, *args, **kwargs)
  File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/repositories.py",
line 217, in POST
    notes=repo_data.get('notes', None))
  File "/usr/lib/python2.6/site-packages/pulp/server/auditing.py", line 197, in
_audit
    result = method(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 214, in
create
    update_repo_schedule(r, sync_schedule)
  File "/usr/lib/python2.6/site-packages/pulp/server/api/scheduled_sync.py",
line 178, in update_repo_schedule
    _add_repo_scheduled_sync_task(repo)
  File "/usr/lib/python2.6/site-packages/pulp/server/api/scheduled_sync.py",
line 107, in _add_repo_scheduled_sync_task
    synchronizer = api.get_synchronizer(repo['source']['type'])
AttributeError: 'RepoApi' object has no attribute 'get_synchronizer'

Comment 2 Jeff Ortel 2011-06-02 14:25:03 UTC
build: 0.186

Comment 3 Sachin Ghai 2011-06-03 08:39:41 UTC
Verified in pulp build 0.186, I can create a repo  with sync schedule and repo sync is working fine.

Following output is when sync starts for existing (Red Hat Enterprise Linux Server 6 Optional Releases (RPMs)) repo. 

Here I created two new repos of RHUI 1.2 and sync is set as scheduled. 

-------------------------------------------------------------------------
-= Repository Synchronization Status =-

Last Refreshed: 13:59:52
(updated every 50 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Optional Releases (RPMs) (6Server-x86_64)
06-03-2011 13:49             06-03-2011 12:57             running    

Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64)
06-03-2011 14:30             06-01-2011 18:34             scheduled  

Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386)
06-03-2011 14:46             Never                        scheduled  

Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64)
06-03-2011 14:46             Never                        scheduled  


                                          Connected: dhcp193-79.pnq.redhat.com
------------------------------------------------------------------------------
^Crhui (sync) => dr



------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Repository Synchronization Status =-

Last Refreshed: 14:00:01
(updated every 50 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Optional Releases (RPMs) (6Server-x86_64)
06-03-2011 14:49             06-03-2011 13:59             finished   

Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64)
06-03-2011 14:30             06-01-2011 18:34             scheduled  

Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386)
06-03-2011 14:46             Never                        scheduled  

Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64)
06-03-2011 14:46             Never                        scheduled  


                                          Connected: dhcp193-79.pnq.redhat.com
------------------------------------------------------------------------------
^Crhui (sync) => 



I'll update the sync result shortly for newly created two repos ( RHUI 1.2)

Comment 4 Sachin Ghai 2011-06-03 09:21:23 UTC
------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-

For newly created repo, the sync is running fine and without any error/traceback. Here is the result from rhui-manager



-= Repository Synchronization Status =-

Last Refreshed: 14:47:11
(updated every 50 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Optional Releases (RPMs) (6Server-x86_64)
06-03-2011 14:49             06-03-2011 13:59             finished   

Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64)
06-03-2011 14:30             06-01-2011 18:34             running    

Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386)
06-03-2011 15:46             06-03-2011 14:47             finished   

Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64)
06-03-2011 15:46             06-03-2011 14:47             finished   


                                          Connected: dhcp193-79.pnq.redhat.com
------------------------------------------------------------------------------

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.