Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples.instanceadmin.test_instanceadmin: test_add_and_delete_cluster failed #434

Closed
flaky-bot bot opened this issue Oct 2, 2021 · 2 comments · Fixed by #452
Closed

samples.instanceadmin.test_instanceadmin: test_add_and_delete_cluster failed #434

flaky-bot bot opened this issue Oct 2, 2021 · 2 comments · Fixed by #452
Assignees
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. samples Issues that are directly related to samples. type: process A process-related concern. May include testing, release, or the like.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Oct 2, 2021

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


commit: 50901c7
buildURL: Build Status, Sponge
status: failed

Test output
args = (name: "operations/projects/python-docs-samples-tests/instances/instanceadmin-684-1633172606/locations/us-central1-f/operations/1930145908071198971"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=operations/projects/python-docs-samples-tests/instances/instanceadmin-68...-f/operations/1930145908071198971'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.41.0 gax/1.31.3')], 'timeout': 20.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 0x7f75e5aae130>
request = name: "operations/projects/python-docs-samples-tests/instances/instanceadmin-684-1633172606/locations/us-central1-f/operations/1930145908071198971"

timeout = 20.0
metadata = [('x-goog-request-params', 'name=operations/projects/python-docs-samples-tests/instances/instanceadmin-684-1633172606/locations/us-central1-f/operations/1930145908071198971'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.41.0 gax/1.31.3')]
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 0x7f75e7bae370>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f75e635c6c0>
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.DEADLINE_EXCEEDED
E details = "Deadline expired before operation could complete."
E debug_error_string = "{"created":"@1633172629.973407816","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1069,"grpc_message":"Deadline expired before operation could complete.","grpc_status":4}"
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:

capsys = <_pytest.capture.CaptureFixture object at 0x7f75e7b8a100>
dispose_of = <function dispose_of..disposal at 0x7f75e7b7ed30>

def test_add_and_delete_cluster(capsys, dispose_of):
    dispose_of(INSTANCE)

    # This won't work, because the instance isn't created yet
    instanceadmin.add_cluster(PROJECT, INSTANCE, CLUSTER2)
    out = capsys.readouterr().out
    assert f"Instance {INSTANCE} does not exist" in out

    # Get the instance created
  instanceadmin.run_instance_operations(PROJECT, INSTANCE, CLUSTER1)

test_instanceadmin.py:128:


instanceadmin.py:77: in run_instance_operations
operation.result(timeout=60)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:130: in result
self._blocking_poll(timeout=timeout, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:108: in blocking_poll
retry
(self._done_or_raise)(**kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:286: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:189: in retry_target
return target()
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/future/polling.py:86: in _done_or_raise
if not self.done(**kwargs):
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/operation.py:170: in done
self._refresh_and_update(retry)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/operation.py:158: in _refresh_and_update
self._operation = self._refresh(retry=retry)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/operations_v1/operations_client.py:142: in get_operation
return self._get_operation(
.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/retry.py:286: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:189: in retry_target
return target()
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/timeout.py:214: in func_with_timeout
return 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.DEADLINE_EXCEEDED
details = "Deadline expired be...urface/call.cc","file_line":1069,"grpc_message":"Deadline expired before operation could complete.","grpc_status":4}"

???
E google.api_core.exceptions.DeadlineExceeded: 504 Deadline expired before operation could complete.

:3: DeadlineExceeded

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Oct 2, 2021
@product-auto-label product-auto-label bot added api: bigtable Issues related to the googleapis/python-bigtable API. samples Issues that are directly related to samples. labels Oct 2, 2021
@flaky-bot
Copy link
Author

flaky-bot bot commented Oct 3, 2021

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (50901c7), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label Oct 3, 2021
@kolea2 kolea2 closed this as completed Oct 4, 2021
@tseaver
Copy link
Contributor

tseaver commented Oct 19, 2021

Failed today.

@tseaver tseaver reopened this Oct 19, 2021
@tseaver tseaver added type: process A process-related concern. May include testing, release, or the like. and removed type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Oct 19, 2021
@tseaver tseaver self-assigned this Oct 19, 2021
tseaver added a commit that referenced this issue Oct 19, 2021
tseaver added a commit that referenced this issue Oct 20, 2021
tseaver added a commit that referenced this issue Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. samples Issues that are directly related to samples. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants