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

Added ec2 tags to volumes and snapshots #314

Closed
wants to merge 1 commit into from

Conversation

echupriyanov
Copy link
Contributor

Now rexray only lists volumes and snapshot with specific tag/value.
Tag is defined in drivers/storage/ec2.go driver:

const rexrayTag = "rexraySet»

Tag value can be defined in rexray/config.yml:

aws:
  accessKey: ...
  secretKey: ...
  region: ...
  rexrayTag: rexray

Default value is rexray.

@clintkitson
Copy link
Member

Thanks for the work here!

  1. It looks like you missed a tag
    https://github.com/echupriyanov/rexray/blob/ec2tags/drivers/storage/ec2/ec2.go#L888-L894

  2. To implement this we would want to make sure it doesn't by default impact the existing functionality unless configured. Can you add if statements for the new tag field/filter to make sure it is only included if defined?

@echupriyanov
Copy link
Contributor Author

24 февр. 2016 г., в 20:06, Clinton Kitson notifications@github.com написал(а):

Thanks for the work here!

  1. It looks like you missed a tag
    https://github.com/echupriyanov/rexray/blob/ec2tags/drivers/storage/ec2/ec2.go#L888-L894 https://github.com/echupriyanov/rexray/blob/ec2tags/drivers/storage/ec2/ec2.go#L888-L894
  2. To implement this we would want to make sure it doesn't by default impact the existing functionality unless configured. Can you add if statements for the new tag field/filter to make sure it is only included if defined?

Sure. Will update PR

@echupriyanov
Copy link
Contributor Author

While testing this PR I’ve hit another issue:

root@swarm-node-06a:~# /tmp/rexray snapshot copy --snapshotid=snap-28a67508 --destinationsnapshotname=t3s2
FATA[0001] Get /?AWSAccessKeyId=AKIAasfdsafsasdfasVQ&Action=CopySnapshot&Description=%5BCopied+snap-28a67508+from+eu-west-1%5D&Signature=j9UMO%2Bl%sdfdfdsfsadfsdafF2cVWs%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&SourceRegion=eu-west-1&SourceSnapshotId=snap-28a67508&Timestamp=2016-02-24T18%3A12%3A26Z&Version=2015-03-01: unsupported protocol scheme "" 

Where:

root@swarm-node-06a:~# /tmp/rexray version
Binary: /tmp/rexray
SemVer: 0.3.2-rc3
OsArch: Linux-x86_64
Branch: v0.3.2-rc3
Commit: 8898ba495befeec585aeaf4489d1f96563156382
Formed: Tue, 23 Feb 2016 18:20:11 UTC
root@swarm-node-06a:~# 

Will look into it tomorrow

@clintkitson
Copy link
Member

Seen this before. I believe it was related to the region not supporting the API scheme that was specified.

@echupriyanov
Copy link
Contributor Author

Just to note, I've update PR with default (no rexrayTag in config.yml) fallback to existing functionality.

@akutz
Copy link
Member

akutz commented Feb 25, 2016

Hi @clintonskitson,

Is this targeted for 0.3.2?

@clintkitson
Copy link
Member

@akutz I am going to review this one now.

@akutz
Copy link
Member

akutz commented Feb 25, 2016

Hi @clintonskitson,

Let me restate my question - is this a bugfix or some required enhancement? If not it should be pushed to 0.4 so 0.3.2 can be released ASAP.

@clintkitson
Copy link
Member

This is an enhancement, so let's move with 0.3.2.

@akutz
Copy link
Member

akutz commented Feb 25, 2016

Hi @clintonskitson,

That's fine, but has it been on the docket for a while? Unless it's required to accommodate some external thing it should be punted to 0.4. We're in the release train, and we need to minimize churn. Only bug fixes should be included at this time.

@clintkitson
Copy link
Member

Agreed @akutz

@akutz akutz added this to the 0.4.0 milestone Feb 25, 2016
@clintkitson
Copy link
Member

@echupriyanov This actually tests out well, thank you for the work. Can you take a swing at updating the EC2 docs with the updated tag to make this PR complete?

@echupriyanov
Copy link
Contributor Author

@clintonskitson Sure. Will do it tomorrow morning.

@echupriyanov
Copy link
Contributor Author

Added rexrayTag description to user-guide/storage-providers section

Signed-off-by: Eugene Chupriyanov <tchu@tchu.ru>
@clintkitson
Copy link
Member

@echupriyanov Nice job here, well done.

@clintkitson
Copy link
Member

#358

akutz added a commit to akutz/rexray that referenced this pull request Apr 17, 2016
NEW FEATURES
- ScaleIO v2 support rexray#355
- EC2 Tags added to Volumes & Snapshots rexray#314

ENHANCEMENTS
- Use of official Amazon EC2 SDK rexray#359
- Added a disable feature for create/remove volume rexray#366
- Added ScaleIO troubleshooting information rexray#367

BUG FIXES
- Fixes URLs for documentation when viewed via Github rexray#337
- Fixes logging bug on Ubuntu 14.04 rexray#377
- Fixes module start timeout error rexray#376
- Fixes ScaleIO authentication loop bug rexray#375

THANK YOU
- Philipp Franke (https://github.com/philippfranke)
- Eugene Chupriyanov (https://github.com/echupriyanov)
- Peter Blum https://github.com/oskoss)
- Megan Hyland https://github.com/meganmurawski)
akutz added a commit to akutz/rexray that referenced this pull request Apr 21, 2016
NEW FEATURES
- ScaleIO v2 support rexray#355
- EC2 Tags added to Volumes & Snapshots rexray#314

ENHANCEMENTS
- Use of official Amazon EC2 SDK rexray#359
- Added a disable feature for create/remove volume rexray#366
- Added ScaleIO troubleshooting information rexray#367

BUG FIXES
- Fixes URLs for documentation when viewed via Github rexray#337
- Fixes logging bug on Ubuntu 14.04 rexray#377
- Fixes module start timeout error rexray#376
- Fixes ScaleIO authentication loop bug rexray#375

THANK YOU
- Philipp Franke (https://github.com/philippfranke)
- Eugene Chupriyanov (https://github.com/echupriyanov)
- Peter Blum https://github.com/oskoss)
- Megan Hyland https://github.com/meganmurawski)
@akutz akutz mentioned this pull request Apr 21, 2016
akutz added a commit that referenced this pull request Apr 21, 2016
NEW FEATURES
- ScaleIO v2 support #355
- EC2 Tags added to Volumes & Snapshots #314

ENHANCEMENTS
- Use of official Amazon EC2 SDK #359
- Added a disable feature for create/remove volume #366
- Added ScaleIO troubleshooting information #367

BUG FIXES
- Fixes URLs for documentation when viewed via Github #337
- Fixes logging bug on Ubuntu 14.04 #377
- Fixes module start timeout error #376
- Fixes ScaleIO authentication loop bug #375

THANK YOU
- Philipp Franke (https://github.com/philippfranke)
- Eugene Chupriyanov (https://github.com/echupriyanov)
- Peter Blum https://github.com/oskoss)
- Megan Hyland https://github.com/meganmurawski)
akutz added a commit that referenced this pull request Apr 21, 2016
NEW FEATURES
- ScaleIO v2 support #355
- EC2 Tags added to Volumes & Snapshots #314

ENHANCEMENTS
- Use of official Amazon EC2 SDK #359
- Added a disable feature for create/remove volume #366
- Added ScaleIO troubleshooting information #367

BUG FIXES
- Fixes URLs for documentation when viewed via Github #337
- Fixes logging bug on Ubuntu 14.04 #377
- Fixes module start timeout error #376
- Fixes ScaleIO authentication loop bug #375

THANK YOU
- Philipp Franke (https://github.com/philippfranke)
- Eugene Chupriyanov (https://github.com/echupriyanov)
- Peter Blum https://github.com/oskoss)
- Megan Hyland https://github.com/meganmurawski)
@akutz akutz mentioned this pull request Apr 22, 2016
akutz added a commit to akutz/rexray that referenced this pull request Jul 24, 2017
…pport

Missing AWS Config Support for EBS driver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants