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

bug: make bucket returns 308 Permanent Redirect #10797

Closed
1 task done
jgagnon44 opened this issue May 8, 2024 · 2 comments
Closed
1 task done

bug: make bucket returns 308 Permanent Redirect #10797

jgagnon44 opened this issue May 8, 2024 · 2 comments
Labels
area: integration/kubernetes Run LocalStack on Kubernetes status: backlog Triaged but not yet being worked on type: bug Bug report

Comments

@jgagnon44
Copy link

jgagnon44 commented May 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am using the localstack Helm chart - please let me know if I should direct this issue there (any idea where?) instead.

I am working through modifying the deployment to satisfy pod security requirements.
I am running into a situation where I'm getting the following message in the localstack pod log:

LocalStack supervisor: Shutting down localstack (PID 15)...
make_bucket failed: s3://dex1 An error occurred (308) when calling the CreateBucket operation: Permanent Redirect
LocalStack supervisor: exiting

Does anyone have an idea what could be causing this?

Expected Behavior

No response

How are you starting LocalStack?

Custom (please describe below)

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

The localstack Helm chart (and the client application that needs to use it) are installed via Helm chart artifacts onto a Kubernetes cluster. A tool called Kubeapps is being used (for this use case) to deploy the charts to the cluster.

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

In the localstack Helm chart values.yaml file, the following start up script is used to create a profile and a bucket:

awslocal configure set profile.localstack.aws_access_key_id my_user
awslocal configure set profile.localstack.aws_secret_access_key my_password
awslocal configure set profile.localstack.region us-east-1
awslocal s3 mb s3://dex1 --profile localstack --endpoint-url=http://localstack.devhost.beast-code-demo.com

The endpoint URL makes use of a host name set up in an Ingress object configured elsewhere in the localstack chart values.

Environment

- OS: Ubuntu 20.04
- LocalStack:

LocalStack version: 3.4.1.dev
LocalStack build date: 2024-05-08

Anything else?

No response

@jgagnon44 jgagnon44 added status: triage needed Requires evaluation by maintainers type: bug Bug report labels May 8, 2024
@localstack-bot
Copy link
Collaborator

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

@Anze1508 Anze1508 added area: integration/kubernetes Run LocalStack on Kubernetes status: backlog Triaged but not yet being worked on and removed status: triage needed Requires evaluation by maintainers labels May 10, 2024
@bentsku
Copy link
Contributor

bentsku commented May 21, 2024

Hello!

I believe this issue was resolved in the community Slack by @simonrw.

The solution was to use localhost:4566 in the --endpoint-url of the command, as the init scripts are running inside the LocalStack container and not outside of it where the Kubernetes configuration would have impact.

I'll close the issue, but feel free to comment or re-open if there's still anything. Thanks!

@bentsku bentsku closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: integration/kubernetes Run LocalStack on Kubernetes status: backlog Triaged but not yet being worked on type: bug Bug report
Projects
None yet
Development

No branches or pull requests

4 participants