Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script failed with AK/SK not in good region #181

Closed
ghost opened this issue Nov 21, 2022 · 0 comments · Fixed by #187
Closed

Script failed with AK/SK not in good region #181

ghost opened this issue Nov 21, 2022 · 0 comments · Fixed by #187
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Nov 21, 2022

What happened

File "/home/runner/work/cluster-api-provider-outscale/cluster-api-provider-outscale/hack/cleanup/cleanup_oapi.py", line 76, in deleteImage
    for image in gateway.ReadImages(Filters={'AccountIds': [accountOwnerImageId]}).get('Images', []):
  File "/home/runner/.local/lib/python3.10/site-packages/osc_sdk_python/outscale_gateway.py", line 156, in _action
    result = self.call.api(self.action_name, **kwargs)
  File "/home/runner/.local/lib/python3.10/site-packages/osc_sdk_python/call.py", line 36, in api
    raise err
  File "/home/runner/.local/lib/python3.10/site-packages/osc_sdk_python/call.py", line [34](https://github.com/outscale-dev/cluster-api-provider-outscale/actions/runs/3506748040/jobs/5887575492#step:3:35), in api
    return requester.send(uri, json.dumps(data))
  File "/home/runner/.local/lib/python3.10/site-packages/osc_sdk_python/requester.py", line 16, in send
    response.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: [40](https://github.com/outscale-dev/cluster-api-provider-outscale/actions/runs/3506748040/jobs/5887575492#step:3:41)0 Client Error: Bad Request for url: [https://api.***.outscale.com/api/latest/ReadImages](https://api.%2A%2A%2A.outscale.com/api/latest/ReadImages)

Step to reproduce

https://github.com/outscale-dev/cluster-api-provider-outscale/actions/runs/3506748040/jobs/5887575492

Expected to happen

https://github.com/outscale-dev/cluster-api-provider-outscale/actions/runs/3506748040/attempts/3

Add anything

We have to change the variable OSC_REGION to OSC_OPENSOURCE_REGION

cluster-api output

None

Environment

None
@ghost ghost added the bug Something isn't working label Nov 21, 2022
@ghost ghost self-assigned this Nov 21, 2022
This was referenced Nov 21, 2022
@ghost ghost closed this as completed in #187 Dec 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

0 participants