Skip to content

Adding S3 secondary storage fails with NPE #8956

@rajujith

Description

@rajujith
ISSUE TYPE
  • Bug Report
COMPONENT NAME
S3 secondary storage
CLOUDSTACK VERSION
ACS 4.19.0.0
CONFIGURATION

Minio S3 bucket created
Access key and secret key generated in MiniO

SUMMARY

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
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. 
EXPECTED RESULTS
We should be able to use the S3 bucket as a secondary storage.
ACTUAL RESULTS
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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions