Project

Profile

Help

Issue #1540

Attribute error: 'DRPM' object has no attribute 'relativepath'

Added by jortel@redhat.com almost 6 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Exception raised during import. Need to use download_path instead.

Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:INFO: Downloading 1 DRPMs.
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448) 'DRPM' object has no attribute 'relativepath'
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448) Traceback (most recent call last):
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)   File "/home/jortel/git/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/sync.py", line 227, in run
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)     self.update_content(metadata_files, url)
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)   File "/home/jortel/git/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/sync.py", line 461, in update_content
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)     self.download_drpms(metadata_files, drpms_to_download, url)
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)   File "/home/jortel/git/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/sync.py", line 714, in download_drpms
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)     download_wrapper.download_packages()
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)   File "/home/jortel/git/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/repomd/packages.py", line 97, in download_packages
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)     self.downloader.download(self._request_generator())
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)   File "/usr/lib/python2.7/site-packages/nectar/downloaders/local.py", line 63, in download
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)     for report in itertools.imap(self.download_method, request_list):
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)   File "/home/jortel/git/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/repomd/packages.py", line 107, in _request_generator
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)     for model in self.package_model_iterator:
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)   File "/home/jortel/git/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/sync.py", line 585, in catalog_generator
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448)     entry.url = urljoin(base_url, unit.relativepath)
Jan 15 15:04:26 f23.redhat.com pulp[3040]: pulp_rpm.plugins.importers.yum.sync:ERROR: (3040-76448) AttributeError: 'DRPM' object has no attribute 'relativepath'

Associated revisions

Revision b0d5362b View on GitHub
Added by jortel@redhat.com almost 6 years ago

closes #1540 - Using download_path instead of relative_path.

Revision 7fb5d38d View on GitHub
Added by jortel@redhat.com almost 6 years ago

Merge pull request #772 from jortel/issue-1540

closes #1540 - Using download_path instead of relative_path.

History

#1 Updated by jortel@redhat.com almost 6 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High

#2 Updated by jortel@redhat.com almost 6 years ago

  • Status changed from ASSIGNED to POST

#3 Updated by jortel@redhat.com almost 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#4 Updated by rbarlow almost 6 years ago

  • Status changed from MODIFIED to 5

#5 Updated by pthomas@redhat.com over 5 years ago

  • Status changed from 5 to 6

verified

[root@mgmt5 ~]# pulp-admin rpm repo update --repo-id drpm --relative-url drpm
This command may be exited via ctrl+c without affecting the request.

[\]
Running...
Updating distributor: yum_distributor

Task Succeeded

[\]
Running...
Updating distributor: export_distributor

Task Succeeded

[root@mgmt5 ~]# pulp-admin rpm repo sync run --repo-id drpm
--------------------------------------------------------------------
Synchronizing Repository [drpm]
--------------------------------------------------------------------

This command may be exited via ctrl+c without affecting the request.

Downloading metadata...
[\]
... completed

Downloading repository content...
[-]
[==================================================] 100%
RPMs: 0/0 items
Delta RPMs: 0/0 items

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
... completed

Importing errata...
[-]
... completed

Importing package groups/categories...
[-]
... completed

Cleaning duplicate packages...
[-]
... completed

Task Succeeded

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[==================================================] 100%
49 of 49 items
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[-]
... completed

Publishing Comps file
[-]
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed

Task Succeeded

[root@mgmt5 ~]#

#6 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#8 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF