Project

Profile

Help

Issue #2093

errors importing some rpms after upgrading to pulp 2.9

Added by cristi.falcas@gmail.com over 5 years ago. Updated over 1 year ago.

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

Description

Hi,

After upgrading to pulp 2.9, we encounter errors uploading some rpms. For example protobuf-2.3.0-9.el6.x86_64.rpm from epel fails with this message:

Task Failed

The importer yum_importer indicated a failed response when uploading rpm unit to
repository external_rpms_el6.

Those are the logs from the server (a unicode ):

pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768) unexpected error occurred importing uploaded file: 'ascii' codec can't decode byte 0xc4 in position 116281: ordinal not in range(128)
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768) Traceback (most recent call last):
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/upload.py", line 113, in upload
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768)     handlers[type_id](repo, type_id, unit_key, metadata, file_path, conduit, config)
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/upload.py", line 410, in _handle_package
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768)     unit.modify_xml()
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/models.py", line 824, in modify_xml
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768)     faked_other = utils.fake_xml_element(self.repodata['other'])
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/utils.py", line 128, in fake_xml_element
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768)     repodata_snippet.encode(codec)
pulp_rpm.plugins.importers.yum.upload:ERROR: (20733-48768) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 116281: ordinal not in range(128)
pulp.server.managers.content.upload:ERROR: (20733-48768) Error from the importer while importing uploaded unit to repository [external_rpms_el6]
pulp.server.managers.content.upload:ERROR: (20733-48768) Traceback (most recent call last):
pulp.server.managers.content.upload:ERROR: (20733-48768)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/content/upload.py", line 223, in import_uploaded_unit
pulp.server.managers.content.upload:ERROR: (20733-48768)     unit_type=unit_type_id, summary=result['summary'], details=result['details']
pulp.server.managers.content.upload:ERROR: (20733-48768) PulpCodedException: The importer yum_importer indicated a failed response when uploading rpm unit to repository external_rpms_el6.
pulp.server.async.tasks:INFO: Task failed : [f8bc500a-6dae-40bf-b69c-7ed37f30a30d] : The importer yum_importer indicated a failed response when uploading rpm unit to repository external_rpms_el6.

Associated revisions

Revision e4891345 View on GitHub
Added by ttereshc over 5 years ago

Fixes unicode encoding issue for non-ASCII characters in the metadata

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

History

#1 Updated by amacdona@redhat.com over 5 years ago

  • Priority changed from Normal to Urgent
  • Severity changed from 2. Medium to 3. High
  • Triaged changed from No to Yes

#2 Updated by semyers over 5 years ago

  • Tags Known Issue for Release Notes added

This is considered a blocker for 2.10. It isn't blocking 2.9.1 (yet?), which goes GA next Tuesday. I think it should be considered for a 2.9.2 hotfix release.

#3 Updated by bmbouter over 5 years ago

+1 to 2.9.2 hotfix

#4 Updated by bmbouter over 5 years ago

  • Sprint/Milestone set to 24

Moving onto the sprint on the basis that it is urgent.

#5 Updated by cristi.falcas@gmail.com over 5 years ago

No dirty quick fix for this? We have breakage on a lot of repos because of it.

#6 Updated by fdobrovo over 5 years ago

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

#7 Updated by fdobrovo over 5 years ago

  • Status changed from ASSIGNED to POST

#8 Updated by bmbouter over 5 years ago

Can a link to the PR be added to this?

#10 Updated by ttereshc over 5 years ago

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

#11 Updated by ttereshc over 5 years ago

  • Platform Release set to 2.9.2

#12 Updated by semyers over 5 years ago

  • Project changed from Pulp to RPM Support

#13 Updated by semyers over 5 years ago

  • Status changed from MODIFIED to 5

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

  • Status changed from 5 to 6

verified
[root@ibm-x3550m3-13 ~]# rpm -qa pulp-server
pulp-server-2.9.2-0.2.beta.el7.noarch
[root@ibm-x3550m3-13 ~]#

[root@ibm-x3550m3-13 ~]#  wget ftp://fr2.rpmfind.net/linux/epel/6/x86_64/protobuf-2.3.0-9.el6.x86_64.rpm
--2016-08-09 17:20:42--  ftp://fr2.rpmfind.net/linux/epel/6/x86_64/protobuf-2.3.0-9.el6.x86_64.rpm
           => ‘protobuf-2.3.0-9.el6.x86_64.rpm’
Resolving fr2.rpmfind.net (fr2.rpmfind.net)... 195.220.108.108
Connecting to fr2.rpmfind.net (fr2.rpmfind.net)|195.220.108.108|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /linux/epel/6/x86_64 ... done.
==> SIZE protobuf-2.3.0-9.el6.x86_64.rpm ... 296132
==> PASV ... done.    ==> RETR protobuf-2.3.0-9.el6.x86_64.rpm ... done.
Length: 296132 (289K) (unauthoritative)

100%[===============================================================>] 296,132     1.75MB/s   in 0.2s   

2016-08-09 17:20:42 (1.75 MB/s) - ‘protobuf-2.3.0-9.el6.x86_64.rpm’ saved [296132]

[root@ibm-x3550m3-13 ~]# pulp-admin rpm repo uploads  rpm --repo-id myzoo -f protobuf-2.3.0-9.el6.x86_64.rpm  -v 
+----------------------------------------------------------------------+
                              Unit Upload
+----------------------------------------------------------------------+

Extracting necessary metadata for each request...
[==================================================] 100%
Analyzing: protobuf-2.3.0-9.el6.x86_64.rpm
... completed

Files to be uploaded:
  protobuf-2.3.0-9.el6.x86_64.rpm

Creating upload requests on the server...
[==================================================] 100%
Initializing: protobuf-2.3.0-9.el6.x86_64.rpm
... completed

Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.

Uploading: protobuf-2.3.0-9.el6.x86_64.rpm
[==================================================] 100%
296132/296132 bytes
... completed

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

[\]
Running...

Task Succeeded

Deleting the upload request...
... completed

[root@ibm-x3550m3-13 ~]# 

#15 Updated by semyers over 5 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#18 Updated by bmbouter almost 4 years ago

  • Sprint set to Sprint 6

#19 Updated by bmbouter almost 4 years ago

  • Sprint/Milestone deleted (24)

#20 Updated by bmbouter almost 3 years ago

  • Tags Pulp 2 added

#21 Updated by bmbouter over 1 year ago

  • Tags deleted (Known Issue for Release Notes)

Also available in: Atom PDF