Reputation: 93
When I run softlayer API for failover/failback (replication), I am receiving boolean status as TRUE. But when I goto Softlayer portal to confirm the request has placed properly or no, I could not see any changes in status.
import SoftLayer
client = SoftLayer.Client()
# Define parameters for snapshot
replicantId = <primary storage ID>
replicantId1 = <replica storage ID>
try:
result = client['SoftLayer_Network_Storage_Iscsi'].immediateFailoverToReplicant(replicantId1, id=replicantId)
print (result)
except SoftLayer.SoftLayerAPIError as e:
print("Error: " % (e.faultCode, e.faultString))
Above code returns me 'TRUE', but I could not see any changes on portal.
Also, when I check the replication status of volume with method 'getReplicationStatus' it returns 'REPLICATION_PROVISIONING_COMPLETED' for both.
Upvotes: 0
Views: 154
Reputation: 4386
Try using the "SoftLayer_Network_Storage" service instead "SoftLayer_Network_Storage_Iscsi"
Regards
Upvotes: 0