Issue #2093
closederrors importing some rpms after upgrading to pulp 2.9
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.
Updated by amacdona@redhat.com over 6 years ago
- Priority changed from Normal to Urgent
- Severity changed from 2. Medium to 3. High
- Triaged changed from No to Yes
Updated by semyers over 6 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.
Updated by bmbouter over 6 years ago
- Sprint/Milestone set to 24
Moving onto the sprint on the basis that it is urgent.
Updated by cristi.falcas@gmail.com over 6 years ago
No dirty quick fix for this? We have breakage on a lot of repos because of it.
Updated by fdobrovo over 6 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to fdobrovo
Updated by fdobrovo over 6 years ago
Added by ttereshc over 6 years ago
Updated by ttereshc over 6 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp_rpm:e48913457c46476e858bf40580a57dbc66f40c90.
Updated by pthomas@redhat.com over 6 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 ~]#
Updated by semyers over 6 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Updated by bmbouter almost 3 years ago
- Tags deleted (
Known Issue for Release Notes)
Fixes unicode encoding issue for non-ASCII characters in the metadata
closes #2093 https://pulp.plan.io/issues/2093