Ok, try upgrading both to the latest (no pin). Latest clients should still work on Rocky and we don't have to guess versions. -yoctozepto On Fri, Jan 31, 2020, 22:12 Albert Braden <Albert.Braden@synopsys.com> wrote:
In my other cluster where I haven't upgraded anything since the Rocky install, the old nova version 11 client works, but the openstack client fails:
root@us01odc-dev1-ctrl1:~# openstack --version openstack 3.16.1 root@us01odc-dev1-ctrl1:~# openstack console log show 5a923a92-8fd1-48fd-8b76-768d1fb5f0c6 'latin-1' codec can't encode characters in position 45794-45796: ordinal not in range(256) root@us01odc-dev1-ctrl1:~# nova --version 11.0.0 root@us01odc-dev1-ctrl1:~# nova console-log 5a923a92-8fd1-48fd-8b76-768d1fb5f0c6 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.10.0-957.5.1.el7.x86_64 ( mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150 ...
-----Original Message----- From: Albert Braden <Albert.Braden@synopsys.com> Sent: Friday, January 31, 2020 12:49 PM To: Radosław Piliszek <radoslaw.piliszek@gmail.com> Cc: OpenStack Discuss ML <openstack-discuss@lists.openstack.org> Subject: RE: "encoding error when doing console log show" in Rocky
That ran successfully, but it didn't fix the problem.
Installing collected packages: python-novaclient Attempting uninstall: python-novaclient Found existing installation: python-novaclient 16.0.0 Uninstalling python-novaclient-16.0.0: Successfully uninstalled python-novaclient-16.0.0 Successfully installed python-novaclient-11.0.1 root@us01odc-dev2-ctrl1:/var/log/nova# os console log show 3febd3b2-df87-4f06-884b-378116c6fe4c 'latin-1' codec can't encode characters in position 46615-46617: ordinal not in range(256)
-----Original Message----- From: Radosław Piliszek <radoslaw.piliszek@gmail.com> Sent: Friday, January 31, 2020 12:41 PM To: Albert Braden <albertb@synopsys.com> Cc: Radosław Piliszek <radoslaw.piliszek@gmail.com>; OpenStack Discuss ML <openstack-discuss@lists.openstack.org> Subject: Re: "encoding error when doing console log show" in Rocky
Then also: pip install -U python-novaclient==11.0.1
-yoctozepto
pt., 31 sty 2020 o 21:31 Albert Braden <Albert.Braden@synopsys.com> napisał(a):
The client claims that it is version 3.16.3. What am I missing?
root@us01odc-dev2-ctrl1:/var/log/nova# openstack --version openstack 3.16.3 root@us01odc-dev2-ctrl1:/var/log/nova# os console log show
'latin-1' codec can't encode characters in position 46615-46617: ordinal not in range(256)
-----Original Message----- From: Radosław Piliszek <radoslaw.piliszek@gmail.com> Sent: Friday, January 31, 2020 10:49 AM To: Albert Braden <albertb@synopsys.com> Cc: Radosław Piliszek <radoslaw.piliszek@gmail.com>; OpenStack Discuss ML <openstack-discuss@lists.openstack.org> Subject: Re: "encoding error when doing console log show" in Rocky
It looks like these are package-provided and hence pip refused to touch
Are there no updates to packages of clients? You could try installing the client in venv if you insist on using this machine.
That file you call "source file" has a definition of environment variables for osc, you surely "source" it but it's far from being a "source file" in the specific sense around here. Hence my previous confusion. :-)
-yoctozepto
pt., 31 sty 2020 o 19:25 Albert Braden <Albert.Braden@synopsys.com> napisał(a):
This is the source file:
I'm not very good at PIP but it looks like I already have the latest
Rocky client installed:
Requirement already satisfied, skipping upgrade:
root@us01odc-dev2-ctrl1:~# os console log show
3febd3b2-df87-4f06-884b-378116c6fe4c
'latin-1' codec can't encode characters in position 46615-46617: ordinal not in range(256)
-----Original Message----- From: Radosław Piliszek <radoslaw.piliszek@gmail.com> Sent: Friday, January 31, 2020 12:39 AM To: Albert Braden <albertb@synopsys.com> Cc: Radosław Piliszek <radoslaw.piliszek@gmail.com>; OpenStack Discuss ML <openstack-discuss@lists.openstack.org> Subject: Re: "encoding error when doing console log show" in Rocky
Well, I might be slow here. :-) What source file do you need to run on the controller? If you run openstack client from controller then it becomes your client so just update the client there to the latest rocky release:
something along this: sudo pip install -U python-openstackclient==3.16.3
-yoctozepto
czw., 30 sty 2020 o 22:18 Albert Braden <Albert.Braden@synopsys.com> napisał(a):
Sorry if I am slow. This happens when I go to the controller, run my
How can I install a new client to use on the controller command
3febd3b2-df87-4f06-884b-378116c6fe4c them. python-novaclient>=9.1.0 in /usr/local/lib/python2.7/dist-packages (from python-openstackclient==3.16.3) (16.0.0) source file and then type: os console log show <UUID> line? Do I need to replace the files mentioned below, or is there a better way?
-----Original Message----- From: Radosław Piliszek <radoslaw.piliszek@gmail.com> Sent: Thursday, January 30, 2020 12:09 PM To: Albert Braden <albertb@synopsys.com> Cc: OpenStack Discuss ML <openstack-discuss@lists.openstack.org> Subject: Re: "encoding error when doing console log show" in Rocky
The bug you mention affects clients. Hence you just need to patch your clients. I guess just using a newer version of client would work fine.
-yoctozepto
czw., 30 sty 2020 o 20:56 Albert Braden <Albert.Braden@synopsys.com>
napisał(a):
We’re running openstack-ansible Rocky and seeing the “encoding
error when doing console log show.” I see here that there is a patch:
How can I apply this patch to our Rocky install? Do I need to just
copy the file over the existing /usr/lib/python2.7/dist-packages/openstackclient/compute/v2/console.py on controllers and hypervisors? Or is there a better way?