def _StoreInstReasonTrail(instance_name, trail):
  json = serializer.DumpJson(trail)
  filename = _GetInstReasonFilename(instance_name)
  utils.WriteFile(filename, data=json)
Serialize a reason trail related to an instance change of state to file.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/_StoreInstReasonTrail