def _AllInstanceNodes(self, inst_uuid):
    instance = self._UnlockedGetInstanceInfo(inst_uuid)
    if instance is None:
      raise errors.ConfigurationError("Unknown instance '%s'" % inst_uuid)

    instance_disks = self._UnlockedGetInstanceDisks(inst_uuid)
    all_nodes = []
    for disk in instance_disks:
      all_nodes.extend(disk.all_nodes)
    return (set(all_nodes), instance)
Compute the set of all disk-related nodes for an instance.
dataset/ETHPy150Open ganeti/ganeti/lib/config/__init__.py/ConfigWriter._AllInstanceNodes