Skip to content

Since version >= 0.35 using instanciated Gateway fails because of introduction of backoff algorithm #167

@pitouche

Description

@pitouche

I am instanciating Gateway object like this:

    gw = Gateway(access_key=AK, secret_key=SK, region="eu-west-2")

Now, since version >= 0.35 i get exception when i try any calls:

init() got an unexpected keyword argument 'backoff_jitter'
Traceback (most recent call last):
File "/dummy/youdontneedtoknow.py", line XXXX in func_name_you_dont_need
resp = gw.UpdateVolume(VolumeId=volume["VolumeId"], VolumeType = new_type, Iops = int(new_iops))
File "/dummy/venv.3.9.21/lib64/python3.9/site-packages/osc_sdk_python/outscale_gateway.py", line 209, in action
result = self.call.api(action_name, **kwargs)
File "/dummy/venv.3.9.21/lib64/python3.9/site-packages/osc_sdk_python/call.py", line 91, in api
raise err
File "/dummy/venv.3.9.21/lib64/python3.9/site-packages/osc_sdk_python/call.py", line 78, in api
requester = Requester(
File "/dummy/venv.3.9.21/lib64/python3.9/site-packages/osc_sdk_python/requester.py", line 25, in init
max_retries=Retry(
TypeError: init() got an unexpected keyword argument 'backoff_jitter'

I really dont want to play with those values while instanciating the Gatway object.

Have it been made mandatory ?

Thanks

side note: i really need latest version, so maybe i will add those values in the Gateway call, but it's quite annoying.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions