Agent failure with Python3

Bug #1934671 reported by Chuck Short
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Chuck Short

Bug Description

Brief Description
-----------------

Installation failure because of python3 string regex:

2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task File "/usr/lib64/python3.6/sre_parse.py", line 855, in parse
2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task not nested and not items))
2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task File "/usr/lib64/python3.6/sre_parse.py", line 502, in _parse
2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task code = _escape(source, this, state)
2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task File "/usr/lib64/python3.6/sre_parse.py", line 401, in _escape
2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task raise source.error("bad escape %s" % escape, len(escape))
2021-06-30 12:26:02.167 71787 ERROR sysinv.openstack.common.periodic_task sre_constants.error: bad escape \M at position 14

Severity
--------

Critical

Steps to Reproduce
------------------

Install Centos8 release of starlingx from master.

Expected Behaviour
-----------------

Bootstrap to complete.

Reproducibility
---------------

100% reproducable

System Configuration
--------------------

stx-aio

Branch
------

f/centos8

Last Pass
---------

Never

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (f/centos8)

Reviewed: https://review.opendev.org/c/starlingx/config/+/799471
Committed: https://opendev.org/starlingx/config/commit/bfb7eac273333b02e8ad8869cb3e0b1e7a8caf1e
Submitter: "Zuul (22348)"
Branch: f/centos8

commit bfb7eac273333b02e8ad8869cb3e0b1e7a8caf1e
Author: Charles Short <email address hidden>
Date: Mon Jul 5 08:32:24 2021 -0400

    Fix traceback while running agent

    In python2 an invalid escape error was treated as a literal, in python3
    it is treated as an error.

    Tested code snipped on both centos7(python2.7) and centos8(python3.6).

    Closes-bug: 1934671

    Signed-off-by: Charles Short <email address hidden>
    Change-Id: I81936c2e643a687d5aeef33c9531550acf647259

tags: added: in-f-centos8
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Chuck Short (zulcss)
tags: added: stx.config stx.python3
Revision history for this message
Ghada Khalil (gkhalil) wrote :

@Chuck, LPs are not updated to Fix Released automatically unless the change is merged in the stx master branch. Please update this LP manually if it's only meant for the f/centos8 branch

Changed in starlingx:
importance: Undecided → Low
status: New → Triaged
Chuck Short (zulcss)
Changed in starlingx:
status: Triaged → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/config/+/802509

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/802509
Committed: https://opendev.org/starlingx/config/commit/04d9e3ed7fcc42b4ed64cfe0ba1b3537ba4120bc
Submitter: "Zuul (22348)"
Branch: master

commit 04d9e3ed7fcc42b4ed64cfe0ba1b3537ba4120bc
Author: Charles Short <email address hidden>
Date: Mon Jul 5 08:32:24 2021 -0400

    Fix traceback while running agent

    In python2 an invalid escape error was treated as a literal, in python3
    it is treated as an error.

    Tested code snipped on both centos7(python2.7) and centos8(python3.6).

    Closes-bug: 1934671

    Signed-off-by: Charles Short <email address hidden>
    Change-Id: I81936c2e643a687d5aeef33c9531550acf647259
    (cherry picked from commit bfb7eac273333b02e8ad8869cb3e0b1e7a8caf1e)

Changed in starlingx:
status: Fix Committed → Fix Released
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.