-
Notifications
You must be signed in to change notification settings - Fork 897
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
Conversation
lib/tasks/evm_dba.rake
Outdated
@@ -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 |
There was a problem hiding this comment.
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?
lib/tasks/evm_dba.rake
Outdated
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
b395a37
to
348b1bd
Compare
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 lib/tasks/evm_dba.rake
|
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.