Project

Profile

Help

Issue #767

closed

When applying errata Pulp throws UnicodeEncodeError on Czech locale

Added by lzap@redhat.com about 9 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.4.3
Platform Release:
2.6.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

When applying errata to Rhel 6 client the following error is produced

Mar 12 10:06:42 capb01 goferd: [INFO][worker-0] gofer.rmi.dispatcher:612 - call: Content.install() sn=76320c0f-115a-436f-9e0e-02f5af879f62 info={'task_id': '065e9ec5-e5f3-48a6-ae96-5b654e173b48', 'consumer_id': 'e7dedd9e-edec-4b55-9ae1-9bf76c9ab044'}
Mar 12 10:06:43 capb01 goferd: [ERROR][worker-0] pulp.agent.lib.dispatcher:80 - handler failed
Mar 12 10:06:43 capb01 goferd: [ERROR][worker-0] pulp.agent.lib.dispatcher:80 - 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 100, in install details = pkg.install(names) File "/usr/lib/python2.6/site-packages/pulp_rpm/handlers/rpmtools.py", line 135, in install caught.value = '%s: %s' % (pattern, str(caught)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
Mar 12 10:06:43 capb01 goferd: [INFO][worker-0] gofer.agent.rmi:149 - sn=76320c0f-115a-436f-9e0e-02f5af879f62 processed in: 1.633 (seconds

pulp-server-2.4.4-1.el6sat.noarch from Satellite 6

https://bugzilla.redhat.com/show_bug.cgi?id=1202193

The server has Czech LOCALE set.

QA: When testing this, please do additional testing of other workflows on a system configured with Czech language please. Here is an example of some input that can cause issues: "Příliš žluťoučký kůň úpěl ďábelské ódy". Thanks.

ps - I dont see 2.4.4 in Version field, setting 2.4.3

Actions #1

Updated by dkliban@redhat.com about 9 years ago

  • Severity set to High
  • Triaged changed from No to Yes
  • Platform Release changed from 2.4.4 to 2.6.1
Actions #2

Updated by lzap@redhat.com about 9 years ago

Just to let you know, this is Satellite 6.0.8, we need this patch in 2.4.4 pulp and 2.6 (Satellite 6.1) as well.

Actions #3

Updated by jortel@redhat.com about 9 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com
Actions #4

Updated by jortel@redhat.com about 9 years ago

  • Status changed from ASSIGNED to POST
Actions #5

Updated by jortel@redhat.com about 9 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by bmbouter about 9 years ago

  • Severity changed from High to 3. High
Actions #7

Updated by bcourt about 9 years ago

  • Status changed from MODIFIED to 5
Actions #8

Updated by bmbouter about 9 years ago

  • Version changed from 2.4.3 to 2.4.4

I added a 2.4.4 to the version field, and I'm adjusting this to match.

Actions #9

Updated by mkovacik@redhat.com about 9 years ago

  • Version changed from 2.4.4 to 2.4.3

jortel, lzap, did I grok it correctly to reproduce this:

- install pulp server preferably on RHEL6; server locale set to LANG=cs_CZ.UTF8
- deploy and register a RHEL6 consumer to the pulp server; consumer locale setting doesn't matter
- sync a repo with any erratum within and bind the consumer to the repo
- issue pulp-admin call to update the consumer applying the erratum

Thanks,
milan

Actions #10

Updated by mkovacik@redhat.com almost 9 years ago

Reproduced

steps:
- deploy pulp (OS version doesn't matter)
- no need for any locales setup, default LC_ALL=C works
- sync and publish the zoo repo
- associate a consumer to the pulp and bind it to the zoo repo
- issue installation of a non-existing package with a wild (non-ASCII) name:

 pulp-admin -u admin -p admin rpm consumer package install run --consumer-id <consumer> --name "kůň"

Result:

Install task created with id [ 1244f736-87e5-4eef-9dd6-ca790bc09124 ]

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

Refresh Repository Metadata
 Downloading: zoo/filelists | 2.1 k

Install Failed

'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
Actions #11

Updated by mkovacik@redhat.com almost 9 years ago

  • Status changed from 5 to 6

Fixed in pulp-rpm-handlers-2.6.1-0.2.beta.fc21.noarch

pulp-admin -u admin -p admin rpm consumer package install run --consumer-id localhost --name k?_"
Install task created with id [ df78ede1-64c2-47ef-8969-fa7adea7d656 ]

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

Refresh Repository Metadata

Install Failed

*:k____-*-*.*: No package(s) available to install

Journalctl log:

p.agent.lib.dispatcher:80 - handler failed
p.agent.lib.dispatcher:80 - Traceback (most recent call last):
p.agent.lib.dispatcher:80 -   File "/usr/lib/python2.7/site-packages/pulp/agent/lib/dispatcher.py", line 76, in install
p.agent.lib.dispatcher:80 -     report = handler.install(conduit, units, dict(options))
p.agent.lib.dispatcher:80 -   File "/usr/lib/python2.7/site-packages/pulp_rpm/handlers/rpm.py", line 100, in install
p.agent.lib.dispatcher:80 -     details = pkg.install(names)
p.agent.lib.dispatcher:80 -   File "/usr/lib/python2.7/site-packages/pulp_rpm/handlers/rpmtools.py", line 137, in install
p.agent.lib.dispatcher:80 -     raise caught
p.agent.lib.dispatcher:80 - InstallError: *:k<C3><85>-*-*.*: No package(s) available to install
r.agent.rmi:128 - sn=99f8d135-b318-4ea5-8714-b48a8332fc57 processed in: 29.714 (seconds)
t.services:INFO: (9872-15424) Task RMI (succeeded): Succeeded
t.services:INFO: (9872-15424)   sn : 99f8d135-b318-4ea5-8714-b48a8332fc57
t.services:INFO: (9872-15424)   origin : None
t.services:INFO: (9872-15424)   timestamp : 2015-03-31T20:38:56Z
t.services:INFO: (9872-15424)   user data : {'task_id': '8910649a-6e27-4895-a6a8-1c28b1f48a11', 'consumer_id': 'localhost'}
t.services:INFO: (9872-15424)   retval:
t.services:INFO: (9872-15424) {'reboot': {'scheduled': False, 'details': {}}, 'details': {'rpm': {'details': {'message': u'*:k\xc5-*-*.*: No package(s) available to install', 'trace': u'Traceback (most re...
Actions #12

Updated by dkliban@redhat.com almost 9 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #15

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added
Actions #16

Updated by bmbouter almost 4 years ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Also available in: Atom PDF