'The full stack identifier for a single, live stack with stack_name.
:param cnxt: RPC context.
:param stack_name: Name or UUID of the stack to look up.'

@context.request_context
def identify_stack(self, cnxt, stack_name):

    s = None
    if uuidutils.is_uuid_like(stack_name):
        s = stack_object.Stack.get_by_id(cnxt, stack_name, show_deleted=True, eager_load=False)
    if (not s):
        s = stack_object.Stack.get_by_name(cnxt, stack_name)
    if (not s):
        raise exception.EntityNotFound(entity='Stack', name=stack_name)
    return dict(s.identifier())
