Project

Profile

Help

Issue #1792

recursive and depsolving unit copy results in PulpExecutionException

Added by jsherril@redhat.com over 4 years ago. Updated over 1 year ago.

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

Description

Doing a unit copy of an errata with recursive and dep solving set to true results in a traceback:

    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
        R = retval = fun(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__
        return super(Task, self).__call__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__
        return super(PulpTask, self).__call__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
        return self.run(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/unit_association.py", line 273, in associate_from_repo
        units=transfer_units)
      File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/importer.py", line 57, in import_units
        return associate.associate(source_repo, dest_repo, import_conduit, config, units)
      File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/associate.py", line 65, in associate
        group_ids, rpm_names, rpm_search_dicts = identify_children_to_copy(associated_units)
      File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/associate.py", line 302, in identify_children_to_copy
        rpm_search_dicts.extend(unit.rpm_search_dicts)
      File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py", line 475, in rpm_search_dicts
        checksumtype=checksumtype)
      File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py", line 362, in __init__
        super(RpmBase, self).__init__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py", line 134, in __init__
        kwargs['checksumtype'] = verification.sanitize_checksum_type(kwargs['checksumtype'])
      File "/usr/lib/python2.7/site-packages/pulp/plugins/util/verification.py", line 67, in sanitize_checksum_type
        lowercase_checksum_type = checksum_type.lower()
    PulpExecutionException: Pulp exception occurred: PulpExecutionException
  spawned_tasks: []

pulp-server-2.8.0-1.el7.noarch pulp-rpm-plugins-2.8.0-1.el7.noarch

post https://robot.example.com/pulp/api/v2/repositories/Default_Organization-zooview-2_1-zoo-zoo/acti
ons/associate/

{
   "source_repo_id":"Default_Organization-zoo-zoo",
   "criteria":{
      "type_ids":[
         "erratum"
      ],
      "filters":{
         "association":{
            "unit_id":{
               "$in":[
                  "e44a8d84-92c4-49ce-9334-f3ddd806c66d"
               ]
            }
         }
      }
   },
   "override_config":{
      "recursive":true,
      "resolve_dependencies":true
   }
}

Associated revisions

Revision ae17afc8 View on GitHub
Added by mhrivnak over 4 years ago

Fixed bug in handling errata package lists that don't include a checksum.

https://pulp.plan.io/issues/1792

fixes #1792

History

#1 Updated by jsherril@redhat.com over 4 years ago

Actual error on the traceback:

AttributeError: 'NoneType' object has no attribute 'lower'

#2 Updated by jsherril@redhat.com over 4 years ago

Repo i used:

https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/

Errata was RHEA-2012:0055 (Sea Erratum)

#4 Updated by mhrivnak over 4 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High
  • Platform Release set to 2.8.2
  • Triaged changed from No to Yes

#5 Updated by mhrivnak over 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mhrivnak

#6 Updated by mhrivnak over 4 years ago

  • Status changed from ASSIGNED to POST

#7 Updated by mhrivnak over 4 years ago

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

#8 Updated by semyers over 4 years ago

  • Platform Release changed from 2.8.2 to 2.8.3

#10 Updated by pthomas@redhat.com over 4 years ago

verified

[root@qe-blade-03 ~]# rpm -qa pulp-server
pulp-server-2.8.3-0.1.beta.git.44.70215c3.el7.noarch
[root@qe-blade-03 ~]# 

[root@qe-blade-03 ~]# pulp-admin rpm repo copy errata -f zoo -t zoo-copy  --recursive 
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Copied:
 erratum:
  RHEA-2012:0001
  RHEA-2012:0002
  RHEA-2012:0003
  RHEA-2012:0004
 rpm:
  bear-4.1-1-noarch
  crow-0.8-1-noarch
  duck-0.6-1-noarch
  gorilla-0.62-1-noarch
  penguin-0.9.1-1-noarch
  shark-0.1-1-noarch
  stork-0.12-2-noarch
  walrus-0.71-1-noarch

#11 Updated by semyers over 4 years ago

  • Status changed from MODIFIED to 5

#12 Updated by pthomas@redhat.com over 4 years ago

  • Status changed from 5 to 6

#13 Updated by semyers over 4 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#15 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF