Debian: Bootstrap fails to complete due to invalid chars validation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Rafael Lucas Camargos |
Bug Description
Brief Description
-----------------
This issue is reported by Dan Voiculeasa during Debian testing
Investigation: capabilities is a dict.
controller-0:~$ cat re_.py
import re
import jsonpatch
ALLOWED_CHARS = r"^[a-zA-
patch = [{'op': 'replace', 'path': '/system_mode', 'value': 'simplex'}, {'op': 'replace', 'path': '/capabilities', 'value': {'region_config': False, 'vswitch_type': 'none', 'shared_services': '[]', 'sdn_enabled': False, 'https_enabled': False}}, {'op': 'replace', 'path': '/timezone', 'value': 'UTC'}, {'op': 'replace', 'path': '/region_name', 'value': 'RegionOne'}, {'op': 'replace', 'path': '/service_
#patch = [{u'path': u'/system_mode', u'value': u'simplex', u'op': u'replace'}, {u'path': u'/region_name', u'value': u'RegionOne', u'op': u'replace'}, {u'path': u'/service_
for p in jsonpatch.
print(
if p['value'] is not None:
controller-0:~$ python2 re_.py
simplex
{'https_enabled': False, 'vswitch_type': 'none', 'region_config': False, 'sdn_enabled': False, 'shared_services': '[]'}
Traceback (most recent call last):
File "re_.py", line 13, in <module>
re.
File "/usr/lib64/
return _compile(pattern, flags).
TypeError: expected string or buffer
The following commit is suspect: https:/
Severity
--------
N/A
Steps to Reproduce
------------------
N/A
Expected Behavior
------------------
Boostrap should complete
Actual Behavior
----------------
N/A
Reproducibility
---------------
N/A
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
N/A
Last Pass
---------
N/A
Timestamp/Logs
--------------
sysinv 2021-12-15 13:59:36.237 64179 ERROR wsme.api [-] Server-side error: "expected string or bytes-like object". Detail:
Traceback (most recent call last):
File "/usr/lib/
result = f(self, *args, **kwargs)
File "/usr/lib/
if p['value'] is not None and not re.match(
File "/usr/lib/
return _compile(pattern, flags).
TypeError: expected string or bytes-like object
Test Activity
-------------
Feature Testing
Workaround
----------
N/A
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → High |
assignee: | nobody → Rafael Lucas Camargos (rcamargo) |
tags: | added: stx.6.0 stx.config |
description: | updated |
The original submission merged in Novemember.
The fix for this bug likely needs to be picked to stx/6