Bug 619077
| Summary: | pulp repo update is not working | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Mike McCune <mmccune> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | mmccune, pkilambi |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 14:02:40 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: | 641987 | ||
|
Description
Preethi Thomas
2010-07-28 14:10:35 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 [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.
update is not implemented. Its a no-op currently. Either remove the option or add means to update a repo information. I'm fixing this. 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 ~]#
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
...
Fixed in 0.77.
[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 []
Closing with Community Release 15 pulp-0.0.223-4. |