[fuel_agent] TypeError: can't write str to text stream

Bug #1509325 reported by Aleksey Zvyagintsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Ihor Kalnytskyi

Bug Description

2015-10-23 10:57:32.314 4666 DEBUG fuel_agent.utils.utils [-] Trying to execute command: chroot /tmp/target /usr/sbin/grub-install /dev/vda
2015-10-23 10:57:33.823 4666 DEBUG fuel_agent.utils.utils [-] Trying to execute command: chroot /tmp/target /usr/sbin/grub-install /dev/vdb
2015-10-23 10:57:34.491 4666 DEBUG fuel_agent.utils.utils [-] Trying to execute command: chroot /tmp/target /usr/sbin/grub-install /dev/vdc
2015-10-23 10:57:35.011 4666 DEBUG fuel_agent.manager [-] Preventing nailgun-agent from doing anything until it is unlocked
2015-10-23 10:57:35.012 4666 DEBUG fuel_agent.utils.utils [-] Trying to execute command: mkdir -p /tmp/target/var/log/upstart
2015-10-23 10:57:35.021 4666 ERROR fuel_agent.cmd.agent [-] can't write str to text stream
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent Traceback (most recent call last):
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/cmd/agent.py", line 97, in main
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent getattr(mgr, action)()
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/manager.py", line 549, in do_provisioning
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent self.do_bootloader()
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/manager.py", line 536, in do_bootloader
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent (mount2uuid[fs.mount], fs.mount, fs.type))
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent File "/usr/lib64/python2.6/io.py", line 1515, in write
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent s.__class__.__name__)
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent TypeError: can't write str to text stream
2015-10-23 10:57:35.021 4666 TRACE fuel_agent.cmd.agent

Source iso : http://jenkins-product.srt.mirantis.net:8080/view/custom_iso/job/custom_8.0_iso/303/
Failed BVT: http://jenkins-product.srt.mirantis.net:8080/view/custom_iso/job/8.0.custom.ubuntu.bvt_2/110/
builded master + https://review.openstack.org/#/c/238574/

Changed in fuel:
assignee: nobody → Igor Kalnitsky (ikalnitsky)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-agent (master)

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

Changed in fuel:
status: New → In Progress
Changed in fuel:
importance: Undecided → High
milestone: none → 8.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-agent (master)

Reviewed: https://review.openstack.org/238891
Committed: https://git.openstack.org/cgit/openstack/fuel-agent/commit/?id=e4056a7923dd607521d97763d5dfb6de8a33ab5d
Submitter: Jenkins
Branch: master

commit e4056a7923dd607521d97763d5dfb6de8a33ab5d
Author: Igor Kalnitsky <email address hidden>
Date: Fri Oct 23 15:00:51 2015 +0300

    Pass unicode to io.open

    We must pass unicode objects (unicode in py2, str in py3) to io.open,
    otherwise it would fail with:

        TypeError: can't write str to text stream

    Change-Id: I9d2ba46ae6b967feb64fe180f9a6ce85918b0791
    Closes-Bug: #1509325

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

Verified
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "496"
  build_id: "496"
  fuel-nailgun_sha: "934c2d11b234193c6ac8e41cd1388df0ed3583e0"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "e40bcfbb1f5518d7a464cc330909cf09b84e7c20"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "b91e96e848057be4acadd10c2b55a6529387fe51"
  fuel-ostf_sha: "ab5fd151fc6c1aa0b35bc2023631b1f4836ecd61"
  fuel-mirror_sha: "351d568fa3b3e4dd062054b91d766aa54d379867"
  fuelmenu_sha: "234cb4cbb30fbd2df00f388c28f31606d9cae15f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "6b993b3004e8d97d840b672d6c1d44c320975cd9"

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.