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

glacier-cli wrongly conflates identically-named vaults from different AWS regions #46

Open
xsuchy opened this issue Nov 24, 2014 · 1 comment

Comments

@xsuchy
Copy link
Contributor

xsuchy commented Nov 24, 2014

Description of problem:
glacier-cli keeps a local cache of vaults and archives. However, the cache does not seem to distinguish between vaults in different AWS regions. So different AWS vaults with the same name in different AWS regions are assumed to be the same vault.

Version-Release number of selected component (if applicable):
glacier-cli.noarch-0-8.20131113gite8a2536.fc20
Originaly reported to Fedora as
https://bugzilla.redhat.com/show_bug.cgi?id=1167186

How reproducible:
Always

Steps to Reproduce:

$ glacier-cli --region=us-east-1 vault create somevault
$ glacier-cli --region=us-east-1 archive upload somevault somearchive

$ glacier-cli --region=eu-west-1 archive list somevault
(note different region specified)

Actual results:
wrongly returns 'somearchive' as an archive in region eu-west-1

Expected results:
No output (there is no vault or archive in region eu-west-1)

Additional information:
Obvious workaround is to pick one region and stick to it, or to use unique vault names across all regions.

@basak
Copy link
Owner

basak commented Nov 24, 2014

This looks valid, thanks. The get_connection_account function is supposed to handle this, but doesn't check the region. This function needs amending, and some kind of migration to fix existing caches to include the region.

Or I wonder if I should just invalidate old caches since they may be incorrect.

I'm on holiday for the next couple of weeks; I'm not sure if I'll get to this before I'm back.

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

2 participants