ngine-io / cs

A simple, yet powerful CloudStack API client for python and the command-line.
BSD 3-Clause "New" or "Revised" License
89 stars 37 forks source link

Its not working with CS API 4.19.1.1 #130

Open sefimlog opened 2 weeks ago

sefimlog commented 2 weeks ago

The login to the API was changed on 4.19, and the module doesn't support it yet. 'errorcode': 401, 'errortext': 'unable to verify user credentials and/or request signature'

brutasse commented 2 weeks ago

hi @sefimlog - we no longer have interest in maintaining this library and would be open to handing it over to other parties interested.

resmo commented 1 week ago

The best possible way to maintain this library is probably under the apache cloudstack project.

In case there are no interests from the apache cloudstack community, I would like to offer to take under @ngine-io, where I already maintain the ansible integration for cloudstack which depends on cs. ngine-io is not a company or "person", just a project name.

Of course I would appreciate others to help me maintain it and with further development.

brutasse commented 5 days ago

Thanks for the offer, @resmo!

I tried to initiate the repository transfer to @ngine-io but Github doesn't let me -- I'd need to have repository creation permissions on the destination org.

Could I get this permission temporarily, for the duration of the transfer?

You should have received an invite for PyPI in the meantime.

brutasse commented 3 days ago

Hello from cs's new home!

resmo commented 3 days ago

Thank you, @brutasse, for all the work you've put into this project and for the quick transition to @ngine-io

CodeBleu commented 3 days ago

@resmo Really appreciate you taking this on and for both you and @brutasse for moving so quickly to get this transitioned.

Now we just need to figure out how to fix the actual issue in this Issue. Really need to get this working so it can be used with newer Cloudstack versions 4.19.x :smile:

resmo commented 2 days ago

@CodeBleu I need a little more details what you are experiencing:

I am aware of security fixes in cloudstack which may be related:

I am currently building a test container for 4.19 to reproduce this issue.

resmo commented 2 days ago

I was able to build and briefly run a smoke test on a 4.19.1.3 simulator and was not able to reproduce an issue:

could you please verify your configs?

CodeBleu commented 1 day ago

@resmo

  • Which exact version do you experience this?
    4.19.1.1 What was the last working version? 4.18.x
  • Is there a release note which points to the breaking change? Not that I'm aware of.
  • Have you already been in contact with the cloudstack community about it? e.g. via the mailinglist? Only the Github issue where I asked them if they wanted to take over this CS repo. https://github.com/apache/cloudstack-go/issues/92
rohityadavcloud commented 21 hours ago

Thanks @resmo for stepping up! And @brutasse for helping with the transition.

rohityadavcloud commented 21 hours ago

@resmo if you're looking to setup CI/Github actions support, feel free to look at https://github.com/apache/cloudstack-terraform-provider/blob/main/.github/workflows/setup-cloudstack/action.yml which is basically running CloudStack+Simulator in a container & then calling APIs to validate some basic checks.

CodeBleu commented 16 hours ago

@resmo FYI, incase you didn't follow this issue. https://github.com/apache/cloudstack-go/issues/92#issuecomment-2508880636

resmo commented 16 hours ago

Thanks for the hint, but I think we are fine to work on and maintain it since we heavily depend on this library, but maybe it would be a good idea to add another person to the pypi project just "in case" I somehow managed to loose access.

@rohityadavcloud do you have a pypi account? https://pypi.org/user/Rohit.Yadav? would you be okay to be added to https://pypi.org/project/cs/ just as a "backup"?

resmo commented 6 hours ago

So back to the issue, I was able to add an integration test for 4.19.1.1 which turned out green https://github.com/ngine-io/cs/actions/runs/12100100185/job/33738343600?pr=137

CodeBleu commented 5 hours ago

Since @sefimlog was the creator of this issue, I'm wondering if you are still having issues and what version of Cloudstack and CS module you are using @sefimlog ?

@resmo I originally added you to this because of needing support for this module going forward and I had done a quick test myself with a 4.19 and 4.18 environment. I originally was getting the 401 error as well in the 4.19 environment, but I just now went back to test again since you said it workd and marked it ias 'invalid'. When I went to test again, it is actually working for me as well. There is a chance I tested on a version of 4.19.x and didn't pay close attention to what the 'x' was and it might have been updated since. But my current test was on 4.19.1.1 and it seemed to work.

rohityadavcloud commented 1 hour ago

Hi @resmo happy to be added as a backup on pypi, my username is indeed https://pypi.org/user/Rohit.Yadav/