You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flasharray: vm deployment crashes when a host has no matching host object on the array #14862
Deploying a VM fails with a NullPointerException when a KVM host in the cluster has no host object with the same name on the FlashArray.
While picking a host, CloudStack asks the FlashArray driver if each host can reach the pool. FlashArrayAdapter.getHost() looks the host up by name. The array answers 400 for an unknown name, the error is swallowed, the short name retry only runs when the name has a dot, and then getFlashArrayItem() is called on a null list. The crash fails the whole deployment, even when other hosts in the cluster are fine.
The same method also has hostname.substring(0, hostname.indexOf('.')) in the attach fallback, which crashes for a host name with no dot.
versions
ACS 4.22.1.1, KVM, FlashArray over FibreChannel, Purity//FA 6.10.6. The code is the same on 4.22 and main.
The steps to reproduce the bug
Register a FlashArray primary storage pool.
Rename the array host object for one KVM host so it no longer matches, for example purehost rename b08-36 b08-36-fc.
Deploy a VM on that host (or let the planner check it).
"errorcode": 530,
"errortext": "Cannot invoke \"org.apache.cloudstack.storage.datastore.adapter.flasharray.FlashArrayList.getItems()\" because \"list\" is null"
What to do about it?
Treat an unknown host name as "not found" and return null, so the host is skipped instead of failing the deployment. Retry the short name only when the name has a domain part.
Activity