Git Product home page Git Product logo

bodastage / bts-ce Goto Github PK

View Code? Open in Web Editor NEW
32.0 9.0 18.0 40.49 MB

Boda Telecom Suite Community Edition (BTS-CE) - An open source vendor and technology agnostic telecommunication network management platform

Home Page: http://www.bodastage.org

License: Apache License 2.0

Python 94.10% Batchfile 1.12% Shell 1.46% PowerShell 3.24% Visual Basic 0.08%
telecommunication bts-ce bodastage lte 5g 2g 3g 4g

bts-ce's Issues

ImportError: cannot import name mod_netmgt

�[36mbts-ce-api |�[0m Traceback (most recent call last):
�[36mbts-ce-api |�[0m File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 515, in spawn_worker
�[36mbts-ce-api |�[0m worker.init_process()
�[36mbts-ce-api |�[0m File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 122, in init_process
�[36mbts-ce-api |�[0m self.load_wsgi()
�[36mbts-ce-api |�[0m File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 130, in load_wsgi
�[36mbts-ce-api |�[0m self.wsgi = self.app.wsgi()
�[36mbts-ce-api |�[0m File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
�[36mbts-ce-api |�[0m self.callable = self.load()
�[36mbts-ce-api |�[0m File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
�[36mbts-ce-api |�[0m return self.load_wsgiapp()
�[36mbts-ce-api |�[0m File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
�[36mbts-ce-api |�[0m return util.import_app(self.app_uri)
�[36mbts-ce-api |�[0m File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 366, in import_app
�[36mbts-ce-api |�[0m import(module)
�[36mbts-ce-api |�[0m File "/app/wsgi.py", line 1, in
�[36mbts-ce-api |�[0m from btsapi import app
�[36mbts-ce-api |�[0m File "/app/btsapi/init.py", line 120, in
�[36mbts-ce-api |�[0m from btsapi.modules.networkmanagement.controllers import mod_netmgt as mod_netmgt
�[36mbts-ce-api |�[0m ImportError: cannot import name mod_netmgt

bts-ce-v2.0.0.rc4-process_eri_rncs

[2019-02-15 09:04:51,311] {{models.py:1736}} ERROR - (psycopg2.ProgrammingError) column "varDateTime" does not exist
LINE 6: "varDateTime" as date_added,
^
[SQL: '\n INSERT INTO live_network.nodes\n (pk,date_added, date_modified, type,"name", vendor_pk, tech_pk, added_by, modified_by)\n SELECT \n NEXTVAL('live_network.seq_nodes_pk'),\n "varDateTime" as date_added, \n "varDateTime" as date_modified, \n 'RNC' as node_type,\n "MeContext_id" as "name" , \n 1 as vendor_pk, -- 1=Ericsson, 2=Huawei\n 2 as tech_pk , -- 1=gsm, 2-umts,3=lte\n 0 as added_by,\n 0 as modified_by\n FROM ericsson_bulkcm."RncFunction" t1\n LEFT OUTER JOIN live_network.nodes t2 ON t1."MeContext_id" = t2."name"\n WHERE \n t2."name" IS NULL\n ']
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
psycopg2.ProgrammingError: column "varDateTime" does not exist
LINE 6: "varDateTime" as date_added,
^

The above exception was the direct cause of the following exception:

Wrong timezone

Add a way to set the correct timezone in the containers

Parser output empty file

Hi all,
Thank you a bunch for the parser.
I have a problem in the parser application.
I have created the three folders as you have mentioned and added some CM xml files in the input data folder. However, after running the code in the cmd, the output is a CSV file named "fileFooter" which doesn't have any data in it.
The command that I am running is:
java -jar C:\HUNTER\Boda\Huawei_4G_XML\Scripts\boda-huaweicfgsynparser.jar C:\HUNTER\Boda\Huawei_4G_XML\Data\MyFolderWithMyRawData C:\HUNTER\Boda\Huawei_4G_XML\Output\MyOutputFolder

error when installing

I have Dockers desktop installed as the toolbox is outdated.

Checking if Docker Toolbox is installed...Not Installed

Downloading Docker Toolbox...Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (403) Forbidden."
At C:\Users\bingoman\bts-ce-v2.1.0\win\Setup.ps1:297 char:3

  •     (New-Object System.Net.WebClient).DownloadFile($DockerToolbox ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : WebException

Failed

Check your network connectivity. Or download and install Docker Toolbox from https://download.docker.com/win/stable/DockerToolbox.exe

Import fails when parsing MML format

Below is an extract from the logs after running
airflow test cm_etlp.parse_and_import_huawei_2g import_huawei_2g_cm_data "2018-03-10 23:13:19"
`
[2018-03-11 21:19:40,061] {bash_operator.py:94} INFO -
[2018-03-11 21:19:40,061] {bash_operator.py:94} INFO -
[2018-03-11 21:19:40,062] {bash_operator.py:94} INFO - -- AITFOTHPARA
[2018-03-11 21:19:40,062] {bash_operator.py:94} INFO - -- ---------------------------
[2018-03-11 21:19:40,062] {bash_operator.py:94} INFO - TRUNCATE TABLE hua_cm_2g.AITFOTHPARA;
[2018-03-11 21:19:40,197] {bash_operator.py:94} INFO - TRUNCATE TABLE
[2018-03-11 21:19:40,197] {bash_operator.py:94} INFO - \COPY hua_cm_2g.AITFOTHPARA FROM '/mediation/data/cm/huawei/2g/parsed/in/AITFOTHPARA.csv' CSV HEADER;
[2018-03-11 21:19:40,214] {bash_operator.py:94} INFO - psql:/mediation/conf/cm/hua_cm_2g_nbi_loader.cfg:8: ERROR: extra data after last expected column
[2018-03-11 21:19:40,214] {bash_operator.py:94} INFO - CONTEXT: COPY aitfothpara, line 2: "BSCBARG_20171017_RF.txt,2017-10-17 06:03:04,0,V900R019ENGC10SPC528,10.26.73.203,GO,,,,,,,,2,YES,NO,0..."

Cause:
The huawei MML parser is using the same parser config file as the ift-N XML parser. The result is the csv files have extra columns. The columns below that are produced by the Ift-N XML parser are not present in the MML files.

  • ne_xsitype
  • netype
  • neversion
  • neid
  • module_type
  • module_remark
  • module_productversion

Unfortunately, the hua_cm_2g schema tables expect these column to be present in the imported csv.

Solution:

  1. Provide a seperate configuration file for the MML parser
  2. To maintain the column order configure the MML parser config file (hua_cm_2g_mml_parser.cfg) so that it has the same number of column as expected.

FileName --> FileName
varDateTime --> varDateTime
BSCID --> ne_xsitype
BAM_VERSION --> netype
OMU_IP --> neversion
MBSC MODE --> neid
module_type --> leave as is
module_remark --> leave as is
module_productversion --> leave as is

For Windows, installations outside c:\Users fail

Mounted volumes need to be shared. C:\Users is already mounted. Anything outside that needs to be first mounted.

For Docker for Windows, go Settings > Share drive, and select the drive

For Docker ToolBook, share the folders in virtualbox and docker-machine . See some references:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.