threefoldtech / tfgrid-sdk-ts

Apache License 2.0
4 stars 8 forks source link

public ips node filter is not working #2050

Closed khaledyoussef24 closed 7 months ago

khaledyoussef24 commented 8 months ago

Description

public ips node in load nodes is not working env used : devnet version : https://github.com/threefoldtech/tfgrid-sdk-ts/commit/5b50681261cf6e97e63a9dc4eac5535210aaae9b

Screenshot 2024-01-21 at 9 12 04 AM Screenshot 2024-01-21 at 9 20 17 AM Screenshot 2024-01-21 at 9 19 39 AM
AlaaElattar commented 8 months ago

Work In Progress (WIP):

AlaaElattar commented 8 months ago
khaledyoussef24 commented 8 months ago

can not produce the issue anymore . tried the same scenarios as last time but did not work. will re-open if i could produce it again.

khaledyoussef24 commented 8 months ago

the issue still existtelegram-cloud-photo-size-4-5875128825996754705-y

sameh-farouk commented 8 months ago

related to https://github.com/threefoldtech/tfchain_graphql/issues/151

the processor update public_ip table when it create or update a contract. so this related to the the contracts issue and should be fixed when the ops deploy the new version (request)

AlaaElattar commented 8 months ago
AlaaElattar commented 8 months ago
khaledyoussef24 commented 8 months ago

made a four or more deployments with public ip and did not face the same issue again

the issue is no more longer reproducible

Mahmoud-Emad commented 7 months ago

I remember we threw this error to inform the user if the selected farm has enough IPs. The question is, why doesn't it pass the IP field when filtering to get nodes?

image

as you see here these are the nodes I got image

AlaaElattar commented 7 months ago

Work In Progress (WIP):

image

image

image

image

AlaaElattar commented 7 months ago

Work In Progress (WIP):

  • I deployed vm with public ip and the filtration worked fine.

image

  • Then, I tried to deploy caprover but i got no nodes were found as i took last public ip.

image

  • I deleted the vm to free the public ip, then went to deploy caprover.

image

  • when i tried to deploy worker to the caprover i got no nodes were found.

image

AlaaElattar commented 7 months ago

image

AlaaElattar commented 7 months ago

I remember we threw this error to inform the user if the selected farm has enough IPs. The question is, why doesn't it pass the IP field when filtering to get nodes?

image

as you see here these are the nodes I got image

AhmedHanafy725 commented 7 months ago

I think what happened is a race condition. Someone was deploying at the same time and he got the last public ip in the farm before you. And nothing can be done in this case.

khaledyoussef24 commented 7 months ago

is there any solution that we can do so we can avoid this concurrency? or shall we close it for now ?

AhmedHanafy725 commented 7 months ago

This can rarely happen and TFchain already rejecting the deployment in case the ip got taken. We will support this #1822 to make the client reject the deployment too. But nothing we can do in the playground.