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 a retry_interval to VM Migrate state machine. #232

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

billfitzgerald0120
Copy link
Contributor

Added ae_retry_interval of 1 minute to CheckMigration method for /Infrastructure/VM/Migrate/StateMachines/Methods.
This will cause the state machine to wait 1 minute after a retry to try again.
Updated test to include interval value.

https://bugzilla.redhat.com/show_bug.cgi?id=1527985

@billfitzgerald0120
Copy link
Contributor Author

@miq-bot add_label bug, gaprindashvili/yes

allow(ae_service).to receive(:inputs) { {'state' => state} }
described_class.new(ae_service).main
expect(ae_service.root['ae_result']).to eq(return_status)
context "" do
Copy link
Member

Choose a reason for hiding this comment

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

We should come up with some text for this context?

let(:interval) { nil }

shared_examples_for "#task_status" do
it "check" do
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it 'checks for return_status and interval'

Added ae_retry_interval of 1 minute to CheckMigration method for /Infrastructure/VM/Migrate/StateMachines/Methods.
This will cause the state machine to wait 1 minute after a retry to try again.
Updated test to include interval value.

https://bugzilla.redhat.com/show_bug.cgi?id=1527985
@miq-bot
Copy link
Member

miq-bot commented Dec 21, 2017

Checked commit billfitzgerald0120@81ab306 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. ⭐

@gmcculloug gmcculloug self-assigned this Dec 21, 2017
@gmcculloug gmcculloug merged commit c4ed50c into ManageIQ:master Dec 21, 2017
@gmcculloug gmcculloug added this to the Sprint 76 Ending Jan 1, 2018 milestone Dec 21, 2017
simaishi pushed a commit that referenced this pull request Jan 3, 2018
Added a retry_interval to VM Migrate state machine.
(cherry picked from commit c4ed50c)

https://bugzilla.redhat.com/show_bug.cgi?id=1530725
@simaishi
Copy link
Contributor

simaishi commented Jan 3, 2018

Gaprindashvili backport details:

$ git log -1
commit bb32c2d92d0e0d8c2f7e62f7643de494b0bfdeb5
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Thu Dec 21 09:37:51 2017 -0500

    Merge pull request #232 from billfitzgerald0120/interval_vm_migrate
    
    Added a retry_interval to VM Migrate state machine.
    (cherry picked from commit c4ed50c7eb3667d5c1ca81c6985f80c09bbbf514)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1530725

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.

4 participants