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

rake evm:db:restore:remote mods for S3 #17827

Merged
merged 2 commits into from
Aug 10, 2018

Conversation

jerryk55
Copy link
Member

@jerryk55 jerryk55 commented Aug 9, 2018

When rake evm:db:restore:remote is issued with an S3 URI,
specify the AWS region as an argument to be passed to EvmDatabaseOps

As part of several PRs required for the RFE described in https://bugzilla.redhat.com/show_bug.cgi?id=1513520, this will change the rake process invoked from appliance_console when the DB is
restored from S3. Another PR for appliance_console is to be added and noted herein.

@carbonin, @NickLaMuro, @roliveri please review and merge when appropriate. Thanks.

Links

Steps for Testing/QA

After backing up a DB to S3, use appliance_console to restore the DB. Use option 4 to request a restore, and option 4 again to restore from S3. Enter the valid URI, userid, password, and region.

@@ -172,6 +172,7 @@ namespace :evm do
opt :uri, "Destination depot URI", :type => :string, :required => true
opt :uri_username, "Destination depot username", :type => :string
opt :uri_password, "Destination depot password", :type => :string
opt :uri_region, "Destination depot region", :type => :string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the AWS region has anything to do with the URI, right? Can this option be called aws_region instead?

@@ -271,6 +273,7 @@ namespace :evm do
opt :uri, "Destination depot URI", :type => :string, :required => true
opt :uri_username, "Destination depot username", :type => :string
opt :uri_password, "Destination depot password", :type => :string
opt :uri_region, "Destination depot region", :type => :string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, would prefer if this could be aws_region

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No prob. Will change.

When rake evm:db:restore:remote is issued with an S3 URI,
specify the AWS region as an argument to be passed to EvmDatabaseOps
Since the region option has nothing to do with the URI, but is
AWS specific, rename the option appropriately, per review comments.
@miq-bot
Copy link
Member

miq-bot commented Aug 10, 2018

Checked commits jerryk55/manageiq@cf65236~...348b1bd with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 2 offenses detected

lib/tasks/evm_dba.rake

@carbonin carbonin merged commit 366585a into ManageIQ:master Aug 10, 2018
@carbonin carbonin self-assigned this Aug 10, 2018
@carbonin carbonin added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 10, 2018
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.

3 participants