PowerStore: SRA "Failed to promote replica devices. SRA command 'failover' failed. General error --> check logs for details"
Summary: SRA fails to promote replica device with generic error.
Symptoms
Unable to fail over using SRM/SRA.
You may see SRA command failover failed or "Failed to promote replica devices. SRA command 'failover' failed. General error --> check logs for details" in the vCenter UI when attempting a failover or test fail over.
In SRM/SRA, go to each log and then extract them. Go to Logs > SRAs/ SRAs/ SHA256xxxx (check each entry to find the latest date in the logs)
First check the log labeled vmware-dr.log for the following line to confirm the CLI and UI are seeing the same error:
--> (dr.storageProvider.fault.StorageFailoverFailed) {
--> faultCause = (dr.storage.fault.CommandFailed) {
--> faultCause = (dr.storage.fault.LocalizableAdapterFault) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>,
--> code = "70c18a97-02e4-4523-b9c5-c222ebdedaff.501",
--> arg = <unset>
--> msg = "general error
--> check logs for details"
--> },
--> faultMessage = <unset>,
--> commandName = "failover"
--> msg = "SRA command 'failover' failed. general error
--> check logs for details"
--> },
--> faultMessage = <unset>
--> msg = "Failed to promote replica devices. SRA command 'failover' failed. general error
--> check logs for details"
Next Check the FAILOVER.log for the following:
[error] 2024-01-22 17:56:04,177 sra_logger.py:log_call_without_args:137: function get_storage_ports failed with error: "'NoneType' object has no attribute 'name'" <--- this line
[verbose] 2024-01-22 17:56:04,178 failover.py:get_result:382: Complete method 'get_storage_ports'
[error] 2024-01-22 17:56:04,178 executor.py:start:133: 'NoneType' object has no attribute 'name' <----- this line
[error] 2024-01-22 17:56:04,181 executor.py:start:139: SRM result in dict - b"{'response': {'error': {'@code': 501}}}"
[info] 2024-01-22 17:56:04,182 executor.py:safety_print:42: output XML:
<?xml version="1.0" encoding="utf-8"?>
<Response xmlns="http://www.vmware.com/srm/sra/v2" xmlns:custom="http://www.dellemc/srm/sra/custom/v1">
<Error code="501"/>
</Response>Cause
PowerStore on 3.5.0.x version
SRA on 2.1.0.190 version
There is an issue with SRA on 2.1.0.190. Any information put in the "Preferred Remote PowerStore Manager IPs Allowed list" causes SRA to NOT be able to find an object.
Resolution
Work Around:
Remove any information in the "Preferred Remote PowerStore Manager IPs Allowed list" and then try again.
Fix:
The fix is available in SRA version 2.1.1
Additional Information
Dell Technologies PowerStore Storage Replication Adapter (SRA) Plugin for VMware Site Recovery Manager Release Notes
Page 4 - Fixed issues:
SRM planned failover with ABR not working: A planned SRM failover does not work when the preferred PowerStore IPs setting of Optional is allowed.