rajujith opened a new issue, #8956:
URL: https://github.com/apache/cloudstack/issues/8956
<!--
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 -->
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
S3 secondary storage
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
ACS 4.19.0.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
Minio S3 bucket created
Access key and secret key generated in MiniO
##### SUMMARY
<!-- Explain the problem/feature briefly -->
Tried adding an S3 secondary storage created out of locally installed MiniIO
but it failed with NPE. It is good to have it fixed.
##### 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 -->
~~~
1. Install a new cloudstack environment or remove NFS based secondary
storages if added already.
2. Install a MiniIO server and create a bucket , generate access and secret
keys
3. Add the S3 secondary storage bucket as secondary storage while adding a
zone or add secondary storage later on. Make sure to use NFS based staging
storage.
4. S3 based secondary storage addition fails with NPE.
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
We should be able to use the S3 bucket as a secondary storage.
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
Unable to add S3 bucket as a secondary storage
~~~
```
2024-04-17 06:28:38,508 ERROR [c.c.a.ApiServer]
(qtp940584193-13:ctx-0f5fb4bb ctx-79c01836) (logid:227bc7bf) unhandled
exception executing api command: [Ljava.lang.String;@333fb5d
java.lang.NullPointerException
at
org.apache.cloudstack.storage.endpoint.DefaultEndPointSelector.findEndpointForImageStorage(DefaultEndPointSelector.java:334)
at
org.apache.cloudstack.storage.endpoint.DefaultEndPointSelector.select(DefaultEndPointSelector.java:444)
at
org.apache.cloudstack.storage.endpoint.DefaultEndPointSelector.select(DefaultEndPointSelector.java:395)
at
com.cloud.storage.download.DownloadMonitorImpl.initiateTemplateDownload(DownloadMonitorImpl.java:155)
at
com.cloud.storage.download.DownloadMonitorImpl.downloadTemplateToStorage(DownloadMonitorImpl.java:247)
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]