ansible-collections / community.vmware

Ansible Collection for VMware
GNU General Public License v3.0
348 stars 339 forks source link

vmware_host_iscsi_info: disable tests #604

Closed Akasurde closed 3 years ago

Akasurde commented 3 years ago
SUMMARY

Disable vmware_host_iscsi_info tests

https://dashboard.zuul.ansible.com/t/ansible/build/efd62f939f034eb0aa4936b936f69065/console

ISSUE TYPE
COMPONENT NAME

vmware_host_iscsi_info

ANSIBLE VERSION

devel

CONFIGURATION
OS / ENVIRONMENT

ALL

STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Akasurde commented 3 years ago

Please re-enable once the issue is resolved.

Akasurde commented 3 years ago

Tests disabled via PR - https://github.com/ansible-collections/community.vmware/pull/605

sky-joker commented 3 years ago

@Akasurde

When did this problem start to occur? Does this problem always occur?

sky-joker commented 3 years ago

Upon confirming CI log, an error has occurred in a connection to VCSA in vmware_host_iscsi_info module integration test.
The following is that error.

2021-01-10 06:42:09.782990 | centos-8 |   File "/tmp/ansible_vmware_host_iscsi_payload_weoy4ws1/ansible_vmware_host_iscsi_payload.zip/ansible_collections/community/vmware/plu
gins/module_utils/vmware.py", line 608, in connect_to_api
2021-01-10 06:42:09.783002 | centos-8 |     service_instance = connect.SmartConnect(**connect_args)
2021-01-10 06:42:09.783010 | centos-8 |   File "/home/zuul/venv/lib/python3.6/site-packages/pyVim/connect.py", line 867, in SmartConnect
2021-01-10 06:42:09.783019 | centos-8 |     mechanism=mechanism)
2021-01-10 06:42:09.783027 | centos-8 |   File "/home/zuul/venv/lib/python3.6/site-packages/pyVim/connect.py", line 266, in Connect
2021-01-10 06:42:09.783034 | centos-8 |     keyFile, certFile, thumbprint, sslContext, connectionPoolTimeout)
2021-01-10 06:42:09.783042 | centos-8 |   File "/home/zuul/venv/lib/python3.6/site-packages/pyVim/connect.py", line 390, in __Login
2021-01-10 06:42:09.783050 | centos-8 |     x = content.sessionManager.Login(user, pwd, None)
2021-01-10 06:42:09.783058 | centos-8 |   File "/home/zuul/venv/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py", line 706, in <lambda>
2021-01-10 06:42:09.783066 | centos-8 |     self.f(*(self.args + (obj,) + args), **kwargs)
2021-01-10 06:42:09.783074 | centos-8 |   File "/home/zuul/venv/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py", line 512, in _InvokeMethod
2021-01-10 06:42:09.783081 | centos-8 |     return self._stub.InvokeMethod(self, info, args)
2021-01-10 06:42:09.783089 | centos-8 |   File "/home/zuul/venv/lib/python3.6/site-packages/pyVmomi/SoapAdapter.py", line 1397, in InvokeMethod
2021-01-10 06:42:09.783097 | centos-8 |     raise obj # pylint: disable-msg=E0702
2021-01-10 06:42:09.783913 | centos-8 | fatal: [testhost]: FAILED! => {
2021-01-10 06:42:09.783936 | centos-8 |     "changed": false,
2021-01-10 06:42:09.783945 | centos-8 |     "invocation": {
2021-01-10 06:42:09.783951 | centos-8 |         "module_args": {
2021-01-10 06:42:09.783958 | centos-8 |             "esxi_hostname": "esxi1.test",
2021-01-10 06:42:09.783965 | centos-8 |             "hostname": "vcenter.test",
2021-01-10 06:42:09.783972 | centos-8 |             "iscsi_config": null,
2021-01-10 06:42:09.783978 | centos-8 |             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
2021-01-10 06:42:09.783985 | centos-8 |             "port": 443,
2021-01-10 06:42:09.783991 | centos-8 |             "proxy_host": null,
2021-01-10 06:42:09.783998 | centos-8 |             "proxy_port": null,
2021-01-10 06:42:09.784005 | centos-8 |             "state": "disabled",
2021-01-10 06:42:09.784011 | centos-8 |             "username": "administrator@vsphere.local",
2021-01-10 06:42:09.784018 | centos-8 |             "validate_certs": false
2021-01-10 06:42:09.784024 | centos-8 |         }
2021-01-10 06:42:09.784031 | centos-8 |     },
2021-01-10 06:42:09.784038 | centos-8 |     "msg": "Unable to log on to vCenter or ESXi API at vcenter.test:443  as administrator@vsphere.local: Cannot complete login due to
an incorrect user name or password."
2021-01-10 06:42:09.784052 | centos-8 | }
2021-01-10 06:42:09.787502 | centos-8 |
2021-01-10 06:42:09.787528 | centos-8 | PLAY RECAP *********************************************************************
2021-01-10 06:42:09.787793 | centos-8 | testhost                   : ok=43   changed=13   unreachable=0    failed=1    skipped=16   rescued=0    ignored=1

I wonder why the error started occurring...
I look that it doesn't appear to be the integration test issue.

Akasurde commented 3 years ago

ok.

sky-joker commented 3 years ago

Just in case, I also try if the test correctly works in my homelab.

Akasurde commented 3 years ago

I am pretty sure that this login failure is due to low memory. cc @goneri

sky-joker commented 3 years ago

ok, thanks reply!

goneri commented 3 years ago

yes, or an ESXi crash.

ansibullbot commented 3 years ago

cc @Tomorrow9 @lparkes @pgbidkar @warthog9 click here for bot help

mariolenz commented 3 years ago

@Akasurde You have closed PR #605 because you seem to agree that the root cause of the CI failures hasn't something to do with the vmware_host_iscsi_info tests. So I'll close this issue, too.

I hope this is OK for you. Otherwise, feel free to open it again.