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

Error: Failed to get expected response #6

Open
DaniPinol opened this issue Mar 25, 2022 · 1 comment
Open

Error: Failed to get expected response #6

DaniPinol opened this issue Mar 25, 2022 · 1 comment

Comments

@DaniPinol
Copy link

Hi team,

I tried to launch an start/stop action but ansible returns error:

The full traceback is:
File "/tmp/ansible_ibm_is_instance_action_payload_t0ggqf84/ansible_ibm_is_instance_action_payload.zip/ansible/modules/ibm_is_instance_action.py", line 94, in run_module
File "/home/user/.local/lib/python3.8/site-packages/ibm_vpc/vpc_v1.py", line 4074, in create_instance_action
response = self.send(request, **kwargs)
File "/home/user/.local/lib/python3.8/site-packages/ibm_cloud_sdk_core/base_service.py", line 324, in send
raise ApiException(response.status_code, http_response=response)
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"action_type": "start",
"bearer_token": "",
"env_bearer_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"ibmcloud_api_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"instance_id": "02c7_5fdb03ef-5008-46d4-b96a-7149d1efbc24",
"instance_ip": ""
}
},
"msg": "Failed to get expected response"

When try with instance_ip: _Not found error resposne.

sleep 0'
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"action_type": "start",
"bearer_token": "",
"env_bearer_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"ibmcloud_api_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"instance_id": "",
"instance_ip": "10.243.64.4"
}
},
"msg": "instance not found"

@areddy548
Copy link

areddy548 commented Jul 11, 2022

Even we are facing the above mentioned issue.

TASK [stop : Stop the vsi instance] ********************************************
 2022/07/07 18:38:17 ansible-playbook run | An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: module 'ssl' has no attribute 'TLSVersion'
 2022/07/07 18:38:17 ansible-playbook run | fatal: [127.0.0.1]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"7-54-87550450353571/AnsiballZ_ibm_is_instance_action.py\", line 102, in <module>\n    _ansiballz_main()\n

We have to re write the playbooks.

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

2 participants