fpb doesn't support Unicode in metadata.yaml

Bug #1475234 reported by Bartłomiej Piotrowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Committed
Undecided
Fuel Python (Deprecated)
Fuel for OpenStack
Fix Released
Medium
Artem Roma

Bug Description

Following line in metadata.yaml:

   authors: ['Bartłomiej Piotrowski', 'Mirantis']

causes fuel-plugin-builder to fail with this error:

Unexpected error
'ascii' codec can't encode character u'\u0142' in position 12: ordinal not in range(128)

Notice the "ł" in my name – its UTF-8 value is 0142.

Changed in fuel-plugins:
assignee: nobody → Fuel Python Team (fuel-python)
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
tags: added: feature-plugins
Changed in fuel:
milestone: none → 7.0
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

Some metadata fields were used for creating Release file for plugin repos. I'm not sure Release file (and apt_preferences too) support non-ascii characters. For instance, authors were transformed into "Origin" field. We have a plan to remove "Origin" field from Release file. So make sure that the bug will be fixed when it's done.

Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

It's not actually a duplicate. It should be fixed after this bug https://bugs.launchpad.net/fuel/+bug/1475665

Dmitry Pyzhov (dpyzhov)
tags: added: non-release
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 7.0 → 8.0
Artem Roma (aroma-x)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Artem Roma (aroma-x)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugins (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugins (master)

Reviewed: https://review.openstack.org/226298
Committed: https://git.openstack.org/cgit/stackforge/fuel-plugins/commit/?id=be1a4bdd3aa9190985b97b68cbd1cf27b757c3af
Submitter: Jenkins
Branch: master

commit be1a4bdd3aa9190985b97b68cbd1cf27b757c3af
Author: Artem Roma <email address hidden>
Date: Tue Sep 22 14:59:17 2015 +0300

    Modify 'render_to_file' function to make it operate on unicode objects

    If we have non-ascii chars in rendered template we might end up with
    UnicodeDecodeError exception when writing the content to a file. To
    eliminate this issue io.open is used with additional 'encoding'
    parameter

    Change-Id: I73ee352a439d7a9d5c71033f31530a0ced68324c
    Closes-Bug: #1475234

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
Changed in fuel-plugins:
status: New → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Revision history for this message
ElenaRossokhina (esolomina) wrote :

Verified on iso#507 using initial scenario
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "507"
  build_id: "507"
  fuel-nailgun_sha: "8e954abd70ef0083109f34289de2553dcda544d4"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "ec7e212972ead554f21b52b9e165156665f659df"
  fuel-ostf_sha: "ab5fd151fc6c1aa0b35bc2023631b1f4836ecd61"
  fuel-mirror_sha: "351d568fa3b3e4dd062054b91d766aa54d379867"
  fuelmenu_sha: "234cb4cbb30fbd2df00f388c28f31606d9cae15f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "94507c5e4dad6d8cfbd8f5d41aa8389d5335990a"

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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