M3VM
Enthusiast
Enthusiast

python error: TypeError: Value of unknown type

Can anyone help me resolve this error...?

The error is as follows:

fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html\n  InsecureRequestWarning)\nTraceback (most recent call last):\n  File \"/tmp/ansible_orauoN/ansible_module_vcenter_hostmigration2.py\", line 221, in <module>\n    main()\n  File \"/tmp/ansible_orauoN/ansible_module_vcenter_hostmigration2.py\", line 211, in main\n    module.fail_json(msg=runtime_fault.msg)\n  File \"/tmp/ansible_orauoN/ansible_modlib.zip/ansible/module_utils/basic.py\", line 1741, in fail_json\n  File \"/tmp/ansible_orauoN/ansible_modlib.zip/ansible/module_utils/basic.py\", line 440, in remove_values\n  File \"/tmp/ansible_orauoN/ansible_modlib.zip/ansible/module_utils/basic.py\", line 440, in <genexpr>\n  File \"/tmp/ansible_orauoN/ansible_modlib.zip/ansible/module_utils/basic.py\", line 440, in remove_values\n  File \"/tmp/ansible_orauoN/ansible_modlib.zip/ansible/module_utils/basic.py\", line 440, in <genexpr>\n  File \"/tmp/ansible_orauoN/ansible_modlib.zip/ansible/module_utils/basic.py\", line 440, in remove_values\n  File \"/tmp/ansible_orauoN/ansible_modlib.zip/ansible/module_utils/basic.py\", line 440, in <genexpr>\n  File \"/tmp/ansible_orauoN/ansible_modlib.zip/ansible/module_utils/basic.py\", line 451, in remove_values\nTypeError: Value of unknown type: <class 'pyVmomi.VmomiSupport.vim.host.VirtualNic'>, (vim.host.VirtualNic) {\n  dynamicType = <unset>,\n  dynamicProperty = (vmodl.DynamicProperty) [],\n  device = 'vmk0',\n  key = 'key-vim.host.VirtualNic-vmk0',\n  portgroup = 'Management Network',\n  spec = (vim.host.VirtualNic.Specification) {\n      dynamicType = <unset>,\n      dynamicProperty = (vmodl.DynamicProperty) [],\n      ip = (vim.host.IpConfig) {\n        dynamicType = <unset>,\n        dynamicProperty = (vmodl.DynamicProperty) [],\n        dhcp = false,\n        ipAddress = '192.169.241.30',\n        subnetMask = '255.255.255.0',\n        ipV6Config = (vim.host.IpConfig.IpV6AddressConfiguration) {\n            dynamicType = <unset>,\n            dynamicProperty = (vmodl.DynamicProperty) [],\n            ipV6Address = (vim.host.IpConfig.IpV6Address) [\n              (vim.host.IpConfig.IpV6Address) {\n                  dynamicType = <unset>,\n                  dynamicProperty = (vmodl.DynamicProperty) [],\n                  ipAddress = 'fe80::266e:96ff:fe0b:c390',\n                  prefixLength = 64,\n                  origin = 'other',\n                  dadState = 'preferred',\n                  lifetime = <unset>,\n                  operation = <unset>\n              }\n            ],\n            autoConfigurationEnabled = true,\n            dhcpV6Enabled = false\n        }\n      },\n      mac = '24:6e:96:0b:c3:90',\n      distributedVirtualPort = <unset>,\n      portgroup = 'Management Network',\n      mtu = 1500,\n      tsoEnabled = true,\n      netStackInstanceKey = 'defaultTcpipStack'\n  },\n  port = u'key-vim.host.PortGroup.Port-33554449'\n}\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}

Tags (2)
0 Kudos
0 Replies