def _get_instances_for_project(self, project_id):
search_opts = {'<STR_LIT>': None,<EOL>'<STR_LIT>': True,<EOL>'<STR_LIT>': project_id}<EOL>try:<EOL><INDENT>servers = self._novaclnt.servers.list(True, search_opts)<EOL>LOG.debug('<STR_LIT>', servers)<EOL>return servers<EOL><DEDENT>except nexc.Unauthorized:<EOL><INDENT>emsg = (_LE('<STR_LIT>'<EOL>'<STR_LIT>'),<EOL>{'<STR_LIT>': self._project_id, '<STR_LIT:user>': self._user_name})<EOL>LOG.exception(emsg)<EOL>raise nexc.ClientException(emsg)<EOL><DEDENT>except nexc.AuthorizationFailure as err:<EOL><INDENT>emsg = (_LE("<STR_LIT>"))<EOL>LOG.exception(emsg, err)<EOL>raise nexc.ClientException(emsg % err)<EOL><DEDENT>
Return all instances for a given project.

        :project_id: UUID of project (tenant)