-
Notifications
You must be signed in to change notification settings - Fork 593
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
[Sessiond] Credits gets suspended and immediately un-suspended on CCA-U with FUA #10609
Comments
The probable root cause is the fact that magma suspends a given session (drop the rule) when the FUI is received and later un-suspends if a CCR-U is received and there's a suspended session. The first CCA-U + 4012 FUA-TERMINATE magma gets will suspend the session: as seen here The second CCA-U + 4012 FUA-TERMINATE will also suspend the session but it will later un-suspend it since there's a suspended session already, as seen here The proposed workaround is to avoid the credit suspension here by changing the conditional to not be executed on FUA, for example:
cc @uri200, @themarwhal |
Does the second CCA-U include any credit? I wonder why we pass the |
It does, my rationale: valid_credit will only be false if the CCR-U has result PERMANENT_FAILURE. Though the CCR's that contains a FUI will also have a result code as TRANSIENT_FAILURE (4012) by Diameter definition. |
that workaround will only work if the credit were final. If the credit was suspended for any other reason and it was not final the credit will never be unsuspended |
The problem seems to be in fact this line Being suspended and with no quota, |
this pr may fix this issue |
Prior to submitting an issue, check to see if one has already been created. If there is currently an open issue, add a thumbs-up emoji to identify that it is also affecting you.
Your Environment
Describe the Issue
When the subscriber quota ends the Gy will answer any CCR-U coming from magma with a CCA-U containing FUI and action configured to TERMINATE.
The behaviour seen is:
Follows the sessiond log for the suspention and imediatelly unsuspension seen in #2 and #4. (All IMSI values are the same)
Expected behavior
Magma should always drop the rules that are linked to the RG contained in the CCA-U with FUA TERMINATE
The text was updated successfully, but these errors were encountered: