<#7487 [Devbox] update rustfs endpoint> Pull reque...
# flyte-github
a
#7487 [Devbox] update rustfs endpoint Pull request opened by machichima Tracking issue Why are the changes needed? We will get following error when running app. The reason is that rustfs endpoint is incorrect, should be
http://rustfs-svc.flyte:9000/
image GenericError: Generic S3 error: Error performing HEAD http://rustfs.flyte:9000/flyte-data/uploads/flytesnacks/development/UP7YFHXZHWAKZEMGOQV4VUZJFI%3D%3D%3D%3D%3D%3D/fasted9093529269a3674ea395c464883d33.tar.gz in 18.744430729s, after 3 retries, max_retries: 3, retry_timeout: 180s - HTTP error: error sending request Debug source: Generic { store: "S3", source: RetryError( RetryErrorImpl { method: HEAD, uri: Some( http://rustfs.flyte:9000/flyte-data/uploads/flytesnacks/development/UP7YFHXZHWAKZEMGOQV4VUZJFI%3D%3D%3D%3D%3D%3D/fasted9093529269a3674ea395c464883d33.tar.gz, ), retries: 3, max_retries: 3, elapsed: 18.744430729s, retry_timeout: 180s, inner: Http( HttpError { kind: Connect, source: reqwest::Error { kind: Request, source: hyper_util:clientlegacy:Error( Connect, ConnectError( "dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: Name or service not known", }, ), ), }, }, ), }, ), } What changes were proposed in this pull request? Update
FLYTE_AWS_ENDPOINT
to
'http://rustfs-svc.{{ .Release.Namespace }}:9000'
How was this patch tested? Run devbox locally: 1.
make devbox-build
2.
make devbox-run
3. deploy app here: https://www.union.ai/docs/v2/flyte/user-guide/build-apps/single-script-apps/#plain-python-http-server 4. We can see app is deployed successfully ❯ python plain_python_server.py > Building 1 image... > Building image flyte for environment plain-python-server i Image ghcr.io/flyteorg/flyte:py3.12-v2.4.0 already exists, skipping build ✓ Built image for environment plain-python-server: ghcr.io/flyteorg/flyte:py3.12-v2.4.0 ✓ Code bundle found in cache, skipping upload VERSION: 0d5b715eec56966d1afa1c0eed424445 > Deploying app plain-python-server, with image ghcr.io/flyteorg/flyte:py3.12-v2.4.0 version 0d5b715eec56966d1afa1c0eed424445 with args ['python', 'plain_python_server.py', '--server'] 093029.008552 WARNING _serve.py:712 - Deployed App plain-python-server, you can check the console at http://localhost:30080/v2/domain/development/project/flytesnacks/apps/plain-python-server App URL: http://localhost:30080/v2/domain/development/project/flytesnacks/apps/plain-python-server image image Labels Please add one or more of the following labels to categorize your PR: • added: For new features. • changed: For changes in existing functionality. • deprecated: For soon-to-be-removed features. • removed: For features being removed. • fixed: For any bug fixed. • security: In case of vulnerabilities This is important to improve the readability of release notes. Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Stack If you do use
git town
to manage PR Stacks, the stack relevant to this PR will show below. Otherwise, you can ignore this section. Docs link flyteorg/flyte