Skip to main content

Amarisoft license

Deployment Issues

  1. Extract logs from namespace amarisoft
kubectl logs -n amarisoft pods/amr-license-
# tab again to get the rest of the command
  1. Getting issue from amr-license pods regard to the following reasons:
    • There is no USB that is connecting to the main cluster
    • The USB mounting path is different to media/amarisoft

Solutions

  1. Mount the Amarisoft license USB on /media/amarisoft path
  2. Delete the pods by using this command
kubectl delete -n amarisoft pods/amr-lincense-
# tab again to get the rest of the command
note

To activate your Amarisoft license pod, you need to ensure the license keys are available on your USB drive. The system looks for these keys in the media/amarisoft/licenses directory.

If this directory doesn't exist on your system, you'll need to create it and then copy your license keys into the newly created folder.

  1. Update Amarisoft license IP in the cluster by running the script below
#!/bin/bash

NAMESPACE="trirematics"
CONFIGMAP_NAME="model-base-amarisoft"
NEW_SERVER_ADDR=$(ip -4 addr show dev bubbleran0 | grep 'inet ' | awk '{print $2}' | cut -d'/' -f1)

echo "Fetching current configmap: $CONFIGMAP_NAME in namespace: $NAMESPACE"

kubectl get configmap "$CONFIGMAP_NAME" -n "$NAMESPACE" -o yaml | \
sed "s/\"server_addr\": \"[0-9.]*\"/\"server_addr\": \"${NEW_SERVER_ADDR}\"/g" > "/tmp/${CONFIGMAP_NAME}-modified.yaml"

if [ $? -ne 0 ]; then
echo "Error: Failed to fetch or modify the configmap."
exit 1
fi
kubectl apply -f "/tmp/${CONFIGMAP_NAME}-modified.yaml" -n "$NAMESPACE"

if [ $? -ne 0 ]; then
echo "Error: Failed to apply the modified configmap."
exit 1
fi

rm "/tmp/${CONFIGMAP_NAME}-modified.yaml"

echo "Verification: Displaying the updated configmap section."
kubectl get configmap "$CONFIGMAP_NAME" -n "$NAMESPACE" -o yaml | grep -A 3 "license_server:"

If the issue persists, please contact BubbleRAN support. You would receive a response within 24 hours.