rtr: Fix incomplete undo after failed table update
Contribution description
This PR restructures rtr_sync_receive_and_store_pdus in order to fully complete an undo operation after a failed update to the prefix or spki table. Currently, changes to the respective tables are not entirely reverted if a single table undo fails. The update and undo logic was moved into separate functions, making rtr_sync_receive_and_store_pdus more comprehensible.
Additionally, this PR fixes a memory leak involving recv_loop_cleanup_args where the references to the PDUs saved temporarily aren't stored properly.
Continuous Integration Result: FAILED
See below for issues. CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/
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: Failed
Ubuntu 20.04 arm8: Failed (click for details)
Make Debug failed for Ubuntu 20.04 arm8: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/U2004ARM8/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
1292 | struct pdu_end_of_data_v0 *eod_pdu = (struct pdu_end_of_data_v0 *)pdu_data;
make[2]: *** [CMakeFiles/rtrlib_static.dir/build.make:232: CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:700: CMakeFiles/rtrlib_static.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Ubuntu 18.04 ppc64le: Failed (click for details)
Make Debug failed for Ubuntu 18.04 ppc64le: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/U1804PPC64LE/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
CMakeFiles/rtrlib.dir/build.make:374: recipe for target 'CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o' failed
make[2]: *** [CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o] Error 1
CMakeFiles/Makefile2:387: recipe for target 'CMakeFiles/rtrlib.dir/all' failed
Makefile:140: recipe for target 'all' failed
make[1]: *** [CMakeFiles/rtrlib.dir/all] Error 2
make: *** [all] Error 2
Ubuntu 18.04 arm8: Failed (click for details)
Make Debug failed for Ubuntu 18.04 arm8: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/U1804ARM8/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
CMakeFiles/rtrlib.dir/build.make:374: recipe for target 'CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o' failed
make[2]: *** [CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o] Error 1
CMakeFiles/Makefile2:387: recipe for target 'CMakeFiles/rtrlib.dir/all' failed
make[1]: *** [CMakeFiles/rtrlib.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
OpenBSD 7 amd64: Failed (click for details)
Make Debug failed for OpenBSD 7 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/OBSD6AMD64/ErrorLog/log_make_debug.txt)
[ 1%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr_mgr.c.o
warning: unknown warning option '-Wfree-nonheap-object'; did you mean '-Wsequence-point'? [-Wunknown-warning-option]
warning: unknown warning option '-Werror=cast-function-type'; did you mean '-Werror=bad-function-cast'? [-Wunknown-warning-option]
2 warnings generated.
[ 3%] Building C object CMakeFiles/rtrlib.dir/rtrlib/lib/utils.c.o
warning: unknown warning option '-Wfree-nonheap-object'; did you mean '-Wsequence-point'? [-Wunknown-warning-option]
warning: unknown warning option '-Werror=cast-function-type'; did you mean '-Werror=bad-function-cast'? [-Wunknown-warning-option]
2 warnings generated.
[ 4%] Building C object CMakeFiles/rtrlib.dir/rtrlib/lib/alloc_utils.c.o
Debian 11 amd64: Failed (click for details)
Make Debug failed for Debian 11 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/DEB11AMD64/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
1292 | struct pdu_end_of_data_v0 *eod_pdu = (struct pdu_end_of_data_v0 *)pdu_data;
make[2]: *** [CMakeFiles/rtrlib_static.dir/build.make:251: CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:719: CMakeFiles/rtrlib_static.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
FreeBSD 12 amd64: Failed (click for details)
Make Debug failed for FreeBSD 12 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/FBSD12AMD64/ErrorLog/log_make_debug.txt)
[ 1%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr_mgr.c.o
warning: unknown warning option '-Wfree-nonheap-object'; did you mean '-Wsequence-point'? [-Wunknown-warning-option]
warning: unknown warning option '-Werror=cast-function-type'; did you mean '-Werror=bad-function-cast'? [-Wunknown-warning-option]
2 warnings generated.
[ 3%] Building C object CMakeFiles/rtrlib.dir/rtrlib/lib/utils.c.o
warning: unknown warning option '-Wfree-nonheap-object'; did you mean '-Wsequence-point'? [-Wunknown-warning-option]
warning: unknown warning option '-Werror=cast-function-type'; did you mean '-Werror=bad-function-cast'? [-Wunknown-warning-option]
2 warnings generated.
[ 4%] Building C object CMakeFiles/rtrlib.dir/rtrlib/lib/alloc_utils.c.o
Debian 10 amd64: Failed (click for details)
Make Debug failed for Debian 10 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/DEB10AMD64/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
make[2]: *** [CMakeFiles/rtrlib.dir/build.make:232: CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:393: CMakeFiles/rtrlib.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
FreeBSD 11 amd64: Failed (click for details)
Make Debug failed for FreeBSD 11 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/FBSD11AMD64/ErrorLog/log_make_debug.txt)
[ 1%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr_mgr.c.o
warning: unknown warning option '-Wfree-nonheap-object'; did you mean '-Wsequence-point'? [-Wunknown-warning-option]
warning: unknown warning option '-Werror=cast-function-type'; did you mean '-Werror=bad-function-cast'? [-Wunknown-warning-option]
2 warnings generated.
[ 3%] Building C object CMakeFiles/rtrlib.dir/rtrlib/lib/utils.c.o
warning: unknown warning option '-Wfree-nonheap-object'; did you mean '-Wsequence-point'? [-Wunknown-warning-option]
warning: unknown warning option '-Werror=cast-function-type'; did you mean '-Werror=bad-function-cast'? [-Wunknown-warning-option]
2 warnings generated.
[ 4%] Building C object CMakeFiles/rtrlib.dir/rtrlib/lib/alloc_utils.c.o
Redhat 8 amd64: Failed (click for details)
Make Debug failed for Redhat 8 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/REDHAT8/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
make[2]: *** [CMakeFiles/rtrlib.dir/build.make:258: CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:469: CMakeFiles/rtrlib.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Fedora 35 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 35 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/FEDORA35/ErrorLog/log_make_test_debug.txtNetBSD 9 amd64: Failed (click for details)
Make Debug failed for NetBSD 9 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/NBSD7AMD64/ErrorLog/log_make_debug.txt)
[ 21%] Building C object CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function 'rtr_sync_receive_and_store_pdus':
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
*** Error code 1
Stop.
make[2]: stopped in /home/ci/cibuild.411/rtrlib-source
*** Error code 1
Stop.
make[1]: stopped in /home/ci/cibuild.411/rtrlib-source
Redhat 9 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 9 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/RH9BUILD/ErrorLog/log_make_test_debug.txtFedora 31 amd64: Failed (click for details)
Make Debug failed for Fedora 31 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/FED31BUILD/ErrorLog/log_make_debug.txt)
[ 21%] Building C object CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
1292 | struct pdu_end_of_data_v0 *eod_pdu = (struct pdu_end_of_data_v0 *)pdu_data;
make[2]: *** [CMakeFiles/rtrlib_static.dir/build.make:252: CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:639: CMakeFiles/rtrlib_static.dir/all] Error 2
make: *** [Makefile:161: all] Error 2
Fedora 29 amd64: Failed (click for details)
Make Debug failed for Fedora 29 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/FEDORA29AMD64/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
make[2]: *** [CMakeFiles/rtrlib.dir/build.make:232: CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:393: CMakeFiles/rtrlib.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Ubuntu 18.04 amd64: Failed (click for details)
Make Debug failed for Ubuntu 18.04 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/U1804AMD64/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
CMakeFiles/rtrlib.dir/build.make:374: recipe for target 'CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o' failed
make[2]: *** [CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o] Error 1
CMakeFiles/Makefile2:387: recipe for target 'CMakeFiles/rtrlib.dir/all' failed
Makefile:140: recipe for target 'all' failed
make[1]: *** [CMakeFiles/rtrlib.dir/all] Error 2
make: *** [all] Error 2
Ubuntu 18.04 i386: Failed (click for details)
Make Debug failed for Ubuntu 18.04 i386: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/U18I386/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
CMakeFiles/rtrlib_static.dir/build.make:374: recipe for target 'CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o' failed
make[2]: *** [CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o] Error 1
CMakeFiles/Makefile2:451: recipe for target 'CMakeFiles/rtrlib_static.dir/all' failed
make[1]: *** [CMakeFiles/rtrlib_static.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
CentOS 7 amd64: Failed (click for details)
Make Debug failed for CentOS 7 amd64: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/CENTOS7AMD64/ErrorLog/log_make_debug.txt)
[ 27%] Building C object CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
make[2]: *** [CMakeFiles/rtrlib.dir/rtrlib/rtr/packets.c.o] Error 1
make[1]: *** [CMakeFiles/rtrlib.dir/all] Error 2
make: *** [all] Error 2
Ubuntu 18.04 arm7: Failed (click for details)
Make Debug failed for Ubuntu 18.04 arm7: (see full Make Debug log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-411/artifact/U1804ARM7/ErrorLog/log_make_debug.txt)
[ 19%] Building C object CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c: In function rtr_sync_receive_and_store_pdus:
/home/ci/cibuild.411/rtrlib-source/rtrlib/rtr/packets.c:1292:4: error: a label can only be part of a statement and a declaration is not a statement
CMakeFiles/rtrlib_static.dir/build.make:374: recipe for target 'CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o' failed
make[2]: *** [CMakeFiles/rtrlib_static.dir/rtrlib/rtr/packets.c.o] Error 1
CMakeFiles/Makefile2:451: recipe for target 'CMakeFiles/rtrlib_static.dir/all' failed
make[1]: *** [CMakeFiles/rtrlib_static.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Continuous Integration Result: FAILED
See below for issues. CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/
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: Failed
Ubuntu 20.04 arm8: Failed (click for details)
__Unittests (make test) failed for Ubuntu 20.04 arm8__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/U2004ARM8/ErrorLog/log_make_test_debug.txtUbuntu 18.04 arm8: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm8__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/U1804ARM8/ErrorLog/log_make_test_debug.txtUbuntu 18.04 ppc64le: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 ppc64le__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/U1804PPC64LE/ErrorLog/log_make_test_debug.txtUbuntu 18.04 amd64: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/U1804AMD64/ErrorLog/log_make_test_debug.txtDebian 11 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 11 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/DEB11AMD64/ErrorLog/log_make_test_debug.txtFreeBSD 12 amd64: Failed (click for details)
__Unittests (make test) failed for FreeBSD 12 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/FBSD12AMD64/ErrorLog/log_make_test_debug.txtOpenBSD 7 amd64: Failed (click for details)
__Unittests (make test) failed for OpenBSD 7 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/OBSD6AMD64/ErrorLog/log_make_test_debug.txtRedhat 8 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 8 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/REDHAT8/ErrorLog/log_make_test_debug.txtFreeBSD 11 amd64: Failed (click for details)
__Unittests (make test) failed for FreeBSD 11 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/FBSD11AMD64/ErrorLog/log_make_test_debug.txtNetBSD 9 amd64: Failed (click for details)
__Unittests (make test) failed for NetBSD 9 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/NBSD7AMD64/ErrorLog/log_make_test_debug.txtFedora 35 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 35 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/FEDORA35/ErrorLog/log_make_test_debug.txtRedhat 9 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 9 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/RH9BUILD/ErrorLog/log_make_test_debug.txtFedora 31 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 31 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/FED31BUILD/ErrorLog/log_make_test_debug.txtDebian 10 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 10 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/DEB10AMD64/ErrorLog/log_make_test_debug.txtUbuntu 18.04 arm7: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm7__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/U1804ARM7/ErrorLog/log_make_test_debug.txtFedora 29 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 29 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/FEDORA29AMD64/ErrorLog/log_make_test_debug.txtCentOS 7 amd64: Failed (click for details)
__Unittests (make test) failed for CentOS 7 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/CENTOS7AMD64/ErrorLog/log_make_test_debug.txtUbuntu 18.04 i386: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 i386__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-412/artifact/U18I386/ErrorLog/log_make_test_debug.txt
test_live_validation and test_dynamic_groups seem to fail for rtrlib:master, too (gcc 11.4.0, Ubuntu 22.04, arm64)
edit: rpki-validator.realmv6.org refuses connection, seems to be down
thanks @carl-tud. yes, rpki-validator.realmv6.org is down. i will check later.
brief update: we will set up a new validator, but it will take some days due to internal clearance procedures. @Nimuedaertya will take care of this.
@carl-tud can you rebase? the tests should pass now (see #282).
Continuous Integration Result: FAILED
See below for issues. CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/
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: Failed
Fedora 35 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 35 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/FEDORA35/ErrorLog/log_make_test_debug.txtUbuntu 18.04 arm7: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm7__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/U1804ARM7/ErrorLog/log_make_test_debug.txtRedhat 8 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 8 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/REDHAT8/ErrorLog/log_make_test_debug.txtFedora 29 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 29 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/FEDORA29AMD64/ErrorLog/log_make_test_debug.txtNetBSD 9 amd64: Failed (click for details)
__Unittests (make test) failed for NetBSD 9 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/NBSD7AMD64/ErrorLog/log_make_test_debug.txtUbuntu 18.04 i386: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 i386__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/U18I386/ErrorLog/log_make_test_debug.txtDebian 12 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 12 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/D12AMD64/ErrorLog/log_make_test_debug.txtUbuntu 20.04 arm8: Failed (click for details)
__Unittests (make test) failed for Ubuntu 20.04 arm8__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/U2004ARM8/ErrorLog/log_make_test_debug.txtUbuntu 18.04 arm8: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm8__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/U1804ARM8/ErrorLog/log_make_test_debug.txtOpenBSD 7 amd64: Failed (click for details)
__Unittests (make test) failed for OpenBSD 7 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/OBSD6AMD64/ErrorLog/log_make_test_debug.txtUbuntu 18.04 amd64: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/U1804AMD64/ErrorLog/log_make_test_debug.txtCentOS 7 amd64: Failed (click for details)
__Unittests (make test) failed for CentOS 7 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/CENTOS7AMD64/ErrorLog/log_make_test_debug.txtFedora 31 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 31 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/FED31BUILD/ErrorLog/log_make_test_debug.txtRedhat 9 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 9 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/RH9BUILD/ErrorLog/log_make_test_debug.txtDebian 11 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 11 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/DEB11AMD64/ErrorLog/log_make_test_debug.txtUbuntu 18.04 ppc64le: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 ppc64le__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/U1804PPC64LE/ErrorLog/log_make_test_debug.txtFreeBSD 12 amd64: Failed (click for details)
__Unittests (make test) failed for FreeBSD 12 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/FBSD12AMD64/ErrorLog/log_make_test_debug.txtFreeBSD 11 amd64: Failed (click for details)
__Unittests (make test) failed for FreeBSD 11 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/FBSD11AMD64/ErrorLog/log_make_test_debug.txtDebian 10 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 10 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-421/artifact/DEB10AMD64/ErrorLog/log_make_test_debug.txt
CI:rerun
CI:rerun
CI:rerun
CI:rerun
CI:rerun
Continuous Integration Result: FAILED
Test incomplete. See below for issues. CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-424/
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: Incomplete
Fedora 35 amd64: Incomplete
(check logs for details)Ubuntu 18.04 i386: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 i386__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-424/artifact/U18I386/ErrorLog/log_make_test_debug.txtUbuntu 18.04 arm7: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm7__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-424/artifact/U1804ARM7/ErrorLog/log_make_test_debug.txtUbuntu 18.04 ppc64le: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 ppc64le__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-424/artifact/U1804PPC64LE/ErrorLog/log_make_test_debug.txtSuccessful on other platforms/tests
- NetBSD 9 amd64
- Redhat 8 amd64
- Fedora 29 amd64
- Debian 12 amd64
- Ubuntu 18.04 amd64
- OpenBSD 7 amd64
- Ubuntu 20.04 arm8
- Ubuntu 18.04 arm8
- CentOS 7 amd64
- Redhat 9 amd64
- Fedora 31 amd64
- Debian 10 amd64
- FreeBSD 12 amd64
- Debian 11 amd64
- FreeBSD 11 amd64
the results of the CI tests are very confusing. rerunning the CI leads to different results. sometimes the live test_live_validation and test_dynamic_groups fail, sometimes they pass. if make test outside of the CI, the tests always pass.
we should have stable CI tests before merging.
Continuous Integration Result: FAILED
Test incomplete. See below for issues. CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/
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: Incomplete
Redhat 8 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 8 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/REDHAT8/ErrorLog/log_make_test_debug.txtFedora 29 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 29 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/FEDORA29AMD64/ErrorLog/log_make_test_debug.txtRedhat 9 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 9 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/RH9BUILD/ErrorLog/log_make_test_debug.txtFedora 31 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 31 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/FED31BUILD/ErrorLog/log_make_test_debug.txtCentOS 7 amd64: Failed (click for details)
__Unittests (make test) failed for CentOS 7 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/CENTOS7AMD64/ErrorLog/log_make_test_debug.txtOpenBSD 7 amd64: Failed (click for details)
__Unittests (make test) failed for OpenBSD 7 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/OBSD6AMD64/ErrorLog/log_make_test_debug.txtUbuntu 18.04 arm7: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm7__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/U1804ARM7/ErrorLog/log_make_test_debug.txtUbuntu 18.04 ppc64le: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 ppc64le__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/U1804PPC64LE/ErrorLog/log_make_test_debug.txtUbuntu 20.04 arm8: Failed (click for details)
__Unittests (make test) failed for Ubuntu 20.04 arm8__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/U2004ARM8/ErrorLog/log_make_test_release.txtUbuntu 18.04 arm8: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm8__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/U1804ARM8/ErrorLog/log_make_test_release.txtDebian 11 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 11 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/DEB11AMD64/ErrorLog/log_make_test_debug.txtFreeBSD 12 amd64: Failed (click for details)
__Unittests (make test) failed for FreeBSD 12 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/FBSD12AMD64/ErrorLog/log_make_test_debug.txtDebian 10 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 10 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/DEB10AMD64/ErrorLog/log_make_test_debug.txtFreeBSD 11 amd64: Failed (click for details)
__Unittests (make test) failed for FreeBSD 11 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-425/artifact/FBSD11AMD64/ErrorLog/log_make_test_debug.txtFedora 35 amd64: Incomplete
(check logs for details)Successful on other platforms/tests
- NetBSD 9 amd64
- Debian 12 amd64
- Ubuntu 18.04 i386
- Ubuntu 18.04 amd64
my suggestion is that @Nimuedaertya creates a dummy PR that doesn't include any code changes to better understand what is going on with the CI.
Continuous Integration Result: FAILED
Test incomplete. See below for issues. CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/
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: Incomplete
Debian 12 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 12 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/D12AMD64/ErrorLog/log_make_test_debug.txtFedora 31 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 31 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/FED31BUILD/ErrorLog/log_make_test_debug.txtRedhat 9 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 9 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/RH9BUILD/ErrorLog/log_make_test_debug.txtUbuntu 18.04 amd64: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/U1804AMD64/ErrorLog/log_make_test_debug.txtUbuntu 18.04 i386: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 i386__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/U18I386/ErrorLog/log_make_test_debug.txtFedora 29 amd64: Failed (click for details)
__Unittests (make test) failed for Fedora 29 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/FEDORA29AMD64/ErrorLog/log_make_test_debug.txtCentOS 7 amd64: Failed (click for details)
__Unittests (make test) failed for CentOS 7 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/CENTOS7AMD64/ErrorLog/log_make_test_debug.txtUbuntu 18.04 arm7: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm7__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/U1804ARM7/ErrorLog/log_make_test_debug.txtUbuntu 18.04 ppc64le: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 ppc64le__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/U1804PPC64LE/ErrorLog/log_make_test_debug.txtUbuntu 20.04 arm8: Failed (click for details)
__Unittests (make test) failed for Ubuntu 20.04 arm8__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/U2004ARM8/ErrorLog/log_make_test_release.txtUbuntu 18.04 arm8: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm8__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/U1804ARM8/ErrorLog/log_make_test_release.txtOpenBSD 7 amd64: Failed (click for details)
__Unittests (make test) failed for OpenBSD 7 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/OBSD6AMD64/ErrorLog/log_make_test_debug.txtDebian 10 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 10 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/DEB10AMD64/ErrorLog/log_make_test_debug.txtDebian 11 amd64: Failed (click for details)
__Unittests (make test) failed for Debian 11 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/DEB11AMD64/ErrorLog/log_make_test_debug.txtFreeBSD 12 amd64: Failed (click for details)
__Unittests (make test) failed for FreeBSD 12 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/FBSD12AMD64/ErrorLog/log_make_test_debug.txtRedhat 8 amd64: Failed (click for details)
__Unittests (make test) failed for Redhat 8 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/REDHAT8/ErrorLog/log_make_test_debug.txtFreeBSD 11 amd64: Failed (click for details)
__Unittests (make test) failed for FreeBSD 11 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/FBSD11AMD64/ErrorLog/log_make_test_debug.txtFedora 35 amd64: Incomplete
(check logs for details)NetBSD 9 amd64: Failed (click for details)
__Unittests (make test) failed for NetBSD 9 amd64__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-426/artifact/NBSD7AMD64/ErrorLog/log_make_test_debug.txt
At least for me, locally, test_live_validation and test_dynamic_groups are both finishing with exit code 0. When I tried running these tests yesterday (23/11/2023) evening, they failed because of an error PDU from the cache server (code 2, custom msg was something like "Running initial validation")
When I tried running these tests yesterday (23/11/2023) evening, they failed because of an error PDU from the cache server (code 2, custom msg was something like "Running initial validation")
yes, the validator was not running stable. we fixed this today morning.
CI:rerun
Continuous Integration Result: FAILED
Test incomplete. See below for issues. CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-432/
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: Incomplete
Ubuntu 18.04 ppc64le: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 ppc64le__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-432/artifact/U1804PPC64LE/ErrorLog/log_make_test_debug.txtUbuntu 18.04 arm7: Failed (click for details)
__Unittests (make test) failed for Ubuntu 18.04 arm7__ see Unittest log at https://ci1.netdef.org/browse/RPKI-RTRLIBPR-432/artifact/U1804ARM7/ErrorLog/log_make_test_debug.txtFedora 35 amd64: Incomplete
(check logs for details)Successful on other platforms/tests
- Fedora 31 amd64
- Redhat 9 amd64
- Debian 10 amd64
- FreeBSD 11 amd64
- Fedora 29 amd64
- CentOS 7 amd64
- Ubuntu 18.04 amd64
- Ubuntu 18.04 i386
- FreeBSD 12 amd64
- Debian 11 amd64
- OpenBSD 7 amd64
- NetBSD 9 amd64
- Redhat 8 amd64
- Ubuntu 20.04 arm8
- Ubuntu 18.04 arm8
- Debian 12 amd64
@carl-tud what is the status of this PR?
The changes I‘ve made for this PR are included in #285 . This PR was just to get some of the changes not directly related ASPA, but the update logic out before the final ASPA PR. Do you think we should still merge this PR first?
@carl-tud as you prefer :-) Ideally we would get in these changes unrelated to ASPA with a separate PR. If you don't want to bother it with and spend additional time with merge conflicts, etc, closing it and getting the changes in with #285 is also fine. We should ensure that the fixes do not get lost in the changelog in that case.
@carl-tud as you prefer :-) Ideally we would get in these changes unrelated to ASPA with a separate PR. If you don't want to bother it with and spend additional time with merge conflicts, etc, closing it and getting the changes in with #285 is also fine. We should ensure that the fixes do not get lost in the changelog in that case.
Sorry for the late reply, in theory I'd be totally okay with that, but, reading #285 it looks like ASPA is going to be introduced as part of a new version (with potentially source-breaking changes), so this might be needed as bugfix for those temporarily staying on the older version..?
CI:rerun
CI:rerun
CI:rerun
edit: somehow didnt work