Ask Your Question

'ascii' codec error while server create - console log show

asked 2020-02-07 04:20:49 -0500

Daniel J. gravatar image

Hi everybody,

im trying to create an instance from an fedora image with command

    openstack server create \
--flavor my-lab.project1 \
--image fedora_cloud_image \
--key-name key1 \
--security-group sec1 \
--nic net-id=4a02e216-c131-4414-be2f-c2341d1f7e25 \

The next step should be to look at tghe logs until the instance finishes booting with command

openstack console log show fedora_instance01 | tail -35

This operation fails with error

'ascii' codec can't encode characters in position 25047-25049: ordinal not in range(128)

In horizon i can look inside the logs and can see some lines like

[[0;32m OK [0m] Started [0;1;39mCreate list of sta��� nodes for the current kernel[0m.

How can i configure the logs not to be written with broken signs?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2020-02-07 05:52:26 -0500

Daniel J. gravatar image

export PYTHONIOENCODING='utf-8' did the trick.

edit flag offensive delete link more

answered 2020-02-07 05:06:21 -0500

That is a bug in older versions of Nova, roundabout Newton if I am not wrong. I don't think that there is a workaround other than not showing those lines. I remember suffering from the problem myself, and that it went away roughly in Pike.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-02-07 04:20:49 -0500

Seen: 59 times

Last updated: Feb 07