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

public ips node filter is not working #2050

Closed
khaledyoussef24 opened this issue Jan 21, 2024 · 16 comments
Closed

public ips node filter is not working #2050

khaledyoussef24 opened this issue Jan 21, 2024 · 16 comments
Assignees
Labels
dashboard type_bug Something isn't working
Milestone

Comments

@khaledyoussef24
Copy link
Contributor

Description

public ips node in load nodes is not working
env used : devnet
version : 5b50681
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
@khaledyoussef24 khaledyoussef24 added type_bug Something isn't working dashboard labels Jan 21, 2024
@xmonader xmonader added this to 3.13.x Jan 21, 2024
@xmonader xmonader modified the milestones: 2.2.0, 2.3.0 Jan 21, 2024
@xmonader xmonader moved this to Accepted in 3.13.x Jan 21, 2024
@AlaaElattar AlaaElattar self-assigned this Jan 22, 2024
@AlaaElattar AlaaElattar moved this from Accepted to In Progress in 3.13.x Jan 22, 2024
@AlaaElattar
Copy link
Contributor

Work In Progress (WIP):

  • after investigation. i found that checking farm ips is done after merging workloads.
  • still looking for a way to handle it earlier.

@AlaaElattar
Copy link
Contributor

AlaaElattar commented Jan 23, 2024

  • I tried to reproduce issue but it didn't appear.
  • This might have happened because there was outdated information on indexer before updating chain. (now it should have picked up the latest information)

@AlaaElattar AlaaElattar moved this from In Progress to In Verification in 3.13.x Jan 23, 2024
@khaledyoussef24
Copy link
Contributor Author

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 khaledyoussef24 moved this from In Verification to Done in 3.13.x Jan 24, 2024
@khaledyoussef24
Copy link
Contributor Author

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

@khaledyoussef24 khaledyoussef24 moved this from Done to Accepted in 3.13.x Jan 24, 2024
@sameh-farouk
Copy link
Member

related to threefoldtech/tfchain_graphql#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 AlaaElattar moved this from Accepted to Blocked in 3.13.x Jan 24, 2024
@AlaaElattar
Copy link
Contributor

@AlaaElattar AlaaElattar moved this from Blocked to Accepted in 3.13.x Jan 28, 2024
@AlaaElattar
Copy link
Contributor

  • As Graghql released to v2.11.6, the problem shouldn't exist anymore.

@AlaaElattar AlaaElattar moved this from Accepted to In Verification in 3.13.x Jan 28, 2024
@khaledyoussef24
Copy link
Contributor Author

khaledyoussef24 commented Jan 28, 2024

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

the issue is no more longer reproducible

@khaledyoussef24 khaledyoussef24 moved this from In Verification to Done in 3.13.x Jan 28, 2024
@Mahmoud-Emad
Copy link
Contributor

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

@Mahmoud-Emad Mahmoud-Emad reopened this Jan 30, 2024
@AlaaElattar AlaaElattar moved this from Done to In Progress in 3.13.x Jan 31, 2024
@AlaaElattar
Copy link
Contributor

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
Copy link
Contributor

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

  • i was also checking the public ips on freefarm from graphql at the same time, and there was no difference at any step.

@AlaaElattar
Copy link
Contributor

  • also manually the filtration works fine

image

@AlaaElattar
Copy link
Contributor

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

  • unable to reproduce this

@AlaaElattar AlaaElattar moved this from In Progress to In Verification in 3.13.x Jan 31, 2024
@AhmedHanafy725
Copy link
Contributor

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
Copy link
Contributor Author

khaledyoussef24 commented Jan 31, 2024

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

@khaledyoussef24 khaledyoussef24 moved this from In Verification to Accepted in 3.13.x Jan 31, 2024
@AhmedHanafy725
Copy link
Contributor

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.

@AhmedHanafy725 AhmedHanafy725 moved this from Accepted to In Verification in 3.13.x Feb 1, 2024
@khaledyoussef24 khaledyoussef24 moved this from In Verification to Done in 3.13.x Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard type_bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

7 participants