Functional tests fail for bionic-graylog3

Bug #1867724 reported by Jose Guedez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graylog Charm
Fix Released
High
Jose Guedez

Bug Description

Functional tests fail for the bionic-graylog3 bundle. Looks like the tests themselves are targeting graylog2, that has different ports (9000/9001) for the WebUI vs API.

The failing tests in the "legacy" class (tests.test_legacy.LegacyTests), are addressed in LP#1867715. This bug concerns the failures in tests.test_graylog_charm.CharmOperationTest. That seem related to the use of api port 9001 (https://git.launchpad.net/charm-graylog/tree/tests/test_graylog_charm.py#n14)

Excerpt from test failures:

    0curl: (7) Failed to connect to localhost port 9001: Connection refused\n', 'Stdout': ''}. Retrying in 30s.
2020-03-17 17:15:05 [INFO] FAIL
2020-03-17 17:15:05 [INFO] test_06_elasticsearch_healthy (tests.test_graylog_charm.CharmOperationTest)
2020-03-17 17:15:05 [INFO] ...
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2020-03-17 17:15:08 [INFO] ERROR
2020-03-17 17:15:08 [INFO] test_07_elasticsearch_no_faults (tests.test_graylog_charm.CharmOperationTest)
2020-03-17 17:15:08 [INFO] ...
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2020-03-17 17:15:11 [INFO] ERROR
2020-03-17 17:15:11 [INFO] test_08_plugins (tests.test_graylog_charm.CharmOperationTest)
2020-03-17 17:15:11 [INFO] ...
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2020-03-17 17:15:12 [INFO] ERROR
2020-03-17 17:15:12 [INFO] test_09_cluster (tests.test_graylog_charm.CharmOperationTest)
2020-03-17 17:15:12 [INFO] ...
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Error calling graylog api: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2020-03-17 17:15:15 [INFO] ERROR

Related branches

Jose Guedez (jfguedez)
Changed in charm-graylog:
status: New → Confirmed
importance: Undecided → High
milestone: none → 20.05
Jose Guedez (jfguedez)
Changed in charm-graylog:
assignee: nobody → Jose Guedez (jfguedez)
Jose Guedez (jfguedez)
Changed in charm-graylog:
status: Confirmed → In Progress
Jose Guedez (jfguedez)
Changed in charm-graylog:
status: In Progress → Fix Committed
Jeremy Lounder (jldev)
Changed in charm-graylog:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.