OMEC installation failed (HW setup)

27 views
Skip to first unread message

faisal syed

unread,
Sep 7, 2023, 9:07:37 AM9/7/23
to SD-RAN-Dev
Hi Team,

I am trying to install OMEC(HW installation guide) and during the installation I got failure at spgwc and below is the error. Can anyone please guide me.

error: timed out waiting for the condition on pods/spgwc-0
make: *** [mk/epc.mk:14: /usr/src/sdran-in-a-box//workspace/milestones/omec] Error
1

I tried pulling out logs and below is the output.

root@omechw:/usr/src/sdran-in-a-box# kubectl logs spgwc-0 -n riab -c spgwc
+ /opt/cp/scripts/spgwc-run.sh ngic_controlplane
+ mkdir -p /opt/cp/config
+ cd /opt/cp/config
+ cp /etc/cp/config/config.json /etc/cp/config/cp.json /etc/cp/config/subscriber_mapping.json /etc/cp/config/gx.conf .
+ case $APPLICATION in
+ echo 'Starting ngic controlplane app'
Starting ngic controlplane app
+ cat /opt/cp/config/cp.json
{
  "dns": {
    "app": {
      "filename": "appqueries.json",
      "frequencySec": 3,
      "nameserver": "127.0.0.1"
    },
    "cache": {
      "concurrent": 25,
      "intervalSec": 60,
      "percentage": 80,
      "queryTimeoutMilliSec": 1000,
      "queryTries": 1
    },
    "ops": {
      "filename": "opsqueries.json",
      "frequencySec": 3,
      "nameserver": "127.0.0.1"
    }
  },
  "global": {
    "gxConfig": 0,
    "heartbeatFailure": false,
    "httpPort": 8080,
    "loggingLevel": "LOG_DEBUG",
    "periodicTimerSec": 10,
    "pfcpPort": 8805,
    "prometheusPort": 9089,
    "requestTimeoutMilliSec": 5000,
    "requestTries": 3,
    "s11Port": 2123,
    "transmitCount": 5,
    "transmitTimerSec": 2,
    "urrConfig": 0
  },
  "ip_pool_config": {
    "staticUeIpPool": {
      "ip": "10.249.1.0",
      "mask": "255.255.255.0"
    },
    "ueIpPool": {
      "ip": "10.250.0.0",
      "mask": "255.255.0.0"
    }
  }
}+ cat /opt/cp/config/subscriber_mapping.json
{
  "access-profiles": {
    "access-all": {
      "type": "allow-all"
    },
    "apps-only": {
      "filter": "only_apps_network",
      "type": "specific-network"
    },
    "excluding-app": {
      "filter": "exclude-app-name",
      "type": "excluding-this-app"
    },
    "internet-only": {
      "filter": "No_private_network",
      "type": "internet-only"
    },
    "intranet-only": {
      "filter": "only_private_network",
      "type": "intranet-only"
    },
    "specific-app": {
      "filter": "allow-app-name",
      "type": "specific-destination-only"
    }
  },
  "apn-profiles": {
    "apn-profile1": {
      "apn-name": "internet",
      "dns_primary": "8.8.8.4",
      "dns_secondary": "8.8.8.8",
      "gx_enabled": true,
      "mtu": 1460,
      "network": "lbo",
      "usage": 1
    }
  },
  "qos-profiles": {
    "mobile": {
      "apn-ambr": [
        12345678,
        12345678
      ],
      "arp": 1,
      "qci": 9
    }
  },
  "subscriber-selection-rules": [
    {
      "keys": {
        "imsi-range": {
          "from": 200000000000000,
          "to": 299999999999999
        },
        "serving-plmn": {
          "mcc": 208,
          "mnc": 10,
          "tac": 1
        }
      },
      "priority": 5,
      "selected-access-profile": [
        "access-all"
      ],
      "selected-apn-profile": "apn-profile1",
      "selected-qos-profile": "qos-profile1",
      "selected-user-plane-profile": "user-plane1"
    },
    {
      "keys": {
        "match-all": true
      },
      "priority": 10,
      "selected-access-profile": [
        "access-all"
      ],
      "selected-apn-profile": "apn-profile1",
      "selected-qos-profile": "qos-profile1",
      "selected-user-plane-profile": "user-plane1"
    }
  ],
  "user-plane-profiles": {
    "user-plane1": {
      "access-tags": {
        "tag1": "ACC"
      },
      "global-address": true,
      "qos-tags": {
        "tag1": "BW"
      },
      "user-plane": "upf"
    }
  }
}+ cp /bin/ngic_controlplane /tmp/coredump/
+ ngic_controlplane -f /etc/cp/config/
[INIT] : cp_main.c : 150 : Starting main thread
ngic_controlplane: invalid option -- 'f'
EAL: Detected 6 lcore(s)
ngic_controlplane: invalid option -- 'f'

Usage: ngic_controlplane [options]

EAL common options:
  -c COREMASK         Hexadecimal bitmask of cores to run on
  -l CORELIST         List of cores to run on
                      The argument format is <c1>[-c2][,c3[-c4],...]
                      where c1, c2, etc are core indexes between 0 and 128
  --lcores COREMAP    Map lcore set to physical cpu set
                      The argument format is
                            '<lcores[@cpus]>[<,lcores[@cpus]>...]'
                      lcores and cpus list are grouped by '(' and ')'
                      Within the group, '-' is used for range separator,
                      ',' is used for single number separator.
                      '( )' can be omitted for single element group,
                      '@' can be omitted if cpus and lcores have the same value
  -s SERVICE COREMASK Hexadecimal bitmask of cores to be used as service cores
  --master-lcore ID   Core ID that is used as master
  --mbuf-pool-ops-name Pool ops name for mbuf to use
  -n CHANNELS         Number of memory channels
  -m MB               Memory to allocate (see also --socket-mem)
  -r RANKS            Force number of memory ranks (don't detect)
  -b, --pci-blacklist Add a PCI device in black list.
                      Prevent EAL from using this PCI device. The argument
                      format is <domain:bus:devid.func>.
  -w, --pci-whitelist Add a PCI device in white list.
                      Only use the specified PCI devices. The argument format
                      is <[domain:]bus:devid.func>. This option can be present
                      several times (once per device).
                      [NOTE: PCI whitelist cannot be used with -b option]
  --vdev              Add a virtual device.
                      The argument format is <driver><id>[,key=val,...]
                      (ex: --vdev=net_pcap0,iface=eth2).
  -d LIB.so|DIR       Add a driver or driver directory
                      (can be used multiple times)
  --vmware-tsc-map    Use VMware TSC map instead of native RDTSC
  --proc-type         Type of this process (primary|secondary|auto)
  --syslog            Set syslog facility
  --log-level=<int>   Set global log level
  --log-level=<type-regexp>,<int>
                      Set specific log level
  -v                  Display version information on startup
  -h, --help          This help

EAL options for DEBUG use only:
  --huge-unlink       Unlink hugepage files after init
  --no-huge           Use malloc instead of hugetlbfs
  --no-pci            Disable PCI
  --no-hpet           Disable HPET
  --no-shconf         No shared config (mmap'd files)

EAL Linux options:
  --socket-mem        Memory to allocate on sockets (comma separated values)
  --huge-dir          Directory where hugetlbfs is mounted
  --file-prefix       Prefix for hugepage filenames
  --base-virtaddr     Base virtual address
  --create-uio-dev    Create /dev/uioX (usually done by hotplug)
  --vfio-intr         Interrupt mode for VFIO (legacy|msi|msix)

EAL: FATAL: Invalid 'command line' arguments.
EAL: Invalid 'command line' arguments.
PANIC in main():
Cannot init EAL
5: [ngic_controlplane(_start+0x29) [0x57d799]]
4: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f1f08b69840]]
3: [ngic_controlplane(main+0x105) [0x579925]]
2: [ngic_controlplane(__rte_panic+0xc3) [0x5723d1]]
1: [ngic_controlplane(rte_dump_stack+0x2b) [0x808c9b]]
/opt/cp/scripts/spgwc-run.sh: line 14:    12 Aborted                 (core dumped) ngic_controlplane -f /etc/cp/config/




After this I followed the troubleshooting guide for  spgwc  and I got below error


root@omechw:/usr/src/sdran-in-a-box/spgw# make
make -C cpplib
make[1]: Entering directory '/usr/src/sdran-in-a-box/spgw/cpplib'
g++ -D_FORTIFY_SOURCE=2 -fasynchronous-unwind-tables -fexceptions -fstack-protector-all -fstack-protector-strong -Wall -Werror=format-security  -std=c++14 -g  -fPIC -c -o /usr/src/sdran-in-a-box/spgw/cpplib/build/objs/spgw_config.o spgw_config.cpp
In file included from spgw_config.cpp:6:
spgw_config.h:7:10: fatal error: rapidjson/document.h: No such file or directory
    7 | #include "rapidjson/document.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:56: /usr/src/sdran-in-a-box/spgw/cpplib/build/objs/spgw_config.o] Error 1
make[1]: Leaving directory '/usr/src/sdran-in-a-box/spgw/cpplib'
make: *** [Makefile:15: build-cpplib] Error 2



Reply all
Reply to author
Forward
0 new messages