Bug 1850341 - Log files are written as binary, preventing proper logging
Summary: Log files are written as binary, preventing proper logging
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 16.1 (Train on RHEL 8.2)
Assignee: Cédric Jeanneret
QA Contact: Jad Haj Yahya
URL:
Whiteboard:
: 1850715 (view as bug list)
Depends On:
Blocks: 1836797
TreeView+ depends on / blocked
 
Reported: 2020-06-24 06:08 UTC by Cédric Jeanneret
Modified: 2020-07-29 07:54 UTC (History)
9 users (show)

Fixed In Version: openstack-tripleo-validations-11.3.2-0.20200611115252.08f469d.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-29 07:53:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3148 0 None None None 2020-07-29 07:54:39 UTC

Description Cédric Jeanneret 2020-06-24 06:08:41 UTC
(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)>

There is a missing backport in osp-16.1 branch:
https://review.opendev.org/735080

We need it in order to get actual json files in the /var/log/validations directory.

Comment 2 Cédric Jeanneret 2020-06-24 07:22:02 UTC
merged downstream - need blocker flag in order to get it in a new compose.

Comment 8 Rabi Mishra 2020-06-25 00:28:21 UTC
*** Bug 1850715 has been marked as a duplicate of this bug. ***

Comment 14 Jad Haj Yahya 2020-06-29 09:59:32 UTC
Ran openstack tripleo validator run --group pre-introspection with traceback

Comment 18 errata-xmlrpc 2020-07-29 07:53:29 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, 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-2020:3148


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