Explicitly disable broker for vSphere validation #2770
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
Vmware::InfraManager#verify_credentials
method explicitly disabledbroker 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 callsraw_connect
thisoption wasn't passed in, but we were checking for
:fault_tolerant
andusing
MiqVim
instead ofMiqFaultTolerantVim
which implicitly doesn't usethe broker so everything worked fine.
In ManageIQ/manageiq@cf1eae9 we removed the
:fault_tolerant
option because it should always beenabled, the
:use_broker
option is intended to control if we connect tothe broker or not. This however broke the implicit skip broker option
that credential validation was using.
This mimics the
Vmware::InfraManager#verify_credentials
way ofexplicitly disabling use of the broker by passing it as a task argument.