cloudify-cosmo / cloudify-vsphere-plugin

Cloudify vSphere Plugin
Apache License 2.0
10 stars 17 forks source link

Task failed 'vsphere_server_plugin.server.create' -> 'host-6055' [retry 1/60] #186

Open prashansahans opened 3 years ago

prashansahans commented 3 years ago

Hi I have been trying to provision a VM to Vsphere using cloudify

But getting the error

Task failed 'vsphere_server_plugin.server.create' -> 'host-6055' [retry 1/60]

Vladimir-Antonovich commented 3 years ago

@prashansahans Could you provide more logs?

prashansahans commented 3 years ago

@Vladimir-Antonovich [ { "message": "'host-6055'", "type": "KeyError", "traceback": "Traceback (most recent call last):\n File \"/opt/mgmtworker/env/lib/python3.6/site-packages/cloudify/dispatch.py\", line 793, in main\n payload = handler.handle()\n File \"/opt/mgmtworker/env/lib/python3.6/site-packages/cloudify/dispatch.py\", line 456, in handle\n result = self._run_operation_func(ctx, kwargs)\n File \"/opt/mgmtworker/env/lib/python3.6/site-packages/cloudify/dispatch.py\", line 509, in _run_operation_func\n return self.func(self.args, kwargs)\n File \"/opt/mgmtworker/env/plugins/default_tenant/cloudify-vsphere-plugin/2.19.3/lib/python3.6/site-packages/vsphere_plugin_common/utils.py\", line 94, in wrapper\n return func(processed_kwargs)\n File \"/opt/mgmtworker/env/plugins/default_tenant/cloudify-vsphere-plugin/2.19.3/lib/python3.6/site-packages/vsphere_plugin_common/init.py\", line 72, in wrapper\n result = f(args, **kwargs)\n File \"/opt/mgmtworker/env/plugins/default_tenant/cloudify-vsphere-plugin/2.19.3/lib/python3.6/site-packages/vsphere_server_plugin/server.py\", line 401, in create\n max_wait_time=max_wait_time)\n File \"/opt/mgmtworker/env/plugins/default_tenant/cloudify-vsphere-plugin/2.19.3/lib/python3.6/site-packages/vsphere_server_plugin/server.py\", line 334, in create_new_server\n max_wait_time=max_wait_time)\n File \"/opt/mgmtworker/env/plugins/default_tenant/cloudify-vsphere-plugin/2.19.3/lib/python3.6/site-packages/vsphere_plugin_common/clients/server.py\", line 568, in create_server\n allowed_clusters=allowed_clusters,\n File \"/opt/mgmtworker/env/plugins/default_tenant/cloudify-vsphere-plugin/2.19.3/lib/python3.6/site-packages/vsphere_plugin_common/clients/server.py\", line 998, in find_candidate_hosts\n hosts = self._get_hosts_in_tree(datacenter.obj.hostFolder)\n File \"/opt/mgmtworker/env/plugins/default_tenant/cloudify-vsphere-plugin/2.19.3/lib/python3.6/site-packages/vsphere_plugin_common/clients/init.py\", line 932, in _get_hosts_in_tree\n cloudify_hosts = [cloudify_host_dict[id] for id in vmware_host_ids]\n File \"/opt/mgmtworker/env/plugins/default_tenant/cloudify-vsphere-plugin/2.19.3/lib/python3.6/site-packages/vsphere_plugin_common/clients/init.py\", line 932, in \n cloudify_hosts = [cloudify_host_dict[id] for id in vmware_host_ids]\nKeyError: 'host-6055'\n" } ]

Screenshot 2021-04-30 125155
Vladimir-Antonovich commented 3 years ago

@prashansahans It seems incorrect data defined in properties of .Server node template. Please open a ticket in https://cloudify.zendesk.com/, or ask your question in cloudify-community.slack.com