googleapis/python-pubsublite

samples.snippets.quickstart_test: test_delete_lite_topic_example failed

flaky-bot opened this issue · 0 comments

Note: #148 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: e8378f2
buildURL: Build Status, Sponge
status: failed

Test output
args = (name: "projects/1012616486416/locations/us-central1-c/topics/py-lite-topic-65b461fd9d164f458daa5946c621c3d0"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/1012616486416/locations/us-central1-c/topics/py-lite-topic-65b461fd9d164f458daa5946c621c3d0'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.38.1 gax/1.31.0 gapic/0.5.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:67:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fad82907670>
request = name: "projects/1012616486416/locations/us-central1-c/topics/py-lite-topic-65b461fd9d164f458daa5946c621c3d0"

timeout = None
metadata = [('x-goog-request-params', 'name=projects/1012616486416/locations/us-central1-c/topics/py-lite-topic-65b461fd9d164f458daa5946c621c3d0'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.38.1 gax/1.31.0 gapic/0.5.0')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request,
             timeout=None,
             metadata=None,
             credentials=None,
             wait_for_ready=None,
             compression=None):
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7fad6a515fa0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fad6a55a740>
with_call = False, deadline = None

def _end_unary_response_blocking(state, call, with_call, deadline):
    if state.code is grpc.StatusCode.OK:
        if with_call:
            rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
            return state.response, rendezvous
        else:
            return state.response
    else:
      raise _InactiveRpcError(state)

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "Getting metadata from plugin failed with error: ('invalid_grant: Invalid JWT Signature.', {'error': 'invalid_grant', 'error_description': 'Invalid JWT Signature.'})"
E debug_error_string = "{"created":"@1626167069.801961413","description":"Getting metadata from plugin failed with error: ('invalid_grant: Invalid JWT Signature.', {'error': 'invalid_grant', 'error_description': 'Invalid JWT Signature.'})","file":"src/core/lib/security/credentials/plugin/plugin_credentials.cc","file_line":90,"grpc_status":14}"
E >

.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError

The above exception was the direct cause of the following exception:

client = <google.cloud.pubsublite.admin_client.AdminClient object at 0x7fad828dbe80>

@pytest.fixture(scope="module")
def topic_path(client):
    location = CloudZone(CloudRegion(CLOUD_REGION), ZONE_ID)
    topic_path = str(TopicPath(PROJECT_NUMBER, location, TOPIC_ID))
    yield topic_path
    try:
      client.delete_topic(topic_path)

quickstart_test.py:55:


../../google/cloud/pubsublite/admin_client.py:104: in delete_topic
return self._impl.delete_topic(topic_path)
../../google/cloud/pubsublite/internal/wire/admin_client_impl.py:70: in delete_topic
self._underlying.delete_topic(name=str(topic_path))
../../google/cloud/pubsublite_v1/services/admin_service/client.py:830: in delete_topic
rpc(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:69: in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)


value = None
from_value = <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Getting metadata from plu...nature.'})","file":"src/core/lib/security/credentials/plugin/plugin_credentials.cc","file_line":90,"grpc_status":14}"

???
E google.api_core.exceptions.ServiceUnavailable: 503 Getting metadata from plugin failed with error: ('invalid_grant: Invalid JWT Signature.', {'error': 'invalid_grant', 'error_description': 'Invalid JWT Signature.'})

:3: ServiceUnavailable