Tomek Mrugalski
293379bf25
[ #1587 ] Added section about processes in security
2021-04-23 14:45:55 -04:00
Tomek Mrugalski
d51bd2f122
[ #1587 ] Added lots of text about security
2021-04-23 14:45:55 -04:00
Francis Dupont
c24b5342bb
[ #1652 ] Restored the right ChangeLog
2021-04-23 20:37:22 +02:00
Francis Dupont
11c1f353c9
[ #1652 ] Changed of by for
2021-04-23 17:28:17 +02:00
Francis Dupont
b58193dc51
[ #1652 ] Addressed last comments before rebase
2021-04-23 17:18:26 +02:00
Francis Dupont
bbb5bd5f24
[ #1652 ] Addressed last comments
2021-04-23 17:17:50 +02:00
Francis Dupont
b179f4dd8b
[ #1652 ] Addressed some comments
2021-04-23 17:15:33 +02:00
Francis Dupont
a111bafc2e
[ #1652 ] Simplified and addressed a corner case
2021-04-23 17:15:33 +02:00
Francis Dupont
10053eb108
[ #1652 ] Almost done
2021-04-23 17:15:33 +02:00
Francis Dupont
1a3b4a2a61
[ #1652 ] Checkpoint: did comments before JSON
2021-04-23 17:15:33 +02:00
Francis Dupont
68cef3e9e6
[ #1652 ] Checkpoint: adding states
2021-04-23 17:15:33 +02:00
Thomas Markwalder
1f449d63dc
[ #1736 ] Fixed indentation
2021-04-23 10:22:19 -04:00
Thomas Markwalder
1a2156023b
[ #1736 ] Corrections to rebase merge.
...
Fixed minor difference overlooked during rebase.
modified:
src/hooks/dhcp/high_availability/ha_service.cc
2021-04-23 09:41:50 -04:00
Thomas Markwalder
1c1bde844f
[ #1736 ] Added ChangeLog entry
2021-04-23 09:02:26 -04:00
Thomas Markwalder
34068ea3bd
[ #1736 ] Additional review comments
...
Cosmetics.
2021-04-23 08:54:32 -04:00
Thomas Markwalder
d52ca3c7a2
[ #1736 ] Updated HA+MT doc in ARM
...
modified:
doc/sphinx/arm/hooks-ha.rst
2021-04-23 08:54:32 -04:00
Thomas Markwalder
861bdcbafa
[ #1736 ] More review comments
...
Cosmetics.
2021-04-23 08:54:32 -04:00
Thomas Markwalder
f6c9db310b
[ #1736 ] Removed unused items from ha_mt_unittest.cc
...
modified:
ha_mt_unittest.cc
2021-04-23 08:54:32 -04:00
Thomas Markwalder
2577106002
[ #1736 ] Addressed initial review comments
...
Nits, cleanup:
src/hooks/dhcp/high_availability/communication_state.*
Use private instead of protected
CommunicationState::clockSkewShouldWarnInternal() - now emits
log message
CommunicationState::clockSkewShouldTerminateInternal() - new,
emits log message
src/hooks/dhcp/high_availability/ha_service.cc
HAService::shouldTerminate() - reworked, pushed log messages
down into CommuncationState methods
src/lib/dhcpsrv/tests/network_state_unittest.cc
Added missing test invocations
2021-04-23 08:54:31 -04:00
Thomas Markwalder
f498527617
[ #1736 ] Made NetworkState thread-safe
...
src/lib/dhcpsrv/network_state.cc
src/lib/dhcpsrv/network_state.h
Added mutex to wrap impl calls.
src/lib/dhcpsrv/tests/network_state_unittest.cc
Added MT test versions
2021-04-23 08:54:31 -04:00
Thomas Markwalder
cfa4c84c3e
[ #1736 ] Added MT unit tests for CommunicationState
...
modified:
src/hooks/dhcp/high_availability/tests/communication_state_unittest.cc
2021-04-23 08:54:31 -04:00
Thomas Markwalder
df8640f872
[ #1736 ] Address race conditions revolving around early listener start
...
Starting the listener before MT mode is applied is problematic.
Also now explicitly stopping the service rather than relying on
destruction order.
src/hooks/dhcp/high_availability/ha_impl.*
HAImpl::startService() - added deferred call to
start HAServic::startClientAndListener()
HAImpl::~HAImpl() - new destructor which explicitly
calls HAService::stopClientAndListener()
src/hooks/dhcp/high_availability/ha_service.*
HAService::HAService() - moved client and listener
instantation here but without listener start
HAService::startClientAndListener() - now only invokes
listener start
src/hooks/dhcp/high_availability/tests/ha_mt_unittest.cc
TEST_F(HAMtServiceTest, multiThreadingStartup) - added call
to startClientAndListener()
2021-04-23 08:54:31 -04:00
Thomas Markwalder
6ea9ac9c34
[ #1736 ] Make HA CommunicationState class thread-safe
...
communication_state.cc
communication_state.h
- Added mutexing to avoid race conditions
2021-04-23 08:54:31 -04:00
Thomas Markwalder
257e8c15f1
[ #1736 ] Avoid HA+MT client socket IfaceMgr registration
...
ha_service.cc
HAService::clientConnectHandler() - don't register socket if
client has its own IOService
2021-04-23 08:54:31 -04:00
Thomas Markwalder
4d19c8bc43
[ #1736 ] Initial commit with HA+MT integration
...
HA+MT fully integrated and functional.
src/hooks/dhcp/high_availability/ha_service.*
HAService - changed client_ from instance to pointer
- added listener_
HAService::startClientAndListener() - new method which
instantiates client_ and listener_ instances based on config,
and starts them
HAService::stopClientAndListener() - new method that stops
client_ and listener_ instances.
HAService::HAService() - invokes startClientAndListener()
HAService::~HAService() - invokes stopClientAndListener()
src/hooks/dhcp/high_availability/tests/Makefile.am
Added ha_mt_unittest.c
src/hooks/dhcp/high_availability/tests/ha_mt_unittest.cc
New file with HA+MT related tests
src/hooks/dhcp/high_availability/tests/ha_service_unittest.cc
Modified tests to ensure use of ST HAService
src/lib/config/cmd_http_listener.h
Added CmdHttpListener commentary
2021-04-23 08:54:31 -04:00
Michal Nowikowski
470e8f00dd
addressed review issues
2021-04-23 12:52:09 +02:00
Michal Nowikowski
165412276c
[ #1822 ] updated release checklist template
2021-04-23 12:03:58 +02:00
Francis Dupont
0618273804
[ #1706 ] Fixed rebase typo
2021-04-21 00:04:07 +02:00
Francis Dupont
4dfd0f3cad
[ #1706 ] Updated init order
2021-04-20 23:27:42 +02:00
Francis Dupont
a208db5be5
[ #1706 ] Made TLS context public
2021-04-20 23:27:42 +02:00
Francis Dupont
3b57bf0101
[ #1706 ] Added s to Return
2021-04-20 23:27:42 +02:00
Francis Dupont
e68c881b02
[ #1706 ] Added negative unit tests
2021-04-20 23:26:27 +02:00
Francis Dupont
bb7e23b000
[ #1706 ] Added doc
2021-04-20 23:26:27 +02:00
Francis Dupont
87d99d829a
[ #1706 ] Checkpoint: code and UT done - todo doc
2021-04-20 23:26:27 +02:00
Francis Dupont
4dcbc1d2fb
[ #1706 ] Checkpoint: todo put in peer config, add UTs
2021-04-20 23:24:57 +02:00
Francis Dupont
0d15b49c77
[ #1706 ] Checkpoint: syntax updated - need UTs?
2021-04-20 23:24:57 +02:00
Andrei Pavel
42f0ce49c0
[ #1814 ] hammer: cwd=tmp to solve permission denied
2021-04-20 13:06:24 +03:00
Andrei Pavel
6d1341ebc0
[ #1814 ] hammer: cwd=tmp to solve permission denied
2021-04-20 12:53:54 +03:00
Andrei Pavel
dc575c84f3
[ #1804 ] add include paths for ext library
...
fixes distcheck on CentOS 7
2021-04-20 11:04:56 +03:00
Andrei Pavel
8fb1ea327b
[ #1814 ] hammer: get pg_hba location automatically
2021-04-20 09:04:42 +03:00
Michal Nowikowski
d69541dacb
[ #1813 ] hammer: add freeradius-client version for ubuntu 20.10
2021-04-19 16:02:31 +02:00
Andrei Pavel
24bb5dc365
[ #1811 ] hammer.py: set timezone in postgres
2021-04-19 15:41:40 +03:00
Andrei Pavel
a15bb66e94
[ #1811 ] hammer.py: set timezone in postgres
2021-04-19 12:42:30 +03:00
Andrei Pavel
71c35e2fb8
[ #1811 ] hammer.py: postgres read only setup
2021-04-19 11:38:26 +03:00
Francis Dupont
e05116f35d
[ #1632 ] Wrapped ChangeLog entry
2021-04-16 20:58:49 +02:00
Andrei Pavel
bf72072c38
[ #1632 ] add ChangeLog entry
2021-04-16 20:57:42 +02:00
Andrei Pavel
e545ae30fe
[ #1632 ] add ChangeLog entry
2021-04-16 20:57:08 +02:00
Francis Dupont
fa0614c73e
[ #1632 ] Updated version dependent stuff
2021-04-16 20:56:08 +02:00
Francis Dupont
3e43932edb
[ #1632 ] Added a comment about the tab: tired to restore it
2021-04-16 20:56:08 +02:00
Francis Dupont
d2135cf4a4
[ #1632 ] Fixed two nits
2021-04-16 20:56:08 +02:00