@roles.setter
    def roles(self, value):
        self._roles = list(value)
        self.config_validated = False
value should be a list of role name.
dataset/ETHPy150Open openstack/compass-core/compass/db/models.py/ClusterHost.roles