-
Notifications
You must be signed in to change notification settings - Fork 30
♻️✨adding nodeports support to dynamic-sidecar #2509
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
Merged
Merged
Changes from 185 commits
Commits
Show all changes
277 commits
Select commit
Hold shift + click to select a range
bae45d3
there seems to be an issue elsewere
c099f60
fixed issue when booting
28ce8dd
enabling debug boot
ac37f2b
injecting pahts to all containers
c2a7264
all declared volumes are removed as well
165172a
fixing dy-sidecar unit tests
f7a66d8
dv2 added volume creation and removal for dy sidecar
c9b4815
forarding pgsettings to dybamic-sidecar
d301d6e
setting refactoring
840a601
volumes are properly mounted on the spec
d530d2b
adding additional setup elements
2c79d1d
starting direcotry watcher
2dbbd56
adding module to properly manage volumes
3657390
fixed some tests
c81650d
created new directory
63c5239
Merge remote-tracking branch 'upstream/master' into adding-nodeports
40971e3
using correct password
94132ec
better error message
fadeb23
codestyle
5cc7fe6
extended tests for the API
792e969
refactor renames
4ff580a
attached nodeports pulling
cde9880
adding permissin changes
98ba781
semplified interface for saving and restoring the service state
4f50f4f
using new api interface
3e53aca
is no longer set to fail
732119c
refactored
4648a15
raising error now
6947fcf
fixing tests
47ead54
added data_manager integration
899a7f7
added tests for mounted_fs
749e30b
added missing env var and refactor
7f1f337
fixed API call to save and restore state
1447f24
pylint
99cf768
Merge remote-tracking branch 'upstream/master' into adding-nodeports
cd323cb
fixing tests
0d3038d
fix mounted_fs and volumes generated
44d0021
refactored volume resolve and mounting
3b042a2
added missing env paths
fcbc481
fixed an issue with initialization
d4011f7
fixed issues with permission changing
e2ae770
added more comments
061abd7
rename refactor
07b42b1
changed debug message
5a549a0
minor refactor
69d6ec3
added utility to run on threadppols
28fcb2c
using not blocking calls
b49fead
adds API for nodeports push and pull
79a6b1f
fix codestyle
f8a5443
updated opeanpi specs for new entrypoint
25d1d2b
updated webserver ospeanpi spec
63e2e02
always return size in bytes of the trasnferred data
82fc27d
updated openapi.json
f37c6ed
exposed retrieve to frontend
eb1c914
Merge remote-tracking branch 'upstream/master' into adding-nodeports
ba362be
ensures clean shutdown in call cases
428dddc
split nodeports from state saving
47f61f2
fixing codestyle
8205e87
refactor
42f4ea9
codeclimate
828e762
codestyle
b7205dc
fixed version parsing
c518171
Feature/dynamic retrieve (#8)
odeimaiz 7833b8f
bumped version
3c55459
bumped service version
6daf8ed
composing correct url
9584bc0
version bumped
009811f
revert change
70e9bbe
Merge remote-tracking branch 'upstream/master' into adding-nodeports
b029168
computeServiceV2RetrieveUrl (#9)
odeimaiz 4786e1e
updated openaipi specs
6c48725
updated requirements
4f5e041
added new webserver entrypoint
fb4586e
added retrieve api to director-v2
087a107
fixed director-v2 tests
f4f2607
Merge remote-tracking branch 'upstream/master' into adding-nodeports
81457f5
fix bug
4b1e584
inverted oder
d67aa15
sending in the correct format
bfd853a
Merge remote-tracking branch 'upstream/master' into adding-nodeports
72d828c
faster booting of dy-sidecar
7d4de28
removed todos
9c49828
update policy timeout
1c7b617
Merge remote-tracking branch 'upstream/master' into adding-nodeports
b0b1d79
fixed depenencies after merge
be5c20c
using appropriate images for testing
dd8171c
pylint
35e19f6
storage is now connected for this test
f2733cf
fix status url
9f24cdf
fixed port forwarding issues
4b962ca
fixed broken test
2d97af7
removed dangerous code
678162b
updated openapi.json
63b9315
minor refactor
9071db6
further refactoring
c11e4fa
refactor
b9eec99
further refactoring
3ee22e0
shared functions refactored
72ba380
refactor
16353e6
added save_to option to datamanager.pull
c2847de
refactor
16231a8
added dependencies for testing
900e754
aded nodeports integration test
7dc8173
Merge remote-tracking branch 'upstream/master' into adding-nodeports
8be09cc
removed unsued plugin
cfe613e
trying to fix test in CI
54e53a8
Merge remote-tracking branch 'upstream/master' into adding-nodeports
3fa89c9
refactor API interface
6e6fb6c
updated API inteface after change
06f6c52
moving to fixure
cd22dbe
added more information
670854a
using nodeports execption
ab08489
rename function
7789141
mocked api removed, no requests are fowarded here
9095c96
refactor
c30fae7
renaming function
08800da
updated docstring
dc59515
updated description
99666d3
update comment
75556ea
fix comment
ed3e9e1
Merge remote-tracking branch 'upstream/master' into adding-nodeports
0e620fc
updated _meta.py
fba79b4
revert to old version
11ad5a5
adding watchdog
49be5c8
added missing requirement
0fa5782
added missing requirement
e5f11bc
removed test uncertanty
0f61c45
enhanced test slightly
5488edd
fixed broken endpoint
63f51b6
adding some debug messages
c3c90fa
updated openapi specification
ab9ea54
expadning fixture to support multiple versions
2d77b37
added better description
6824a12
typing
b44a6f7
removed comment
aa45576
Merge remote-tracking branch 'upstream/master' into adding-nodeports
4db40c1
added timeouts
407df77
using ByteSize
0141f50
renamed
3797e42
renmed save_state to can_save
579424a
reverting change
26a2ffe
more renaming
f045dd6
renaming restore
52a87e9
renamed endpoints
cba2b5a
updated openapi.json
8248a1a
@sanderegg fixing in all Dockerfiles
0c6e9c9
migrated to dataclass
4b838f7
better debug messages
72a39ba
fixed docstring
4ca60ed
[skip ci] no ci when pushing
0bd7831
making it easier to debug
33ac837
Merge remote-tracking branch 'upstream/master' into adding-nodeports
e613817
trying to give nodeports more time
a9ff010
put back missing parameter
7d1ca3c
putting back option
9654a66
Merge remote-tracking branch 'upstream/master' into adding-nodeports
75770f6
restored missing API
335a608
fixed typing
24656aa
replaced with 3.8 version
8da91d1
typo
4e34430
using statues from starlette
f469779
making it run in development
7d47845
fixed import issue
57f8416
only log keys
9a500dd
aded status retrying
45c063b
ading retries on status and retrieve
617b673
refactor
4293b1e
renaming and refactoring
2d36167
renamed again
a9c2d2e
removing dependency bump
8e1b2cd
reverting
60b5c25
added minio
66ff2e9
added extra comments
5c1ed26
added more assersions
5c53050
added more debug prints
a8e39d0
adding more infomation in logs
b6ce757
more explicit debug message
a19240f
added sleep to make sure data is available
445b618
Merge remote-tracking branch 'upstream/master' into adding-nodeports
61ffddd
adding more information to make it easier to debug
f469512
tring to trigger CI again
95245b4
reafactoring
f8e5071
refactor
2c0ca49
used for testing, leaving it in
4515be6
added new container logs dump for simpler debugging
ca55af8
dumping logs twice
7d984af
adding logs debug
e6c4a44
updated return type
b7c9d94
logs from containers on fail
6381f3c
using version with more debug options
81867c6
bumped expected version in workbench
82b3fde
better error message and explaniation
624ce69
even more debug information
974b4ae
put back original check
432a6c7
added separators
f5b5c12
removed space
71bce09
trigger CI again
0ab0836
bumping timeout
19dfa8c
prining data for all containers
d1e8adc
fix issue
6e12de2
bumping dy_static_file_server version
cd56c78
updated versions in workbench
91c76ee
fixing python-lining CI
0d514d5
Merge remote-tracking branch 'upstream/master' into adding-nodeports
d5579a4
reverted changes
1cc8e3e
Merge remote-tracking branch 'upstream/master' into adding-nodeports
679aadb
Merge remote-tracking branch 'upstream/master' into adding-nodeports
6ce12e9
debug help
d6924a9
addresses an issue with stopping
7707ab6
Merge remote-tracking branch 'upstream/master' into adding-nodeports
eaf98f8
fix error
e3bcc76
replaced logging. with logger.
a0f2caf
adding more debug messages
4e84bbc
adding healthcheck to traefik
b529cec
enabling logs from traefik
c9f8e32
adding more logging
14204d2
adding more logs
b682c82
raising attempts 15 minute timeout
4a27482
adding better debug messages
dbd7c5c
changed the dafults to something else
a3ab392
added logging when data is not found to be upoaded
0359265
updating logs on function
3b3fd75
fixes a race condition when saving ports in parallel
21fafd9
reverting changes
67b7b1d
Merge remote-tracking branch 'upstream/master' into adding-nodeports
4feecf8
changed endpoint to make it more readable
a12379b
Merge remote-tracking branch 'upstream/master' into adding-nodeports
89cd203
removed client-sdk references
32f59de
migrated nodeports implementaiton
7984e44
Merge remote-tracking branch 'upstream/master' into adding-nodeports
510a89f
archiving folders is now done in parallel
bc8e8b2
fix import issue
4e31959
some missing types
c1ceb8a
typing
97110b1
fix pylint
fb73d84
Merge remote-tracking branch 'upstream/master' into adding-nodeports
9f37123
Merge remote-tracking branch 'upstream/master' into adding-nodeports
f8cb77b
Merge remote-tracking branch 'upstream/master' into adding-nodeports
2dced01
checking how much the test lasts
5e6ac0d
fixing timeout for test
b53bf16
added faster bailout
7c1410b
making bigger case start first
b62a9fe
adding debug flags to detect hangs
2aab907
reduced timeout to a reasonable value
093e1d2
Merge remote-tracking branch 'upstream/master' into adding-nodeports
7c4570c
added port forward for proxy to test
1972f68
making tests more reliable
702262f
extended logging
b54198f
Merge remote-tracking branch 'upstream/master' into adding-nodeports
23e9b21
pylint
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import asyncio | ||
from concurrent.futures import ProcessPoolExecutor | ||
from contextlib import contextmanager | ||
from typing import Any, Callable | ||
|
||
# only gets created on use and is guaranteed to be the s | ||
# ame for the entire lifetime of the application | ||
|
@@ -35,3 +37,10 @@ def non_blocking_process_pool_executor(**kwargs) -> ProcessPoolExecutor: | |
# FIXME: uncomment below line when the issue is fixed | ||
# executor.shutdown(wait=False) | ||
pass | ||
|
||
|
||
async def async_on_threadpool(callable_function: Callable, *args: Any) -> Any: | ||
"""Ensures blocking operation runs on shared thread pool""" | ||
return await asyncio.get_event_loop().run_in_executor( | ||
None, callable_function, *args | ||
) | ||
Comment on lines
+42
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not sure this brings anything? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just a small wrapper method. I could move it from servicelib to the dynamic-sidecar, but I would still keep it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ pytest-mock | |
pytest-runner | ||
pytest-sugar | ||
pytest-xdist | ||
pytest-lazy-fixture | ||
|
||
# mockups/fixtures | ||
alembic | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.