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
Boxiang Sun
slapos
Commits
80c3bb97
Commit
80c3bb97
authored
Dec 29, 2021
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/ors-amarisoft: Add enb and mme logs to monitor private folder
parent
cd175062
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
7 deletions
+35
-7
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+3
-3
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+10
-1
software/ors-amarisoft/instance-epc.jinja2.cfg
software/ors-amarisoft/instance-epc.jinja2.cfg
+12
-2
software/ors-amarisoft/instance-gnb.jinja2.cfg
software/ors-amarisoft/instance-gnb.jinja2.cfg
+10
-1
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
80c3bb97
...
@@ -24,7 +24,7 @@ md5sum = 762d55291e75e8b61e35f9f28d29915a
...
@@ -24,7 +24,7 @@ md5sum = 762d55291e75e8b61e35f9f28d29915a
[template-lte-enb]
[template-lte-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
ad6520b01eefdd4fa76c10f7ffa01d48
md5sum =
4dc82af266a63b7045279fbf4f1e25e1
[template-lte-gnb-epc]
[template-lte-gnb-epc]
_update_hash_filename_ = instance-gnb-epc.jinja2.cfg
_update_hash_filename_ = instance-gnb-epc.jinja2.cfg
...
@@ -32,11 +32,11 @@ md5sum = e43a726dd3023a4bbaa474bb2d7a6ebe
...
@@ -32,11 +32,11 @@ md5sum = e43a726dd3023a4bbaa474bb2d7a6ebe
[template-lte-gnb]
[template-lte-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
_update_hash_filename_ = instance-gnb.jinja2.cfg
md5sum =
02af36a5c2f4123a73c8ce4ba6cbf5c2
md5sum =
d04961535968b1b3e59d18663ec45eae
[template-lte-epc]
[template-lte-epc]
_update_hash_filename_ = instance-epc.jinja2.cfg
_update_hash_filename_ = instance-epc.jinja2.cfg
md5sum =
ead0846454d61121c0635c5a657c194c
md5sum =
26d89fc96609ac088da9fa03c9dd7f7f
[ue_db.jinja2.cfg]
[ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg
filename = config/ue_db.jinja2.cfg
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
80c3bb97
...
@@ -60,17 +60,26 @@ extensions = jinja2.ext.do
...
@@ -60,17 +60,26 @@ extensions = jinja2.ext.do
context =
context =
section directory directory
section directory directory
[lte-enb-sh-wrapper]
recipe = slapos.recipe.template:jinja2
rendered = ${directory:bin}/${:_buildout_section_name_}
mode = 0700
template =
inline:#!/bin/sh
{{ enb }}/lteenb ${directory:etc}/enb.cfg >> ${directory:log}/enb-output.cfg 2>> ${directory:log}/enb-output.cfg
### eNodeB (enb)
### eNodeB (enb)
[lte-enb-service]
[lte-enb-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
init = ${ltelogs:rendered} ${directory:log}/enb.log; sleep 2
init = ${ltelogs:rendered} ${directory:log}/enb.log; sleep 2
command-line =
{{ enb }}/lteenb ${directory:etc}/enb.cfg
command-line =
${lte-enb-sh-wrapper:rendered}
wrapper-path = ${directory:service}/lte-enb
wrapper-path = ${directory:service}/lte-enb
mode = 0775
mode = 0775
reserve-cpu = True
reserve-cpu = True
pidfile = ${directory:run}/enb.pid
pidfile = ${directory:run}/enb.pid
hash-files =
hash-files =
${lte-enb-config:rendered}
${lte-enb-config:rendered}
${lte-enb-sh-wrapper:rendered}
environment =
environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib
LD_LIBRARY_PATH={{ openssl_location }}/lib
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
...
...
software/ors-amarisoft/instance-epc.jinja2.cfg
View file @
80c3bb97
...
@@ -71,19 +71,29 @@ hash-files =
...
@@ -71,19 +71,29 @@ hash-files =
{{ ue_db_path }}
{{ ue_db_path }}
environment = AMARISOFT_PATH=/opt/amarisoft/.amarisoft
environment = AMARISOFT_PATH=/opt/amarisoft/.amarisoft
[lte-mme-sh-wrapper]
recipe = slapos.recipe.template:jinja2
rendered = ${directory:bin}/${:_buildout_section_name_}
mode = 0700
template =
inline:#!/bin/sh
rm -f ${directory:var}/lte_ue.db;
{{ mme }}/ltemme ${directory:etc}/mme.cfg >> ${directory:log}/mme-output.cfg 2>> ${directory:log}/mme-output.cfg
### MME
### MME
[lte-mme-service]
[lte-mme-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
# When the machine shutdowns abruptly, lte_ue is not cleaned up which causes
# When the machine shutdowns abruptly, lte_ue is not cleaned up which causes
# amarisoft ltemme to fail. TODO: find a cleaner way to handle this
# amarisoft ltemme to fail. TODO: find a cleaner way to handle this
init = ${ltelogs:rendered} ${directory:log}/mme.log
; rm -f ${directory:var}/lte_ue.db
init = ${ltelogs:rendered} ${directory:log}/mme.log
command-line =
{{ mme }}/ltemme ${directory:etc}/mme.cfg
command-line =
${lte-mme-sh-wrapper:rendered}
wrapper-path = ${directory:service}/lte-mme
wrapper-path = ${directory:service}/lte-mme
mode = 0775
mode = 0775
pidfile = ${directory:run}/mme.pid
pidfile = ${directory:run}/mme.pid
hash-files =
hash-files =
${lte-mme-config:rendered}
${lte-mme-config:rendered}
{{ ue_db_path }}
{{ ue_db_path }}
${lte-mme-sh-wrapper:rendered}
environment =
environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib:{{ nghttp2_location }}/lib
LD_LIBRARY_PATH={{ openssl_location }}/lib:{{ nghttp2_location }}/lib
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
...
...
software/ors-amarisoft/instance-gnb.jinja2.cfg
View file @
80c3bb97
...
@@ -60,17 +60,26 @@ extensions = jinja2.ext.do
...
@@ -60,17 +60,26 @@ extensions = jinja2.ext.do
context =
context =
section directory directory
section directory directory
[lte-enb-sh-wrapper]
recipe = slapos.recipe.template:jinja2
rendered = ${directory:bin}/${:_buildout_section_name_}
mode = 0700
template =
inline:#!/bin/sh
{{ enb }}/lteenb ${directory:etc}/gnb.cfg >> ${directory:log}/gnb-output.cfg 2>> ${directory:log}/gnb-output.cfg
### eNodeB (enb)
### eNodeB (enb)
[lte-enb-service]
[lte-enb-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
init = ${ltelogs:rendered} ${directory:log}/enb.log; sleep 2
init = ${ltelogs:rendered} ${directory:log}/enb.log; sleep 2
command-line =
{{ enb }}/lteenb ${directory:etc}/gnb.cfg
command-line =
${lte-enb-sh-wrapper:rendered}
wrapper-path = ${directory:service}/lte-enb
wrapper-path = ${directory:service}/lte-enb
mode = 0775
mode = 0775
reserve-cpu = True
reserve-cpu = True
pidfile = ${directory:run}/enb.pid
pidfile = ${directory:run}/enb.pid
hash-files =
hash-files =
${lte-gnb-config:rendered}
${lte-gnb-config:rendered}
${lte-enb-sh-wrapper:rendered}
environment =
environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib
LD_LIBRARY_PATH={{ openssl_location }}/lib
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
...
...
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