Ronald, On Wed, Jan 31, 2024 at 10:02 AM Ronald Feicht <ronald.fei...@scsynergy.de> wrote: > > Hi, > > I have only lately found out, that I cannot use the publicly available > Java SDK for Huawei Object Storage (which has Maven coordinates) as this > SDK only works for the public Huawei Cloud, not for local non-cloud > devices. Instead, all I have is a JAR file under the Apache License 2.0 > sent to me via email. I integrated that JAR file as a local repository > inside plugins/storage/object/huawei-obs/local-huawei-sdk/. This is a > quite ugly and frustrating "solution" as I have no influence on getting > the right Java SDK published to maven central. I have opened a support > ticket with Huawei asking whether I may include the JAR into the > Cloudstack source code or better yet if they would be so kind as to > publish it via maven central - but have not received an answer, yet. > What is the official way for integrating local-only JAR files under the > Apache License 2.0 into Cloudstack?
I gues your PR is https://github.com/apache/cloudstack/pull/8359. You can look at the ./deps/install-non-oss.sh or at https://github.com/shapeblue/cloudstack-nonoss/blob/main/install-non-oss.sh to see how these situations are handled. This method would require you to hide your sub-project behind the -Dnoredist flag. which is an inconvenience but is the only way to deal with those non-redistributables. If Huawei allows, we can add the jar in that repo. > The Huawei Object Storage Java SDK does not yet support bucket > encryption. What should I return in the corresponding methods > "setBucketEncryption" and "deleteBucketEncryption" - true, false or > throw an exception? This is a design decision that the code should already be clear on (in for instance the minio plugin) . Strangely, the DeleteBucketCmd always creates a success response, while the CreateBucketCmd handles exceptions as expected. I think there is a bug in DeleteBucketCmd in that respect. > My assumption: The "createUser" method gets called via the UI by an > account wishing to create a simple non-privileged user which may then > use the created buckets of that account, but not create, modify or > delete buckets themselves? Is this assumption correct? Users log into accounts and get their rights based on the account. For all users in an account the rights are the same. sorry, I might not have gotten it but I no better answer on that (see the code ;) > > Best regards, > Ronald > -- > *sc synergy GmbH* > Hilgestrasse 14 | 55294 Bodenheim | Deutschland > Fon: +49 6135 71691 - 000 | Fax: +49 6135 71691 - 299 > http://www.scsynergy.com | ronald.fei...@scsynergy.com > Sitz der Gesellschaft Bodenheim, HRB 8830, Amtsgericht Mainz, > Geschäftsführer: Christian Reichert -- Daan