[ 
https://issues.apache.org/jira/browse/DISPATCH-2010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jiri Daněk closed DISPATCH-2010.
--------------------------------
    Resolution: Duplicate

> system_tests_link_routes fails on Aarch64 unable to load JSON config
> --------------------------------------------------------------------
>
>                 Key: DISPATCH-2010
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2010
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 1.16.0
>            Reporter: Jiri Daněk
>            Priority: Major
>
> https://travis-ci.com/github/apache/qpid-dispatch/jobs/492275900#L3696
> https://github.com/apache/qpid-dispatch/pull/1077
> {noformat}
> test 14
>       Start 14: system_tests_link_routes
> 14: Test command: /usr/bin/python3.8 
> "/home/travis/build/apache/qpid-dispatch/build/tests/run.py" "-m" "unittest" 
> "-v" "system_tests_link_routes"
> 14: Test timeout computed to be: 550
> 14: test_address_propagation 
> (system_tests_link_routes.ConnectionLinkRouteTest) ... ok
> 14: test_config_file_bad (system_tests_link_routes.ConnectionLinkRouteTest) 
> ... ok
> 14: test_mgmt (system_tests_link_routes.ConnectionLinkRouteTest) ... ok
> 14: test_send_receive (system_tests_link_routes.ConnectionLinkRouteTest) ... 
> ok
> 14: 
> 14: Router QDR.X output file:
> 14: >>>>
> 14: 2021-03-19 11:30:18.300349 +0000 AGENT (error) Contents of failed config 
> file
> 14: 2021-03-19 11:30:18.300646 +0000 AGENT (error) Line 1 |[["router", {
> 14: 2021-03-19 11:30:18.300857 +0000 AGENT (error) Line 2 |"mode": "interior",
> 14: 2021-03-19 11:30:18.301075 +0000 AGENT (error) Line 3 |"id": "QDR.X",
> 14: 2021-03-19 11:30:18.301293 +0000 AGENT (error) Line 4 |"debugDumpFile": 
> "/home/travis/build/apache/qpid-dispatch/build/tests/system_test.dir/system_tests_link_routes/ConnectionLinkRouteTest/test_config_file_bad/X-qddebug.txt"}],
> 14: 2021-03-19 11:30:18.301522 +0000 AGENT (error) Line 5 |["listener", {
> 14: 2021-03-19 11:30:18.301723 +0000 AGENT (error) Line 6 |"role": "normal",
> 14: 2021-03-19 11:30:18.301921 +0000 AGENT (error) Line 7 |"host": "0.0.0.0",
> 14: 2021-03-19 11:30:18.302122 +0000 AGENT (error) Line 8 |"port": "22635",
> 14: 2021-03-19 11:30:18.302321 +0000 AGENT (error) Line 9 |"saslMechanisms": 
> "ANONYMOUS",
> 14: 2021-03-19 11:30:18.302524 +0000 AGENT (error) Line 10 
> |"idleTimeoutSeconds": "120",
> 14: 2021-03-19 11:30:18.302727 +0000 AGENT (error) Line 11 
> |"authenticatePeer": "no"}],
> 14: 2021-03-19 11:30:18.302954 +0000 AGENT (error) Line 12 
> |connection.["linkRoute", {
> 14: 2021-03-19 11:30:18.303157 +0000 AGENT (error) Line 13 |"pattern": 
> "i/am/bad",
> 14: 2021-03-19 11:30:18.303357 +0000 AGENT (error) Line 14 |"direction": 
> "out"}],
> 14: 2021-03-19 11:30:18.303556 +0000 AGENT (error) Line 15 |["log", {
> 14: 2021-03-19 11:30:18.303801 +0000 AGENT (error) Line 16 |"module": 
> "DEFAULT",
> 14: 2021-03-19 11:30:18.304004 +0000 AGENT (error) Line 17 |"enable": 
> "trace+",
> 14: 2021-03-19 11:30:18.304207 +0000 AGENT (error) Line 18 |"includeSource": 
> "true",
> 14: 2021-03-19 11:30:18.304435 +0000 AGENT (error) Line 19 |"outputFile": 
> "X.log"}]]
> 14: 2021-03-19 11:30:18.304628 +0000 ERROR (error) Python: Exception: Cannot 
> load configuration file X.conf: Expecting value: line 12 column 1 (char 380)
> 14: 2021-03-19 11:30:18.306867 +0000 ERROR (error) Traceback (most recent 
> call last):
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 61, in __init__
> 14:     self.load(filename, raw_json)
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 242, in load
> 14:     self.load(f, raw_json)
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 244, in load
> 14:     sections = self._parserawjson(source) if raw_json else 
> self._parse(source)
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 208, in _parse
> 14:     sections = json.loads(js_text)
> 14:   File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
> 14:     return _default_decoder.decode(s)
> 14:   File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
> 14:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> 14:   File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
> 14:     raise JSONDecodeError("Expecting value", s, err.value) from None
> 14: json.decoder.JSONDecodeError: Expecting value: line 12 column 1 (char 380)
> 14: 
> 14: During handling of the above exception, another exception occurred:
> 14: 
> 14: Traceback (most recent call last):
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 286, in configure_dispatch
> 14:     config = Config(filename)
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 63, in __init__
> 14:     raise Exception("Cannot load configuration file %s: %s"
> 14: Exception: Cannot load configuration file X.conf: Expecting value: line 
> 12 column 1 (char 380)
> 14: 
> 14: 2021-03-19 11:30:18.307068 +0000 MAIN (critical) Router start-up failed: 
> Python: Exception: Cannot load configuration file X.conf: Expecting value: 
> line 12 column 1 (char 380)
> 14: qdrouterd: Python: Exception: Cannot load configuration file X.conf: 
> Expecting value: line 12 column 1 (char 380)
> 14: 
> 14: <<<<
> 14: 
> 14: Router QDR.X command file:
> 14: >>>>
> 14: qdrouterd -c X.conf -I /home/travis/build/apache/qpid-dispatch/python
> 14: pid=12860
> 14: 
> 14: <<<<
> 14: 
> 14: Router QDR.X log file tail:
> 14: >>>>
> 14: 
> 14: Router QDR.A debug dump file:
> 14: >>>>
> 14: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: 
> 14: <<<<
> 14: ERROR
> 14: test_both_link_routes_active (system_tests_link_routes.Dispatch1428) ... 
> ok
> 14: 
> 14: Router QDR.B debug dump file:
> 14: >>>>
> 14: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 2 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_hash_handle_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 2 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qdr_conn_identifier_t' remain allocated at 
> shutdown: 1 (SUPPRESSED)
> 14: alloc.c: Items of type 'qdr_connection_ref_t' remain allocated at 
> shutdown: 2 (SUPPRESSED)
> 14: 
> 14: <<<<
> 14: test_DISPATCH_1988 (system_tests_link_routes.EmptyTransferTest) ... ok
> 14: 
> 14: Router QDR.A debug dump file:
> 14: >>>>
> 14: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_hash_handle_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qdr_conn_identifier_t' remain allocated at 
> shutdown: 1 (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qdr_connection_ref_t' remain allocated at 
> shutdown: 1 (SUPPRESSED)
> 14: 
> 14: <<<<
> 14: test_01_parallel_link_routes (system_tests_link_routes.LinkRoute3Hop)
> 14: Verify Q2/Q3 recovery in the case of multiple link-routes sharing the ... 
> ok
> 14: test_02_modified_outcome (system_tests_link_routes.LinkRoute3Hop)
> 14: Ensure all elements of a Modified disposition are passed thru the link 
> ... ok
> 14: test_03_rejected_outcome (system_tests_link_routes.LinkRoute3Hop)
> 14: Ensure all elements of a Rejected disposition are passed thru the link 
> ... ok
> 14: test_04_extension_state (system_tests_link_routes.LinkRoute3Hop)
> 14: system_tests_two_routers.TwoRouterExtensionsStateTest() already tests ... 
> ok
> 14: 
> 14: Router QDR.C debug dump file:
> 14: >>>>
> 14: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: 
> 14: <<<<
> 14: 
> 14: Router QDR.A debug dump file:
> 14: >>>>
> 14: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: 
> 14: <<<<
> 14: test_DISPATCH_1496 (system_tests_link_routes.LinkRouteDrainTest) ... ok
> 14: 
> 14: Router QDR.A debug dump file:
> 14: >>>>
> 14: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_hash_handle_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qdr_conn_identifier_t' remain allocated at 
> shutdown: 1 (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qdr_connection_ref_t' remain allocated at 
> shutdown: 1 (SUPPRESSED)
> 14: 
> 14: <<<<
> 14: test_DISPATCH_1092 (system_tests_link_routes.LinkRouteProtocolTest) ... ok
> 14: 
> 14: Router QDR.A debug dump file:
> 14: >>>>
> 14: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: 
> 14: <<<<
> 14: test_aaa_qdmanage_query_link_route 
> (system_tests_link_routes.LinkRouteTest)
> 14: qdmanage converts short type to long type and this test specifically 
> tests if qdmanage is actually doing ... ok
> 14: test_bad_link_route_config (system_tests_link_routes.LinkRouteTest)
> 14: What happens when the link route create request is malformed? ... ok
> 14: test_bbb_qdstat_link_routes_routerB 
> (system_tests_link_routes.LinkRouteTest)
> 14: Runs qdstat on router B to make sure that router B has 4 link routes, ... 
> ok
> 14: test_ccc_qdstat_link_routes_routerC 
> (system_tests_link_routes.LinkRouteTest)
> 14: Runs qdstat on router C to make sure that router C has 4 link routes, ... 
> ok
> 14: test_close_with_unsettled (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_custom_annotations_match (system_tests_link_routes.LinkRouteTest)
> 14: The linkRoute on Routers C and B is set to org.apache. ... ok
> 14: test_ddd_partial_link_route_match (system_tests_link_routes.LinkRouteTest)
> 14: The linkRoute on Routers C and B is set to org.apache. ... ok
> 14: test_detach_mixed_close (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_detach_without_close (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_dynamic_source (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_dynamic_target (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_echo_detach_received (system_tests_link_routes.LinkRouteTest)
> 14: Create two receivers to link routed address org.apache.dev ... ok
> 14: test_full_link_route_match (system_tests_link_routes.LinkRouteTest)
> 14: The linkRoute on Routers C and B is set to org.apache. ... ok
> 14: test_full_link_route_match_1 (system_tests_link_routes.LinkRouteTest)
> 14: This test is pretty much the same as the previous test 
> (test_full_link_route_match) but the connection is ... ok
> 14: test_link_route_pattern_match (system_tests_link_routes.LinkRouteTest)
> 14: Verify the addresses match the proper patterns and are routed to the ... 
> ok
> 14: test_link_route_terminus_address (system_tests_link_routes.LinkRouteTest) 
> ... ok
> 14: test_partial_link_route_match_1 (system_tests_link_routes.LinkRouteTest)
> 14: This test is pretty much the same as the previous test 
> (test_partial_link_route_match) but the connection is ... ok
> 14: test_same_name_route_receivers_through_B 
> (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_same_name_route_receivers_through_C 
> (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_same_name_route_senders_through_B 
> (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_same_name_route_senders_through_C 
> (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_www_drain_support_all_messages 
> (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_www_drain_support_no_messages 
> (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_www_drain_support_no_more_messages 
> (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_www_drain_support_one_message 
> (system_tests_link_routes.LinkRouteTest) ... ok
> 14: test_yyy_delivery_tag (system_tests_link_routes.LinkRouteTest)
> 14: Tests that the router carries over the delivery tag on a link routed 
> delivery ... ok
> 14: test_yyy_invalid_delivery_tag (system_tests_link_routes.LinkRouteTest) 
> ... ok
> 14: test_zzz_qdmanage_delete_link_route 
> (system_tests_link_routes.LinkRouteTest)
> 14: We are deleting the link route using qdmanage short name. This should be 
> the last test to run ... ok
> 14: 
> 14: Router QDR.B debug dump file:
> 14: >>>>
> 14: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 3 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_hash_handle_t' remain allocated at shutdown: 1 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qdr_conn_identifier_t' remain allocated at 
> shutdown: 1 (SUPPRESSED)
> 14: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 3 
> (SUPPRESSED)
> 14: alloc.c: Items of type 'qdr_connection_ref_t' remain allocated at 
> shutdown: 1 (SUPPRESSED)
> 14: 
> 14: <<<<
> 14: 
> 14: ======================================================================
> 14: ERROR: tearDownClass (system_tests_link_routes.ConnectionLinkRouteTest)
> 14: ----------------------------------------------------------------------
> 14: Traceback (most recent call last):
> 14:   File "/home/travis/build/apache/qpid-dispatch/tests/system_test.py", 
> line 860, in tearDownClass
> 14:     cls.tester.teardown()
> 14:   File "/home/travis/build/apache/qpid-dispatch/tests/system_test.py", 
> line 803, in teardown
> 14:     raise RuntimeError("Errors during teardown: \n\n%s" % 
> "\n\n".join([str(e) for e in errors]))
> 14: RuntimeError: Errors during teardown: 
> 14: 
> 14: Process 12860 error: still running
> 14: qdrouterd -c X.conf -I /home/travis/build/apache/qpid-dispatch/python
> 14: 
> /home/travis/build/apache/qpid-dispatch/build/tests/system_test.dir/system_tests_link_routes/ConnectionLinkRouteTest/test_config_file_bad/X-3.cmd
> 14: >>>>
> 14: 2021-03-19 11:30:18.300349 +0000 AGENT (error) Contents of failed config 
> file
> 14: 2021-03-19 11:30:18.300646 +0000 AGENT (error) Line 1 |[["router", {
> 14: 2021-03-19 11:30:18.300857 +0000 AGENT (error) Line 2 |"mode": "interior",
> 14: 2021-03-19 11:30:18.301075 +0000 AGENT (error) Line 3 |"id": "QDR.X",
> 14: 2021-03-19 11:30:18.301293 +0000 AGENT (error) Line 4 |"debugDumpFile": 
> "/home/travis/build/apache/qpid-dispatch/build/tests/system_test.dir/system_tests_link_routes/ConnectionLinkRouteTest/test_config_file_bad/X-qddebug.txt"}],
> 14: 2021-03-19 11:30:18.301522 +0000 AGENT (error) Line 5 |["listener", {
> 14: 2021-03-19 11:30:18.301723 +0000 AGENT (error) Line 6 |"role": "normal",
> 14: 2021-03-19 11:30:18.301921 +0000 AGENT (error) Line 7 |"host": "0.0.0.0",
> 14: 2021-03-19 11:30:18.302122 +0000 AGENT (error) Line 8 |"port": "22635",
> 14: 2021-03-19 11:30:18.302321 +0000 AGENT (error) Line 9 |"saslMechanisms": 
> "ANONYMOUS",
> 14: 2021-03-19 11:30:18.302524 +0000 AGENT (error) Line 10 
> |"idleTimeoutSeconds": "120",
> 14: 2021-03-19 11:30:18.302727 +0000 AGENT (error) Line 11 
> |"authenticatePeer": "no"}],
> 14: 2021-03-19 11:30:18.302954 +0000 AGENT (error) Line 12 
> |connection.["linkRoute", {
> 14: 2021-03-19 11:30:18.303157 +0000 AGENT (error) Line 13 |"pattern": 
> "i/am/bad",
> 14: 2021-03-19 11:30:18.303357 +0000 AGENT (error) Line 14 |"direction": 
> "out"}],
> 14: 2021-03-19 11:30:18.303556 +0000 AGENT (error) Line 15 |["log", {
> 14: 2021-03-19 11:30:18.303801 +0000 AGENT (error) Line 16 |"module": 
> "DEFAULT",
> 14: 2021-03-19 11:30:18.304004 +0000 AGENT (error) Line 17 |"enable": 
> "trace+",
> 14: 2021-03-19 11:30:18.304207 +0000 AGENT (error) Line 18 |"includeSource": 
> "true",
> 14: 2021-03-19 11:30:18.304435 +0000 AGENT (error) Line 19 |"outputFile": 
> "X.log"}]]
> 14: 2021-03-19 11:30:18.304628 +0000 ERROR (error) Python: Exception: Cannot 
> load configuration file X.conf: Expecting value: line 12 column 1 (char 380)
> 14: 2021-03-19 11:30:18.306867 +0000 ERROR (error) Traceback (most recent 
> call last):
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 61, in __init__
> 14:     self.load(filename, raw_json)
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 242, in load
> 14:     self.load(f, raw_json)
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 244, in load
> 14:     sections = self._parserawjson(source) if raw_json else 
> self._parse(source)
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 208, in _parse
> 14:     sections = json.loads(js_text)
> 14:   File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
> 14:     return _default_decoder.decode(s)
> 14:   File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
> 14:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> 14:   File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
> 14:     raise JSONDecodeError("Expecting value", s, err.value) from None
> 14: json.decoder.JSONDecodeError: Expecting value: line 12 column 1 (char 380)
> 14: 
> 14: During handling of the above exception, another exception occurred:
> 14: 
> 14: Traceback (most recent call last):
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 286, in configure_dispatch
> 14:     config = Config(filename)
> 14:   File 
> "/home/travis/build/apache/qpid-dispatch/python/qpid_dispatch_internal/management/config.py",
>  line 63, in __init__
> 14:     raise Exception("Cannot load configuration file %s: %s"
> 14: Exception: Cannot load configuration file X.conf: Expecting value: line 
> 12 column 1 (char 380)
> 14: 
> 14: 2021-03-19 11:30:18.307068 +0000 MAIN (critical) Router start-up failed: 
> Python: Exception: Cannot load configuration file X.conf: Expecting value: 
> line 12 column 1 (char 380)
> 14: qdrouterd: Python: Exception: Cannot load configuration file X.conf: 
> Expecting value: line 12 column 1 (char 380)
> 14: <<<<
> 14: 
> 14: ----------------------------------------------------------------------
> 14: Ran 40 tests in 126.129s
> 14: 
> 14: FAILED (errors=1)
> 14/73 Test #14: system_tests_link_routes ..........................***Failed  
> 126.43 sec
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to