Bug 1034366 - Failure exporting rpm repo to iso
Summary: Failure exporting rpm repo to iso
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: rpm-support
Version: 2.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 2.3.0
Assignee: Barnaby Court
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 16:58 UTC by Barnaby Court
Modified: 2013-12-09 14:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-09 14:30:23 UTC


Attachments (Terms of Use)

Description Barnaby Court 2013-11-25 16:58:20 UTC
Description of problem:

The following exception is thrown when exporting an rpm repository that does not have a checksum.  An error is printed to the pulp log an the export fails.  
 
Version-Release number of selected component (if applicable): 2.3.1


How reproducible:  Always


Steps to Reproduce:
1. Create an rpm repo without a checksum type
2. sync the repo 
3. export the repo to an ISO

Actual results:
  File "/home/bcourt/PycharmProjects/pulp_rpm/pulp_rpm/src/pulp_rpm/yum_plugin/metadata.py", line 167, in get_repo_checksum_type
    {'checksum_type': checksum_type})
  File "/home/bcourt/PycharmProjects/pulp/server/pulp/server/managers/repo/distributor.py", line 320, in update_distributor_config
    raise PulpDataException(message)

Expected results:


Additional info:

Comment 1 Barnaby Court 2013-11-25 17:16:09 UTC
PR: https://github.com/pulp/pulp_rpm/pull/397

Comment 2 Preethi Thomas 2013-11-26 16:15:28 UTC
[root@pulp-v2-server ~]# rpm -qa |grep pulp-server
pulp-server-2.3.1-0.3.beta.el6.noarch

[root@pulp-v2-server ~]# pulp-admin rpm repo export run --repo-id puppet
+----------------------------------------------------------------------+
                     Publishing Repository [puppet]
+----------------------------------------------------------------------+

This command may be exited by pressing ctrl+c without affecting the actual
operation on the server.

Exporting packages...
[==================================================] 100%
Rpms: 305/305 items
... completed

Exporting errata...
[==================================================] 100%
Errata: 0/0 items
... completed

Exporting distributions...
[==================================================] 100%
Distributions: 0/0 items
... completed

Generating metadata...
[/]
... completed

[==================================================] 100%
Iso Images: 1/1 items
... completed

Publishing over HTTPS...
[-]
... completed



[root@pulp-v2-server ~]# pulp-admin rpm repo export run --repo-id SAM
+----------------------------------------------------------------------+
                      Publishing Repository [SAM]
+----------------------------------------------------------------------+

This command may be exited by pressing ctrl+c without affecting the actual
operation on the server.

Exporting packages...
[==================================================] 100%
Rpms: 546/546 items
... completed

Exporting errata...
[==================================================] 100%
Errata: 16/16 items
... completed

Exporting distributions...
[==================================================] 100%
Distributions: 0/0 items
... completed

Generating metadata...
[/]
... completed

[==================================================] 100%
Iso Images: 1/1 items
... completed

Publishing over HTTPS...
[-]
... completed

[root@pulp-v2-server ~]#

Comment 3 Preethi Thomas 2013-12-09 14:30:23 UTC
Pulp 2.3 released.


Note You need to log in before you can comment on or make changes to this bug.