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

vmware_dvswitch idempotency broken with vSphere 7.0.1 #576

Closed
goneri opened this issue Dec 15, 2020 · 0 comments · Fixed by #577
Closed

vmware_dvswitch idempotency broken with vSphere 7.0.1 #576

goneri opened this issue Dec 15, 2020 · 0 comments · Fixed by #577
Labels
vSphere7 vSphere 7.0 specific

Comments

@goneri
Copy link
Member

goneri commented Dec 15, 2020

SUMMARY

The second call fails with: "msg": "Failed to update DVS version : ('A specified parameter was not correct: ProductSpec.version', None)"

https://67c852f73dcdf0c2dfb3-0ccf87873bf01f37e305b0f143521d81.ssl.cf2.rackcdn.com/568/dc635f81a8c04a631c8f98c9f9a6554822279fea/check/ansible-test-cloud-integration-vcenter7_only-python36/5651c62/job-output.html#l26599

TASK [vmware_dvswitch : add distributed vSwitch again] *************************
task path: /home/zuul/.ansible/collections/ansible_collections/community/vmware/tests/integration/targets/vmware_dvswitch/tasks/main.yml:67
<testhost> ESTABLISH LOCAL CONNECTION FOR USER: zuul
<testhost> EXEC /bin/sh -c 'echo ~zuul && sleep 0'
<testhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/zuul/.ansible/tmp `"&& mkdir "` echo /home/zuul/.ansible/tmp/ansible-tmp-1608048501.0916786-36001-78830974297798 `" && echo ansible-tmp-1608048501.0916786-36001-78830974297798="` echo /home/zuul/.ansible/tmp/ansible-tmp-1608048501.0916786-36001-78830974297798 `" ) && sleep 0'
Using module file /home/zuul/.ansible/collections/ansible_collections/community/vmware/plugins/modules/vmware_dvswitch.py
<testhost> PUT /home/zuul/.ansible/tmp/ansible-local-35652_aplezpg/tmpyxkceyip TO /home/zuul/.ansible/tmp/ansible-tmp-1608048501.0916786-36001-78830974297798/AnsiballZ_vmware_dvswitch.py
<testhost> EXEC /bin/sh -c 'chmod u+x /home/zuul/.ansible/tmp/ansible-tmp-1608048501.0916786-36001-78830974297798/ /home/zuul/.ansible/tmp/ansible-tmp-1608048501.0916786-36001-78830974297798/AnsiballZ_vmware_dvswitch.py && sleep 0'
<testhost> EXEC /bin/sh -c '/tmp/python-aewn9r7k-ansible/python /home/zuul/.ansible/tmp/ansible-tmp-1608048501.0916786-36001-78830974297798/AnsiballZ_vmware_dvswitch.py && sleep 0'
<testhost> EXEC /bin/sh -c 'rm -f -r /home/zuul/.ansible/tmp/ansible-tmp-1608048501.0916786-36001-78830974297798/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
  File "/tmp/ansible_vmware_dvswitch_payload__g7z_igx/ansible_vmware_dvswitch_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_dvswitch.py", line 685, in update_dvswitch
  File "/tmp/ansible_vmware_dvswitch_payload__g7z_igx/ansible_vmware_dvswitch_payload.zip/ansible_collections/community/vmware/plugins/module_utils/vmware.py", line 83, in wait_for_task
    raise_from(TaskError(error_msg, host_thumbprint), task.info.error)
  File "<string>", line 3, in raise_from
fatal: [testhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "contact": null,
            "datacenter_name": "DC0",
            "description": null,
            "discovery_operation": "both",
            "discovery_proto": "lldp",
            "folder": null,
            "health_check": {
                "teaming_failover": false,
                "teaming_failover_interval": 0,
                "vlan_mtu": false,
                "vlan_mtu_interval": 0
            },
            "hostname": "vcenter.test",
            "mtu": 9000,
            "multicast_filtering_mode": "basic",
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "port": 443,
            "proxy_host": null,
            "proxy_port": null,
            "state": "present",
            "switch_name": "dvswitch_0001",
            "switch_version": null,
            "uplink_prefix": "Uplink ",
            "uplink_quantity": 2,
            "username": "[email protected]",
            "validate_certs": false
        }
    },
    "msg": "Failed to update DVS version : ('A specified parameter was not correct: ProductSpec.version', None)"
ISSUE TYPE
  • Bug Report
COMPONENT NAME

vmware_dvswitch

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

Successfully merging a pull request may close this issue.

2 participants