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

Dsnap is not using Pacu supplied region when running ebs__download_snapshots #462

Open
DaveYesland opened this issue Jan 24, 2025 · 0 comments

Comments

@DaveYesland
Copy link
Collaborator

It seems dsnap is not using the region supplied in Pacu. This will probably need to be fixed in dsnap but noting it here as it causes errors in Pacu.

I receive the error below when running run ebs__download_snapshots --region us-west-2 even though the snapshot does exist in that region.

Changing my default region to the correct one in ~/.aws/config does fix it so that must be what Dsnap is using.

  File "/home/place/dev/pacu/pacu/main.py", line 1892, in run_gui
    self.idle()
  File "/home/place/dev/pacu/pacu/main.py", line 1746, in idle
    self.parse_command(command)
  File "/home/place/dev/pacu/pacu/main.py", line 628, in parse_command
    self.parse_exec_module_command(command)
  File "/home/place/dev/pacu/pacu/main.py", line 820, in parse_exec_module_command
    self.exec_module(command)
  File "/home/place/dev/pacu/pacu/main.py", line 1037, in exec_module
    summary_data = module.main(command[2:], self)
  File "/home/place/dev/pacu/pacu/modules/ebs__download_snapshots/main.py", line 91, in main
    snap.fetch()
  File "/home/place/.cache/pypoetry/virtualenvs/pacu-lFZSkJZE-py3.9/lib/python3.9/site-packages/dsnap/snapshot.py", line 174, in fetch
    self.get_blocks()
  File "/home/place/.cache/pypoetry/virtualenvs/pacu-lFZSkJZE-py3.9/lib/python3.9/site-packages/dsnap/snapshot.py", line 93, in get_blocks
    for block in self._get_blocks():
  File "/home/place/.cache/pypoetry/virtualenvs/pacu-lFZSkJZE-py3.9/lib/python3.9/site-packages/dsnap/snapshot.py", line 98, in _get_blocks
    print(self.ebs)
  File "/home/place/.cache/pypoetry/virtualenvs/pacu-lFZSkJZE-py3.9/lib/python3.9/site-packages/botocore/client.py", line 535, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/place/.cache/pypoetry/virtualenvs/pacu-lFZSkJZE-py3.9/lib/python3.9/site-packages/botocore/client.py", line 980, in _make_api_call
    raise error_class(parsed_response, operation_name)
<class 'botocore.errorfactory.ResourceNotFoundException'>: An error occurred (ResourceNotFoundException) when calling the ListSnapshotBlocks operation: The snapshot 'snap-0560266e79971111' does not exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant