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

E2e test failed and can't access service #55696

Closed
fisherxu opened this Issue Nov 14, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@fisherxu
Member

fisherxu commented Nov 14, 2017

Is this a BUG REPORT or FEATURE REQUEST?:

/kind bug

What happened:
I local-up a k8s cluster without kube-dns service on only-one node, so I set in guestbook-deployment.yaml through env to access service. But it will failed occasionally as log below, which shows
that it can't find the service addr. We should create service first before deployments.

Nov 13 18:56:47.652: INFO: Failed to get response from guestbook. err: , response:

Fatal error: Uncaught exception 'Predis\Connection\ConnectionException' with message 'php_network_getaddresses: getaddrinfo failed: Name or service not known [tcp://:6379]' in /usr/local/lib/php/Predis/Connection/AbstractConnection.php:168
......
Nov 13 18:56:52.677: INFO: Failed to get response from guestbook. err: , response:

Fatal error: Uncaught exception 'Predis\Connection\ConnectionException' with message 'php_network_getaddresses: getaddrinfo failed: Name or service not known [tcp://:6379]' in /usr/local/lib/php/Predis/Connection/AbstractConnection.php:168

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@fisherxu

This comment has been minimized.

Show comment
Hide comment
@fisherxu

fisherxu Nov 14, 2017

Member

/sig cli

Member

fisherxu commented Nov 14, 2017

/sig cli

@fisherxu

This comment has been minimized.

Show comment
Hide comment
@fisherxu

fisherxu Nov 14, 2017

Member

/sig test

Member

fisherxu commented Nov 14, 2017

/sig test

hh pushed a commit to ii/kubernetes that referenced this issue Nov 16, 2017

Merge pull request kubernetes#55697 from fisherxu/e2efix
Automatic merge from submit-queue (batch tested with PRs 55697, 55631, 51905, 55647, 55826). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix failed to access service of e2e test

**What this PR does / why we need it**:
We should create service before deployments as said in the issue.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes [kubernetes#55696](kubernetes#55696)

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment