Project

Profile

Help

Issue #2007

Errata install API should expect 'id' as part of unit key

Added by dkliban@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:
Platform Release:
2.8.5
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Pulp agent running on a consumer currently expects to receive 'errata_id' in the unit dictionary. Pulp API users submit an 'id' instead. As result, when integrating with Katello, the consumer fails to install errata with following error:

Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/pulp/agent/lib/dispatcher.py", line 76, in install
     report = handler.install(conduit, units, dict(options))
   File "/usr/lib/python2.6/site-packages/pulp_rpm/handlers/rpm.py", line 276, in install
     advisories = [unit_key['errata_id'] for unit_key in units]
 KeyError: 'errata_id'

Associated revisions

Revision e6e8f726 View on GitHub
Added by dkliban@redhat.com over 4 years ago

Updates erratum handler to expect 'id' key in the unit dict

https://pulp.plan.io/issues/2007 closes #2007

History

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

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

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

  • Triaged changed from No to Yes

#3 Updated by semyers over 4 years ago

  • Platform Release set to 2.8.5

#4 Updated by semyers over 4 years ago

  • Status changed from MODIFIED to 5

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

  • Status changed from 5 to 6

verified


root@ibm-x3650m4-01-vm-12 ~]# rpm -qa |grep pulp
python-pulp-python-common-1.1.2-0.2.beta.el6.noarch
python-pulp-client-lib-2.8.5-0.1.beta.el6.noarch
pulp-python-admin-extensions-1.1.2-0.2.beta.el6.noarch
pulp-consumer-client-2.8.5-0.1.beta.el6.noarch
pulp-rpm-yumplugins-2.8.5-0.1.beta.el6.noarch
python-kombu-3.0.33-5.pulp.el6.noarch
python-pulp-oid_validation-2.8.5-0.1.beta.el6.noarch
pulp-rpm-plugins-2.8.5-0.1.beta.el6.noarch
pulp-rpm-handlers-2.8.5-0.1.beta.el6.noarch
mod_wsgi-3.4-2.pulp.el6.x86_64
python-pulp-common-2.8.5-0.1.beta.el6.noarch
pulp-puppet-consumer-extensions-2.8.5-0.1.beta.el6.noarch
python-isodate-0.5.0-4.pulp.el6.noarch
python-pulp-repoauth-2.8.5-0.1.beta.el6.noarch
python-pulp-puppet-common-2.8.5-0.1.beta.el6.noarch
pulp-selinux-2.8.5-0.1.beta.el6.noarch
python-pulp-streamer-2.8.5-0.1.beta.el6.noarch
pulp-puppet-plugins-2.8.5-0.1.beta.el6.noarch
pulp-rpm-admin-extensions-2.8.5-0.1.beta.el6.noarch
pulp-puppet-handlers-2.8.5-0.1.beta.el6.noarch
pulp-rpm-consumer-extensions-2.8.5-0.1.beta.el6.noarch
python-pulp-docker-common-2.0.2-0.3.beta.el6.noarch
python-pulp-bindings-2.8.5-0.1.beta.el6.noarch
pulp-server-2.8.5-0.1.beta.el6.noarch
pulp-docker-plugins-2.0.2-0.3.beta.el6.noarch
pulp-docker-admin-extensions-2.0.2-0.3.beta.el6.noarch
pulp-python-plugins-1.1.2-0.2.beta.el6.noarch
pulp-agent-2.8.5-0.1.beta.el6.noarch
python-pulp-rpm-common-2.8.5-0.1.beta.el6.noarch
pulp-admin-client-2.8.5-0.1.beta.el6.noarch
pulp-puppet-admin-extensions-2.8.5-0.1.beta.el6.noarch
python-pulp-agent-lib-2.8.5-0.1.beta.el6.noarch
[root@ibm-x3650m4-01-vm-12 ~]# pulp-admin rpm consumer errata  install run  -e grinder_test_4 --consumer-id goldfish
Install task created with id [ e086d7cb-a723-4304-a9b4-16bd2d006b23 ]

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

Refresh Repository Metadata             [ OK ]
Downloading Packages                    [ OK ]
Check Package Signatures                [ OK ]
Running Test Transaction                [ OK ]
Running Transaction                     [ OK ]

Install Succeeded

#6 Updated by semyers over 4 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#8 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF