Bug 976333
Summary: | Relative path for repos which I don't specify the relative path is different from that of in 2.1 | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
Component: | user-experience | Assignee: | Jay Dobies <jason.dobies> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 2.2 Beta | CC: | jortel |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 2.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-10 15:43:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Preethi Thomas
2013-06-20 12:01:57 UTC
The issue is that the client-side that generates the relative_url (if it's not specified) uses the feed value as the seed data. The name of that option changed for nectar (feed_url became just feed) and that code isn't entering the same branch it used to. /home/jdob/code/pulp/pulp_rpm/pulp_rpm/src/pulp_rpm/extension/admin/repo_create_update.py Line 164: if 'feed_url' in importer_config: if importer_config['feed_url'] is None: self.prompt.render_failure_message(_('Given repository feed URL is invalid.')) return url_parse = urlparse(encode_unicode(importer_config['feed_url'])) if url_parse[2] in ('', '/'): relative_path = '/' + repo_id else: relative_path = url_parse[2] yum_distributor_config['relative_url'] = relative_path else: yum_distributor_config['relative_url'] = repo_id build: 2.2.0-0.5.beta verified [root@ibm-x3550m3-13 ~]# rpm -q pulp-server pulp-server-2.2.0-0.5.beta.fc18.noarch [root@ibm-x3550m3-13 ~]# [root@ibm-x3550m3-13 ~]# pulp-admin rpm repo sync run --repo-id rhel5-4 +----------------------------------------------------------------------+ Synchronizing Repository [rhel5-4] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [-] ... completed Downloading repository content... [==================================================] 100% RPMs: 1348/1348 items Delta RPMs: 0/0 items ... completed Downloading distribution files... [==================================================] 100% Distributions: 0/0 items ... completed Importing errata... [-] ... completed Importing package groups/categories... [\] ... completed Publishing packages... [==================================================] 100% Packages: 11703/11703 items ... completed Publishing distributions... [==================================================] 100% Distributions: 0/0 items ... completed Generating metadata [\] ... completed Publishing repository over HTTPS [-] ... completed [root@ibm-x3550m3-13 ~]# /var/lib/pulp/published/https/repos/ content/ repos/ zoo/ [root@ibm-x3550m3-13 ~]# /var/lib/pulp/published/https/repos/ content/ repos/ zoo/ [root@ibm-x3550m3-13 ~]# ls -l /var/lib/pulp/published/https/repos/content/dist/rhel/rhui/server/5/5.9/i386/os/repodata/ total 98836 -rw-r--r--. 1 apache apache 2155 Jun 21 16:32 3e139224c9eae2bbde13f137e8057de6786a47e78791af2310fc32d2f09815b1-productid.xml -rw-r--r--. 1 apache apache 27925516 Jun 21 16:30 42023eca336324bf77e2250c98266ff1c00edf5287b341693bde7758345b8c0e-filelists.xml.gz -rw-r--r--. 1 apache apache 1849481 Jun 21 16:30 505a72982624ea34293d6131aec154f55e96bd0a404d21d99499520738241e1c-primary.xml.gz -rw-r--r--. 1 apache apache 3623618 Jun 21 16:30 59319e84777da8dfc5f635728501732376b9877a804552244c4c73ed42197e18-other.sqlite.bz2 -rw-r--r--. 1 apache apache 3084500 Jun 21 16:30 7a7612d68bb07f8011577285cbf4a53400ee7168d2587e9d146909fac7a03a4d-other.xml.gz -rw-r--r--. 1 apache apache 114879 Jun 21 16:32 92aeb292a986910eef17d51112e1c77272840a5e98a18fca13b74cdd6debcfaa-group.xml -rw-r--r--. 1 apache apache 2137403 Jun 21 16:32 afcd279d2d096caf05e6204ab7989190818b184677ea22e73cddb8ad1704f30a-primary.sqlite.bz2 -rw-r--r--. 1 apache apache 21121644 Jun 21 16:32 d9455acb5f75742891e331e83374e800636b6eec285e0102fad02a8129c07dd9-filelists.sqlite.bz2 -rw-r--r--. 1 apache apache 8457561 Jun 21 16:32 eb4ec715ee75458fa1c8922c87b5133e88beeed55bf285a1b159310d940e1982-updateinfo.xml -rw-r--r--. 1 apache apache 4247 Jun 21 16:32 repomd.xml -rw-r--r--. 1 apache apache 27925404 Jun 21 16:30 temp_filelists.xml.gz -rw-r--r--. 1 apache apache 3084409 Jun 21 16:30 temp_other.xml.gz -rw-r--r--. 1 apache apache 1849360 Jun 21 16:30 temp_primary.xml.gz [root@ibm-x3550m3-13 ~]# |