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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Justin
slapos
Commits
16b27381
Commit
16b27381
authored
Dec 05, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ors-amarisoft: rename parameters, change temperature average computation period
parent
02d9e65b
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
554 additions
and
204 deletions
+554
-204
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+9
-13
software/ors-amarisoft/instance-enb-epc.jinja2.cfg
software/ors-amarisoft/instance-enb-epc.jinja2.cfg
+4
-1
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
+14
-2
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+3
-13
software/ors-amarisoft/instance-epc-input-schema.json
software/ors-amarisoft/instance-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-epc.jinja2.cfg
software/ors-amarisoft/instance-epc.jinja2.cfg
+3
-1
software/ors-amarisoft/instance-gnb-epc.jinja2.cfg
software/ors-amarisoft/instance-gnb-epc.jinja2.cfg
+3
-1
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
+14
-2
software/ors-amarisoft/instance-gnb.jinja2.cfg
software/ors-amarisoft/instance-gnb.jinja2.cfg
+3
-13
software/ors-amarisoft/instance-tdd1900-enb-epc-input-schema.json
.../ors-amarisoft/instance-tdd1900-enb-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd1900-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd1900-enb-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd1900-gnb-epc-input-schema.json
.../ors-amarisoft/instance-tdd1900-gnb-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd1900-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd1900-gnb-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
+18
-0
software/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
+18
-0
software/ors-amarisoft/instance-tdd2600-enb-epc-input-schema.json
.../ors-amarisoft/instance-tdd2600-enb-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd2600-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd2600-enb-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd2600-gnb-epc-input-schema.json
.../ors-amarisoft/instance-tdd2600-gnb-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd2600-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd2600-gnb-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
+18
-0
software/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
+18
-0
software/ors-amarisoft/instance-tdd3500-enb-epc-input-schema.json
.../ors-amarisoft/instance-tdd3500-enb-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd3500-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd3500-enb-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd3500-gnb-epc-input-schema.json
.../ors-amarisoft/instance-tdd3500-gnb-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd3500-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd3500-gnb-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
+18
-0
software/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
+18
-0
software/ors-amarisoft/instance-tdd3700-enb-epc-input-schema.json
.../ors-amarisoft/instance-tdd3700-enb-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd3700-enb-input-schema.json
...ware/ors-amarisoft/instance-tdd3700-enb-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd3700-gnb-epc-input-schema.json
.../ors-amarisoft/instance-tdd3700-gnb-epc-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd3700-gnb-input-schema.json
...ware/ors-amarisoft/instance-tdd3700-gnb-input-schema.json
+14
-2
software/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
+18
-0
software/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
+18
-0
software/ors-amarisoft/instance-ue-lte-input-schema.json.jinja2
...re/ors-amarisoft/instance-ue-lte-input-schema.json.jinja2
+18
-0
software/ors-amarisoft/instance-ue-lte.jinja2.cfg
software/ors-amarisoft/instance-ue-lte.jinja2.cfg
+3
-1
software/ors-amarisoft/instance-ue-nr-input-schema.json.jinja2
...are/ors-amarisoft/instance-ue-nr-input-schema.json.jinja2
+18
-0
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
+3
-1
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+0
-2
software/ors-amarisoft/promise/check_cell_gain_saturated.py
software/ors-amarisoft/promise/check_cell_gain_saturated.py
+0
-108
software/ors-amarisoft/promise/check_cpu_temperature.py
software/ors-amarisoft/promise/check_cpu_temperature.py
+77
-10
software/ors-amarisoft/software.cfg
software/ors-amarisoft/software.cfg
+0
-2
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
16b27381
...
...
@@ -16,7 +16,7 @@
[template]
filename = instance.cfg
md5sum =
8a6e6e065e3eeffc3d5d4d8bb68f4a43
md5sum =
6e19edc856c82c5e26900e1c06c793ba
[amarisoft-stats.jinja2.py]
_update_hash_filename_ = amarisoft-stats.jinja2.py
...
...
@@ -24,23 +24,23 @@ md5sum = 6e0a052bd0ca08cc0c7b4880d3deffcc
[template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg
md5sum =
f15c81f0f4c2aa59bc794d855e7d01c0
md5sum =
3b13bbf633e196dfa8d379221845be67
[template-lte-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
68362f58fccc534757b6bb566d285fa6
md5sum =
1952e4ad31f35200fb4713b915a1db0a
[template-lte-gnb-epc]
_update_hash_filename_ = instance-gnb-epc.jinja2.cfg
md5sum =
dd98a2d0cb4fadc869638166bde6d9c8
md5sum =
f55c2e859cfeacc41878ccbb0f8254e9
[template-lte-epc]
_update_hash_filename_ = instance-epc.jinja2.cfg
md5sum =
48755eb0b2eb87f80130d42026ea8f7b
md5sum =
f32c0c82ddb0a99137b41c376b7863c5
[template-lte-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
md5sum =
45ff1f5f4e98867449dcff7caae678f8
md5sum =
b9d9341e02bf42d6ee67c85b68ac0ebc
[template-lte-mme]
_update_hash_filename_ = instance-mme.jinja2.cfg
...
...
@@ -48,11 +48,11 @@ md5sum = 728f4d3ae248710c23e4b73eea4d628e
[template-lte-ue-lte]
_update_hash_filename_ = instance-ue-lte.jinja2.cfg
md5sum =
38ef57bc93f53338187bd9c39fe4f0c5
md5sum =
5990aeeb7bdbfdcb871c59054e2f6c8a
[template-lte-ue-nr]
_update_hash_filename_ = instance-ue-nr.jinja2.cfg
md5sum =
eaaf8fb3806a941f188eecdb90d38bda
md5sum =
22b7130f342f9b8890dc3c6011db8a46
[ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg
...
...
@@ -94,10 +94,6 @@ md5sum = b3078deab008d7e81ddd88ac02b8b698
_update_hash_filename_ = promise/check_sdr_busy.py
md5sum = b0c65aefa60a9d5b9f7e7b38383db48b
[cell-gain-saturated-promise]
_update_hash_filename_ = promise/check_cell_gain_saturated.py
md5sum = 764ca8913ea40964382848cf3233c1f7
[rx-saturated-promise]
_update_hash_filename_ = promise/check_rx_saturated.py
md5sum = 40cf5389fd91845f4426ef159fb20fc0
...
...
@@ -108,7 +104,7 @@ md5sum = 5bf57a9074ea5b054d999789cbbe2c87
[cpu-temperature-promise]
_update_hash_filename_ = promise/check_cpu_temperature.py
md5sum =
8e8f836554d81e2979e39dfb50e05b88
md5sum =
e8fc789eb7e7e3b054e921b0292c806f
[interface-up-promise]
_update_hash_filename_ = promise/check_interface_up.py
...
...
software/ors-amarisoft/instance-enb-epc.jinja2.cfg
View file @
16b27381
...
...
@@ -93,7 +93,10 @@ eggs = slapos.core
file = {{ cpu_temperature_promise }}
output = ${directory:plugins}/check-cpu-temperature.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-max-temp = {{ slapparameter_dict.get("promise_cpu_temperature_threshold", 80) }}
config-max-spot-temp = {{ slapparameter_dict.get("promise_cpu_max_spot_temp", 90) }}
config-max-avg-temp = {{ slapparameter_dict.get("promise_cpu_max_avg_temp", 80) }}
config-avg-temp-duration = {{ slapparameter_dict.get("promise_cpu_avg_temp_duration", 15) }}
config-last-avg-computation-file = ${directory:var}/promise_cpu_last_avg_computation_file
[publish-connection-information]
recipe = slapos.cookbook:publish.serialised
...
...
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
View file @
16b27381
...
...
@@ -132,11 +132,23 @@
"type": "number",
"default": 0
},
"promise_cpu_
temperature_threshold
": {
"title": "
CPU temperature promise threshold
",
"promise_cpu_
max_spot_temp
": {
"title": "
Maximum CPU spot temperature (Celcius)
",
"description": "Temperature threshold above which CPU temperature promise will fail",
"type": "number",
"default": 90
},
"promise_cpu_max_avg_temp": {
"title": "Maximum CPU average temperature (Celcius)",
"description": "If average temperature over specified duration reaches this threshold, promise will fail",
"type": "number",
"default": 80
},
"promise_cpu_avg_temp_duration": {
"title": "CPU average temperature duration (minutes)",
"description": "Duration during which average temperature should not exceed specified threshold",
"type": "number",
"default": 15
}
}
}
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
16b27381
...
...
@@ -6,7 +6,6 @@ parts =
lte-enb-service
amarisoft-stats-service
sdr-busy-promise
cell-gain-saturated-promise
rx-saturated-promise
amarisoft-stats-log-promise
{% if not slapparameter_dict.get("sub-instance", False) %}
...
...
@@ -169,17 +168,6 @@ output = ${directory:plugins}/check-sdr-busy.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-sdr = {{ sdr }}
[cell-gain-saturated-promise]
recipe = slapos.cookbook:promise.plugin
eggs =
slapos.core
python-dateutil
file = {{ cell_gain_saturated_promise }}
output = ${directory:plugins}/check-cell-gain-saturated.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-amarisoft-stats-log = ${amarisoft-stats-template:log-output}
config-stats-period = {{ slapparameter_dict.get("enb_stats_fetch_period", 60) }}
[rx-saturated-promise]
recipe = slapos.cookbook:promise.plugin
eggs =
...
...
@@ -208,4 +196,6 @@ eggs = slapos.core
file = {{ cpu_temperature_promise }}
output = ${directory:plugins}/check-cpu-temperature.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-maxtemp = {{ slapparameter_dict.get("promise_cpu_temperature_threshold", 80) }}
config-max-spot-temp = {{ slapparameter_dict.get("promise_cpu_max_spot_temp", 90) }}
config-max-avg-temp = {{ slapparameter_dict.get("promise_cpu_max_avg_temp", 80) }}
config-avg-temp-duration = {{ slapparameter_dict.get("promise_cpu_avg_temp_duration", 15) }}
software/ors-amarisoft/instance-epc-input-schema.json
View file @
16b27381
...
...
@@ -27,11 +27,23 @@
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-epc.jinja2.cfg
View file @
16b27381
...
...
@@ -82,7 +82,9 @@ eggs = slapos.core
file = {{ cpu_temperature_promise }}
output = ${directory:plugins}/check-cpu-temperature.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-max-temp = {{ slapparameter_dict.get("promise_cpu_temperature_threshold", 80) }}
config-max-spot-temp = {{ slapparameter_dict.get("promise_cpu_max_spot_temp", 90) }}
config-max-avg-temp = {{ slapparameter_dict.get("promise_cpu_max_avg_temp", 80) }}
config-avg-temp-duration = {{ slapparameter_dict.get("promise_cpu_avg_temp_duration", 15) }}
[publish-connection-information]
recipe = slapos.cookbook:publish.serialised
...
...
software/ors-amarisoft/instance-gnb-epc.jinja2.cfg
View file @
16b27381
...
...
@@ -93,7 +93,9 @@ eggs = slapos.core
file = {{ cpu_temperature_promise }}
output = ${directory:plugins}/check-cpu-temperature.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-max-temp = {{ slapparameter_dict.get("promise_cpu_temperature_threshold", 80) }}
config-max-spot-temp = {{ slapparameter_dict.get("promise_cpu_max_spot_temp", 90) }}
config-max-avg-temp = {{ slapparameter_dict.get("promise_cpu_max_avg_temp", 80) }}
config-avg-temp-duration = {{ slapparameter_dict.get("promise_cpu_avg_temp_duration", 15) }}
[publish-connection-information]
recipe = slapos.cookbook:publish.serialised
...
...
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
View file @
16b27381
...
...
@@ -184,11 +184,23 @@
"type": "number",
"default": 0
},
"promise_cpu_
temperature_threshold
": {
"title": "
CPU temperature promise threshold
",
"promise_cpu_
max_spot_temp
": {
"title": "
Maximum CPU spot temperature (Celcius)
",
"description": "Temperature threshold above which CPU temperature promise will fail",
"type": "number",
"default": 80
},
"promise_cpu_max_avg_temp": {
"title": "Maximum CPU average temperature (Celcius)",
"description": "If average temperature over specified duration reaches this threshold, promise will fail",
"type": "number",
"default": 80
},
"promise_cpu_avg_temp_duration": {
"title": "CPU average temperature duration (minutes)",
"description": "Duration during which average temperature should not exceed specified threshold",
"type": "number",
"default": 15
}
}
}
software/ors-amarisoft/instance-gnb.jinja2.cfg
View file @
16b27381
...
...
@@ -6,7 +6,6 @@ parts =
lte-enb-service
amarisoft-stats-service
sdr-busy-promise
cell-gain-saturated-promise
rx-saturated-promise
amarisoft-stats-log-promise
{% if not slapparameter_dict.get("sub-instance", False) %}
...
...
@@ -169,17 +168,6 @@ output = ${directory:plugins}/check-sdr-busy.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-sdr = {{ sdr }}
[cell-gain-saturated-promise]
recipe = slapos.cookbook:promise.plugin
eggs =
slapos.core
python-dateutil
file = {{ cell_gain_saturated_promise }}
output = ${directory:plugins}/check-cell-gain-saturated.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-amarisoft-stats-log = ${amarisoft-stats-template:log-output}
config-stats-period = {{ slapparameter_dict.get("enb_stats_fetch_period", 60) }}
[rx-saturated-promise]
recipe = slapos.cookbook:promise.plugin
eggs =
...
...
@@ -208,4 +196,6 @@ eggs = slapos.core
file = {{ cpu_temperature_promise }}
output = ${directory:plugins}/check-cpu-temperature.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-max-temp = {{ slapparameter_dict.get("promise_cpu_temperature_threshold", 80) }}
config-max-spot-temp = {{ slapparameter_dict.get("promise_cpu_max_spot_temp", 90) }}
config-max-avg-temp = {{ slapparameter_dict.get("promise_cpu_max_avg_temp", 80) }}
config-avg-temp-duration = {{ slapparameter_dict.get("promise_cpu_avg_temp_duration", 15) }}
software/ors-amarisoft/instance-tdd1900-enb-epc-input-schema.json
View file @
16b27381
...
...
@@ -130,11 +130,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
90
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd1900-enb-input-schema.json
View file @
16b27381
...
...
@@ -112,11 +112,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
90
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd1900-gnb-epc-input-schema.json
View file @
16b27381
...
...
@@ -182,11 +182,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd1900-gnb-input-schema.json
View file @
16b27381
...
...
@@ -164,11 +164,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
View file @
16b27381
...
...
@@ -92,6 +92,24 @@
"description"
:
"String. Defines user IMPI. Must be fully filled with hostname if necessary."
,
"type"
:
"string"
,
"default"
:
""
},
"promise_cpu_max_spot_temp"
:
{
"title"
:
"Maximum CPU spot temperature (Celcius)"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
View file @
16b27381
...
...
@@ -104,6 +104,24 @@
"description"
:
"String. Defines user IMPI. Must be fully filled with hostname if necessary."
,
"type"
:
"string"
,
"default"
:
""
},
"promise_cpu_max_spot_temp"
:
{
"title"
:
"Maximum CPU spot temperature (Celcius)"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd2600-enb-epc-input-schema.json
View file @
16b27381
...
...
@@ -130,11 +130,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
90
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd2600-enb-input-schema.json
View file @
16b27381
...
...
@@ -112,11 +112,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
90
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd2600-gnb-epc-input-schema.json
View file @
16b27381
...
...
@@ -182,11 +182,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd2600-gnb-input-schema.json
View file @
16b27381
...
...
@@ -164,11 +164,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
View file @
16b27381
...
...
@@ -92,6 +92,24 @@
"description"
:
"String. Defines user IMPI. Must be fully filled with hostname if necessary."
,
"type"
:
"string"
,
"default"
:
""
},
"promise_cpu_max_spot_temp"
:
{
"title"
:
"Maximum CPU spot temperature (Celcius)"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
View file @
16b27381
...
...
@@ -104,6 +104,24 @@
"description"
:
"String. Defines user IMPI. Must be fully filled with hostname if necessary."
,
"type"
:
"string"
,
"default"
:
""
},
"promise_cpu_max_spot_temp"
:
{
"title"
:
"Maximum CPU spot temperature (Celcius)"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3500-enb-epc-input-schema.json
View file @
16b27381
...
...
@@ -130,11 +130,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
90
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3500-enb-input-schema.json
View file @
16b27381
...
...
@@ -112,11 +112,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
90
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3500-gnb-epc-input-schema.json
View file @
16b27381
...
...
@@ -182,11 +182,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3500-gnb-input-schema.json
View file @
16b27381
...
...
@@ -164,11 +164,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
View file @
16b27381
...
...
@@ -92,6 +92,24 @@
"description"
:
"String. Defines user IMPI. Must be fully filled with hostname if necessary."
,
"type"
:
"string"
,
"default"
:
""
},
"promise_cpu_max_spot_temp"
:
{
"title"
:
"Maximum CPU spot temperature (Celcius)"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
View file @
16b27381
...
...
@@ -104,6 +104,24 @@
"description"
:
"String. Defines user IMPI. Must be fully filled with hostname if necessary."
,
"type"
:
"string"
,
"default"
:
""
},
"promise_cpu_max_spot_temp"
:
{
"title"
:
"Maximum CPU spot temperature (Celcius)"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3700-enb-epc-input-schema.json
View file @
16b27381
...
...
@@ -130,11 +130,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
90
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3700-enb-input-schema.json
View file @
16b27381
...
...
@@ -112,11 +112,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
90
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3700-gnb-epc-input-schema.json
View file @
16b27381
...
...
@@ -182,11 +182,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3700-gnb-input-schema.json
View file @
16b27381
...
...
@@ -164,11 +164,23 @@
"type"
:
"number"
,
"default"
:
0
},
"promise_cpu_
temperature_threshold
"
:
{
"title"
:
"
CPU temperature promise threshold
"
,
"promise_cpu_
max_spot_temp
"
:
{
"title"
:
"
Maximum CPU spot temperature (Celcius)
"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
View file @
16b27381
...
...
@@ -92,6 +92,24 @@
"description"
:
"String. Defines user IMPI. Must be fully filled with hostname if necessary."
,
"type"
:
"string"
,
"default"
:
""
},
"promise_cpu_max_spot_temp"
:
{
"title"
:
"Maximum CPU spot temperature (Celcius)"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
View file @
16b27381
...
...
@@ -104,6 +104,24 @@
"description"
:
"String. Defines user IMPI. Must be fully filled with hostname if necessary."
,
"type"
:
"string"
,
"default"
:
""
},
"promise_cpu_max_spot_temp"
:
{
"title"
:
"Maximum CPU spot temperature (Celcius)"
,
"description"
:
"Temperature threshold above which CPU temperature promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_max_avg_temp"
:
{
"title"
:
"Maximum CPU average temperature (Celcius)"
,
"description"
:
"If average temperature over specified duration reaches this threshold, promise will fail"
,
"type"
:
"number"
,
"default"
:
80
},
"promise_cpu_avg_temp_duration"
:
{
"title"
:
"CPU average temperature duration (minutes)"
,
"description"
:
"Duration during which average temperature should not exceed specified threshold"
,
"type"
:
"number"
,
"default"
:
15
}
}
}
software/ors-amarisoft/instance-ue-lte-input-schema.json.jinja2
View file @
16b27381
...
...
@@ -92,6 +92,24 @@
"description": "String. Defines user IMPI. Must be fully filled with hostname if necessary.",
"type": "string",
"default": ""
},
"promise_cpu_max_spot_temp": {
"title": "Maximum CPU spot temperature (Celcius)",
"description": "Temperature threshold above which CPU temperature promise will fail",
"type": "number",
"default": 80
},
"promise_cpu_max_avg_temp": {
"title": "Maximum CPU average temperature (Celcius)",
"description": "If average temperature over specified duration reaches this threshold, promise will fail",
"type": "number",
"default": 80
},
"promise_cpu_avg_temp_duration": {
"title": "CPU average temperature duration (minutes)",
"description": "Duration during which average temperature should not exceed specified threshold",
"type": "number",
"default": 15
}
}
}
software/ors-amarisoft/instance-ue-lte.jinja2.cfg
View file @
16b27381
...
...
@@ -136,4 +136,6 @@ eggs = slapos.core
file = {{ cpu_temperature_promise }}
output = ${directory:plugins}/check-cpu-temperature.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-maxtemp = {{ slapparameter_dict.get("promise_cpu_temperature_threshold", 80) }}
config-max-spot-temp = {{ slapparameter_dict.get("promise_cpu_max_spot_temp", 90) }}
config-max-avg-temp = {{ slapparameter_dict.get("promise_cpu_max_avg_temp", 80) }}
config-avg-temp-duration = {{ slapparameter_dict.get("promise_cpu_avg_temp_duration", 15) }}
software/ors-amarisoft/instance-ue-nr-input-schema.json.jinja2
View file @
16b27381
...
...
@@ -104,6 +104,24 @@
"description": "String. Defines user IMPI. Must be fully filled with hostname if necessary.",
"type": "string",
"default": ""
},
"promise_cpu_max_spot_temp": {
"title": "Maximum CPU spot temperature (Celcius)",
"description": "Temperature threshold above which CPU temperature promise will fail",
"type": "number",
"default": 80
},
"promise_cpu_max_avg_temp": {
"title": "Maximum CPU average temperature (Celcius)",
"description": "If average temperature over specified duration reaches this threshold, promise will fail",
"type": "number",
"default": 80
},
"promise_cpu_avg_temp_duration": {
"title": "CPU average temperature duration (minutes)",
"description": "Duration during which average temperature should not exceed specified threshold",
"type": "number",
"default": 15
}
}
}
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
View file @
16b27381
...
...
@@ -139,4 +139,6 @@ eggs = slapos.core
file = {{ cpu_temperature_promise }}
output = ${directory:plugins}/check-cpu-temperature.py
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-maxtemp = {{ slapparameter_dict.get("promise_cpu_temperature_threshold", 80) }}
config-max-spot-temp = {{ slapparameter_dict.get("promise_cpu_max_spot_temp", 90) }}
config-max-avg-temp = {{ slapparameter_dict.get("promise_cpu_max_avg_temp", 80) }}
config-avg-temp-duration = {{ slapparameter_dict.get("promise_cpu_avg_temp_duration", 15) }}
software/ors-amarisoft/instance.cfg
View file @
16b27381
...
...
@@ -111,7 +111,6 @@ extra-context =
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw amarisoft_stats_template ${amarisoft-stats.jinja2.py:target}
raw sdr_busy_promise ${sdr-busy-promise:target}
raw cell_gain_saturated_promise ${cell-gain-saturated-promise:target}
raw rx_saturated_promise ${rx-saturated-promise:target}
raw amarisoft_stats_log_promise ${amarisoft-stats-log-promise:target}
raw cpu_temperature_promise ${cpu-temperature-promise:target}
...
...
@@ -139,7 +138,6 @@ extra-context =
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw amarisoft_stats_template ${amarisoft-stats.jinja2.py:target}
raw sdr_busy_promise ${sdr-busy-promise:target}
raw cell_gain_saturated_promise ${cell-gain-saturated-promise:target}
raw rx_saturated_promise ${rx-saturated-promise:target}
raw amarisoft_stats_log_promise ${amarisoft-stats-log-promise:target}
raw cpu_temperature_promise ${cpu-temperature-promise:target}
...
...
software/ors-amarisoft/promise/check_cell_gain_saturated.py
deleted
100644 → 0
View file @
02d9e65b
import
errno
import
json
import
logging
import
os
from
dateutil
import
parser
from
zope.interface
import
implementer
from
slapos.grid.promise
import
interface
from
slapos.grid.promise.generic
import
GenericPromise
# Get latest data and data from "interval" seconds ago from JSON log
def
get_data_interval
(
log
,
interval
):
log_number
=
0
latest_timestamp
=
0
latest_data
=
{}
while
True
:
try
:
f
=
open
(
"{}.{}"
.
format
(
log
,
log_number
)
if
log_number
else
log
,
"rb"
)
except
OSError
:
return
latest_data
,
{}
try
:
f
.
seek
(
0
,
os
.
SEEK_END
)
while
True
:
try
:
while
f
.
seek
(
-
2
,
os
.
SEEK_CUR
)
and
f
.
read
(
1
)
!=
b'
\
n
'
:
pass
except
OSError
:
break
pos
=
f
.
tell
()
l
=
json
.
loads
(
f
.
readline
().
decode
().
replace
(
"'"
,
'"'
))
timestamp
=
parser
.
parse
(
l
[
'time'
])
if
not
latest_timestamp
:
latest_timestamp
=
timestamp
latest_data
=
l
[
'data'
]
if
(
latest_timestamp
-
timestamp
).
total_seconds
()
>
interval
:
return
latest_data
,
l
[
'data'
]
f
.
seek
(
pos
,
os
.
SEEK_SET
)
finally
:
f
.
close
()
log_number
+=
1
@
implementer
(
interface
.
IPromise
)
class
RunPromise
(
GenericPromise
):
def
__init__
(
self
,
config
):
self
.
__name
=
config
.
get
(
'name'
,
None
)
self
.
__log_folder
=
config
.
get
(
'log-folder'
,
None
)
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
__title
=
os
.
path
.
splitext
(
self
.
__name
)[
0
]
self
.
__log_file
=
os
.
path
.
join
(
self
.
__log_folder
,
'%s.json.log'
%
self
.
__title
)
self
.
json_logger
=
logging
.
getLogger
(
'json_logger'
)
self
.
json_logger
.
setLevel
(
logging
.
INFO
)
handler
=
logging
.
FileHandler
(
self
.
__log_file
)
formatter
=
logging
.
Formatter
(
'{"time": "%(asctime)s", "log_level": "%(levelname)s", "message": "%(message)s", "data": %(data)s}'
)
handler
.
setFormatter
(
formatter
)
self
.
json_logger
.
addHandler
(
handler
)
def
sense
(
self
):
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
amarisoft_stats_log
=
self
.
getConfig
(
'amarisoft-stats-log'
)
stats_period
=
int
(
self
.
getConfig
(
'stats-period'
))
latest_data
,
previous_data
=
get_data_interval
(
amarisoft_stats_log
,
stats_period
*
2
)
def
get_saturation_events
(
data
):
if
data
:
return
sum
([
x
[
'sat'
]
for
x
in
data
[
'samples'
][
'rx'
]])
return
0
saturation_events
=
get_saturation_events
(
latest_data
)
-
\
get_saturation_events
(
previous_data
)
self
.
json_logger
.
info
(
"Saturation events"
,
extra
=
{
'data'
:
{
'recent_saturation_events'
:
saturation_events
}})
if
saturation_events
:
self
.
logger
.
error
(
"Reception saturated, please lower cell_gain"
)
else
:
self
.
logger
.
info
(
"No saturation events on reception"
)
def
test
(
self
):
"""
Called after sense() if the instance is still converging.
Returns success or failure based on sense results.
In this case, fail if the previous sensor result is negative.
"""
return
self
.
_test
(
result_count
=
1
,
failure_amount
=
1
)
def
anomaly
(
self
):
"""
Called after sense() if the instance has finished converging.
Returns success or failure based on sense results.
Failure signals the instance has diverged.
In this case, fail if two out of the last three results are negative.
"""
return
self
.
_anomaly
(
result_count
=
1
,
failure_amount
=
1
)
software/ors-amarisoft/promise/check_cpu_temperature.py
View file @
16b27381
import
socket
import
errno
import
logging
import
json
import
logging
import
os
import
psutil
import
socket
import
time
from
dateutil
import
parser
from
zope.interface
import
implementer
from
slapos.grid.promise
import
interface
from
slapos.grid.promise.generic
import
GenericPromise
# Get all data in the last "interval" seconds from JSON log
def
get_data_interval
(
log
,
interval
):
log_number
=
0
latest_timestamp
=
0
data_list
=
[]
while
True
:
try
:
f
=
open
(
"{}.{}"
.
format
(
log
,
log_number
)
if
log_number
else
log
,
"rb"
)
except
OSError
:
return
data_list
try
:
f
.
seek
(
0
,
os
.
SEEK_END
)
while
True
:
try
:
while
f
.
seek
(
-
2
,
os
.
SEEK_CUR
)
and
f
.
read
(
1
)
!=
b'
\
n
'
:
pass
except
OSError
:
break
pos
=
f
.
tell
()
l
=
json
.
loads
(
f
.
readline
().
decode
().
replace
(
"'"
,
'"'
))
timestamp
=
parser
.
parse
(
l
[
'time'
])
data_list
.
append
(
l
[
'data'
])
if
not
latest_timestamp
:
latest_timestamp
=
timestamp
if
(
latest_timestamp
-
timestamp
).
total_seconds
()
>
interval
:
return
data_list
f
.
seek
(
pos
,
os
.
SEEK_SET
)
finally
:
f
.
close
()
log_number
+=
1
@
implementer
(
interface
.
IPromise
)
class
RunPromise
(
GenericPromise
):
...
...
@@ -16,39 +52,70 @@ class RunPromise(GenericPromise):
self
.
__name
=
config
.
get
(
'name'
,
None
)
self
.
__log_folder
=
config
.
get
(
'log-folder'
,
None
)
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
2
)
self
.
last_avg_computation_file
=
self
.
getConfig
(
'last-avg-computation-file'
,
''
)
self
.
__title
=
os
.
path
.
splitext
(
self
.
__name
)[
0
]
self
.
__log_file
=
os
.
path
.
join
(
self
.
__log_folder
,
'%s.json.log'
%
self
.
__title
)
self
.
json_logger
=
logging
.
getLogger
(
'json_logger'
)
self
.
json_logger
.
setLevel
(
logging
.
INFO
)
handler
=
logging
.
FileHandler
(
self
.
__log_file
)
formatter
=
logging
.
Formatter
(
'{"time": "%(asctime)s", "log_level": "%(levelname)s", "message": "%(message)s", "data": %(data)s}'
)
formatter
=
logging
.
Formatter
(
'{"time": "%(asctime)s", "log_level": '
\
'"%(levelname)s", "message": "%(message)s", "data": %(data)s}'
)
handler
.
setFormatter
(
formatter
)
self
.
json_logger
.
addHandler
(
handler
)
def
sense
(
self
):
max_temp
=
int
(
self
.
getConfig
(
'max-temp'
,
80
))
promise_success
=
True
max_spot_temp
=
float
(
self
.
getConfig
(
'max-spot-temp'
,
90
))
max_avg_temp
=
float
(
self
.
getConfig
(
'max-avg-temp'
,
80
))
avg_temp_duration
=
60
*
int
(
self
.
getConfig
(
'avg-temp-duration'
,
5
))
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
# Get current temperature
if
testing
:
from
random
import
randint
cpu_temp
=
randint
(
40
,
75
)
else
:
data
=
psutil
.
sensors_temperatures
()
cpu_temp
=
data
[
'coretemp'
][
0
][
1
]
if
cpu_temp
>
max_spot_temp
:
self
.
logger
.
error
(
"Temperature reached critical threshold: %s degrees "
\
"celsius (threshold is %s degrees celsius)"
%
(
cpu_temp
,
max_spot_temp
))
promise_success
=
False
# Log temperature
data
=
json
.
dumps
({
'cpu_temperature'
:
cpu_temp
})
if
cpu_temp
>
max_temp
:
self
.
logger
.
error
(
"Temperature too high (%s > %s)"
%
(
cpu_temp
,
max_temp
))
self
.
json_logger
.
info
(
"Temperature too high (%s > %s)"
%
(
cpu_temp
,
max_temp
),
extra
=
{
'data'
:
data
})
else
:
self
.
json_logger
.
info
(
"Temperature data"
,
extra
=
{
'data'
:
data
})
# Computer average temperature
avg_computation_period
=
avg_temp_duration
/
4
try
:
t
=
os
.
path
.
getmtime
(
self
.
last_avg_computation_file
)
except
OSError
:
t
=
0
if
(
time
.
time
()
-
t
)
>
avg_computation_period
:
open
(
self
.
last_avg_computation_file
,
'w'
).
close
()
temp_list
=
get_data_interval
(
self
.
__log_file
,
avg_temp_duration
)
if
temp_list
:
avg_temp
=
sum
(
map
(
lambda
x
:
x
[
'cpu_temperature'
],
temp_list
))
/
len
(
temp_list
)
if
avg_temp
>
max_avg_temp
:
self
.
logger
.
error
(
"Average temperature over the last %s seconds "
\
"reached threshold: %s degrees celsius (threshold is %s degrees "
\
"celsius)"
%
(
avg_temp_duration
,
avg_temp
,
max_avg_temp
))
promise_success
=
False
else
:
self
.
logger
.
error
(
"Couldn't read temperature from log"
)
promise_success
=
False
if
promise_success
:
self
.
logger
.
info
(
"Temperature OK"
)
self
.
json_logger
.
info
(
"Temperature OK"
,
extra
=
{
'data'
:
data
})
def
test
(
self
):
"""
...
...
software/ors-amarisoft/software.cfg
View file @
16b27381
...
...
@@ -66,8 +66,6 @@ url = ${:_profile_base_location_}/${:_update_hash_filename_}
[sdr-busy-promise]
<= download-base
[cell-gain-saturated-promise]
<= download-base
[rx-saturated-promise]
<= download-base
[amarisoft-stats-log-promise]
...
...
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