Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

DRS cluster doesn't detect default datastore and network #183

Open
mkuzmin opened this issue Nov 1, 2018 · 13 comments
Open

DRS cluster doesn't detect default datastore and network #183

mkuzmin opened this issue Nov 1, 2018 · 13 comments
Labels

Comments

@mkuzmin
Copy link
Contributor

mkuzmin commented Nov 1, 2018

if datastore or network are not specified explicitly for DRS-enabled clusters, then a build fails with

==> vsphere-iso: Creating VM...
Build 'vsphere-iso' errored: error creating vm: host '' not found
@mkuzmin mkuzmin added the bug label Nov 1, 2018
@pagnmickie
Copy link

I just ran across this same issue. Any idea when it might get addressed?

@mkuzmin
Copy link
Contributor Author

mkuzmin commented Nov 26, 2018

Specify the value explicitly. This issue is not so easy to fix.

@pagnmickie
Copy link

It's not just the VM host. It's a cycle. You add that, it asks for datastores, then when you add that it asks for networks, etc. Which means I have to build on one host which isn't the best option.

@mkuzmin
Copy link
Contributor Author

mkuzmin commented Nov 27, 2018

Not sure I follow. On DRS-enabled clusters you don't need to specify host parameter.

@thor
Copy link

thor commented Dec 19, 2018

We're running into this as well, but we do use a DRS enabled cluster, and we have specified both datastore, cluster and network, but no host, yet we also get the host '' is not found error message similar to the comment on the commit.

The issue seems to happen however upon uploading the floppy, not when creating the virtual machine itself.

@mkuzmin
Copy link
Contributor Author

mkuzmin commented Dec 23, 2018

yes, I've reproduced the issue with floppy upload.
Unfortunately, the fix requires quite significant code refactoring.

As a workaround, you could try using the new http_directory parameter (#116) and do not upload files into the datastore at all.

@jcoconnor
Copy link
Contributor

jcoconnor commented Jan 2, 2019

@mkuzmin I see Version 2.2 is released with the notes field added.
However since this issue isn't fixed will have to defer on 2.2 just for the moment.

Unfortunately the http_directory parameter workaround doesn't work for Windows installs although its very useful as an alternate to the slow upload for winrm.

Tx - John

@jcoconnor
Copy link
Contributor

Hmm - after talking with our Infra people, it looks like we don't have DRS enabled on our cluster anyway, so it may that the previous (2.1) release "worked" without specifying the host - so looking at a workaround on our side to determine a hostname to use for the build.

@mkuzmin
Copy link
Contributor Author

mkuzmin commented Jan 5, 2019

I've fixed floppy upload and published a new release 2.3.
The issue with defaults is still actual but has a simple workaround.

@jcoconnor
Copy link
Contributor

@mkuzmin Thanks for the quick response on this.
I've downloaded Version 2.3 and it appears to allocate a host again from the cluster if the hostname field is blank.
It also populates the Notes field.

John

@pbusquemdf
Copy link

I am using 2.3 and I have the same issues.
We have a cluster with DRS, so according to the doc, I should specify the datacenter, the cluster and my network.

Yet, I get the following error:
"Build 'vsphere-iso' errored: error creating vm: host '' not found"

If I force a host, then I get this new error:

"Build 'vsphere-iso' errored: error creating vm: Host has multiple datastores. Specify it explicitly"

In a cluster with DRS, both the host and datasource should be coming from the DRS. This is not the case.

@jkugler
Copy link

jkugler commented Oct 8, 2019

This appears related: #241

@Guy-Rawsthorn
Copy link

The first comment solves my error
"ui,error,Build 'vsphere-iso' errored: error creating vm: host '' not found"
However, this doesn't appear to be within the 'vsphere-iso/Working With Clusters And Hosts' documentation.
Please can this be updated?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

7 participants