Skip to content

flasharray: vm deployment crashes when a host has no matching host object on the array #14862

Todo

Description

@Damans227

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.

Activity

  1. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions