Merge "Failback will enable the host that has been frozen"
This commit is contained in:
commit
5bd5f22053
|
@ -3293,8 +3293,12 @@ class VolumeManager(manager.SchedulerDependentManager):
|
||||||
if secondary_backend_id == "default":
|
if secondary_backend_id == "default":
|
||||||
service.replication_status = fields.ReplicationStatus.ENABLED
|
service.replication_status = fields.ReplicationStatus.ENABLED
|
||||||
service.active_backend_id = ""
|
service.active_backend_id = ""
|
||||||
service.disabled = False
|
if service.frozen:
|
||||||
service.disabled_reason = ""
|
service.disabled = True
|
||||||
|
service.disabled_reason = "frozen"
|
||||||
|
else:
|
||||||
|
service.disabled = False
|
||||||
|
service.disabled_reason = ""
|
||||||
service.save()
|
service.save()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue