You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "nxsbi (via GitHub)" <gi...@apache.org> on 2024/02/14 06:01:31 UTC
[I] Bucket - How to connect via external client? [cloudstack]
nxsbi opened a new issue, #8651:
URL: https://github.com/apache/cloudstack/issues/8651
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Other
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Storage - Bucket
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->
~~~
4.19.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
N/A
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
CentOS 7
##### SUMMARY
<!-- Explain the problem/feature briefly -->
Two problems/(Maybe clarification needed) - I am testing out the new release 4.19. I connected it to a locally hosted MinIO instance.
Problem 1: I noticed that each user can only see their own bucket - this is good. However, I am unable to browse the bucket via external application like CyberDuck (or Python). I cannot find any documentation around how to use the CloudStack URL/IP to do the bucket browsing either. I know I can browse the MinIO instance URL and bucket directly, but since the user access is not managed by MinIO, there is no practical way to enable browsing for a Cloudstack user.
Problem 2: If I want to share the link to an uploaded file, when I click on the file name in Bucket browser in Cloudstack, I can get a link. However, this link is to the MinIO server, and not using the CLoudstack server. Keep in mind that my cloudstack user does not have any Key/Secret for MinIO, they only have Cloudstack API/Key
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
Link MinIO to Cloudstack.
Create new CloudStack user.
Login as the new cloudstack user
Create bucket as this user. Upload a file.
create API KEY/Secret
Try to browse in app like CyberDuck using the Cloudstack URL with the new API key/secret - fails
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
User is able to brwse the bucket in Cyberduck
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
Cannot browse the bucket - Perhaps this uses a special port and not 8080?

PROBLEM 1: - Cannot figure out how to browse bucket via external tool or path (without referencing the MinIO actual path)

PROBLEM2: When you click on a file in the cloudstack bucket browser, it allows you to see a URL and a presigned URL.
However, these point to the MinIO IP - not using the Cloudstack IP. MinIO is not internet facing - I want to interface using cloudstack as the bucket is secured via cloudstack not MinIO.
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] MinIO Bucket created in CloudStack 4.19 - How to connect via external client? [cloudstack]
Posted by "nxsbi (via GitHub)" <gi...@apache.org>.
nxsbi commented on issue #8651:
URL: https://github.com/apache/cloudstack/issues/8651#issuecomment-1943143760
Never Mind - Found the API/Secret -- I went to the BUcket name in Cloudstack, and under detail, I can see the URL, API Key and Secret.
This solved Problem 1
Problem 2 - Is there any way to use the Cloudstack URL (I could setup a DNS entry and Port Forwarding rule in firewall) - But want to know if there is any better way?
I
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] MinIO Bucket created in CloudStack 4.19 - How to connect via external client? [cloudstack]
Posted by "vishesh92 (via GitHub)" <gi...@apache.org>.
vishesh92 commented on issue #8651:
URL: https://github.com/apache/cloudstack/issues/8651#issuecomment-1948302093
@nxsbi Regarding Problem 2, CloudStack only creates and manages buckets on the Object Storage. It doesn't have any idea about the contents of buckets as of now. The Bucket browser makes requests directly to the object store (minio server) to lists the files and do other operations.
If you setup port forwarding & DNS entry, make sure that you use the same values when you create the Object Storage. Otherwise, the link bucket browser generates would still point to the minio server.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] MinIO Bucket created in CloudStack 4.19 - How to connect via external client? [cloudstack]
Posted by "nxsbi (via GitHub)" <gi...@apache.org>.
nxsbi commented on issue #8651:
URL: https://github.com/apache/cloudstack/issues/8651#issuecomment-1953170664
Thanks @vishesh92
Closing this issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] MinIO Bucket created in CloudStack 4.19 - How to connect via external client? [cloudstack]
Posted by "nxsbi (via GitHub)" <gi...@apache.org>.
nxsbi closed issue #8651: MinIO Bucket created in CloudStack 4.19 - How to connect via external client?
URL: https://github.com/apache/cloudstack/issues/8651
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Bucket - How to connect via external client? [cloudstack]
Posted by "nxsbi (via GitHub)" <gi...@apache.org>.
nxsbi commented on issue #8651:
URL: https://github.com/apache/cloudstack/issues/8651#issuecomment-1943137454
Hopefully its just a matter of using a correct Port number.
Goal would be to programmatically connect to the bucket so using the internal MinIO address would not work. Even if MinIO was exposed to internet, the user does not have a MinIO API Key/Secret. They created the bucket using CloudStack and CS was using the admin access Key/Secret
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org