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

create bucket with mag is not working #95

Open
merlos opened this issue Aug 16, 2024 · 1 comment
Open

create bucket with mag is not working #95

merlos opened this issue Aug 16, 2024 · 1 comment

Comments

@merlos
Copy link
Member

merlos commented Aug 16, 2024

mag minio add bucket 
Create Bucket
forward_port command: kubectl port-forward --address=0.0.0.0 --namespace magasin-tenant svc/myminio-hl 9000:9000
Waiting for port to be open...
Port ready.
Forwarding from 0.0.0.0:9000 -> 9000
mc command: mc admin info myminio --insecure

The command stays in mc admin info myminio --insecure indefinitely.

@merlos
Copy link
Member Author

merlos commented Aug 16, 2024

Research results

Tested running kubectl port-forward --namespace magasin-tenant svc/myminio-hl 9000:9000, that is removing `--address=0.0.0.0

And in another terminal run

mag minio add bucket

Which resulted in success:

mag minio add bucket
Create Bucket
forward_port command: kubectl port-forward --address=0.0.0.0 --namespace magasin-tenant svc/myminio-hl 9000:9000
Waiting for port to be open...
Port ready.
Forwarding from 0.0.0.0:9000 -> 9000
mc command: mc admin info myminio --insecure
alias check successful
mc command:mc mb myminio/magasin-13oe2 --insecure
Bucket created successfully `myminio/magasin-13oe2`.

--address=0.0.0.0 was added for supporting the use of the docker image of magsh image, an image that includes all the commands required by magasin and currently in experimental mode (https://github.com/unicef/magasin/tree/main/magsh)

What may happen is that there is some security setup in minio that prevents to listen to all addresses.

Further research

  1. Why --address=0.0.0.0 issue with minio services do not accept it.
  2. Test removing --address=0.0.0.0 from mag and test to run the image in host mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant