console-log ERROR (TypeError): write() argument must be str, not bytes

Bug #1777482 reported by Scott Moser
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-novaclient (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

$ nova --debug console-log xenial-20180617-135556
DEBUG (shell:791) write() argument must be str, not bytes
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/novaclient/shell.py", line 789, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python3/dist-packages/novaclient/shell.py", line 711, in main
    args.func(self.cs, args)
  File "/usr/lib/python3/dist-packages/novaclient/v2/shell.py", line 2599, in do_console_log
    codecs.getwriter('utf-8')(sys.stdout).write(data)
  File "/usr/lib/python3.6/codecs.py", line 377, in write
    self.stream.write(data)
TypeError: write() argument must be str, not bytes
ERROR (TypeError): write() argument must be str, not bytes

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: python3-novaclient 2:10.3.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.10-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Jun 18 10:55:17 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (1061 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-novaclient
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
Scott Moser (smoser)
description: updated
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Confirmed that I get the same behavior with python3-novaclient. It looks like python-novaclient works as a work-around for now.

Changed in python-novaclient (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Scott Moser (smoser) wrote :

other workaround is openstack client
  openstack console log show xenial-20180617-135556

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Moved to medium as there is a work-around.

Changed in python-novaclient (Ubuntu):
importance: High → Medium
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.