Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos
Commits
9c969344
Commit
9c969344
authored
May 05, 2023
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ors-amarisoft: integrate fluentbit
parent
af5e0f69
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
315 additions
and
4 deletions
+315
-4
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+3
-3
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
+24
-0
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+32
-0
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
+24
-0
software/ors-amarisoft/instance-gnb.jinja2.cfg
software/ors-amarisoft/instance-gnb.jinja2.cfg
+32
-0
software/ors-amarisoft/instance-tdd1900-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd1900-enb-input-schema.json
+24
-0
software/ors-amarisoft/instance-tdd1900-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd1900-gnb-input-schema.json
+24
-0
software/ors-amarisoft/instance-tdd2600-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd2600-enb-input-schema.json
+24
-0
software/ors-amarisoft/instance-tdd2600-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd2600-gnb-input-schema.json
+24
-0
software/ors-amarisoft/instance-tdd3500-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd3500-enb-input-schema.json
+24
-0
software/ors-amarisoft/instance-tdd3500-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd3500-gnb-input-schema.json
+24
-0
software/ors-amarisoft/instance-tdd3700-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd3700-enb-input-schema.json
+24
-0
software/ors-amarisoft/instance-tdd3700-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd3700-gnb-input-schema.json
+24
-0
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+6
-0
software/ors-amarisoft/software-base.cfg
software/ors-amarisoft/software-base.cfg
+2
-1
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
9c969344
...
...
@@ -16,7 +16,7 @@
[template]
filename = instance.cfg
md5sum =
60945a3c51ad6704c1f02b2e43018bba
md5sum =
427fd27a547364830b879f5d3b66e0c2
[amarisoft-stats.jinja2.py]
_update_hash_filename_ = amarisoft-stats.jinja2.py
...
...
@@ -36,11 +36,11 @@ md5sum = e0b68a87238282568e0e04c792ec7288
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
a7448167f7433a50938bf6d3e6903065
md5sum =
eea8191e5aa7153c15dd80c4fa17300a
[template-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
md5sum =
afa508e78851fe151fd25d8781aaa34a
md5sum =
dfc58959986fb8ed67cb166c2b8fc004
[template-core-network]
_update_hash_filename_ = instance-core-network.jinja2.cfg
...
...
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
View file @
9c969344
...
...
@@ -128,6 +128,30 @@
"type": "boolean",
"default": true
},
"fluent_bit_conf": {
"title": "fluent-bit configuration",
"description": "fluent-it configuration",
"type": "object",
"properties": {
"service": {
"description": "The desired fluent-bit service, which defines in fluent-bit's configuration the service.",
"type": "object",
"default": {}
},
"input": {
"description": "The desired fluent-bit input, which defines in fluent-bit's configuration the inputs.",
"type": "object",
"default": {}
},
"output": {
"description": "The desired fluent-bit output, which defines in fluent-bit's configuration the outputs.",
"type": "object",
"default": {}
}
}
},
"max_rx_sample_db": {
"title": "Maximum RX sample value (dB)",
"description": "Maximum RX sample threshold above which RX saturated promise will fail",
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
9c969344
...
...
@@ -4,6 +4,7 @@ parts =
ltelogs
enb-config
enb-service
fluent-bit-service
xamari-xlog-service
amarisoft-stats-service
amarisoft-rf-info-service
...
...
@@ -134,6 +135,37 @@ environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
[fluent-bit-config-file]
recipe = slapos.recipe.build
location = ${directory:etc}/${:_buildout_section_name_}.cfg
slapparameter-dict = ${slap-configuration:configuration}
logfile = ${xamari-xlog-script:logfile}
install =
config = open(options["location"], "w")
fluent_bit_conf = (options['slapparameter-dict'].get('fluent_bit_conf') or {})
if 'input' in fluent_bit_conf and 'path' in fluent_bit_conf['input']:
if fluent_bit_conf['input']['path'] == '@LOGFILE':
fluent_bit_conf['input']['path'] = options['logfile']
service =fluent_bit_conf['service']
input = fluent_bit_conf['input']
output = fluent_bit_conf['output']
config.write(f"[SERVICE]\n")
for key in service:
config.write(f" {key} {service[key]}\n")
config.write(f"[INPUT]\n")
for key in input:
config.write(f" {key} {input[key]}\n")
config.write(f"[OUTPUT]\n")
for key in output:
config.write(f" {key} {output[key]}\n")
[fluent-bit-service]
recipe = slapos.cookbook:wrapper
command-line = {{ fluent_bit_location }}/bin/fluent-bit -e {{ fluentbit_plugin_wendelin_location }}/lib/libfluentbit_wendelin.so -c ${fluent-bit-config-file:location}
wrapper-path = ${directory:service}/fluentbit-service
output = $${:wrapper-path}
[xamari-xlog-script]
recipe = slapos.recipe.template
output = ${directory:bin}/${:_buildout_section_name_}
...
...
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
View file @
9c969344
...
...
@@ -260,6 +260,30 @@
"type": "boolean",
"default": true
},
"fluent_bit_conf": {
"title": "fluent-bit configuration",
"description": "fluent-it configuration",
"type": "object",
"properties": {
"service": {
"description": "The desired fluent-bit service, which defines in fluent-bit's configuration the service.",
"type": "object",
"default": {}
},
"input": {
"description": "The desired fluent-bit input, which defines in fluent-bit's configuration the inputs.",
"type": "object",
"default": {}
},
"output": {
"description": "The desired fluent-bit output, which defines in fluent-bit's configuration the outputs.",
"type": "object",
"default": {}
}
}
},
"max_rx_sample_db": {
"title": "Maximum RX sample value (dB)",
"description": "Maximum RX sample threshold above which RX saturated promise will fail",
...
...
software/ors-amarisoft/instance-gnb.jinja2.cfg
View file @
9c969344
...
...
@@ -4,6 +4,7 @@ parts =
ltelogs
gnb-config
enb-service
fluent-bit-service
xamari-xlog-service
amarisoft-stats-service
amarisoft-rf-info-service
...
...
@@ -135,6 +136,37 @@ environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
[fluent-bit-config-file]
recipe = slapos.recipe.build
location = ${directory:etc}/${:_buildout_section_name_}.cfg
slapparameter-dict = ${slap-configuration:configuration}
logfile = ${xamari-xlog-script:logfile}
install =
config = open(options["location"], "w")
fluent_bit_conf = (options['slapparameter-dict'].get('fluent_bit_conf') or {})
if 'input' in fluent_bit_conf and 'path' in fluent_bit_conf['input']:
if fluent_bit_conf['input']['path'] == '@LOGFILE':
fluent_bit_conf['input']['path'] = options['logfile']
service =fluent_bit_conf['service']
input = fluent_bit_conf['input']
output = fluent_bit_conf['output']
config.write(f"[SERVICE]\n")
for key in service:
config.write(f" {key} {service[key]}\n")
config.write(f"[INPUT]\n")
for key in input:
config.write(f" {key} {input[key]}\n")
config.write(f"[OUTPUT]\n")
for key in output:
config.write(f" {key} {output[key]}\n")
[fluent-bit-service]
recipe = slapos.cookbook:wrapper
command-line = {{ fluent_bit_location }}/bin/fluent-bit -e {{ fluentbit_plugin_wendelin_location }}/lib/libfluentbit_wendelin.so -c ${fluent-bit-config-file:location}
wrapper-path = ${directory:service}/fluentbit-service
output = $${:wrapper-path}
[xamari-xlog-script]
recipe = slapos.recipe.template
output = ${directory:bin}/${:_buildout_section_name_}
...
...
software/ors-amarisoft/instance-tdd1900-enb-input-schema.json
View file @
9c969344
...
...
@@ -128,6 +128,30 @@
"type"
:
"boolean"
,
"default"
:
true
},
"fluent_bit_conf"
:
{
"title"
:
"fluent-bit configuration"
,
"description"
:
"fluent-it configuration"
,
"type"
:
"object"
,
"properties"
:
{
"service"
:
{
"description"
:
"The desired fluent-bit service, which defines in fluent-bit's configuration the service."
,
"type"
:
"object"
,
"default"
:
{}
},
"input"
:
{
"description"
:
"The desired fluent-bit input, which defines in fluent-bit's configuration the inputs."
,
"type"
:
"object"
,
"default"
:
{}
},
"output"
:
{
"description"
:
"The desired fluent-bit output, which defines in fluent-bit's configuration the outputs."
,
"type"
:
"object"
,
"default"
:
{}
}
}
},
"max_rx_sample_db"
:
{
"title"
:
"Maximum RX sample value (dB)"
,
"description"
:
"Maximum RX sample threshold above which RX saturated promise will fail"
,
...
...
software/ors-amarisoft/instance-tdd1900-gnb-input-schema.json
View file @
9c969344
...
...
@@ -260,6 +260,30 @@
"type"
:
"boolean"
,
"default"
:
true
},
"fluent_bit_conf"
:
{
"title"
:
"fluent-bit configuration"
,
"description"
:
"fluent-it configuration"
,
"type"
:
"object"
,
"properties"
:
{
"service"
:
{
"description"
:
"The desired fluent-bit service, which defines in fluent-bit's configuration the service."
,
"type"
:
"object"
,
"default"
:
{}
},
"input"
:
{
"description"
:
"The desired fluent-bit input, which defines in fluent-bit's configuration the inputs."
,
"type"
:
"object"
,
"default"
:
{}
},
"output"
:
{
"description"
:
"The desired fluent-bit output, which defines in fluent-bit's configuration the outputs."
,
"type"
:
"object"
,
"default"
:
{}
}
}
},
"max_rx_sample_db"
:
{
"title"
:
"Maximum RX sample value (dB)"
,
"description"
:
"Maximum RX sample threshold above which RX saturated promise will fail"
,
...
...
software/ors-amarisoft/instance-tdd2600-enb-input-schema.json
View file @
9c969344
...
...
@@ -128,6 +128,30 @@
"type"
:
"boolean"
,
"default"
:
true
},
"fluent_bit_conf"
:
{
"title"
:
"fluent-bit configuration"
,
"description"
:
"fluent-it configuration"
,
"type"
:
"object"
,
"properties"
:
{
"service"
:
{
"description"
:
"The desired fluent-bit service, which defines in fluent-bit's configuration the service."
,
"type"
:
"object"
,
"default"
:
{}
},
"input"
:
{
"description"
:
"The desired fluent-bit input, which defines in fluent-bit's configuration the inputs."
,
"type"
:
"object"
,
"default"
:
{}
},
"output"
:
{
"description"
:
"The desired fluent-bit output, which defines in fluent-bit's configuration the outputs."
,
"type"
:
"object"
,
"default"
:
{}
}
}
},
"max_rx_sample_db"
:
{
"title"
:
"Maximum RX sample value (dB)"
,
"description"
:
"Maximum RX sample threshold above which RX saturated promise will fail"
,
...
...
software/ors-amarisoft/instance-tdd2600-gnb-input-schema.json
View file @
9c969344
...
...
@@ -260,6 +260,30 @@
"type"
:
"boolean"
,
"default"
:
true
},
"fluent_bit_conf"
:
{
"title"
:
"fluent-bit configuration"
,
"description"
:
"fluent-it configuration"
,
"type"
:
"object"
,
"properties"
:
{
"service"
:
{
"description"
:
"The desired fluent-bit service, which defines in fluent-bit's configuration the service."
,
"type"
:
"object"
,
"default"
:
{}
},
"input"
:
{
"description"
:
"The desired fluent-bit input, which defines in fluent-bit's configuration the inputs."
,
"type"
:
"object"
,
"default"
:
{}
},
"output"
:
{
"description"
:
"The desired fluent-bit output, which defines in fluent-bit's configuration the outputs."
,
"type"
:
"object"
,
"default"
:
{}
}
}
},
"max_rx_sample_db"
:
{
"title"
:
"Maximum RX sample value (dB)"
,
"description"
:
"Maximum RX sample threshold above which RX saturated promise will fail"
,
...
...
software/ors-amarisoft/instance-tdd3500-enb-input-schema.json
View file @
9c969344
...
...
@@ -128,6 +128,30 @@
"type"
:
"boolean"
,
"default"
:
true
},
"fluent_bit_conf"
:
{
"title"
:
"fluent-bit configuration"
,
"description"
:
"fluent-it configuration"
,
"type"
:
"object"
,
"properties"
:
{
"service"
:
{
"description"
:
"The desired fluent-bit service, which defines in fluent-bit's configuration the service."
,
"type"
:
"object"
,
"default"
:
{}
},
"input"
:
{
"description"
:
"The desired fluent-bit input, which defines in fluent-bit's configuration the inputs."
,
"type"
:
"object"
,
"default"
:
{}
},
"output"
:
{
"description"
:
"The desired fluent-bit output, which defines in fluent-bit's configuration the outputs."
,
"type"
:
"object"
,
"default"
:
{}
}
}
},
"max_rx_sample_db"
:
{
"title"
:
"Maximum RX sample value (dB)"
,
"description"
:
"Maximum RX sample threshold above which RX saturated promise will fail"
,
...
...
software/ors-amarisoft/instance-tdd3500-gnb-input-schema.json
View file @
9c969344
...
...
@@ -260,6 +260,30 @@
"type"
:
"boolean"
,
"default"
:
true
},
"fluent_bit_conf"
:
{
"title"
:
"fluent-bit configuration"
,
"description"
:
"fluent-it configuration"
,
"type"
:
"object"
,
"properties"
:
{
"service"
:
{
"description"
:
"The desired fluent-bit service, which defines in fluent-bit's configuration the service."
,
"type"
:
"object"
,
"default"
:
{}
},
"input"
:
{
"description"
:
"The desired fluent-bit input, which defines in fluent-bit's configuration the inputs."
,
"type"
:
"object"
,
"default"
:
{}
},
"output"
:
{
"description"
:
"The desired fluent-bit output, which defines in fluent-bit's configuration the outputs."
,
"type"
:
"object"
,
"default"
:
{}
}
}
},
"max_rx_sample_db"
:
{
"title"
:
"Maximum RX sample value (dB)"
,
"description"
:
"Maximum RX sample threshold above which RX saturated promise will fail"
,
...
...
software/ors-amarisoft/instance-tdd3700-enb-input-schema.json
View file @
9c969344
...
...
@@ -128,6 +128,30 @@
"type"
:
"boolean"
,
"default"
:
true
},
"fluent_bit_conf"
:
{
"title"
:
"fluent-bit configuration"
,
"description"
:
"fluent-it configuration"
,
"type"
:
"object"
,
"properties"
:
{
"service"
:
{
"description"
:
"The desired fluent-bit service, which defines in fluent-bit's configuration the service."
,
"type"
:
"object"
,
"default"
:
{}
},
"input"
:
{
"description"
:
"The desired fluent-bit input, which defines in fluent-bit's configuration the inputs."
,
"type"
:
"object"
,
"default"
:
{}
},
"output"
:
{
"description"
:
"The desired fluent-bit output, which defines in fluent-bit's configuration the outputs."
,
"type"
:
"object"
,
"default"
:
{}
}
}
},
"max_rx_sample_db"
:
{
"title"
:
"Maximum RX sample value (dB)"
,
"description"
:
"Maximum RX sample threshold above which RX saturated promise will fail"
,
...
...
software/ors-amarisoft/instance-tdd3700-gnb-input-schema.json
View file @
9c969344
...
...
@@ -260,6 +260,30 @@
"type"
:
"boolean"
,
"default"
:
true
},
"fluent_bit_conf"
:
{
"title"
:
"fluent-bit configuration"
,
"description"
:
"fluent-it configuration"
,
"type"
:
"object"
,
"properties"
:
{
"service"
:
{
"description"
:
"The desired fluent-bit service, which defines in fluent-bit's configuration the service."
,
"type"
:
"object"
,
"default"
:
{}
},
"input"
:
{
"description"
:
"The desired fluent-bit input, which defines in fluent-bit's configuration the inputs."
,
"type"
:
"object"
,
"default"
:
{}
},
"output"
:
{
"description"
:
"The desired fluent-bit output, which defines in fluent-bit's configuration the outputs."
,
"type"
:
"object"
,
"default"
:
{}
}
}
},
"max_rx_sample_db"
:
{
"title"
:
"Maximum RX sample value (dB)"
,
"description"
:
"Maximum RX sample threshold above which RX saturated promise will fail"
,
...
...
software/ors-amarisoft/instance.cfg
View file @
9c969344
...
...
@@ -110,6 +110,9 @@ extra-context =
raw default_n_antenna_ul ${default-params:default-n-antenna-ul}
raw min_frequency ${default-params:min-frequency}
raw max_frequency ${default-params:max-frequency}
raw fluent_bit_location ${fluent-bit:location}
raw fluentbit_plugin_wendelin_location ${fluentbit-plugin-wendelin:location}
[dynamic-template-gnb]
< = jinja2-template-base
...
...
@@ -138,6 +141,9 @@ extra-context =
raw min_frequency ${default-params:min-frequency}
raw max_frequency ${default-params:max-frequency}
raw python_path ${python3:location}
raw fluent_bit_location ${fluent-bit:location}
raw fluentbit_plugin_wendelin_location ${fluentbit-plugin-wendelin:location}
[dynamic-template-core-network]
< = jinja2-template-base
...
...
software/ors-amarisoft/software-base.cfg
View file @
9c969344
...
...
@@ -12,7 +12,8 @@ extends =
../../component/numpy/buildout.cfg
../../component/pygolang/buildout.cfg
../../component/git/buildout.cfg
../../component/fluent-bit/buildout.cfg
../../component/fluentbit-plugin-wendelin/buildout.cfg
parts +=
template
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment