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

Flaky: TestGameServerWithPortsMappedToMultipleContainers #1450

Closed
markmandel opened this issue Apr 6, 2020 · 2 comments · Fixed by #1458
Closed

Flaky: TestGameServerWithPortsMappedToMultipleContainers #1450

markmandel opened this issue Apr 6, 2020 · 2 comments · Fixed by #1458
Labels
area/tests Unit tests, e2e tests, anything to make sure things don't break good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/bug These are bugs.
Milestone

Comments

@markmandel
Copy link
Member

--- FAIL: TestGameServerWithPortsMappedToMultipleContainers (41.07s)
    gameserver_test.go:527: Could not message GameServer: read udp 192.168.10.2:45098->35.233.192.59:7273: read: connection refused

Seen this crop up a few times.

@markmandel markmandel added kind/bug These are bugs. help wanted We would love help on these issues. Please come help us! good first issue These are great first issues. If you are looking for a place to start, start here! area/tests Unit tests, e2e tests, anything to make sure things don't break labels Apr 6, 2020
@aLekSer
Copy link
Collaborator

aLekSer commented Apr 7, 2020

I think there is a problem with two containers started listening the port at different time.
The Fleet configuration from the test is:

apiVersion: "agones.dev/v1"
kind: Fleet
metadata:
  name: simple-udp
spec:
  replicas: 2
  template:
    spec:
      container: simple-udp
      ports:
      - name: default
        containerPort: 7654
      - name: second-gameport
        containerPort: 5000
        container: "second-udp-server"
      template:
        spec:
          containers:
          - name: simple-udp
            image: gcr.io/agones-images/udp-server:0.19
            resources:
              requests:
                memory: "64Mi"
                cpu: "20m"
              limits:
                memory: "64Mi"
                cpu: "20m"
          - name: second-udp-server
            image: gcr.io/agones-images/udp-server:0.19
            args: ["-port", "5000"]

@markmandel
Copy link
Member Author

Easy solution might be to poll the UDP pings for a minute until it works, to account for some delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Unit tests, e2e tests, anything to make sure things don't break good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/bug These are bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants