Project

General

Profile

Actions

Bug #52972

closed

ceph-api-nightly-{octopus,nautilus}-backend: UnicodeEncodeError: 'latin-1' codec can't encode characters in position 104-107: ordinal not in range(256)

Added by Ernesto Puerta over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Both nightlies (nautilus and octopus) started failing a week ago. The error seems to be related to the encoding used (console?), but given the job template (ceph-api-nightly/config/definitions/ceph-api-nightly.yml) is the same for all the three main branches and this is not failing in pacific...

It happens while installing teuthology package:

+ timeout 2h ./run-backend-api-tests.sh
created virtual environment CPython3.8.5.final.0-64 in 111ms
  creator CPython3Posix(dest=/tmp/tmp.AksQci4eUl/venv, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/jenkins-build/.local/share/virtualenv/seed-app-data/v1.0.1.debian.1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Requirement already satisfied: setuptools>=12 in ./venv/lib/python3.8/site-packages (44.0.0)
Collecting teuthology[test]
...
Collecting ansible-core<2.12,>=2.11.5
  Downloading ansible-core-2.11.6.tar.gz (7.0 MB)
ERROR: Exception:
Traceback (most recent call last):
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 357, in run
    resolver.resolve(requirement_set)
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
    local_path = unpack_url(
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 282, in unpack_url
    return unpack_http_url(
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 164, in unpack_http_url
    unpack_file(from_path, location, content_type)
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/utils/unpacking.py", line 261, in unpack_file
    untar_file(filename, location)
  File "/tmp/tmp.AksQci4eUl/venv/lib/python3.8/site-packages/pip/_internal/utils/unpacking.py", line 222, in untar_file
    with open(path, 'wb') as destfp:
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 104-107: ordinal not in range(256)
Build step 'Execute shell' marked build as failure

A difference I noticed between the last successful run in Octopus and first one failing was the addition of some package: ansible-core

At this online diff it can be observed the differences between both.

It could also be an issue in teuthology rather than in the build env?


Related issues 1 (0 open1 closed)

Is duplicate of Dashboard - Bug #52985: mgr/dashboard/api: set a UTF-8 locale when running pipResolvedErnesto Puerta

Actions
Actions #1

Updated by Ernesto Puerta over 2 years ago

Adding Deepika as she has delivered some PRs to teuthology around that date of Oct 10-12

Actions #3

Updated by David Galloway over 2 years ago

Good ol' ansible. I saw this with the ceph-build-pull-requests job and fixed it by pinning to the older version: https://github.com/ceph/ceph-build/pull/1921

But it seems maybe that's not the best plan. I'll try to reproduce this as the jenkins-build user and find a fix.

Actions #4

Updated by David Galloway over 2 years ago

So Kefu already fixed this (of course). See https://github.com/ceph/ceph/pull/42811. That'll need to get backported to the Octopus branch (and Nautilus if we need to continue testing it).

Actions #5

Updated by Ernesto Puerta over 2 years ago

  • Status changed from New to Closed

Thanks Deepika, David! I'll close it this one and do the backports in https://tracker.ceph.com/issues/52985.

Actions #6

Updated by Ernesto Puerta over 2 years ago

  • Is duplicate of Bug #52985: mgr/dashboard/api: set a UTF-8 locale when running pip added
Actions

Also available in: Atom PDF