Oslo logging doesn't work during IPA functional tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Won't Fix
|
Low
|
Unassigned |
Bug Description
It appears as though oslo logging doesn't work while running ironic-
Steps to reproduce:
1. Add a small log message to ironic_
2. Run IPA functional tests: tox -efunc
3. Read the output and notice that "Hello world" does not appear anywhere during the test run, or in ostestr log files.
I believe this occurs because a separate process exists to run the agent. When logging in the test runner process (within a test, or during test setup), logging works as expected.
I had a workaround that substitutes the oslo logger with this: https:/
but that requires modification of non-test files. A workaround that does not require modification of actual agent code is required.
Changed in ironic: | |
assignee: | nobody → Mario Villaplana (mario-villaplana-j) |
Changed in ironic: | |
status: | New → Confirmed |
importance: | Undecided → Low |
I think we'll need to do something like logging fixture here https:/ /github. com/openstack/ cinder/ blob/master/ cinder/ tests/fixtures. py to make things work