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

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

Open
1 task
jgerson opened this issue May 31, 2017 · 0 comments
Open
1 task

Comments

@jgerson
Copy link

jgerson commented May 31, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant