Paul Lorenz
4d05c59df0
Run gofmt -w -s
2022-08-22 14:17:43 -04:00
Paul Lorenz
77bce93e85
Refactor events subsystem. Add link events. Fixes openziti/fabric#415
...
Previously we often had two sets of events, one in the network
package, and then another in the events package. We now only
have one, in the events package. Events now have a public API,
with minimal deps. There's an implementation package which has
the dependencies. This allows the network package to generate
events, without have a circular dependency on the events
implementation package.
2022-07-15 18:31:52 -04:00
ekoby
0aef9099dc
add backtrace ( #445 )
2022-07-14 15:34:16 -04:00
Paul Lorenz
3d49022f4a
Update for foundation changes
2022-07-01 14:29:12 -04:00
Paul Lorenz
b26fcf8909
Fix copyright
2022-06-29 16:59:46 -04:00
Paul Lorenz
547d637de1
Improve circuit inspect. Fixes for various races detected by race detector
2022-06-21 14:44:30 -04:00
tburtchell
cf28ad7edc
Metrics via inspect ( #409 )
...
* Adding inspect handling for 'metrics'
* Adding prometheus metric event format
2022-05-31 16:03:04 -04:00
Paul Lorenz
4dc6596e7a
Fix pool metrics for xg/link dials. Fixes openziti/fabric#404
2022-05-20 10:31:43 -04:00
Paul Lorenz
e53a5e6fc5
Add pool metrics
2022-05-13 13:49:42 -04:00
Paul Lorenz
5d2febb7b7
Fix conditional
2022-05-12 23:21:10 -04:00
Paul Lorenz
1957ad4603
Merge pull request openziti/fabric#396 from openziti/fix-link-dial-queue-wait
...
Link dial should not wait if dial queue is full. Fixes openziti/fabric#395
2022-05-12 15:45:10 -04:00
Cam Otts
0c7ff2bd5e
threaded a timout through fabric ( #356 )
...
* threaded a timout through fabric
* updated default timeout
* pr comments
* fix timing
* applied pr comments
* removed one more utc
* updated to time until and conditionally add deadline
* signed commit
* small proto change
* regenerate pb
* missed extra import
2022-05-12 14:32:18 -05:00
Paul Lorenz
9285355d72
Link dial should not wait if dial queue is full. Fixes openziti/fabric#395
2022-05-12 15:31:24 -04:00
Paul Lorenz
f51ebf40f4
Fix route related deadlock issues. Fixes openziti/fabric#393
...
If we can't queue to dial pool, don't block, fail right away
Ensure we don't write response in reader go-routine
Add timeouts on response writes, so they don't block indefinitely
2022-05-12 14:08:04 -04:00
Paul Lorenz
8dfdce7fab
Update to current protobuf library
2022-05-10 14:54:00 -04:00
Paul Lorenz
69bc2fb0cc
Update to transport/v2
2022-05-10 11:58:41 -04:00
Paul Lorenz
998a990121
Add inspect variant which includes goroutines related to xgress
2022-05-02 16:33:20 -04:00
Paul Lorenz
18539faf87
Add dest type to routing so we don't need to overload ids
2022-04-27 11:20:02 -04:00
Paul Lorenz
e21d41df05
Notify controller of invalid destinations in routes.
...
Allow xgress and links to be destinguished by ID suffix
If a link destination is missing, send a link fault
Add forget-link router debug agent op to allow testing invalid
destinations
2022-04-26 22:16:58 -04:00
Paul Lorenz
6384fae4f6
Fix race condition where link could be closed before being added to registry
2022-04-26 09:53:18 -04:00
Paul Lorenz
e2d29d3f07
Rework model for circuit inspections. Add inspect support back to mgmt channel
2022-04-19 10:38:23 -04:00
tburtchell
03040f31fc
Adding hearbeat message handler to router ( #353 )
...
* Adding hearbeat message handler to router
Co-authored-by: Tod Burtchell <tod.burtchell@netfoundry.io >
Co-authored-by: ziti-ci <ziti-ci@netfoundry.io >
2022-04-11 13:29:58 -04:00
Paul Lorenz
c3538f6781
update deps and remove quick references
2022-03-24 13:33:24 -04:00
Paul Lorenz
84cfedf482
Add circuit inspection. Move ctrl handler pools to use goroutines.Pool
2022-03-24 13:32:56 -04:00
Cam Otts
405492ce92
Route error codes ( #335 )
...
* Initial work on adding route error codes to route responses
* updated messaging
* Split out terminator incrementors
Added handling for Service Errors
Added initial steps at deleting misbehaving terminators
* Added test for destroying and settin gprecedence on terminators
Added handling for terminator errors in routing
* inverted error switch
* cleanup for pr
* PR comments
* refactored conditional printing to account for single node paths that don't have links
* added error log when route status
* added another misconfigured error
Co-authored-by: Paul Lorenz <paul.lorenz@netfoundry.io >
2022-03-23 12:51:49 -05:00
tburtchell
2f8a608c4c
Replacing link 'type' with 'protocol' and 'costTags' ( #336 )
...
* Replacing link 'type' with 'protocol' and 'costTags'
2022-03-22 09:06:02 -04:00
Paul Lorenz
2b7db10913
Allow routers more control over link management ( #318 )
...
* Allow routers more control over link management
2022-03-07 12:22:17 -05:00
Paul Lorenz
5fc81fbf18
Update to use channel trace
2022-02-28 15:39:27 -05:00
Paul Lorenz
e9133f4a94
Update router side of control channel to use channel library
2022-01-28 12:38:26 -05:00
Andrew Martinez
58f2268f35
add doc
2022-01-27 11:17:27 -05:00
Andrew Martinez
9df03f8d03
moves config update from edge to fabric
2022-01-27 11:06:07 -05:00
Paul Lorenz
e781e3c713
Update control channel to new channel API
2022-01-19 08:15:33 -05:00
Paul Lorenz
f1faeb944c
Remove redundant log message and fix spelling. Fixes openziti/fabric#271
2021-11-15 16:52:40 -05:00
Paul Lorenz
f5e53853dd
Fix sessionId -> circuit. Fix nil reference on non-egress routes
2021-08-10 13:16:57 -04:00
ziti-ci
23a9da54e7
Allow injecting context into path creation/establishment operations
2021-08-06 16:34:57 -04:00
Paul Lorenz
21c261fb19
Rename session -> circuit
2021-08-04 13:17:39 -04:00
Paul Lorenz
cb70e33fa0
Improve link logging. Add destination id to xlink
2021-07-30 10:18:45 -04:00
Paul Lorenz
3f4b4486ed
Logging tweaks. Give close grace period on unroute if end of session hasn't arrived yet
2021-07-15 13:11:30 -04:00
Michael Quigley
62b35848ed
Wire router ids through both the dialer and listener side of xlink. ( #238 )
2021-05-14 15:02:40 -04:00
Michael Quigley
fa9da87419
Refactor ctrl_pb.Dial to support both LinkId and RouterId. ( #238 )
2021-05-14 14:35:12 -04:00
Michael Quigley
11fdf96492
Dial dwell time. ( #203 )
2021-03-05 13:25:59 -05:00
Michael Quigley
010b320617
Sleep on dial. ( #173 )
2021-03-04 15:14:01 -05:00
Paul Lorenz
2b283dcdce
Cleanup go-routines on shutdown. Allow Xtrl instances to contribute trace decoders
2021-02-17 20:22:14 -05:00
Paul Lorenz
0021aa1f2b
Set reply-to on route message responses
2021-02-11 16:49:12 -05:00
Michael Quigley
16f50a5427
Lint.
2021-02-10 10:31:53 -05:00
Michael Quigley
aa2d7315a4
Better terminator dial error reporting. ( #168 )
2021-02-10 10:25:24 -05:00
Michael Quigley
be69649bf1
Attempt encoding support in the route plumbing. Allows the route sender to more accurately handle unhappy scenarios. ( #168 ) Fix for 'UpdateTerminatorRequestType' typo in protobufs. ( #176 ).
2021-02-09 13:36:23 -05:00
Michael Quigley
e86f60dd68
Unhappy path unroute/cleanup improvements. Logging improvements. ( #168 )
2021-02-09 11:38:26 -05:00
Michael Quigley
cb7a561a39
Up and operational with a version of parallel routing. ( #168 )
2021-02-08 11:50:57 -05:00
Michael Quigley
43c90c55ed
Use ctrl_msg.RouteResultType as the new route result message. ( #168 )
2021-02-05 11:49:00 -05:00