8 Troubleshooting Information
If you experience issues while using NSSF, refer to the topics below:
Verifying Environment
- Check if kubectl is installed and working as expected.
- Check if
kubectl version
command works: This must display the versions of client and server. - Check if
$ kubectl create namespace test
command works. - Check if
kubectl delete namespace test
command works. - Check if Helm is installed and working as expected.
- Check if
helm version
command works: This must display the versions of client and server.
Debugging of NSSF Installation while Installing using helm
- If the user is getting the following error:
failed to parse ocnssf-custom-values-1.3.0.yaml: error converting YAML to JSON: yaml. Then
- The
ocnssf-custom-values-1.3.0.yaml
may not be created properly. - The tree structure may not be followed.
- There may be tab spaces in the file.
Verify that the
ocnssf-custom-values-1.3.0.yaml
is properRefer Network Slice Selection Function (NSSF) Cloud Native Installation Guide .
- The
- If there is no error, helm installation will be deployed.
Helm status can be checked using following command :
helm status <helm release name>
Verifying NSSF Installation
To verify whether the NSSF installation is successful or not, check:
- Verify NSSF specific pods are working as expected by executing
following command
kubectl get pods -n <ocnssf_namespace>
Check whether all the pods are up and running.
Sample output:NAME READY STATUS RESTARTS AGE ocnssf-appinfo-55bcc48477-knc8t 1/1 Running 0 317s ocnssf-config-server-5d8c7968fc-d8q9z 1/1 Running 0 317s ocnssf-egress-595948cd5-d6hw2 1/1 Running 0 317s ocnssf-ingress-54c8b668c5-nlcbf 1/1 Running 0 317s ocnssf-nrf-clientservice-7d9c64f566-z9dnw 1/1 Running 0 317s ocnssf-nsavailability-8646844976-8pljq 1/1 Running 0 317s ocnssf-nsconfig-5d755b7865-nh4r9 1/1 Running 0 317s ocnssf-nsdb-585f7bd7d-bwwjd 1/1 Running 0 317s ocnssf-nsselection-56674986bf-fmswv 1/1 Running 0 317s ocnssf-nssubscription-76478c6c84-fdz7f 1/1 Running 0 317s ocnssf-performance-6d75c7f966-57fgt 1/1 Running 0 317s
- If status of any pod is shown as
ImagePullBackOff
orErrImagePull
then it can be due to:- Incorrect ImageName provided in
ocnssf-custom-values-1.3.0.yaml.
Then, double check the image name and tags in
ocnssf-custom-values-1.3.0.yaml.
- Docker registry is incorrectly configured.
Then, check docker registry is properly configured in all master and slave nodes.
- Incorrect ImageName provided in
- If RESTARTS count of the pods is continuously increasing, then it can happen due
to the following reasons:
- MySQL primary and secondary hosts may not be configured properly in
ocnssf-custom-values-1.3.0.yaml
- MySQL servers may not be configured properly according to the pre-installation steps mentioned in Network Slice Selection Function (NSSF) Cloud Native Installation Guide .
- MySQL primary and secondary hosts may not be configured properly in
Debugging General CNE
Execute the command kubectl get events -n
<ocnssf_namespace>
to get all the events related to a particular
namespace.
Collecting NSSF Logs
The following commands must be executed to get the logs from nssf specific pods:
- Fetch the list of all pods by executing
kubectl get pods -n <ocnssf_namespace>
- Collect the logs from the pod and redirect to file by executing
kubectl logs <pod_name> -n <ocnssf_namespace> > <Log File>
Example:
kubectl logs ocnssf-nsselection-57cff5665c-skk4l -n ocnssf >
ocnssf_logs1.log