Skip to content

Nondescript error when app fails to deploy due to Vcenter Credentials issue #866

@jgerson

Description

@jgerson

Issue details

When trying to deploy an app, if there is an issue with the Vcenter Credentials, the following error appears in the server log and venv logs.

A clear error only occurs if you try to autoload the resource again

Server:

2017-05-31 14:08:16,218 [54] ERROR ResourceManager.TclAPI - [IP: ::1, Machine: DEM-CLDSHELL01:8029 - Tcl, QualiSystems Username: admin]
CloudShellAPIError: Command execution failed with error: 'AttributeError'.
Error description: 'str' object has no attribute 'message'
2017-05-31 14:08:16,219 [54] ERROR ResourceManager.TclAPI - [IP: ::1, Machine: DEM-CLDSHELL01:8029 - Tcl, QualiSystems Username: admin]
QS.TestShell.Server.ResourceManagement.Plugins.ApiPlugin.InternalApiException: CloudShellAPIError: Command execution failed with error: 'AttributeError'.

Venv

AttributeError: super(VCenterAuthError, self).init(original_exception.message)
2017-05-31 13:55:41,180 [ERROR]: vCenterShell.ERP_Demo_vCenter command_wrapper - execute_command_with_connection 'str' object has no attribute 'message'
Traceback (most recent call last):
File "C:\ProgramData\QualiSystems\venv\VCenter_Shell_Driver_4_10\lib\site-packages\cloudshell\cp\vcenter\common\wrappers\command_wrapper.py", line 96, in execute_command_with_connection
si = self.get_py_service_connection(connection_details, logger)
File "C:\ProgramData\QualiSystems\venv\VCenter_Shell_Driver_4_10\lib\site-packages\cloudshell\cp\vcenter\common\wrappers\command_wrapper.py", line 134, in get_py_service_connection
req_connection_details.port)
File "C:\ProgramData\QualiSystems\venv\VCenter_Shell_Driver_4_10\lib\site-packages\cloudshell\cp\vcenter\common\vcenter\vmomi_service.py", line 71, in connect
raise VCenterAuthError(e.msg)
File "C:\ProgramData\QualiSystems\venv\VCenter_Shell_Driver_4_10\lib\site-packages\cloudshell\cp\vcenter\common\vcenter\vmomi_service.py", line 12, in init
super(VCenterAuthError, self).init(original_exception.message)
AttributeError: AttributeError: 'str' object has no attribute 'message'
2017-05-31 13:55:41,180 [INFO]: vCenterShell.ERP_Demo_vCenter command_wrapper - execute_command_with_connection action:END command_name:execute_deploy_from_linked_clone

Steps to reproduce

Autoload Vcenter Resource
Confirm you are able to deploy app
Modify Password in Vcenter so Cloudshell has wrong password
Try to deploy app

Affected versions:

CloudShell version 7.1

Affected platforms

  • Virtual Environment

Please fill additional environment specific configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions