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

♻️ Replace r clone ⚠️🚨 #6119

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
d86ab8b
Revert "🎨Autoscaling/Clusters-keeper: disable public IP address (#5882)"
matusdrobuliak66 Jul 18, 2024
ab4bd53
Revert "🐛♻️Clusters-keeper: use private dns name instead of public IP…
matusdrobuliak66 Jul 18, 2024
eb91c37
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 18, 2024
4d0a4f6
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 22, 2024
601ad3e
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 22, 2024
c06265d
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 23, 2024
055202a
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 23, 2024
3eac0be
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 23, 2024
5f7c20e
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 25, 2024
a0f3662
Merge branch 'master' of github.com:matusdrobuliak66/osparc-simcore
matusdrobuliak66 Jul 26, 2024
e39f825
daily work
matusdrobuliak66 Jul 29, 2024
9033c43
fix
matusdrobuliak66 Jul 29, 2024
0ea75ce
fix tests
matusdrobuliak66 Jul 29, 2024
cee6431
modify settings
matusdrobuliak66 Jul 29, 2024
f41cb24
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 30, 2024
a8fd3c5
daily work
matusdrobuliak66 Jul 29, 2024
076e350
fix
matusdrobuliak66 Jul 29, 2024
70e1017
fix tests
matusdrobuliak66 Jul 29, 2024
231a4de
modify settings
matusdrobuliak66 Jul 29, 2024
c80143e
Merge branch 'replace-r-clone' of github.com:matusdrobuliak66/osparc-…
matusdrobuliak66 Jul 30, 2024
b86f06f
modify settings
matusdrobuliak66 Jul 30, 2024
0df7d60
modify settings
matusdrobuliak66 Jul 30, 2024
0f7ba43
final cleanup
matusdrobuliak66 Jul 30, 2024
b6c20bc
Merge branch 'master' into replace-r-clone
matusdrobuliak66 Jul 30, 2024
ba31527
review @sanderegg
matusdrobuliak66 Jul 31, 2024
b9b1c8b
review @sanderegg
matusdrobuliak66 Jul 31, 2024
08c65f2
review @sanderegg
matusdrobuliak66 Jul 31, 2024
a134bcd
review @sanderegg
matusdrobuliak66 Jul 31, 2024
a99741b
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Jul 31, 2024
c1abdc9
review @sanderegg
matusdrobuliak66 Jul 31, 2024
dd15fd7
review @sanderegg
matusdrobuliak66 Jul 31, 2024
3d138f4
review @sanderegg
matusdrobuliak66 Jul 31, 2024
d722db4
fix
matusdrobuliak66 Aug 1, 2024
7bee1ca
fix parsing newline characters
matusdrobuliak66 Aug 1, 2024
4a65c0b
Merge branch 'master' of github.com:ITISFoundation/osparc-simcore
matusdrobuliak66 Aug 1, 2024
4f30391
merge master
matusdrobuliak66 Aug 1, 2024
62ac2bf
final fix
matusdrobuliak66 Aug 1, 2024
4b53a32
review @GitHK
matusdrobuliak66 Aug 1, 2024
6b6b0d1
fix mypy:
matusdrobuliak66 Aug 1, 2024
71e6640
fix
matusdrobuliak66 Aug 1, 2024
e89b08b
fix mypy/test
matusdrobuliak66 Aug 1, 2024
73970cb
fix node ports v2
matusdrobuliak66 Aug 2, 2024
ee012cd
AWS s3 cli env var
matusdrobuliak66 Aug 2, 2024
6e08dba
fix
matusdrobuliak66 Aug 2, 2024
843ecbe
fix not enough space error
matusdrobuliak66 Aug 5, 2024
6954e22
Merge branch 'master' into replace-r-clone
matusdrobuliak66 Aug 5, 2024
93ab8d9
fix not enough space error
matusdrobuliak66 Aug 5, 2024
e9906b4
Merge branch 'master' into replace-r-clone
matusdrobuliak66 Aug 5, 2024
4395773
fix integration test
matusdrobuliak66 Aug 5, 2024
9fbc179
Merge branch 'master' into replace-r-clone
matusdrobuliak66 Aug 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env-devel
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ AUTOSCALING_NODES_MONITORING=null
AUTOSCALING_POLL_INTERVAL=10
AUTOSCALING_SSM_ACCESS=null

AWS_S3_CLI_S3='{"S3_ACCESS_KEY":"12345678", "S3_BUCKET_NAME":"simcore", "S3_ENDPOINT": "http://172.17.0.1:9001", "S3_SECRET_KEY": "12345678", "S3_REGION": "us-east-1"}'

CATALOG_BACKGROUND_TASK_REST_TIME=60
CATALOG_DEV_FEATURES_ENABLED=0
CATALOG_HOST=catalog
Expand Down
11 changes: 11 additions & 0 deletions packages/settings-library/src/settings_library/aws_s3_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from pydantic import Field

from .base import BaseCustomSettings
from .s3 import S3Settings


class AwsS3CliSettings(BaseCustomSettings):
AWS_S3_CLI_S3: S3Settings = Field(
default=None,
description="These settings intentionally do not use auto_default_from_env=True because we might want to turn them off if RClone is enabled.",
matusdrobuliak66 marked this conversation as resolved.
Show resolved Hide resolved
)
matusdrobuliak66 marked this conversation as resolved.
Show resolved Hide resolved
10 changes: 10 additions & 0 deletions packages/simcore-sdk/src/simcore_sdk/node_data/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from servicelib.archiving_utils import unarchive_dir
from servicelib.logging_utils import log_context
from servicelib.progress_bar import ProgressBarData
from settings_library.aws_s3_cli import AwsS3CliSettings
from settings_library.r_clone import RCloneSettings

from ..node_ports_common import filemanager
Expand Down Expand Up @@ -41,6 +42,7 @@ async def _push_directory(
r_clone_settings: RCloneSettings,
exclude_patterns: set[str] | None = None,
progress_bar: ProgressBarData,
aws_s3_cli_settings: AwsS3CliSettings | None,
) -> None:
s3_object = __create_s3_object_key(project_id, node_uuid, source_path)
with log_context(
Expand All @@ -56,6 +58,7 @@ async def _push_directory(
io_log_redirect_cb=io_log_redirect_cb,
progress_bar=progress_bar,
exclude_patterns=exclude_patterns,
aws_s3_cli_settings=aws_s3_cli_settings,
)


Expand All @@ -68,6 +71,7 @@ async def _pull_directory(
io_log_redirect_cb: LogRedirectCB,
r_clone_settings: RCloneSettings,
progress_bar: ProgressBarData,
aws_s3_cli_settings: AwsS3CliSettings | None,
save_to: Path | None = None,
) -> None:
save_to_path = destination_path if save_to is None else save_to
Expand All @@ -84,6 +88,7 @@ async def _pull_directory(
io_log_redirect_cb=io_log_redirect_cb,
r_clone_settings=r_clone_settings,
progress_bar=progress_bar,
aws_s3_cli_settings=aws_s3_cli_settings,
)


Expand Down Expand Up @@ -116,6 +121,7 @@ async def _pull_legacy_archive(
io_log_redirect_cb=io_log_redirect_cb,
r_clone_settings=None,
progress_bar=sub_prog,
aws_s3_cli_settings=None,
)
_logger.info("completed pull of %s.", destination_path)

Expand Down Expand Up @@ -195,6 +201,7 @@ async def push(
r_clone_settings: RCloneSettings,
exclude_patterns: set[str] | None = None,
progress_bar: ProgressBarData,
aws_s3_cli_settings: AwsS3CliSettings | None,
) -> None:
"""pushes and removes the legacy archive if present"""

Expand All @@ -207,6 +214,7 @@ async def push(
exclude_patterns=exclude_patterns,
io_log_redirect_cb=io_log_redirect_cb,
progress_bar=progress_bar,
aws_s3_cli_settings=aws_s3_cli_settings,
)
archive_exists = await _state_metadata_entry_exists(
user_id=user_id,
Expand Down Expand Up @@ -236,6 +244,7 @@ async def pull(
io_log_redirect_cb: LogRedirectCB,
r_clone_settings: RCloneSettings,
progress_bar: ProgressBarData,
aws_s3_cli_settings: AwsS3CliSettings | None,
) -> None:
"""restores the state folder"""

Expand Down Expand Up @@ -274,6 +283,7 @@ async def pull(
io_log_redirect_cb=io_log_redirect_cb,
r_clone_settings=r_clone_settings,
progress_bar=progress_bar,
aws_s3_cli_settings=aws_s3_cli_settings,
)
return

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from abc import abstractmethod


class BaseLogParser:
@abstractmethod
async def __call__(self, logs: str) -> None:
...
Loading
Loading