Skip to content

unit test flake: panic: grpc: the server has been stopped #233

@BlaineEXE

Description

@BlaineEXE

Bug Report

What happened:

There is a fairly frequent unit test flake showing panic: grpc: the server has been stopped. This occurs in sidecar tests.

I haven't observed this in local testing. Only in the prow CI. Presumably due to Prow CI running in resource-constrained virtual environments that have occasional slowness.

I think this is happening when the unit test's gRPC server starts slower than tests run but am not sure. It is a race condition. We should find out what will allow the tests to wait until the gRPC server is running before proceeding.

What you expected to happen:

Unit tests should be stable.

How to reproduce this bug (as minimally and precisely as possible):

Hard to repro. Run prow CI multiple times to observe. I have not observed it on my local machine, presumably because it is faster.

Anything else relevant for this bug report?:

Resources and logs to submit:

Copy all relevant COSI resources here in yaml format:

# BucketClass
# BucketAccessClass
# BucketClaim
# Bucket
# BucketAccess
# Copy COSI controller pod logs here
# Copy COSI sidecar logs here for the relevant driver

Environment:

  • Kubernetes version (use kubectl version), please list client and server:
  • Sidecar version (provide the release tag or commit hash):
  • Provisoner name and version (provide the release tag or commit hash):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Network plugin and version (if this is a network-related bug):
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    api/v1alpha2Issue reported against or feature request for v1alpha2 APIhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions