Bug 2151845 - FFU from RHOSP 13 to RHOSP16.2 failing in undercloud upgrade at Openvswitch task (locale issue during ovs check)
Summary: FFU from RHOSP 13 to RHOSP16.2 failing in undercloud upgrade at Openvswitch t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z1
: 17.0
Assignee: Sofer Athlan-Guyot
QA Contact: Khomesh Thakre
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-08 09:51 UTC by Sofer Athlan-Guyot
Modified: 2023-01-25 12:30 UTC (History)
3 users (show)

Fixed In Version: tripleo-ansible-3.3.1-0.20221208161842.fa5422f.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-25 12:29:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 864046 0 None stable/wallaby: MERGED tripleo-ansible: Ensure english locale when running the command for ovs checks. (I60f6efebecf24f3c3337cc02e8c61e0835de6e... 2022-12-12 20:36:47 UTC
OpenStack gerrit 866565 0 None stable/wallaby: MERGED tripleo-ansible: Fix ovs check pkg_has_restart error. (I93f039b717c67d57b70083a6c859eaf02ea68bc1) 2022-12-12 20:36:53 UTC
Red Hat Issue Tracker OSP-20807 0 None None None 2022-12-08 10:00:35 UTC
Red Hat Product Errata RHBA-2023:0271 0 None None None 2023-01-25 12:30:14 UTC

Description Sofer Athlan-Guyot 2022-12-08 09:51:05 UTC
This bug was initially created as a copy of Bug #2061666

I am copying this bug because: The issue is fixed in 17.1 and 16.2 and is not related to ffu, but a problem with locale when we check version of ovs.


Description of problem:

FFU from RHOSP 13 to RHOSP16.2 failing in undercloud upgrade at Openvswitch task

Version-Release number of selected component (if applicable):
RHOSP 16.2

How reproducible:


Steps to Reproduce:

    2022-03-06 11:27:07.276183 | 00505683-3954-5ce5-1750-0000000001ed |       TASK | Special treatment for OpenvSwitch
    host: eurepbdprov01, task: TASK: Always ensure the openvswitch service is enabled and running after upgrades
    eurepbdprov01 still blocked
    host: eurepbdprov01, task: TASK: Always ensure the openvswitch service is enabled and running after upgrades
    eurepbdprov01 still blocked
    Using module file /usr/share/ansible/plugins/modules/tripleo_ovs_upgrade.py
    Pipelining is enabled.
    <172.20.62.1> ESTABLISH LOCAL CONNECTION FOR USER: root
    <172.20.62.1> EXEC /bin/sh -c '/usr/bin/python3 && sleep 0'
    host: eurepbdprov01, task: TASK: Always ensure the openvswitch service is enabled and running after upgrades
    eurepbdprov01 still blocked
    host: eurepbdprov01, task: TASK: Always ensure the openvswitch service is enabled and running after upgrades
    eurepbdprov01 still blocked
    ...
    ...
    ...
    ...
    host: eurepbdprov01, task: TASK: Always ensure the openvswitch service is enabled and running after upgrades
    eurepbdprov01 still blocked
    host: eurepbdprov01, task: TASK: Always ensure the openvswitch service is enabled and running after upgrades
    eurepbdprov01 still blocked
    The full traceback is:
    Traceback (most recent call last):
      File "<stdin>", line 102, in <module>
      File "<stdin>", line 94, in _ansiballz_main
      File "<stdin>", line 40, in invoke_module
      File "/usr/lib64/python3.6/runpy.py", line 205, in run_module
        return _run_module_code(code, init_globals, run_name, mod_spec)
      File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code
        mod_name, mod_spec, pkg_name, script_name)
      File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "/tmp/ansible_tripleo_ovs_upgrade_payload_vikgfhcx/ansible_tripleo_ovs_upgrade_payload.zip/ansible/modules/tripleo_ovs_upgrade.py", line 267, in <module>
      File "/tmp/ansible_tripleo_ovs_upgrade_payload_vikgfhcx/ansible_tripleo_ovs_upgrade_payload.zip/ansible/modules/tripleo_ovs_upgrade.py", line 256, in main
      File "/tmp/ansible_tripleo_ovs_upgrade_payload_vikgfhcx/ansible_tripleo_ovs_upgrade_payload.zip/ansible/modules/tripleo_ovs_upgrade.py", line 181, in layer_product_upgrade
      File "/tmp/ansible_tripleo_ovs_upgrade_payload_vikgfhcx/ansible_tripleo_ovs_upgrade_payload.zip/ansible/modules/tripleo_ovs_upgrade.py", line 125, in flatten_version
    IndexError: list index out of range
    2022-03-06 11:27:14.947283 | 00505683-3954-5ce5-1750-0000000001ed |      FATAL | Special treatment for OpenvSwitch | eurepbdprov01 | error={
        "changed": false,
        "module_stderr": "Traceback (most recent call last):\n  File \"<stdin>\", line 102, in <module>\n  File \"<stdin>\", line 94, in _ansiballz_main\n  File \"<stdin>\", line 40, in invoke_module\n  File \"/usr/lib64/python3.6/runpy.py\",
     line 205, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n    mod_name, mod_spec, pkg_name, script_name)\n  File \"/usr/lib64/pyt
    hon3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_tripleo_ovs_upgrade_payload_vikgfhcx/ansible_tripleo_ovs_upgrade_payload.zip/ansible/modules/tripleo_ovs_upgrade.py\", line 267, in <module>\n  F
    ile \"/tmp/ansible_tripleo_ovs_upgrade_payload_vikgfhcx/ansible_tripleo_ovs_upgrade_payload.zip/ansible/modules/tripleo_ovs_upgrade.py\", line 256, in main\n  File \"/tmp/ansible_tripleo_ovs_upgrade_payload_vikgfhcx/ansible_tripleo_ovs_up
    grade_payload.zip/ansible/modules/tripleo_ovs_upgrade.py\", line 181, in layer_product_upgrade\n  File \"/tmp/ansible_tripleo_ovs_upgrade_payload_vikgfhcx/ansible_tripleo_ovs_upgrade_payload.zip/ansible/modules/tripleo_ovs_upgrade.py\", l
    ine 125, in flatten_version\nIndexError: list index out of range\n",
        "module_stdout": "",
        "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
        "rc": 1
    }

1.
2.
3.

Actual results:

FFU should complete without any issue

Expected results:


Additional info:
All logs and sos-report in Case Id:03158783 
Issue identified by lbezdick and chem in rhos-upgrade channel.

Comment 9 errata-xmlrpc 2023-01-25 12:29:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 17.0.1 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:0271


Note You need to log in before you can comment on or make changes to this bug.