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

Support connecting to bigtable emulator running on separate container/machine #755

Closed
keeth opened this issue Mar 22, 2023 · 1 comment · Fixed by #946
Closed

Support connecting to bigtable emulator running on separate container/machine #755

keeth opened this issue Mar 22, 2023 · 1 comment · Fixed by #946
Assignees
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@keeth
Copy link

keeth commented Mar 22, 2023

Our CI setup involves running docker compose with firestore/bigtable emulators running in separate containers from the system being tested, but grpc.secure_channel prohibits a non-local address being used with local credentials.

Environment details

  • OS type and version: Latest Debian running under Docker
  • Python version: 3.10.9
  • pip version: pip 22.3.1
  • google-cloud-bigtable version: 2.17.0

Steps to reproduce

  1. Run BigTable emulator on another host (say in a separate container in a single docker-compose file).
  2. Attempt to connect to the emulator
  3. Error:
google.api_core.exceptions.RetryError: Deadline of 60.0s exceeded while calling target function,
last exception: 503 failed to connect to all addresses;
last error: UNKNOWN: ipv4:172.23.0.3:8086: Endpoint is neither UDS or TCP loopback address.

A similar bug was reported on python-firestore which was subsequently fixed.

I am betting a similar fix will work here. Thanks!

@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Mar 22, 2023
@triplequark triplequark added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Oct 4, 2023
@daniel-sanche
Copy link
Contributor

I opened a PR to address this: #946

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. priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants