Bug: Template cannot be Deployed when one host is under maintenace
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
Have a Template,2 hosts,one Data Center.
Data Center connected to the 2 hosts (you can see it in the vsphere tab)

When you are putting one host under maintenance and Trying to deploy a host you'll get an error that the host is not available.
but it should select the other working host,and it doesn't.
In the code I'm giving explicitly the working host and I still get the error.
clone_spec.location.host = available_host
It should select the available host,and I didn't find solution in the documentation.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing template deployment from the clone_spec.location.host assignment and the vSphere data-center and host selection paths. Reproduce the case with two hosts and one host in maintenance, then determine why the available host is rejected. Done means deployment selects the working host without the host-unavailable error, with coverage for the maintenance scenario if the relevant tests are found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100