Damans227 opened a new issue, #14862:
URL: https://github.com/apache/cloudstack/issues/14862
### problem
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
1. Register a FlashArray primary storage pool.
2. Rename the array host object for one KVM host so it no longer matches,
for example `purehost rename b08-36 b08-36-fc`.
3. 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]