Leo can you include the backtrace from the refresh showing which line the exception came from?
https://github.com/ManageIQ/manageiq-providers-scvmm/pull/65
New commit detected on ManageIQ/manageiq-providers-scvmm/master: https://github.com/ManageIQ/manageiq-providers-scvmm/commit/a2504adebc24957f439c3af4c6c11295a1803b35 commit a2504adebc24957f439c3af4c6c11295a1803b35 Author: Adam Grare <agrare> AuthorDate: Thu Mar 22 17:28:41 2018 -0400 Commit: Adam Grare <agrare> CommitDate: Thu Mar 22 17:28:41 2018 -0400 Handle nil ems inventory from credential issues If the provided credentials do not have enough permissions to access the VMM management server the following is printed to stderr: "You cannot contact the VMM management server. The credentials provided have insufficient privileges on localhost." but an inventory hash is still returned that contains: { "ems": nil, "vms": [], "hosts": [], ... } before continuing with the refresh this checks if the ems data returned is blank to catch these issues. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1549667 app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
https://github.com/ManageIQ/manageiq-providers-scvmm/pull/66
New commit detected on ManageIQ/manageiq-providers-scvmm/master: https://github.com/ManageIQ/manageiq-providers-scvmm/commit/08895dbaea79a092332b898a838e98ac9a8aa3ce commit 08895dbaea79a092332b898a838e98ac9a8aa3ce Author: Adam Grare <agrare> AuthorDate: Fri Mar 23 12:13:48 2018 -0400 Commit: Adam Grare <agrare> CommitDate: Fri Mar 23 12:13:48 2018 -0400 Check connection to VMM when verifying credentials When verifying credentials connect to the VMM service to confirm that the credentials are privileged enough. With this now verify fails with: Credential validation was not successful: Unable to connect: You cannot contact the VMM management server. The credentials provided have insufficient privileges on DEV-SCVMM2K12\Administrator. https://bugzilla.redhat.com/show_bug.cgi?id=1549667 app/models/manageiq/providers/microsoft/infra_manager.rb | 16 +- app/models/manageiq/providers/microsoft/infra_manager/ps_scripts/test_connection.ps1 | 12 + spec/models/manageiq/providers/microsoft/infra_manager_spec.rb | 24 +- 3 files changed, 43 insertions(+), 9 deletions(-)
Verified on 5.10.0.16.