Bug 619077 - pulp repo update is not working
Summary: pulp repo update is not working
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Mike McCune
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified
TreeView+ depends on / blocked
 
Reported: 2010-07-28 14:10 UTC by Preethi Thomas
Modified: 2011-08-16 14:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:02:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-07-28 14:10:35 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Preethi Thomas 2010-07-28 14:14:59 UTC
Sorry, I hit enter too soon :)

here is the description

pulp repo update doesn't seem to be working.




[root@preethi ~]# pulp repo update
[root@preethi ~]# pulp repo update --help
Usage: pulp repo [OPTIONS]

Options:
  -h, --help  show this help message and exit

Comment 2 Preethi Thomas 2010-08-04 15:20:09 UTC
[root@preethi pulp]# pulp -u admin -p admin repo update --help
Usage: pulp -u <username> -p <password> repo [OPTIONS]
Supported Actions:
        create         Create a repo            
        delete         Delete a repo            
        list           List available repos     
        schedules      List all repo schedules  
        sync           Sync data to this repo from the feed
        update         Update a repo            
        upload         Upload package(s) to this repo


Options:
  -h, --help            show this help message and exit
  -u USERNAME, --username=USERNAME
                        <REQUIRED> username for access to Pulp.  Default user
                        admin is included with base install.
  -p PASSWORD, --password=PASSWORD
                        <REQUIRED> password for access to Pulp.

Comment 3 Pradeep Kilambi 2010-08-17 14:35:54 UTC
update is not implemented. Its a no-op currently. Either remove the option or add means to update a repo  information.

Comment 4 Mike McCune 2010-09-21 22:43:33 UTC
I'm fixing this.

Comment 5 Preethi Thomas 2010-09-28 17:39:40 UTC
fails_qa

updating with --schedule option doesn't seem to be working. All the other options I tried are working.

[root@preethi ~]# sudo pulp-admin repo update --id=f13-updates --schedule="02 * * * *"
 Successfully updated Repo [ f13-updates ]
[root@preethi ~]# sudo pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label                   test01                   
Name                    test01                   
Feed                    {u'url': u'/tmp/', u'type': u'local', u'supported_types': [u'yum', u'local', u'rhn']}
Arch                    i386                     
Sync Schedule           None                     
Packages                2                        
Files                   0                        


Label                   f13-updates              
Name                    f13-updates              
Feed                    {u'url': u'http://download.fedora.redhat.com/pub/fedora/linux/updates/13/x86_64/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch                    x86_64                   
Sync Schedule           None                     
Packages                6784                     
Files                   0           

[root@preethi ~]# sudo pulp-admin repo update --id=test01 --arch=i386
 Successfully updated Repo [ test01 ]
[root@preethi ~]# sudo pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label                   test01                   
Name                    test01                   
Feed                    None                     
Arch                    i386                     
Sync Schedule           None                     
Packages                2                        
Files                   0                        


Label                   f13-updates              
Name                    f13-updates              
Feed                    {u'url': u'http://download.fedora.redhat.com/pub/fedora/linux/updates/13/x86_64/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch                    x86_64                   
Sync Schedule           None                     
Packages                6784                     
Files                   0                        

[root@preethi ~]# sudo pulp-admin repo update --id=test01 --feed=local:/tmp/
 Successfully updated Repo [ test01 ]
[root@preethi ~]# sudo pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label                   test01                   
Name                    test01                   
Feed                    {u'url': u'/tmp/', u'type': u'local', u'supported_types': [u'yum', u'local', u'rhn']}
Arch                    i386                     
Sync Schedule           None                     
Packages                2                        
Files                   0                        


Label                   f13-updates              
Name                    f13-updates              
Feed                    {u'url': u'http://download.fedora.redhat.com/pub/fedora/linux/updates/13/x86_64/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch                    x86_64                   
Sync Schedule           None                     
Packages                6784                     
Files                   0                        

[root@preethi ~]#

Comment 6 Mike McCune 2010-10-28 21:21:20 UTC
Sync schedule should work now.

[mmccune@gibson pulp{master}]$ sudo pulp-admin repo list
...
FeedType           	None                     
Arch               	noarch                   
Sync Schedule      	02 * * * *               
Packages           	0         
...

[mmccune@gibson pulp{master}]$ sudo pulp-admin repo update --id=test --schedule="03 * * * *"
Successfully updated repository [ test ]

[mmccune@gibson pulp{master}]$ sudo pulp-admin repo list
...
Arch               	noarch                   
Sync Schedule      	03 * * * *               
Packages           	0                  
...

Comment 7 Jay Dobies 2010-10-29 16:58:31 UTC
Fixed in 0.77.

Comment 8 Preethi Thomas 2010-11-04 17:03:43 UTC
[root@preethi ~]#  pulp-admin repo update --id=f13 --schedule="02 *
* * *"
Successfully updated repository [ f13 ]

[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label              	f13                      
Name               	f13                      
FeedURL            	http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	02 *
* * *               
Packages           	3102                     
Files              	8                        
Publish            	True                     
Clones             	[]                       




[root@preethi ~]# pulp-admin repo update --id=f13 --schedule="03 *
* * *"
Successfully updated repository [ f13 ]

[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label              	f13                      
Name               	f13                      
FeedURL            	http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	03 *
* * *               
Packages           	3102                     
Files              	8                        
Publish            	True                     
Clones             	[]

Comment 9 Preethi Thomas 2011-08-16 14:02:40 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.