agones icon indicating copy to clipboard operation
agones copied to clipboard

Could not find an Allocatable GameServer

Open SomendraDev opened this issue 3 years ago • 2 comments

I am getting this error in agones-controller-service :

{"error":"Could not find an Allocatable GameServer","gsa":{"kind":"GameServerAllocation","apiVersion":"allocation.agones.dev/v1","metadata":{"namespace":"wildwarz","creationTimestamp":"2022-08-10T06:49:17Z"},"spec":{"multiClusterSetting":{"policySelector":{}},"required":{"matchLabels":{"agonesdevfleet":"uno-fleet"}},"selectors":[{"matchLabels":{"agonesdevfleet":"uno-fleet"}}],"scheduling":"Packed","metadata":{}},"status":{"state":"","gameServerName":""}},"gsaKey":"wildwarz/","message":"failed to allocate. Retrying...","severity":"warning","source":"*gameserverallocations.Allocator","time":"2022-08-10T06:49:18.210961678Z"}

While the game server with this label already exists :

image

image

image

I am installing agones without tls : helm install my-release agones/agones --set gameservers.namespaces={wildwarz},agones.ping.http.serviceType=ClusterIP,agones.ping.udp.serviceType=ClusterIP,agones.allocator.service.serviceType=ClusterIP,agones.allocator.disableMTLS=true,agones.allocator.disableTLS=true --namespace agones-system

Please help to find out what I am doing wrong

SomendraDev avatar Aug 10 '22 07:08 SomendraDev

Resolved by adding label in yaml file : image I already set using gameserver setlabel in c# client library, but don't know why it is not working : image

SomendraDev avatar Aug 10 '22 08:08 SomendraDev

GameServerAllocation selects against a GameServer not a Pod - so the label has to exist on the GameServer for it to be resolved against.

markmandel avatar Aug 10 '22 13:08 markmandel

Just confirming if this question was answered - if no response, we'll close this issue. Hoping it did though 😄

markmandel avatar Nov 26 '22 01:11 markmandel

Closing as stale.

markmandel avatar Dec 08 '22 00:12 markmandel