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

Reconnect host on provider add #16750

Merged
merged 1 commit into from
Jan 8, 2018
Merged

Conversation

pkliczewski
Copy link
Contributor

We need to make sure that when we remove a provider and add it again we
will keep using the same host entities. Without this change add and remove
provider cause to duplicate hosts.

Fixes https://bugzilla.redhat.com/1528859

@pkliczewski
Copy link
Contributor Author

@agrare @Ladas please review

@pkliczewski
Copy link
Contributor Author

Specs available here ManageIQ/manageiq-providers-ovirt#189

@pkliczewski
Copy link
Contributor Author

@miq-bot add_label gaprindashvili/yes

@agrare agrare self-assigned this Jan 5, 2018
}

attributes.merge!(extra_attributes)
end

def vms(extra_attributes = {})
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Ladas I did that but the specs started to fail for CloudManager so rolling back and keeping it on InfraManager level.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, I will looks into that, let's start with infra then

We need to make sure that when we remove a provider and add it again we
will keep using the same host entities. Without this change add and remove
provider cause to duplicate hosts.

Fixes https://bugzilla.redhat.com/1528859
@miq-bot
Copy link
Member

miq-bot commented Jan 8, 2018

Checked commit pkliczewski@2ede836 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@pkliczewski
Copy link
Contributor Author

@Ladas please review

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

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

Looks good. @agrare we can start with infra and I will look into why the specs fail for Cloud

@pkliczewski
Copy link
Contributor Author

@agrare Are you OK with this PR?

@agrare agrare merged commit 1caf713 into ManageIQ:master Jan 8, 2018
@agrare agrare added this to the Sprint 77 Ending Jan 15, 2018 milestone Jan 8, 2018
simaishi pushed a commit that referenced this pull request Jan 8, 2018
@simaishi
Copy link
Contributor

simaishi commented Jan 8, 2018

Gaprindashvili backport details:

$ git log -1
commit 58916b2ca8a0d95a8a4babeaa8f55a17ec2f2b45
Author: Adam Grare <agrare@redhat.com>
Date:   Mon Jan 8 08:31:18 2018 -0500

    Merge pull request #16750 from pkliczewski/reconnect
    
    Reconnect host on provider add
    (cherry picked from commit 1caf7137d6472eb496e2d251aca9ecc2b49b8342)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1532332

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.

5 participants