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

fix: observe GRPC client #126

Merged
merged 7 commits into from
Oct 26, 2024

Conversation

gatici
Copy link
Contributor

@gatici gatici commented Oct 21, 2024

This PR aims to solve GPRC client connection issues which appears when GPRC server (webconsole) is restarted.

If the Webconsole is restarted, other modules loses the GRPC connection to Webconsole
They tries to connect again for hours with no success.

2024-09-26T11:32:10.014Z [smf] 2024-09-26T11:32:10Z [ERRO][Config5g][GRPC] Connectivity status idle, trying to connect again

NF observes the GRPC client availability and connection status in an infinite loop.
If the connection is ready it does nothing. If GRPC client does not exist, it creates new client. If GRPC client connection is not ready, it closes the existing client and creates another client.
Only one GRPC client exists for any time slot.

Copy link
Contributor

@gab-arrobo gab-arrobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that changes are not consistent across the different NFs (in some NFs the updateConfig is in service/init.go like this in NF/PR and in other NFs, the same function goes in factory/factory.go). Would this be a good time to make the change consistent across all NFs?

service/init.go Outdated Show resolved Hide resolved
@gatici gatici force-pushed the TELCO-1381-observe-grpc-client branch from 9883ab7 to 7283fd9 Compare October 22, 2024 19:07
@gatici
Copy link
Contributor Author

gatici commented Oct 26, 2024

I see that changes are not consistent across the different NFs (in some NFs the updateConfig is in service/init.go like this in NF/PR and in other NFs, the same function goes in factory/factory.go). Would this be a good time to make the change consistent across all NFs?

The implementations are done under service/init.go in the same way for all NF's.

Copy link
Contributor

@gab-arrobo gab-arrobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@gab-arrobo gab-arrobo merged commit 56255ea into omec-project:main Oct 26, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants