building images fails with 'ascii' codec can't encode character u'\u2018' in position 0: ordinal not in range(128)

Bug #1665114 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Alex Schultz

Bug Description

Attempting to build the overcloud images with the following:

source stackrc
export NODE_DIST=centos7
export USE_DELOREAN_TRUNK=1
export DELOREAN_TRUNK_REPO="http://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-master-tripleo/"
export DELOREAN_REPO_FILE="delorean.repo"
export DIB_YUM_REPO_CONF=/etc/yum.repos.d/delorean*
export DIB_YUM_REPO_CONF="$DIB_YUM_REPO_CONF /etc/yum.repos.d/CentOS-Ceph-Jewel.repo"
export OS_YAML="/usr/share/openstack-tripleo-common/image-yaml/overcloud-images-centos7.yaml"
openstack overcloud image build --config-file /usr/share/openstack-tripleo-common/image-yaml/overcloud-images.yaml --config-file $OS_YAML | tee build.log

Results in a failure with the following error:

'ascii' codec can't encode character u'\u2018' in position 0: ordinal not in range(128)

Revision history for this message
Alex Schultz (alex-schultz) wrote :
Changed in tripleo:
milestone: none → ocata-rc1
Revision history for this message
Alex Schultz (alex-schultz) wrote :
Revision history for this message
Alex Schultz (alex-schultz) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/434520

Changed in tripleo:
assignee: nobody → Alex Schultz (alex-schultz)
status: Confirmed → In Progress
Changed in tripleo:
milestone: ocata-rc1 → ocata-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/434520
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=9d2a6dae35de3987aded8d4611040d7130d6dc91
Submitter: Jenkins
Branch: master

commit 9d2a6dae35de3987aded8d4611040d7130d6dc91
Author: Alex Schultz <email address hidden>
Date: Wed Feb 15 14:08:50 2017 -0700

    Open log in utf-8 to prevent UnicodeEncodeError

    In python2 opens files as ascii by default, we were getting errors when
    trying to write out unicode to log files. This change pulls in the
    codecs module for python2 to support writing unicode out to files. In
    python3, all strings are unicode so there is no issues when writing them
    out to a file.

    Change-Id: Id740253a0e6143cfcdd4f7fe2b5460d9f64fa01e
    Closes-Bug: #1665114

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/435572

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/ocata)

Reviewed: https://review.openstack.org/435572
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=346461d51d35eeadb6fc5dc97b4e4992e027d2d8
Submitter: Jenkins
Branch: stable/ocata

commit 346461d51d35eeadb6fc5dc97b4e4992e027d2d8
Author: Alex Schultz <email address hidden>
Date: Wed Feb 15 14:08:50 2017 -0700

    Open log in utf-8 to prevent UnicodeEncodeError

    In python2 opens files as ascii by default, we were getting errors when
    trying to write out unicode to log files. This change pulls in the
    codecs module for python2 to support writing unicode out to files. In
    python3, all strings are unicode so there is no issues when writing them
    out to a file.

    Change-Id: Id740253a0e6143cfcdd4f7fe2b5460d9f64fa01e
    Closes-Bug: #1665114
    (cherry picked from commit 9d2a6dae35de3987aded8d4611040d7130d6dc91)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 6.0.0

This issue was fixed in the openstack/tripleo-common 6.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 7.0.0.0b1

This issue was fixed in the openstack/tripleo-common 7.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.