problem
Deploy Shared FileSystem loops through a shuffled list of supported hypervisors to find the systemVM template.
If one of the hypervisors (like External) don't have the systemVM template, instead of continuing to other hypervisors, it tries to access tempalte.getId() and throws NPE.
It only happens when the External hypervisor is present before any valid (KVM, VMware) hypervisor in the shuffled list. So this issue is intermittent.
versions
4.22.0
The steps to reproduce the bug
- Add an external hypervisor like Proxmox/Maas/HyperV
- Create a Shared FileSystem
- It errors out with NPE intermittently
...
What to do about it?
SharedFS should only loop through supported Hypervisors (KVM, VMware and XenServer).
And if the template is not found, instead of throwing NPE it should continue to the next hypervisor in the list.
problem
Deploy Shared FileSystem loops through a shuffled list of supported hypervisors to find the systemVM template.
If one of the hypervisors (like External) don't have the systemVM template, instead of continuing to other hypervisors, it tries to access tempalte.getId() and throws NPE.
It only happens when the External hypervisor is present before any valid (KVM, VMware) hypervisor in the shuffled list. So this issue is intermittent.
versions
4.22.0
The steps to reproduce the bug
...
What to do about it?
SharedFS should only loop through supported Hypervisors (KVM, VMware and XenServer).
And if the template is not found, instead of throwing NPE it should continue to the next hypervisor in the list.