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

Explicitly disable broker for vSphere validation #2770

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Nov 20, 2017

The Vmware::InfraManager#verify_credentials method explicitly disabled
broker connections when verifying credentials so that new providers
aren't saved in the brokered connection list in addition to the issue
that the broker will not typically be running when validating
credentials for the first VMware provider.

When moving to .validate_credentials_task which calls raw_connect this
option wasn't passed in, but we were checking for :fault_tolerant and
using MiqVim instead of MiqFaultTolerantVim which implicitly doesn't use
the broker so everything worked fine.

In ManageIQ/manageiq@cf1eae9 we removed the :fault_tolerant option because it should always be
enabled, the :use_broker option is intended to control if we connect to
the broker or not. This however broke the implicit skip broker option
that credential validation was using.

This mimics the Vmware::InfraManager#verify_credentials way of
explicitly disabling use of the broker by passing it as a task argument.

@agrare
Copy link
Member Author

agrare commented Nov 20, 2017

@miq-bot add-label bug, compute/infrastructure, gaprindashvili/no
@miq-bot assign @h-kataria

The Vmware::InfraManager#verify_credentials method explicitly disabled
broker connections when verifying credentials so that new providers
aren't saved in the brokered connection list in addition to the issue
that the broker will not typically be running when validating
credentials for the first VMware provider.

When moving to validate_credentials_task which calls raw_connect this
option wasn't passed in, but we were checking for :fault_tolerant and
using MiqVim instead of MiqFaultTolerantVim which implicitly doesn't use
the broker so everything worked fine.

In ManageIQ/manageiq-ui-classic@cf1eae9 we removed the
:fault_tolerant option because it should always be enabled, the
:use_broker option is intended to control if we connect to
the broker or not.  This however broke the implicit skip broker option
that credential validation was using.

This mimics the Vmware::InfraManager#verify_credentials way of
explicitly disabling use of the broker by passing it as a task argument.
@agrare agrare force-pushed the fix_vmware_infra_credential_validation branch from 712f19b to 81306ab Compare November 20, 2017 13:55
@miq-bot
Copy link
Member

miq-bot commented Nov 20, 2017

Checked commit agrare@81306ab 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. 🍰

@h-kataria
Copy link
Contributor

looks good.

@h-kataria h-kataria added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 20, 2017
@h-kataria h-kataria merged commit 29ffef9 into ManageIQ:master Nov 20, 2017
@agrare agrare deleted the fix_vmware_infra_credential_validation branch November 20, 2017 18:15
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