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 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 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 them. 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:
https://urldefense.proofpoint.com/v2/url?u=https-3A__f.perl.bot_p_xd6hi2&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=XrJBXYlVPpvOXkMqGPz6KucRW_ils95ZMrEmlTflPm8&m=9hpBVaDxs6DnEno4f15EYzgDq-WzDXknz_GfNTUqDGI&s=3Skkokc_zvLhR_0v_WNYAp7rzYbPA0pDg_IvMmSPtHc&e= https://urldefense.proofpoint.com/v2/url?u=https-3A__f.perl.bot_p_zxjh3t&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=XrJBXYlVPpvOXkMqGPz6KucRW_ils95ZMrEmlTflPm8&m=9hpBVaDxs6DnEno4f15EYzgDq-WzDXknz_GfNTUqDGI&s=V7aVdb9JbVeogcCPGu2wAtCvM1aw5EgBGKLuhEIkMQw&e=
Requirement already satisfied, skipping upgrade: python-novaclient>=9.1.0 in /usr/local/lib/python2.7/dist-packages (from python-openstackclient==3.16.3) (16.0.0)
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: https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.openstack.org_releasenotes_python-2Dopenstackclient_rocky.html&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=XrJBXYlVPpvOXkMqGPz6KucRW_ils95ZMrEmlTflPm8&m=avA5Liwj2cVesY05Dk6kFm0YanYp7N7Q4PHGMbzeD6Y&s=dQaaBGR2A-dmJXGDr_TiJ0XVyghaMONnZasgJ52CnrU&e= 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 source file and then type: os console log show <UUID>
How can I install a new client to use on the controller command 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?