Damans227 opened a new issue, #14863:
URL: https://github.com/apache/cloudstack/issues/14863
### problem
When the FlashArray host object name does not match the CloudStack host
name, attaching a volume to a VM on that host fails with an error that does not
say what is wrong.
The driver looks up the host on the array by its CloudStack name. When it is
not found, attach skips creating the connection and then fails with "Volume
attach did not return lun information", and what reaches the user is "Error
revoking access for host ... to volume ...". Nothing points at the name
mismatch.
### 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, for example `purehost
rename b08-36 b08-36-fc`.
3. Attach a FlashArray volume to a VM running on that host.
```
ERROR [o.a.c.s.d.d.AdaptiveDataStoreDriverImpl] Error granting host Host
{"id":4,"name":"b08-36",...} access to volume ...
ERROR [o.a.c.s.d.d.AdaptiveDataStoreDriverImpl] Error revoking access for
host Host {"id":4,"name":"b08-36",...} to volume ...
CloudRuntimeException: Error revoking access for host Host
{"id":4,"name":"b08-36",...} to volume VolumeObject {...}
```
### What to do about it?
Fail the attach with a message that says the host was not found on the array
and that the names must match.
--
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]