Skip to content

Adding S3 secondary storage fails with NPE #8956

Closed

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)

Activity

  1. added this to the 4.19.1.0 milestone on Apr 22, 2024
  2. philtreF commented on Apr 25, 2024

    @philtreF

    Got the exact same issue with 4.18.1
    I am using Ceph as a storage backend.
    As a side-note I also tried Swift, also ends with a NPE

    NFS works but once I put NFS into production I will be stuck with NFS for this region as far as I understood...

  3. DaanHoogland commented on Apr 26, 2024

    @DaanHoogland
    Contributor

    @philtreF if you have the chance to build yourself, please try #8986

  4. philtreF commented on Apr 26, 2024

    @philtreF

    I really would like but can't help you right now. If I find some time to compile (and learn to compile) I will let you know.

  5. shwstppr commented on May 22, 2024

    @shwstppr
    Contributor

    @rajujith @DaanHoogland if the issue is fixed, should we close this?

    @philtreF maybe you can try the latest nightly to test the fix, https://download.cloudstack.org/testing/nightly/latest/

  6. rajujith commented on May 24, 2024

    @rajujith
    ContributorAuthor

    @shwstppr Yes, we can close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions