fix: Ensure we set ports / addresses while waiting for pod IPs#4095
fix: Ensure we set ports / addresses while waiting for pod IPs#4095lacroixthomas wants to merge 36 commits intoagones-dev:mainfrom
Conversation
|
Hello @0xaravindh |
|
/gcbrun |
|
Build Failed 😭 Build Id: 1ce69844-72da-4b87-b2ca-e583f2e40f32 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
/gcbrun |
|
Build Failed 😭 Build Id: 396cc119-9ba3-48a5-b9d2-fe41781fda60 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
@0xaravindh Or if there is a way to run it locally maybe ? Seems that it's the |
|
/gcbrun |
|
Build Failed 😭 Build Id: c41e2f02-f528-4dee-ae6e-3e65d87da1fe Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Also, this is the guide to build it and test it locally https://github.com/googleforgames/agones/blob/main/build/README.md#testing-and-building |
|
It currently fails on lint errors. Those can be caught by running |
Thanks ! I'm gonna have a look to run that locally |
|
Alright, I ran both the e2e that were failing |
|
/gcbrun |
|
Build Failed 😭 Build Id: af9e5b00-fe91-42ac-b238-9f0b49b64aab Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
/gcbrun |
|
Build Succeeded 🥳 Build Id: bd45a8dc-7e0a-484b-a8ab-6d1f6f1b74e1 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
ace3147 to
329bf81
Compare
|
/gcbrun |
|
Build Succeeded 🥳 Build Id: 85654e2a-42c4-4649-8bcc-4032850ceaeb The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
|
Build Failed 😭 Build Id: 81406e21-5e51-4172-8f8a-87a984964d65 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Failed 😭 Build Id: eb63f4da-9f02-40a2-9217-1ad3723de503 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Succeeded 🥳 Build Id: b6bb2246-282d-4c58-95f6-4eea8baaa410 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
|
Build Succeeded 🥳 Build Id: f137c67f-70ce-4cb0-80d7-e9a013de56b2 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
|
Build Failed 😭 Build Id: 46db9ff4-a090-4f72-aec9-de503acaa727 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Succeeded 🥳 Build Id: 2121ffc7-2975-405d-b802-f7b9c2d8562c The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
|
I've totally forgotten where we are on this PR? 😄 |
|
Same here, I'll have a look, kind of forgot it, I think it was ready to go, but will need to double check first 😅 |
|
Will try to have a look at the end of the week, it's on my list* |
|
@markmandel
And also if it's not getting to be updated from the sync (because of other error) and the podIP is available, it does the update (syncGameServerRequestReadyState) I'll wait for the e2e to pass, but it should be good for review 😄 |
|
Build Failed 😭 Build Id: a7de9010-6e6e-49dd-8230-b7955fae8866 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Succeeded 🥳 Build Id: 9ffa9191-4010-4dcb-8e2d-f165949dfa41 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
|
Build Failed 😭 Build Id: 54f0d4e0-6499-499d-9464-ce5e066e6c39 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Failed 😭 Build Id: 53c338f6-eaa5-4769-a298-16e8ed0ff730 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Succeeded 🥳 Build Id: 52c78d97-e31a-4c24-a6a0-ea2c28019d05 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
|
Seems that the CLA was not signed by Ka****dh@google.com ? Could that be that he updated my PR with the main branch but didn't signed the CLA ? 🤔 |
| if podIPUpdated { | ||
| // defer the update of the GameServer until the end of this function | ||
| // in case there is no gs state update and the podIP is available and populated | ||
| defer func(gs *agonesv1.GameServer, alreadyUpdated *bool) { |
There was a problem hiding this comment.
This freaks me out a bunch 😆 - but you still end up with a double update, which seems unnecessary.
The way I wanted to this work was that whenever the Pod IP is updated, then the GameServer gets updated - unless it's already captured in an existing status update.
We shouldn't need to have a double updated if it's already seen inside one of these status change sync functions.
|
Hope you don't mind - I have a pass at this in the works. Ended up being a bit easier than trying to explain what I was thinking. |
Oh yeah no, please got for it, I totally forgot about this one 😄 |
What type of PR is this?
/kind bug
What this PR does / Why we need it:
Currently, the gameserver wait that the Pod IPs are populated before setting the ports and addresses
This seems to be blocking for a moment, we already have the ports and addresses from the node available, we should set them and keep waiting for the pod IPs until ready to move to
GameServerStateScheduled(following this diagram: https://agones.dev/site/docs/reference/gameserver/#gameserver-state-diagram)Which issue(s) this PR fixes:
Closes #3960
Special notes for your reviewer: