Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libs, bgpd: improve task cancellation by argument value #7951

Merged
merged 2 commits into from
Mar 2, 2021

Conversation

mjstapp
Copy link
Contributor

@mjstapp mjstapp commented Jan 27, 2021

Extend the thread_cancel_event api so that it's more complete: look in all the lists of tasks, including io and timers, for matching tasks to cancel. Add a dedicated api that does the more limited original behavior, examining only the ready and events queues. BGP appears to require this more-limited version, so use it via the bgp macro.

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/00795bd92d1681e0128b005233ecbf10/raw/c2a3b72221affd811676a298cb71378bfecb39fb/cr_7951_1611776346.diff | git apply

diff --git a/lib/thread.c b/lib/thread.c
index bf7cf9def..346ab83af 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -1125,7 +1125,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		return;
 
 	/* First process the ready lists. */
-	frr_each_safe(thread_list, &master->event, t) {
+	frr_each_safe (thread_list, &master->event, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->event, t);
@@ -1134,7 +1134,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		thread_add_unuse(master, t);
 	}
 
-	frr_each_safe(thread_list, &master->ready, t) {
+	frr_each_safe (thread_list, &master->ready, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->ready, t);
@@ -1144,7 +1144,7 @@ static void cancel_arg_helper(struct thread_master *master,
 	}
 
 	/* Check the io tasks */
-	for (i = 0; i < master->handler.pfdcount; ) {
+	for (i = 0; i < master->handler.pfdcount;) {
 		pfd = master->handler.pfds + i;
 
 		if (pfd->events & POLLIN)

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@mjstapp mjstapp added the libfrr label Jan 27, 2021
@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jan 27, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16736/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topo tests part 0 on Ubuntu 18.04 arm8: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO0U18ARM8-16736/test

Topology Tests failed for Topo tests part 0 on Ubuntu 18.04 arm8:

*** Error setting resource limits. Mininet's performance may be affected.
*** defaultIntf: warning: r1 has no interfaces
2021-01-27 20:37:53,569 ERROR: r4: zebra left a dead pidfile (pid=17658)
2021-01-27 20:58:47,184 ERROR: rt4: zebra left a dead pidfile (pid=33701)
2021-01-27 21:01:12,253 ERROR: 'router_json_cmp' failed after 100.34 seconds
2021-01-27 21:01:12,257 ERROR: assert failed at "test_isis_lsp_bits_topo1/test_rib_ipv4_step1": "rt6" JSON output mismatches the expected result
assert Generated JSON diff error report:
  
  > $->0.0.0.0/0: d2 has the following element at index 0 which is not present in d1: 
  
  	{
  	    "distance": 115,
  	    "destSelected": true,
  	    "protocol": "isis",
  	    "metric": 10,
  	    "selected": true,
  	    "installed": true,
  	    "prefix": "0.0.0.0/0",
  	    "nexthops": [
  	        {
  	            "fib": true,
  	            "ip": "10.0.7.4",
  	            "active": true,
  	            "afi": "ipv4",
  	            "interfaceName": "eth-rt4"
  	        },
  	        {
  	            "fib": true,
  	            "ip": "10.0.8.5",
  	            "active": true,
  	            "afi": "ipv4",
  	            "interfaceName": "eth-rt5"
  	        }
  	    ]
  	}
  
  	Closest match in d1 is at index 0 with the following errors: 
  
  	> $->0.0.0.0/0[0]->nexthops: d1 has Array of length 1 but in d2 it is of length 2
  
2021-01-27 21:13:11,937 ERROR: r5: zebra left a dead pidfile (pid=49948)
2021-01-27 21:15:39,344 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.1/24', ' IPv6 Link-Locals:', ' fe80::f850:b3ff:fe8e:ca4e/64', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::2061:34ff:feb3:20de/64']
2021-01-27 21:15:39,345 WARNING: {'1': {'r1-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:15:39,670 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.2/24', ' IPv6 Link-Locals:', ' fe80::e0f7:7cff:fe9f:e5ef/64', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::6cfa:acff:fec5:be0d/64']
2021-01-27 21:15:39,671 WARNING: {'1': {'r2-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:15:39,997 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::b82e:46ff:febb:2f8/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::c040:12ff:fee6:dba4/64']
2021-01-27 21:15:39,997 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:15:56,007 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Config, Active, Circuit Id: 0x0', ' Type: Unknown, Level: L1', ' Level-1 Information:', ' Metric: 16777214, Active neighbors: 0', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::2061:34ff:feb3:20de/64']
2021-01-27 21:15:56,007 WARNING: {'1': {'r1-eth1': [{'metric': '16777214', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:15:56,331 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 16777214, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.2/24', ' IPv6 Link-Locals:', ' fe80::e0f7:7cff:fe9f:e5ef/64', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::6cfa:acff:fec5:be0d/64']
2021-01-27 21:15:56,332 WARNING: {'1': {'r2-eth1': [{'metric': '16777214', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:15:56,656 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::b82e:46ff:febb:2f8/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::c040:12ff:fee6:dba4/64']
2021-01-27 21:15:56,656 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:11,714 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.1/24', ' IPv6 Link-Locals:', ' fe80::f850:b3ff:fe8e:ca4e/64', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::2061:34ff:feb3:20de/64']
2021-01-27 21:16:11,714 WARNING: {'1': {'r1-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:12,037 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.2/24', ' IPv6 Link-Locals:', ' fe80::e0f7:7cff:fe9f:e5ef/64', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::6cfa:acff:fec5:be0d/64']
2021-01-27 21:16:12,038 WARNING: {'1': {'r2-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:12,362 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::b82e:46ff:febb:2f8/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::c040:12ff:fee6:dba4/64']
2021-01-27 21:16:12,362 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:26,577 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 16777214, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.1/24', ' IPv6 Link-Locals:', ' fe80::f850:b3ff:fe8e:ca4e/64', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::2061:34ff:feb3:20de/64']
2021-01-27 21:16:26,577 WARNING: {'1': {'r1-eth1': [{'metric': '16777214', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:26,905 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Config, Active, Circuit Id: 0x0', ' Type: Unknown, Level: L1', ' Level-1 Information:', ' Metric: 16777214, Active neighbors: 0', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::6cfa:acff:fec5:be0d/64']
2021-01-27 21:16:26,905 WARNING: {'1': {'r2-eth1': [{'metric': '16777214', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:27,229 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::b82e:46ff:febb:2f8/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::c040:12ff:fee6:dba4/64']
2021-01-27 21:16:27,229 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:45,575 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.1/24', ' IPv6 Link-Locals:', ' fe80::f850:b3ff:fe8e:ca4e/64', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::2061:34ff:feb3:20de/64']
2021-01-27 21:16:45,575 WARNING: {'1': {'r1-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:45,898 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.2/24', ' IPv6 Link-Locals:', ' fe80::e0f7:7cff:fe9f:e5ef/64', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::6cfa:acff:fec5:be0d/64']
2021-01-27 21:16:45,899 WARNING: {'1': {'r2-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 21:16:46,222 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::b82e:46ff:febb:2f8/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::c040:12ff:fee6:dba4/64']
2021-01-27 21:16:46,222 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-27 22:04:05,280 ERROR: r2: zebra left a dead pidfile (pid=86516)
2021-01-27 22:05:00,223 ERROR: r2: zebra left a dead pidfile (pid=88313)
2021-01-27 22:16:17,747 ERROR: r2: zebra left a dead pidfile (pid=96293)

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16736/artifact/TOPO0U18ARM8/ErrorLog/log_topotests.txt

Topo tests part 4 on Ubuntu 18.04 arm8: Failed (click for details) Topo tests part 4 on Ubuntu 18.04 arm8: No useful log found
Successful on other platforms/tests
  • Topo tests part 4 on Ubuntu 16.04 i386
  • Debian 9 deb pkg check
  • Topo tests part 3 on Ubuntu 16.04 i386
  • Static analyzer (clang)
  • Ubuntu 18.04 deb pkg check
  • Topo tests part 4 on Ubuntu 18.04 amd64
  • Ubuntu 20.04 deb pkg check
  • Ubuntu 16.04 deb pkg check
  • Topo tests part 2 on Ubuntu 18.04 arm8
  • Topo tests part 2 on Ubuntu 16.04 i386
  • Topo tests part 0 on Ubuntu 18.04 amd64
  • Topo tests part 1 on Ubuntu 18.04 amd64
  • Addresssanitizer topotests part 2
  • Topo tests part 3 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 16.04 i386
  • Addresssanitizer topotests part 1
  • CentOS 7 rpm pkg check
  • Debian 10 deb pkg check
  • Addresssanitizer topotests part 0
  • IPv4 ldp protocol on Ubuntu 18.04
  • Topo tests part 2 on Ubuntu 18.04 amd64
  • Topo tests part 2 on Ubuntu 16.04 amd64
  • Fedora 29 rpm pkg check
  • Topo tests part 1 on Ubuntu 18.04 arm8
  • Topo tests part 1 on Ubuntu 16.04 amd64
  • Topo tests part 3 on Ubuntu 18.04 amd64
  • IPv6 protocols on Ubuntu 18.04
  • Topo tests part 4 on Ubuntu 16.04 amd64
  • Topo tests part 1 on Ubuntu 16.04 i386
  • Debian 8 deb pkg check
  • IPv4 protocols on Ubuntu 18.04
  • Topo tests part 0 on Ubuntu 16.04 amd64
  • Topo tests part 3 on Ubuntu 16.04 amd64

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16736/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jan 27, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/7951 f11a5fa
Date 01/27/2021
Start 18:09:24
Finish 18:48:40
Run-Time 39:16
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-01-27-18:09:24.txt
Log autoscript-2021-01-27-18:10:25.log.bz2
Memory 491 509 428

For details, please contact louberger

@mjstapp
Copy link
Contributor Author

mjstapp commented Jan 28, 2021

CI:rerun

lib/thread.c Outdated
@@ -1214,6 +1286,10 @@ void thread_cancel_event(struct thread_master *master, void *arg)
{
assert(master->owner == pthread_self());

/* Only worth anything if caller supplies an arg. */
if (arg == NULL)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we log something here? This seems like a developer has made a mistake of some sort?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could assert I guess? a log seems like something that no one's really going to see - dunno. I was half-thinking that it was ok for it to be benign to call with a NULL - it might just mean that some datastruct had a NULL, and the cleanup code didn't have to test that cell before calling the 'cancel' api?

lib/thread.c Outdated
@@ -1046,21 +1046,29 @@ struct thread *funcname_thread_add_event(struct thread_master *m,
* - POLLIN
* - POLLOUT
*/
static void thread_cancel_rw(struct thread_master *master, int fd, short state)
static void thread_cancel_rw(struct thread_master *master, int fd, short state,
int hint)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name it fd_hint maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "idx_hint"? it's an index into an array, not an actual fd

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jan 28, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16778/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topo tests part 4 on Ubuntu 18.04 arm8: Failed (click for details) Topo tests part 4 on Ubuntu 18.04 arm8: No useful log found
Topo tests part 0 on Ubuntu 18.04 arm8: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPO0U18ARM8-16778/test

Topology Tests failed for Topo tests part 0 on Ubuntu 18.04 arm8:

*** Error setting resource limits. Mininet's performance may be affected.
2021-01-28 14:17:12,465 ERROR: r1: zebra left a dead pidfile (pid=9620)
*** defaultIntf: warning: r1 has no interfaces
2021-01-28 14:17:29,559 ERROR: r2: zebra left a dead pidfile (pid=13652)
2021-01-28 14:17:59,292 ERROR: r3: zebra left a dead pidfile (pid=14714)
2021-01-28 14:19:10,862 ERROR: r1: zebra left a dead pidfile (pid=15291)
2021-01-28 14:26:08,330 ERROR: r1: zebra left a dead pidfile (pid=16220)
2021-01-28 14:28:41,871 ERROR: r1: staticd left a dead pidfile (pid=18611)
2021-01-28 14:49:35,908 ERROR: rt7: zebra left a dead pidfile (pid=33770)
2021-01-28 14:52:01,929 ERROR: 'router_json_cmp' failed after 100.56 seconds
2021-01-28 14:52:01,933 ERROR: assert failed at "test_isis_lsp_bits_topo1/test_rib_ipv4_step1": "rt6" JSON output mismatches the expected result
assert Generated JSON diff error report:
  
  > $->0.0.0.0/0: d2 has the following element at index 0 which is not present in d1: 
  
  	{
  	    "distance": 115,
  	    "destSelected": true,
  	    "protocol": "isis",
  	    "metric": 10,
  	    "selected": true,
  	    "installed": true,
  	    "prefix": "0.0.0.0/0",
  	    "nexthops": [
  	        {
  	            "fib": true,
  	            "ip": "10.0.7.4",
  	            "active": true,
  	            "afi": "ipv4",
  	            "interfaceName": "eth-rt4"
  	        },
  	        {
  	            "fib": true,
  	            "ip": "10.0.8.5",
  	            "active": true,
  	            "afi": "ipv4",
  	            "interfaceName": "eth-rt5"
  	        }
  	    ]
  	}
  
  	Closest match in d1 is at index 0 with the following errors: 
  
  	> $->0.0.0.0/0[0]->nexthops: d1 has Array of length 1 but in d2 it is of length 2
  
2021-01-28 14:52:02,081 ERROR: rt5: zebra left a dead pidfile (pid=35680)
2021-01-28 14:56:27,882 ERROR: rt4: bgpd left a dead pidfile (pid=40204)
2021-01-28 15:06:44,496 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.1/24', ' IPv6 Link-Locals:', ' fe80::ca3:85ff:fe5a:45e4/64', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::9841:bdff:fef4:7a4c/64']
2021-01-28 15:06:44,497 WARNING: {'1': {'r1-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:06:44,827 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.2/24', ' IPv6 Link-Locals:', ' fe80::e4e1:ddff:fe02:5dd4/64', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::5ced:efff:fe92:d9d3/64']
2021-01-28 15:06:44,828 WARNING: {'1': {'r2-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:06:45,153 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::748d:65ff:fe91:dd2f/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::5806:68ff:fe22:692a/64']
2021-01-28 15:06:45,154 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:01,253 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Config, Active, Circuit Id: 0x0', ' Type: Unknown, Level: L1', ' Level-1 Information:', ' Metric: 16777214, Active neighbors: 0', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::9841:bdff:fef4:7a4c/64']
2021-01-28 15:07:01,254 WARNING: {'1': {'r1-eth1': [{'metric': '16777214', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:01,579 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 16777214, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.2/24', ' IPv6 Link-Locals:', ' fe80::e4e1:ddff:fe02:5dd4/64', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::5ced:efff:fe92:d9d3/64']
2021-01-28 15:07:01,580 WARNING: {'1': {'r2-eth1': [{'metric': '16777214', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:01,909 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::748d:65ff:fe91:dd2f/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::5806:68ff:fe22:692a/64']
2021-01-28 15:07:01,909 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:16,974 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.1/24', ' IPv6 Link-Locals:', ' fe80::ca3:85ff:fe5a:45e4/64', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::9841:bdff:fef4:7a4c/64']
2021-01-28 15:07:16,975 WARNING: {'1': {'r1-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:17,304 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.2/24', ' IPv6 Link-Locals:', ' fe80::e4e1:ddff:fe02:5dd4/64', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::5ced:efff:fe92:d9d3/64']
2021-01-28 15:07:17,305 WARNING: {'1': {'r2-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:17,633 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::748d:65ff:fe91:dd2f/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::5806:68ff:fe22:692a/64']
2021-01-28 15:07:17,634 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:31,902 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 16777214, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.1/24', ' IPv6 Link-Locals:', ' fe80::ca3:85ff:fe5a:45e4/64', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::9841:bdff:fef4:7a4c/64']
2021-01-28 15:07:31,902 WARNING: {'1': {'r1-eth1': [{'metric': '16777214', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:32,226 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Config, Active, Circuit Id: 0x0', ' Type: Unknown, Level: L1', ' Level-1 Information:', ' Metric: 16777214, Active neighbors: 0', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::5ced:efff:fe92:d9d3/64']
2021-01-28 15:07:32,226 WARNING: {'1': {'r2-eth1': [{'metric': '16777214', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:32,554 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::748d:65ff:fe91:dd2f/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::5806:68ff:fe22:692a/64']
2021-01-28 15:07:32,554 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:50,944 WARNING: ['Area 1:', ' Interface: r1-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.1/24', ' IPv6 Link-Locals:', ' fe80::ca3:85ff:fe5a:45e4/64', '', ' Interface: r1-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.1/24', ' IPv6 Link-Locals:', ' fe80::9841:bdff:fef4:7a4c/64']
2021-01-28 15:07:50,945 WARNING: {'1': {'r1-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r1-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:51,270 WARNING: ['Area 1:', ' Interface: r2-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.1.2/24', ' IPv6 Link-Locals:', ' fe80::e4e1:ddff:fe02:5dd4/64', '', ' Interface: r2-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.2/24', ' IPv6 Link-Locals:', ' fe80::5ced:efff:fe92:d9d3/64']
2021-01-28 15:07:51,271 WARNING: {'1': {'r2-eth1': [{'metric': '10', 'level': 'Level-1'}], 'r2-eth2': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:07:51,598 WARNING: ['Area 1:', ' Interface: r3-eth1, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.2.3/24', ' IPv6 Link-Locals:', ' fe80::748d:65ff:fe91:dd2f/64', '', ' Interface: r3-eth2, State: Up, Active, Circuit Id: 0x0', ' Type: p2p, Level: L1', ' Level-1 Information:', ' Metric: 10, Active neighbors: 1', ' Hello interval: 3, Holddown count: 10 (pad)', ' CNSP interval: 10, PSNP interval: 2', ' IP Prefix(es):', ' 10.0.3.3/24', ' IPv6 Link-Locals:', ' fe80::5806:68ff:fe22:692a/64']
2021-01-28 15:07:51,598 WARNING: {'1': {'r3-eth2': [{'metric': '10', 'level': 'Level-1'}], 'r3-eth1': [{'metric': '10', 'level': 'Level-1'}]}}
2021-01-28 15:33:07,491 ERROR: i3: bgpd left a dead pidfile (pid=59964)
2021-01-28 16:02:56,159 ERROR: r1: zebra left a dead pidfile (pid=89306)
2021-01-28 16:06:01,500 ERROR: r1: zebra left a dead pidfile (pid=91134)
2021-01-28 16:11:07,758 ERROR: r2: zebra left a dead pidfile (pid=97215)
2021-01-28 16:12:43,101 ERROR: r2: zebra left a dead pidfile (pid=98469)
2021-01-28 16:13:49,114 ERROR: r3: zebra left a dead pidfile (pid=98561)

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16778/artifact/TOPO0U18ARM8/ErrorLog/log_topotests.txt

Successful on other platforms/tests
  • Topo tests part 3 on Ubuntu 16.04 amd64
  • Topo tests part 2 on Ubuntu 16.04 amd64
  • IPv4 protocols on Ubuntu 18.04
  • Topo tests part 1 on Ubuntu 18.04 arm8
  • Topo tests part 2 on Ubuntu 18.04 amd64
  • Topo tests part 0 on Ubuntu 16.04 i386
  • Debian 10 deb pkg check
  • Static analyzer (clang)
  • Topo tests part 2 on Ubuntu 16.04 i386
  • Ubuntu 16.04 deb pkg check
  • Topo tests part 1 on Ubuntu 16.04 i386
  • Fedora 29 rpm pkg check
  • Topo tests part 4 on Ubuntu 16.04 amd64
  • IPv4 ldp protocol on Ubuntu 18.04
  • Ubuntu 20.04 deb pkg check
  • Debian 8 deb pkg check
  • Topo tests part 1 on Ubuntu 18.04 amd64
  • Topo tests part 4 on Ubuntu 18.04 amd64
  • Addresssanitizer topotests part 2
  • Ubuntu 18.04 deb pkg check
  • Debian 9 deb pkg check
  • Topo tests part 0 on Ubuntu 16.04 amd64
  • CentOS 7 rpm pkg check
  • Addresssanitizer topotests part 0
  • Topo tests part 3 on Ubuntu 16.04 i386
  • Topo tests part 2 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 18.04 amd64
  • IPv6 protocols on Ubuntu 18.04
  • Topo tests part 4 on Ubuntu 16.04 i386
  • Topo tests part 3 on Ubuntu 18.04 arm8
  • Addresssanitizer topotests part 1
  • Topo tests part 3 on Ubuntu 18.04 amd64
  • Topo tests part 1 on Ubuntu 16.04 amd64

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16778/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210127-00-gf11a5fa83-0 (missing) -> 7.6-dev-20210127-00-gf11a5fa83-0~deb10u1

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/eff1c4daae1ad69862cac0f0fe90333f/raw/06ed7328505c7ba733cef45a4d3786164bb187bc/cr_7951_1611856202.diff | git apply

diff --git a/lib/thread.c b/lib/thread.c
index aa0068cd9..57da2a4e2 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -1125,7 +1125,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		return;
 
 	/* First process the ready lists. */
-	frr_each_safe(thread_list, &master->event, t) {
+	frr_each_safe (thread_list, &master->event, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->event, t);
@@ -1134,7 +1134,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		thread_add_unuse(master, t);
 	}
 
-	frr_each_safe(thread_list, &master->ready, t) {
+	frr_each_safe (thread_list, &master->ready, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->ready, t);
@@ -1144,7 +1144,7 @@ static void cancel_arg_helper(struct thread_master *master,
 	}
 
 	/* Check the io tasks */
-	for (i = 0; i < master->handler.pfdcount; ) {
+	for (i = 0; i < master->handler.pfdcount;) {
 		pfd = master->handler.pfds + i;
 
 		if (pfd->events & POLLIN)

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jan 28, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16804/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topo tests part 4 on Ubuntu 18.04 arm8: Failed (click for details) Topo tests part 4 on Ubuntu 18.04 arm8: No useful log found
Successful on other platforms/tests
  • Topo tests part 4 on Ubuntu 18.04 amd64
  • Ubuntu 20.04 deb pkg check
  • Topo tests part 0 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 16.04 amd64
  • Addresssanitizer topotests part 0
  • IPv4 ldp protocol on Ubuntu 18.04
  • Debian 9 deb pkg check
  • Topo tests part 3 on Ubuntu 16.04 i386
  • Topo tests part 1 on Ubuntu 18.04 amd64
  • Static analyzer (clang)
  • Ubuntu 18.04 deb pkg check
  • Topo tests part 2 on Ubuntu 16.04 amd64
  • Addresssanitizer topotests part 1
  • CentOS 7 rpm pkg check
  • Topo tests part 2 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 18.04 amd64
  • IPv6 protocols on Ubuntu 18.04
  • Debian 10 deb pkg check
  • Topo tests part 2 on Ubuntu 18.04 amd64
  • Topo tests part 0 on Ubuntu 16.04 i386
  • Topo tests part 1 on Ubuntu 16.04 amd64
  • Topo tests part 3 on Ubuntu 18.04 amd64
  • Addresssanitizer topotests part 2
  • Topo tests part 4 on Ubuntu 16.04 i386
  • Topo tests part 3 on Ubuntu 18.04 arm8
  • IPv4 protocols on Ubuntu 18.04
  • Topo tests part 1 on Ubuntu 18.04 arm8
  • Ubuntu 16.04 deb pkg check
  • Topo tests part 1 on Ubuntu 16.04 i386
  • Topo tests part 2 on Ubuntu 16.04 i386
  • Topo tests part 4 on Ubuntu 16.04 amd64
  • Topo tests part 3 on Ubuntu 16.04 amd64
  • Fedora 29 rpm pkg check
  • Debian 8 deb pkg check

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16804/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210128-00-g94f8e49c3-0 (missing) -> 7.6-dev-20210128-00-g94f8e49c3-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210128-00-g94f8e49c3-0 (missing) -> 7.6-dev-20210128-00-g94f8e49c3-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210128-00-g94f8e49c3-0 (missing) -> 7.6-dev-20210128-00-g94f8e49c3-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210128-00-g94f8e49c3-0 (missing) -> 7.6-dev-20210128-00-g94f8e49c3-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20210128-00-g94f8e49c3-0 (missing) -> 7.6-dev-20210128-00-g94f8e49c3-0~deb10u1

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jan 28, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/7951 94f8e49
Date 01/28/2021
Start 17:49:39
Finish 18:28:59
Run-Time 39:20
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-01-28-17:49:39.txt
Log autoscript-2021-01-28-17:50:42.log.bz2
Memory 505 477 425

For details, please contact louberger

@mjstapp
Copy link
Contributor Author

mjstapp commented Jan 29, 2021

Rebasing to pick up CI fixup

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/b50dbd4273d6141007c44b1e079b522a/raw/001853916438d4c2a5d419dcab4897150da373c7/cr_7951_1611953614.diff | git apply

diff --git a/lib/thread.c b/lib/thread.c
index 699ff0189..57da2a4e2 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -1125,7 +1125,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		return;
 
 	/* First process the ready lists. */
-	frr_each_safe(thread_list, &master->event, t) {
+	frr_each_safe (thread_list, &master->event, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->event, t);
@@ -1134,7 +1134,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		thread_add_unuse(master, t);
 	}
 
-	frr_each_safe(thread_list, &master->ready, t) {
+	frr_each_safe (thread_list, &master->ready, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->ready, t);

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jan 29, 2021

Outdated results 🛑

Basic BGPD CI results: FAILURE

_ _
Result FAILURE git merge/7951 16f61c0 frr.github Build
Date 01/29/2021
Start 15:55:38
Finish 15:56:35
Run-Time 00:57
Total
Pass
Fail
Valgrind-Errors
Valgrind-Loss
Details vncregress-2021-01-29-15:55:38.txt
Log make-2021-01-29-15:55:38.out.bz2
Memory

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Jan 29, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16843/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topo tests part 4 on Ubuntu 18.04 arm8: Failed (click for details) Topo tests part 4 on Ubuntu 18.04 arm8: No useful log found
Successful on other platforms/tests
  • Topo tests part 3 on Ubuntu 16.04 amd64
  • IPv4 protocols on Ubuntu 18.04
  • Topo tests part 2 on Ubuntu 16.04 amd64
  • Topo tests part 2 on Ubuntu 18.04 amd64
  • Topo tests part 0 on Ubuntu 16.04 i386
  • Debian 10 deb pkg check
  • Topo tests part 1 on Ubuntu 18.04 arm8
  • Topo tests part 3 on Ubuntu 16.04 i386
  • Static analyzer (clang)
  • Topo tests part 2 on Ubuntu 16.04 i386
  • Topo tests part 0 on Ubuntu 18.04 arm8
  • Topo tests part 1 on Ubuntu 16.04 i386
  • Fedora 29 rpm pkg check
  • Ubuntu 16.04 deb pkg check
  • Topo tests part 4 on Ubuntu 16.04 amd64
  • Addresssanitizer topotests part 2
  • Ubuntu 18.04 deb pkg check
  • Topo tests part 1 on Ubuntu 18.04 amd64
  • Ubuntu 20.04 deb pkg check
  • Debian 8 deb pkg check
  • Topo tests part 3 on Ubuntu 18.04 arm8
  • Topo tests part 4 on Ubuntu 18.04 amd64
  • Topo tests part 0 on Ubuntu 16.04 amd64
  • Debian 9 deb pkg check
  • IPv4 ldp protocol on Ubuntu 18.04
  • CentOS 7 rpm pkg check
  • Addresssanitizer topotests part 0
  • Topo tests part 1 on Ubuntu 16.04 amd64
  • Topo tests part 3 on Ubuntu 18.04 amd64
  • Topo tests part 2 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 18.04 amd64
  • Topo tests part 4 on Ubuntu 16.04 i386
  • IPv6 protocols on Ubuntu 18.04
  • Addresssanitizer topotests part 1

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16843/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1

@LabN-CI
Copy link
Collaborator

LabN-CI commented Jan 30, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/7951 16f61c0
Date 01/30/2021
Start 14:18:27
Finish 14:57:49
Run-Time 39:22
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-01-30-14:18:27.txt
Log autoscript-2021-01-30-14:19:31.log.bz2
Memory 473 512 397

For details, please contact louberger

@mjstapp
Copy link
Contributor Author

mjstapp commented Feb 1, 2021

CI:rerun

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Feb 1, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16861/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topo tests part 4 on Ubuntu 18.04 arm8: Failed (click for details) Topo tests part 4 on Ubuntu 18.04 arm8: No useful log found
Successful on other platforms/tests
  • Topo tests part 3 on Ubuntu 16.04 i386
  • Static analyzer (clang)
  • Topo tests part 4 on Ubuntu 16.04 i386
  • Topo tests part 4 on Ubuntu 18.04 amd64
  • Topo tests part 0 on Ubuntu 18.04 arm8
  • Topo tests part 2 on Ubuntu 18.04 arm8
  • Topo tests part 2 on Ubuntu 16.04 i386
  • Topo tests part 0 on Ubuntu 18.04 amd64
  • Ubuntu 18.04 deb pkg check
  • Ubuntu 20.04 deb pkg check
  • Ubuntu 16.04 deb pkg check
  • Addresssanitizer topotests part 2
  • Topo tests part 1 on Ubuntu 18.04 amd64
  • Topo tests part 3 on Ubuntu 18.04 arm8
  • Topo tests part 2 on Ubuntu 16.04 amd64
  • Debian 10 deb pkg check
  • CentOS 7 rpm pkg check
  • Addresssanitizer topotests part 0
  • Topo tests part 2 on Ubuntu 18.04 amd64
  • Topo tests part 0 on Ubuntu 16.04 i386
  • IPv4 ldp protocol on Ubuntu 18.04
  • Debian 9 deb pkg check
  • Topo tests part 1 on Ubuntu 18.04 arm8
  • Topo tests part 3 on Ubuntu 18.04 amd64
  • Topo tests part 1 on Ubuntu 16.04 amd64
  • Fedora 29 rpm pkg check
  • IPv6 protocols on Ubuntu 18.04
  • Addresssanitizer topotests part 1
  • Topo tests part 4 on Ubuntu 16.04 amd64
  • Topo tests part 1 on Ubuntu 16.04 i386
  • Debian 8 deb pkg check
  • Topo tests part 0 on Ubuntu 16.04 amd64
  • Topo tests part 3 on Ubuntu 16.04 amd64
  • IPv4 protocols on Ubuntu 18.04

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16861/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1

@mjstapp
Copy link
Contributor Author

mjstapp commented Feb 2, 2021

CI:rerun

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Feb 2, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16904/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topo tests part 4 on Ubuntu 18.04 arm8: Failed (click for details) Topo tests part 4 on Ubuntu 18.04 arm8: No useful log found
Successful on other platforms/tests
  • IPv4 protocols on Ubuntu 18.04
  • Topo tests part 3 on Ubuntu 16.04 amd64
  • Topo tests part 1 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 16.04 i386
  • Debian 10 deb pkg check
  • Static analyzer (clang)
  • Ubuntu 16.04 deb pkg check
  • Topo tests part 2 on Ubuntu 16.04 i386
  • Fedora 29 rpm pkg check
  • Topo tests part 4 on Ubuntu 16.04 amd64
  • Topo tests part 0 on Ubuntu 18.04 arm8
  • Topo tests part 1 on Ubuntu 16.04 i386
  • Addresssanitizer topotests part 0
  • IPv4 ldp protocol on Ubuntu 18.04
  • Ubuntu 18.04 deb pkg check
  • Debian 8 deb pkg check
  • Topo tests part 4 on Ubuntu 18.04 amd64
  • Ubuntu 20.04 deb pkg check
  • Topo tests part 0 on Ubuntu 16.04 amd64
  • Topo tests part 1 on Ubuntu 18.04 amd64
  • Debian 9 deb pkg check
  • Topo tests part 3 on Ubuntu 16.04 i386
  • CentOS 7 rpm pkg check
  • Topo tests part 2 on Ubuntu 18.04 amd64
  • Topo tests part 2 on Ubuntu 16.04 amd64
  • Topo tests part 2 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 18.04 amd64
  • IPv6 protocols on Ubuntu 18.04
  • Addresssanitizer topotests part 2
  • Topo tests part 4 on Ubuntu 16.04 i386
  • Topo tests part 3 on Ubuntu 18.04 arm8
  • Topo tests part 1 on Ubuntu 16.04 amd64
  • Addresssanitizer topotests part 1
  • Topo tests part 3 on Ubuntu 18.04 amd64

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16904/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1

@mjstapp
Copy link
Contributor Author

mjstapp commented Feb 2, 2021

CI:rerun

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Feb 3, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16910/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topo tests part 4 on Ubuntu 18.04 arm8: Failed (click for details) Topo tests part 4 on Ubuntu 18.04 arm8: No useful log found
Successful on other platforms/tests
  • Topo tests part 0 on Ubuntu 16.04 i386
  • Topo tests part 1 on Ubuntu 16.04 i386
  • Topo tests part 2 on Ubuntu 18.04 amd64
  • Debian 10 deb pkg check
  • Topo tests part 3 on Ubuntu 16.04 amd64
  • Topo tests part 2 on Ubuntu 16.04 amd64
  • IPv4 protocols on Ubuntu 18.04
  • Topo tests part 3 on Ubuntu 16.04 i386
  • Topo tests part 0 on Ubuntu 18.04 arm8
  • Static analyzer (clang)
  • Fedora 29 rpm pkg check
  • Ubuntu 20.04 deb pkg check
  • Topo tests part 2 on Ubuntu 16.04 i386
  • Ubuntu 18.04 deb pkg check
  • Ubuntu 16.04 deb pkg check
  • Topo tests part 4 on Ubuntu 16.04 amd64
  • Topo tests part 1 on Ubuntu 18.04 amd64
  • Addresssanitizer topotests part 2
  • Topo tests part 3 on Ubuntu 18.04 arm8
  • CentOS 7 rpm pkg check
  • Debian 8 deb pkg check
  • Addresssanitizer topotests part 0
  • Debian 9 deb pkg check
  • Topo tests part 0 on Ubuntu 16.04 amd64
  • IPv4 ldp protocol on Ubuntu 18.04
  • Topo tests part 1 on Ubuntu 18.04 arm8
  • Topo tests part 3 on Ubuntu 18.04 amd64
  • Topo tests part 1 on Ubuntu 16.04 amd64
  • Topo tests part 4 on Ubuntu 16.04 i386
  • Addresssanitizer topotests part 1
  • Topo tests part 2 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 18.04 amd64
  • IPv6 protocols on Ubuntu 18.04
  • Topo tests part 4 on Ubuntu 18.04 amd64

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16910/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210129-03-g16f61c045-0 (missing) -> 7.7-dev-20210129-03-g16f61c045-0~deb10u1

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/cc0d9788f530f95e49eb1be083e9f407/raw/05be35dc1ce83bd88cf589d50c4658356effe426/cr_7951_1612373346.diff | git apply

diff --git a/bgpd/bgp_fsm.h b/bgpd/bgp_fsm.h
index bf4966c83..948bd12a8 100644
--- a/bgpd/bgp_fsm.h
+++ b/bgpd/bgp_fsm.h
@@ -31,7 +31,7 @@
 
 #define BGP_TIMER_OFF(T)                                                       \
 	do {                                                                   \
-		THREAD_OFF((T));					       \
+		THREAD_OFF((T));                                               \
 	} while (0)
 
 #define BGP_EVENT_ADD(P, E)                                                    \
@@ -47,17 +47,18 @@
 		thread_cancel_event_ready(bm->master, (P));                    \
 	} while (0)
 
-#define BGP_UPDATE_GROUP_TIMER_ON(T, F)					       \
-	do {								       \
-		if (BGP_SUPPRESS_FIB_ENABLED(peer->bgp) &&		       \
-		    PEER_ROUTE_ADV_DELAY(peer))				       \
-			thread_add_timer_msec(bm->master, (F), peer,	       \
-				(BGP_DEFAULT_UPDATE_ADVERTISEMENT_TIME * 1000),\
-				(T));					       \
-		else							       \
-			thread_add_timer_msec(bm->master, (F), peer,	       \
-					      0, (T));			       \
-	} while (0)							       \
+#define BGP_UPDATE_GROUP_TIMER_ON(T, F)                                        \
+	do {                                                                   \
+		if (BGP_SUPPRESS_FIB_ENABLED(peer->bgp)                        \
+		    && PEER_ROUTE_ADV_DELAY(peer))                             \
+			thread_add_timer_msec(                                 \
+				bm->master, (F), peer,                         \
+				(BGP_DEFAULT_UPDATE_ADVERTISEMENT_TIME         \
+				 * 1000),                                      \
+				(T));                                          \
+		else                                                           \
+			thread_add_timer_msec(bm->master, (F), peer, 0, (T));  \
+	} while (0)
 
 #define BGP_MSEC_JITTER 10
 
diff --git a/lib/thread.c b/lib/thread.c
index b74d0c4a6..b38ac1bd0 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -53,7 +53,7 @@ struct cancel_req {
 };
 
 /* Flags for task cancellation */
-#define THREAD_CANCEL_FLAG_READY     0x01
+#define THREAD_CANCEL_FLAG_READY 0x01
 
 static int thread_timer_cmp(const struct thread *a, const struct thread *b)
 {
@@ -1136,7 +1136,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		return;
 
 	/* First process the ready lists. */
-	frr_each_safe(thread_list, &master->event, t) {
+	frr_each_safe (thread_list, &master->event, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->event, t);
@@ -1145,7 +1145,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		thread_add_unuse(master, t);
 	}
 
-	frr_each_safe(thread_list, &master->ready, t) {
+	frr_each_safe (thread_list, &master->ready, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->ready, t);
@@ -1308,7 +1308,7 @@ static void cancel_event_helper(struct thread_master *m, void *arg, int flags)
 
 	cr->flags = flags;
 
-	frr_with_mutex(&m->mtx) {
+	frr_with_mutex (&m->mtx) {
 		cr->eventobj = arg;
 		listnode_add(m->cancel_req, cr);
 		do_thread_cancel(m);

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@mjstapp mjstapp changed the title libs: improve task cancellation by argument value libs, bgpd: improve task cancellation by argument value Feb 3, 2021
@mjstapp
Copy link
Contributor Author

mjstapp commented Feb 3, 2021

Revised to deal with bgp, who relies on the original behavior (and expects timers to left in place, for example).

@LabN-CI
Copy link
Collaborator

LabN-CI commented Feb 3, 2021

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/7951 bb3c6c9
Date 02/03/2021
Start 12:40:07
Finish 13:19:29
Run-Time 39:22
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-02-03-12:40:07.txt
Log autoscript-2021-02-03-12:41:13.log.bz2
Memory 500 497 427

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Feb 3, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16928/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topo tests part 1 on Ubuntu 16.04 amd64: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TP1U1604AMD64-16928/test

Topology Tests failed for Topo tests part 1 on Ubuntu 16.04 amd64:

2021-02-03 19:10:45,624 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/bgp.py", line 202, in create_router_bgp
    tgen, router, data_all_bgp, "bgp", build, load_config
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 289, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 6: % Unknown command[27]: neighbor 10.0.0.13 remote-as 0 
% Specify remote-as or peer-group commands first
line 7: Failure to communicate[13] to bgpd, line: neighbor 10.0.0.13 timers 3 10 

line 9: % Unknown command[30]: neighbor fd00:0:0:3::1 remote-as 0 
% Specify remote-as or peer-group commands first
line 11: Failure to communicate[13] to bgpd, line: neighbor fd00:0:0:3::1 activate 

% Specify remote-as or peer-group commands first
line 12: Failure to communicate[13] to bgpd, line: neighbor fd00:0:0:3::1 timers 3 10 

% Specify remote-as or peer-group commands first
line 14: Failure to communicate[13] to bgpd, line: no neighbor fd00:0:0:3::1 activate 



2021-02-03 19:10:45,937 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/bgp.py", line 202, in create_router_bgp
    tgen, router, data_all_bgp, "bgp", build, load_config
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 289, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % No BGP process is configured
line 2: Failure to communicate[13] to bgpd, line: no router bgp  



2021-02-03 19:21:17,686 ERROR: r2: bgpd left a dead pidfile (pid=22388)
2021-02-03 19:23:22,541 ERROR: r1: bgpd left a dead pidfile (pid=26309)
2021-02-03 19:42:30,825 ERROR: r2: bgpd left a dead pidfile (pid=30285)
2021-02-03 19:43:14,153 ERROR: r6: bgpd left a dead pidfile (pid=3807)
r3 failed Linux IPv6 Kernel Routing Table Check:
--- actual OSPFv3 IPv6 routing table
+++ expected OSPFv3 IPv6 routing table
@@ -4,7 +4,7 @@
 fc00:2:2:2::/64 via fe80::__(r2-sw5)__ dev r3-sw5 proto XXXX metric 20 pref medium
 fc00:3333:3333:3333::/64 via fc00:3:3:3::1234 dev r3-stubnet proto XXXX metric 20 pref medium
 fc00:3:3:3::/64 dev r3-stubnet proto XXXX metric 256 pref medium
-fc00:4444:4444:4444::/64 via fe80::72ff:fe30:ca75 dev r3-sw6 proto XXXX metric 20 pref medium
-fc00:4:4:4::/64 via fe80::72ff:fe30:ca75 dev r3-sw6 proto XXXX metric 20 pref medium
+fc00:4444:4444:4444::/64 via fe80::__(r4-sw6)__ dev r3-sw6 proto XXXX metric 20 pref medium
+fc00:4:4:4::/64 via fe80::__(r4-sw6)__ dev r3-sw6 proto XXXX metric 20 pref medium
 fc00:a:a:a::/64 dev r3-sw5 proto XXXX metric 256 pref medium
 fc00:b:b:b::/64 dev r3-sw6 proto XXXX metric 256 pref medium
2021-02-03 19:47:55,682 ERROR: assert failed at "test_ospf6_topo1/test_linux_ipv6_kernel_routingTable": Linux Kernel IPv6 Routing Table verification failed for router r3:
  --- actual OSPFv3 IPv6 routing table
  +++ expected OSPFv3 IPv6 routing table
  @@ -4,7 +4,7 @@
   fc00:2:2:2::/64 via fe80::__(r2-sw5)__ dev r3-sw5 proto XXXX metric 20 pref medium
   fc00:3333:3333:3333::/64 via fc00:3:3:3::1234 dev r3-stubnet proto XXXX metric 20 pref medium
   fc00:3:3:3::/64 dev r3-stubnet proto XXXX metric 256 pref medium
  -fc00:4444:4444:4444::/64 via fe80::72ff:fe30:ca75 dev r3-sw6 proto XXXX metric 20 pref medium
  -fc00:4:4:4::/64 via fe80::72ff:fe30:ca75 dev r3-sw6 proto XXXX metric 20 pref medium
  +fc00:4444:4444:4444::/64 via fe80::__(r4-sw6)__ dev r3-sw6 proto XXXX metric 20 pref medium
  +fc00:4:4:4::/64 via fe80::__(r4-sw6)__ dev r3-sw6 proto XXXX metric 20 pref medium
   fc00:a:a:a::/64 dev r3-sw5 proto XXXX metric 256 pref medium
   fc00:b:b:b::/64 dev r3-sw6 proto XXXX metric 256 pref medium
assert 1 == 0
  -1
  +0
2021-02-03 19:50:18,382 WARNING: vtysh_cmd: failed to convert json output
2021-02-03 19:50:38,572 WARNING: vtysh_cmd: failed to convert json output
2021-02-03 19:59:38,356 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 1701, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 289, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf hello-interval 65536 


2021-02-03 20:00:06,595 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 1701, in create_interfaces_cfg
    tgen, c_router, interface_data, "interface_config", build=build
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 289, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TP1U1604AMD64/topotests/lib/common_config.py", line 575, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 3: % Unknown command[16]: ip ospf dead-interval 65536 

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16928/artifact/TP1U1604AMD64/ErrorLog/log_topotests.txt

Successful on other platforms/tests
  • Topo tests part 4 on Ubuntu 16.04 i386
  • Debian 9 deb pkg check
  • Topo tests part 3 on Ubuntu 16.04 i386
  • Topo tests part 0 on Ubuntu 18.04 arm8
  • Static analyzer (clang)
  • Ubuntu 18.04 deb pkg check
  • Topo tests part 4 on Ubuntu 18.04 amd64
  • Ubuntu 20.04 deb pkg check
  • Ubuntu 16.04 deb pkg check
  • Topo tests part 2 on Ubuntu 18.04 arm8
  • Topo tests part 2 on Ubuntu 16.04 i386
  • Topo tests part 0 on Ubuntu 18.04 amd64
  • Topo tests part 1 on Ubuntu 18.04 amd64
  • Addresssanitizer topotests part 2
  • Topo tests part 3 on Ubuntu 18.04 arm8
  • Topo tests part 0 on Ubuntu 16.04 i386
  • Topo tests part 4 on Ubuntu 18.04 arm8
  • Addresssanitizer topotests part 1
  • CentOS 7 rpm pkg check
  • Debian 10 deb pkg check
  • Addresssanitizer topotests part 0
  • IPv4 ldp protocol on Ubuntu 18.04
  • Topo tests part 2 on Ubuntu 18.04 amd64
  • Topo tests part 2 on Ubuntu 16.04 amd64
  • Fedora 29 rpm pkg check
  • Topo tests part 1 on Ubuntu 18.04 arm8
  • Topo tests part 3 on Ubuntu 18.04 amd64
  • IPv6 protocols on Ubuntu 18.04
  • Topo tests part 4 on Ubuntu 16.04 amd64
  • Topo tests part 1 on Ubuntu 16.04 i386
  • Debian 8 deb pkg check
  • IPv4 protocols on Ubuntu 18.04
  • Topo tests part 0 on Ubuntu 16.04 amd64
  • Topo tests part 3 on Ubuntu 16.04 amd64

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16928/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1

@mjstapp
Copy link
Contributor Author

mjstapp commented Feb 3, 2021

CI:rerun

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Feb 4, 2021

Continuous Integration Result: SUCCESSFUL

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16935/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-16935/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210203-02-gbb3c6c9f4-0 (missing) -> 7.7-dev-20210203-02-gbb3c6c9f4-0~deb10u1

Mark Stapp added 2 commits February 9, 2021 12:10
No reason for the thread/task cancellation struct to be public:
move it out of the header file. Also add a flags field.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
Extend the thread_cancel_event api so that it's more complete:
look in all the lists of events, including io and timers, for
matching tasks. Add a limited version of the api that only
examines tasks in the event and ready queues.

BGP appears to require the old behavior, so change its macro
to use the more limited cancel api.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/5d484a06930bed5d10a3f629d0bf7d11/raw/05be35dc1ce83bd88cf589d50c4658356effe426/cr_7951_1612893730.diff | git apply

diff --git a/bgpd/bgp_fsm.h b/bgpd/bgp_fsm.h
index bf4966c83..948bd12a8 100644
--- a/bgpd/bgp_fsm.h
+++ b/bgpd/bgp_fsm.h
@@ -31,7 +31,7 @@
 
 #define BGP_TIMER_OFF(T)                                                       \
 	do {                                                                   \
-		THREAD_OFF((T));					       \
+		THREAD_OFF((T));                                               \
 	} while (0)
 
 #define BGP_EVENT_ADD(P, E)                                                    \
@@ -47,17 +47,18 @@
 		thread_cancel_event_ready(bm->master, (P));                    \
 	} while (0)
 
-#define BGP_UPDATE_GROUP_TIMER_ON(T, F)					       \
-	do {								       \
-		if (BGP_SUPPRESS_FIB_ENABLED(peer->bgp) &&		       \
-		    PEER_ROUTE_ADV_DELAY(peer))				       \
-			thread_add_timer_msec(bm->master, (F), peer,	       \
-				(BGP_DEFAULT_UPDATE_ADVERTISEMENT_TIME * 1000),\
-				(T));					       \
-		else							       \
-			thread_add_timer_msec(bm->master, (F), peer,	       \
-					      0, (T));			       \
-	} while (0)							       \
+#define BGP_UPDATE_GROUP_TIMER_ON(T, F)                                        \
+	do {                                                                   \
+		if (BGP_SUPPRESS_FIB_ENABLED(peer->bgp)                        \
+		    && PEER_ROUTE_ADV_DELAY(peer))                             \
+			thread_add_timer_msec(                                 \
+				bm->master, (F), peer,                         \
+				(BGP_DEFAULT_UPDATE_ADVERTISEMENT_TIME         \
+				 * 1000),                                      \
+				(T));                                          \
+		else                                                           \
+			thread_add_timer_msec(bm->master, (F), peer, 0, (T));  \
+	} while (0)
 
 #define BGP_MSEC_JITTER 10
 
diff --git a/lib/thread.c b/lib/thread.c
index b74d0c4a6..b38ac1bd0 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -53,7 +53,7 @@ struct cancel_req {
 };
 
 /* Flags for task cancellation */
-#define THREAD_CANCEL_FLAG_READY     0x01
+#define THREAD_CANCEL_FLAG_READY 0x01
 
 static int thread_timer_cmp(const struct thread *a, const struct thread *b)
 {
@@ -1136,7 +1136,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		return;
 
 	/* First process the ready lists. */
-	frr_each_safe(thread_list, &master->event, t) {
+	frr_each_safe (thread_list, &master->event, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->event, t);
@@ -1145,7 +1145,7 @@ static void cancel_arg_helper(struct thread_master *master,
 		thread_add_unuse(master, t);
 	}
 
-	frr_each_safe(thread_list, &master->ready, t) {
+	frr_each_safe (thread_list, &master->ready, t) {
 		if (t->arg != cr->eventobj)
 			continue;
 		thread_list_del(&master->ready, t);
@@ -1308,7 +1308,7 @@ static void cancel_event_helper(struct thread_master *m, void *arg, int flags)
 
 	cr->flags = flags;
 
-	frr_with_mutex(&m->mtx) {
+	frr_with_mutex (&m->mtx) {
 		cr->eventobj = arg;
 		listnode_add(m->cancel_req, cr);
 		do_thread_cancel(m);

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.

@mjstapp
Copy link
Contributor Author

mjstapp commented Feb 9, 2021

rebased to newer master

@LabN-CI
Copy link
Collaborator

LabN-CI commented Feb 9, 2021

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/7951 a9318a3
Date 02/09/2021
Start 13:05:36
Finish 13:44:57
Run-Time 39:21
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2021-02-09-13:05:36.txt
Log autoscript-2021-02-09-13:06:36.log.bz2
Memory 502 500 425

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Feb 9, 2021

Continuous Integration Result: FAILED

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17026/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topotests Ubuntu 16.04 amd64 part 3: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TP3U1604AMD64-17026/test

Topology Tests failed for Topotests Ubuntu 16.04 amd64 part 3:

2021-02-09 19:36:21,505 ERROR: 'router_json_cmp' failed after 41.43 seconds
2021-02-09 19:36:21,507 ERROR: assert failed at "test_bgp_features/test_bgp_delayopen_dual": BGP session on r2 did not establish a connection with peer
assert Generated JSON diff error report:
  
  > $->ipv4Unicast->peers->192.168.201.2->state: d1 has element with value 'Connect' but in d2 it has value 'Established'

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17026/artifact/TP3U1604AMD64/ErrorLog/log_topotests.txt

Successful on other platforms/tests
  • Fedora 29 rpm pkg check
  • Topotests Ubuntu 18.04 arm8 part 4
  • Addresssanitizer topotests part 9
  • Topotests Ubuntu 16.04 i386 part 5
  • Topotests Ubuntu 16.04 amd64 part 4
  • Topotests Ubuntu 16.04 amd64 part 5
  • Addresssanitizer topotests part 7
  • Topotests Ubuntu 16.04 amd64 part 7
  • Topotests Ubuntu 18.04 amd64 part 7
  • Topotests Ubuntu 18.04 amd64 part 9
  • Topotests Ubuntu 18.04 amd64 part 6
  • Topotests Ubuntu 16.04 amd64 part 0
  • Topotests Ubuntu 18.04 arm8 part 0
  • Topotests Ubuntu 16.04 i386 part 7
  • Addresssanitizer topotests part 0
  • Topotests Ubuntu 18.04 arm8 part 5
  • Addresssanitizer topotests part 5
  • Static analyzer (clang)
  • Addresssanitizer topotests part 4
  • Topotests Ubuntu 18.04 amd64 part 0
  • Topotests Ubuntu 18.04 amd64 part 1
  • Topotests Ubuntu 18.04 amd64 part 4
  • Ubuntu 18.04 deb pkg check
  • Topotests Ubuntu 18.04 arm8 part 3
  • Topotests Ubuntu 16.04 amd64 part 2
  • Addresssanitizer topotests part 1
  • CentOS 7 rpm pkg check
  • Topotests Ubuntu 18.04 amd64 part 2
  • Topotests Ubuntu 16.04 amd64 part 6
  • Topotests Ubuntu 16.04 i386 part 8
  • Topotests Ubuntu 18.04 arm8 part 6
  • IPv4 protocols on Ubuntu 18.04
  • Addresssanitizer topotests part 8
  • Topotests Ubuntu 18.04 arm8 part 1
  • Topotests Ubuntu 18.04 amd64 part 3
  • Topotests Ubuntu 16.04 amd64 part 1
  • IPv6 protocols on Ubuntu 18.04
  • Ubuntu 16.04 deb pkg check
  • Topotests Ubuntu 16.04 i386 part 1
  • Addresssanitizer topotests part 3
  • Addresssanitizer topotests part 6
  • Topotests Ubuntu 18.04 amd64 part 5
  • Topotests Ubuntu 16.04 amd64 part 8
  • Debian 8 deb pkg check
  • Topotests Ubuntu 18.04 arm8 part 8
  • Topotests Ubuntu 16.04 i386 part 9
  • Debian 9 deb pkg check
  • Topotests Ubuntu 16.04 i386 part 3
  • Ubuntu 20.04 deb pkg check
  • Topotests Ubuntu 18.04 arm8 part 2
  • Topotests Ubuntu 16.04 i386 part 2
  • Topotests Ubuntu 18.04 arm8 part 7
  • Topotests Ubuntu 18.04 arm8 part 9
  • Topotests Ubuntu 16.04 amd64 part 9
  • Debian 10 deb pkg check
  • Topotests Ubuntu 16.04 i386 part 0
  • Topotests Ubuntu 18.04 amd64 part 8
  • Topotests Ubuntu 16.04 i386 part 6
  • IPv4 ldp protocol on Ubuntu 18.04
  • Addresssanitizer topotests part 2
  • Topotests Ubuntu 16.04 i386 part 4

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17026/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1

@mjstapp
Copy link
Contributor Author

mjstapp commented Feb 9, 2021

CI:rerun

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17031/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-17031/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.7-dev-20210209-06-ga9318a328-0 (missing) -> 7.7-dev-20210209-06-ga9318a328-0~deb10u1

@donaldsharp donaldsharp merged commit fe914c4 into FRRouting:master Mar 2, 2021
@mjstapp mjstapp deleted the fix_cancel_event branch March 2, 2021 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants