Bug 1850715 - Validations run fails with json.decoder.JSONDecodeError
Summary: Validations run fails with json.decoder.JSONDecodeError
Keywords:
Status: CLOSED DUPLICATE of bug 1850341
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-24 19:22 UTC by Alex Schultz
Modified: 2020-06-25 00:28 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1843175
Environment:
Last Closed: 2020-06-25 00:28:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
mistral_logs.tar.xz (1.94 MB, application/x-xz)
2020-06-24 19:22 UTC, Alex Schultz
no flags Details

Description Alex Schultz 2020-06-24 19:22:21 UTC
+++ This bug was initially created as a clone of Bug #1843175 +++

For the record this is a different bug than the original one. This is related to the validation log processing.


@Alex Mistral logs are attached, and here is stdout from our current manual 16.1 beta deployment:

(undercloud) [stack@titan101 ~]$ !246
openstack tripleo validator run --group pre-introspection
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=7>                                                                            
  gathering_policy=gathering_policy)
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=8>                                                                            
  gathering_policy=gathering_policy)
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=9>                                                                            
  gathering_policy=gathering_policy)
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=10>                                                                           
  gathering_policy=gathering_policy)
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=11>                                                                           
  gathering_policy=gathering_policy)
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=12>                                                                           
  gathering_policy=gathering_policy)
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=13>                                                                           
  gathering_policy=gathering_policy)
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=14>                                                                           
  gathering_policy=gathering_policy)
/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py:437: ResourceWarning: unclosed file <_io.BufferedReader name=15>                                                                           
  gathering_policy=gathering_policy)
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py", line 613, in take_action                                                                                                         
    self._run_validator_run(parsed_args)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py", line 546, in _run_validator_run                                                                                                  
    contents = json.load(val)
  File "/usr/lib64/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Expecting value: line 1 column 1 (char 0)
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 43586), raddr=('192.168.24.2', 13000)>

Comment 1 Alex Schultz 2020-06-24 19:22:48 UTC
Created attachment 1698704 [details]
mistral_logs.tar.xz


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