Skip to content

Commit

Permalink
network: use drop-in logging config file for engine debug
Browse files Browse the repository at this point in the history
Requires: oVirt/ovirt-engine#553
Change-Id: I64f11c501fbf7e2fde388b2f7a97149c77dea031

Signed-off-by: Eitan Raviv <eraviv@redhat.com>
  • Loading branch information
erav committed Jul 26, 2022
1 parent 2b55f67 commit 0e78f3e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions network-suite-master/fixtures/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@ def api(
@pytest.fixture(scope='session', autouse=True)
def ovirt_engine_setup(deploy, engine_facts, engine_answer_file_path, ansible_engine):
if os.environ.get('ENABLE_DEBUG_LOGGING'):
ansible_engine.shell(
'sed -i '
'-e "/.*logger category=\\"org.ovirt\\"/{ n; s/INFO/DEBUG/ }" '
'-e "/.*logger category=\\"org.ovirt.engine.core.bll\\"/{ n; s/INFO/DEBUG/ }" ' # noqa: E501
'-e "/.*logger category=\\"org.keycloak\\"/{ n; s/INFO/DEBUG/ }" '
'-e "/.*<root-logger>/{ n; s/INFO/DEBUG/ }" '
'/usr/share/ovirt-engine/services/ovirt-engine/ovirt-engine.xml.in'
debug = (
'ORG_OVIRT_LOG_LEVEL="DEBUG"\\n'
'KEYCLOAK_LOG_LEVEL="DEBUG"\\n'
'CORE_BLL_LOG_LEVEL="DEBUG"\\n'
'ROOT_LOG_LEVEL="DEBUG"'
)
ansible_engine.copy(content=debug, dest='/etc/ovirt-engine/engine.conf.d/98-logging.conf', mode='0644')
ANSWER_FILE_TMP = '/root/engine-answer-file'

engine = sshlib.Node(engine_facts.default_ip(), engine_facts.ssh_password)
Expand Down

0 comments on commit 0e78f3e

Please sign in to comment.