-
Notifications
You must be signed in to change notification settings - Fork 8
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
contracts doesn't change to the grace period when TFT balance isn't enough #1415
Comments
I looked at this issue and I will compile my debug session into this comment General info collected:Network: Tesnet
Things that seem off to me:
More Data observed during debugging:
|
Further investigation will be at threefoldtech/tfchain#893 |
This is now resolved. |
@sameh-farouk Indeed, the rent contract 25402 is now being billed and changed into the grace period status. But the other rent contract (26338) is still on the created status and hasn't been billed since it was created yet. Contract details
|
@A-Harby It is the same issue but with another validator
|
@A-Harby according to operation devnet, qanet, and testnet validators are checked and some issues were corrected. can you verify this now for rent and node contracts? |
@A-Harby 17516 on qa is a node contract, not rent contract. If you used the playground to create this deployment, please copy and paste the JSON deployment details here. |
|
Its good to hear that other contracts are behaving as expected now. The expected process is:
Then any billing (except for IP reservation) is based on the reserved resources and NRU consumption which are reported by the node. But for this specific contract, the workload looks like it wasn't deployed given the below observations:
Anyway, I believe this is totally unrelated to the original billing issue discussed here. please do open a different issue for it in the related repo (based in the way you used to deploy this). |
Some recommendation for the verification process
Note: billed periodically = the due amount are locked every billing cycle (600 blokcs or ~1 hour) then deducted every 24 billing cycle (~24 hours) |
@sameh-farouk Thank you! @ramezsaeed Hope you have these scenarios covered, if so, please close the issue with the link to the scenarios. |
Devnet, b75e477. |
Okay, Contracts in grace period was proceeded successfully so these actually have no issues and can be escaped. next, I'm checking the contract with id 54243 to see what is happening |
this I will have to check with ops regarding this one. next I'll check the other VM contract |
The other one
Is the VM reachable? I guess No . If you can't reach the deployment, I believe you need to open an issue for this one with how you created this contract, and that the deployment wasn't not provisioned. |
Yes, this is the VM I ssh in my comment above: #1415 (comment) |
No, The one you posted are for 54,243 not 54,242. please double check |
next I'll check @khaledyoussef24 contracts |
For the validator design I suggest that:
|
I agree, the billing logic need to get improved in many aspects not this only. I am already researching this. |
@khaledyoussef24 from tfchain prospective For the other contract, |
Contract |
okay this |
After tracked contracts to the problematic validators and check on them, my initial finding that I'm investigation it further and will try to come up with a fix soon. |
Contracts 54251, 54249 went to grace period after setting a new session key for the validator
This happens as well for contract
Devnet should be fixed now, also QAnet is not suffering from this issue. |
@ramezsaeed @A-Harby @khaledyoussef24 |
It's a relief that we finally wrapped the contracts' billing issue up. It was a tricky one since the reports of unbilled contracts from the testing team were due to different reasons and We had to debug each set separately. |
@sameh-farouk, I updated the comment with the test cases if you could review them and check if it's enough to cover all the cases, and if not, please comment with a missing or incorrect one. |
@A-Harby I Updated the test casees docs. |
Description
Testnet 2.2.0-rc4.
I rented a node with enough tfts, and after my balance reached zero, the rent contract didn't change into a grace period, even though I waited for more than 3 days.
The text was updated successfully, but these errors were encountered: