Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
c4f9988a
Commit
c4f9988a
authored
Feb 25, 2025
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
promise/plugin: keep the periodicity configurable
parent
56b74390
Pipeline
#40211
failed with stage
in 0 seconds
Changes
26
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
26 additions
and
26 deletions
+26
-26
slapos/promise/plugin/backupserver_check_backup.py
slapos/promise/plugin/backupserver_check_backup.py
+1
-1
slapos/promise/plugin/check_amarisoft_stats_log.py
slapos/promise/plugin/check_amarisoft_stats_log.py
+1
-1
slapos/promise/plugin/check_baseband_latency.py
slapos/promise/plugin/check_baseband_latency.py
+1
-1
slapos/promise/plugin/check_cpri_lock.py
slapos/promise/plugin/check_cpri_lock.py
+1
-1
slapos/promise/plugin/check_error_on_http_log.py
slapos/promise/plugin/check_error_on_http_log.py
+1
-1
slapos/promise/plugin/check_error_on_zope_longrequest_log.py
slapos/promise/plugin/check_error_on_zope_longrequest_log.py
+1
-1
slapos/promise/plugin/check_frequency_outofbounds.py
slapos/promise/plugin/check_frequency_outofbounds.py
+1
-1
slapos/promise/plugin/check_gps_lock.py
slapos/promise/plugin/check_gps_lock.py
+1
-1
slapos/promise/plugin/check_icmp_packet_lost.py
slapos/promise/plugin/check_icmp_packet_lost.py
+1
-1
slapos/promise/plugin/check_interface_up.py
slapos/promise/plugin/check_interface_up.py
+1
-1
slapos/promise/plugin/check_lopcomm_config_log.py
slapos/promise/plugin/check_lopcomm_config_log.py
+1
-1
slapos/promise/plugin/check_lopcomm_lof.py
slapos/promise/plugin/check_lopcomm_lof.py
+1
-1
slapos/promise/plugin/check_lopcomm_pa_current.py
slapos/promise/plugin/check_lopcomm_pa_current.py
+1
-1
slapos/promise/plugin/check_lopcomm_pa_output_power.py
slapos/promise/plugin/check_lopcomm_pa_output_power.py
+1
-1
slapos/promise/plugin/check_lopcomm_rssi.py
slapos/promise/plugin/check_lopcomm_rssi.py
+1
-1
slapos/promise/plugin/check_lopcomm_stats_log.py
slapos/promise/plugin/check_lopcomm_stats_log.py
+1
-1
slapos/promise/plugin/check_lopcomm_sync.py
slapos/promise/plugin/check_lopcomm_sync.py
+1
-1
slapos/promise/plugin/check_lopcomm_vswr.py
slapos/promise/plugin/check_lopcomm_vswr.py
+1
-1
slapos/promise/plugin/check_partition_deployment_state.py
slapos/promise/plugin/check_partition_deployment_state.py
+1
-1
slapos/promise/plugin/check_re6st_optimal_status.py
slapos/promise/plugin/check_re6st_optimal_status.py
+1
-1
slapos/promise/plugin/check_rx_saturated.py
slapos/promise/plugin/check_rx_saturated.py
+1
-1
slapos/promise/plugin/check_sdr_busy.py
slapos/promise/plugin/check_sdr_busy.py
+1
-1
slapos/promise/plugin/check_socket_listening.py
slapos/promise/plugin/check_socket_listening.py
+1
-1
slapos/promise/plugin/monitor_bootstrap_status.py
slapos/promise/plugin/monitor_bootstrap_status.py
+1
-1
slapos/promise/plugin/trafficserver_cache_availability.py
slapos/promise/plugin/trafficserver_cache_availability.py
+1
-1
slapos/promise/plugin/validate_frontend_configuration.py
slapos/promise/plugin/validate_frontend_configuration.py
+1
-1
No files found.
slapos/promise/plugin/backupserver_check_backup.py
View file @
c4f9988a
...
...
@@ -18,7 +18,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
# check backup ran OK every 5 minutes
self
.
setPeriodicity
(
minute
=
5
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
5
))
)
def
sense
(
self
):
"""
...
...
slapos/promise/plugin/check_amarisoft_stats_log.py
View file @
c4f9988a
...
...
@@ -12,7 +12,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
amarisoft_stats_log
=
self
.
getConfig
(
'amarisoft-stats-log'
)
self
.
stats_period
=
int
(
self
.
getConfig
(
'stats-period'
))
...
...
slapos/promise/plugin/check_baseband_latency.py
View file @
c4f9988a
...
...
@@ -8,7 +8,7 @@ from slapos.grid.promise import interface
class
RunPromise
(
JSONPromise
):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
amarisoft_stats_log
=
self
.
getConfig
(
'amarisoft-stats-log'
)
self
.
stats_period
=
int
(
self
.
getConfig
(
'stats-period'
))
self
.
min_rxtx_delay_threshold
=
float
(
self
.
getConfig
(
'min-rxtx-delay'
,
0
))
...
...
slapos/promise/plugin/check_cpri_lock.py
View file @
c4f9988a
...
...
@@ -8,7 +8,7 @@ from slapos.grid.promise import interface
class
RunPromise
(
JSONPromise
):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
amarisoft_rf_info_log
=
self
.
getConfig
(
'amarisoft-rf-info-log'
)
self
.
sdr_devchan
=
"/dev/sdr%s@%s"
%
(
self
.
getConfig
(
'sdr_dev'
),
self
.
getConfig
(
'sfp_port'
))
self
.
stats_period
=
int
(
self
.
getConfig
(
'stats-period'
))
...
...
slapos/promise/plugin/check_error_on_http_log.py
View file @
c4f9988a
...
...
@@ -10,7 +10,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
# set periodicity to run the promise twice per day
self
.
custom_frequency
=
in
t
(
self
.
getConfig
(
'frequency'
,
720
))
self
.
custom_frequency
=
floa
t
(
self
.
getConfig
(
'frequency'
,
720
))
self
.
setPeriodicity
(
self
.
custom_frequency
)
# Skip test check on this promise
self
.
setTestLess
()
...
...
slapos/promise/plugin/check_error_on_zope_longrequest_log.py
View file @
c4f9988a
...
...
@@ -13,7 +13,7 @@ r = re.compile(br"^([0-9]+\-[0-9]+\-[0-9]+ [0-9]+\:[0-9]+\:[0-9]+)(\,[0-9]+) - (
class
RunPromise
(
GenericPromise
):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
10
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
10
))
)
def
sense
(
self
):
log_file
=
self
.
getConfig
(
'log-file'
)
...
...
slapos/promise/plugin/check_frequency_outofbounds.py
View file @
c4f9988a
...
...
@@ -11,7 +11,7 @@ class RunPromise(GenericPromise):
Sets the configuration and the periodicity.
"""
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
def
sense
(
self
):
...
...
slapos/promise/plugin/check_gps_lock.py
View file @
c4f9988a
...
...
@@ -7,7 +7,7 @@ from slapos.grid.promise import interface
class
RunPromise
(
JSONPromise
):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
amarisoft_rf_info_log
=
self
.
getConfig
(
'amarisoft-rf-info-log'
)
self
.
stats_period
=
int
(
self
.
getConfig
(
'stats-period'
))
...
...
slapos/promise/plugin/check_icmp_packet_lost.py
View file @
c4f9988a
...
...
@@ -10,7 +10,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
# set periodicity to run the promise twice per day
self
.
custom_frequency
=
in
t
(
self
.
getConfig
(
'frequency'
,
720
))
self
.
custom_frequency
=
floa
t
(
self
.
getConfig
(
'frequency'
,
720
))
self
.
setPeriodicity
(
self
.
custom_frequency
)
# Skip test check on this promise
self
.
setTestLess
()
...
...
slapos/promise/plugin/check_interface_up.py
View file @
c4f9988a
...
...
@@ -8,7 +8,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
2
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
2
))
)
def
sense
(
self
):
...
...
slapos/promise/plugin/check_lopcomm_config_log.py
View file @
c4f9988a
...
...
@@ -14,7 +14,7 @@ from slapos.grid.promise import interface
class
RunPromise
(
JSONPromise
):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
config_log
=
self
.
getConfig
(
'config-log'
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
...
...
slapos/promise/plugin/check_lopcomm_lof.py
View file @
c4f9988a
...
...
@@ -17,7 +17,7 @@ class RunPromise(JSONPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
netconf_log
=
self
.
getConfig
(
'netconf-log'
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
...
...
slapos/promise/plugin/check_lopcomm_pa_current.py
View file @
c4f9988a
...
...
@@ -17,7 +17,7 @@ class RunPromise(JSONPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
netconf_log
=
self
.
getConfig
(
'netconf-log'
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
...
...
slapos/promise/plugin/check_lopcomm_pa_output_power.py
View file @
c4f9988a
...
...
@@ -17,7 +17,7 @@ class RunPromise(JSONPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
netconf_log
=
self
.
getConfig
(
'netconf-log'
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
...
...
slapos/promise/plugin/check_lopcomm_rssi.py
View file @
c4f9988a
...
...
@@ -17,7 +17,7 @@ class RunPromise(JSONPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
netconf_log
=
self
.
getConfig
(
'netconf-log'
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
...
...
slapos/promise/plugin/check_lopcomm_stats_log.py
View file @
c4f9988a
...
...
@@ -14,7 +14,7 @@ from slapos.grid.promise import interface
class
RunPromise
(
JSONPromise
):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
stats_log
=
self
.
getConfig
(
'stats-log'
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
...
...
slapos/promise/plugin/check_lopcomm_sync.py
View file @
c4f9988a
...
...
@@ -17,7 +17,7 @@ class RunPromise(JSONPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
netconf_log
=
self
.
getConfig
(
'netconf-log'
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
...
...
slapos/promise/plugin/check_lopcomm_vswr.py
View file @
c4f9988a
...
...
@@ -17,7 +17,7 @@ class RunPromise(JSONPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
netconf_log
=
self
.
getConfig
(
'netconf-log'
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
...
...
slapos/promise/plugin/check_partition_deployment_state.py
View file @
c4f9988a
...
...
@@ -9,7 +9,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
def
sense
(
self
):
"""
...
...
slapos/promise/plugin/check_re6st_optimal_status.py
View file @
c4f9988a
...
...
@@ -10,7 +10,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
# set periodicity to run the promise twice per day
self
.
custom_frequency
=
in
t
(
self
.
getConfig
(
'frequency'
,
720
))
self
.
custom_frequency
=
floa
t
(
self
.
getConfig
(
'frequency'
,
720
))
self
.
setPeriodicity
(
self
.
custom_frequency
)
# Skip test check on this promise
self
.
setTestLess
()
...
...
slapos/promise/plugin/check_rx_saturated.py
View file @
c4f9988a
...
...
@@ -10,7 +10,7 @@ class RunPromise(JSONPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
self
.
testing
=
self
.
getConfig
(
'testing'
)
==
"True"
self
.
amarisoft_stats_log
=
self
.
getConfig
(
'amarisoft-stats-log'
)
self
.
stats_period
=
int
(
self
.
getConfig
(
'stats-period'
))
...
...
slapos/promise/plugin/check_sdr_busy.py
View file @
c4f9988a
...
...
@@ -10,7 +10,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
1
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
1
))
)
def
sense
(
self
):
...
...
slapos/promise/plugin/check_socket_listening.py
View file @
c4f9988a
...
...
@@ -12,7 +12,7 @@ ADDRESS_USAGE = (
class
RunPromise
(
GenericPromise
):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
2
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
2
))
)
self
.
result_count
=
int
(
self
.
getConfig
(
'result-count'
,
3
))
self
.
failure_amount
=
int
(
self
.
getConfig
(
'failure-amount'
,
3
))
...
...
slapos/promise/plugin/monitor_bootstrap_status.py
View file @
c4f9988a
...
...
@@ -11,7 +11,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
2
)
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
2
))
)
def
sense
(
self
):
process_pid_file
=
self
.
getConfig
(
'process-pid-file'
)
...
...
slapos/promise/plugin/trafficserver_cache_availability.py
View file @
c4f9988a
...
...
@@ -11,7 +11,7 @@ except ImportError:
class
RunPromise
(
GenericPromise
):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
self
.
setPeriodicity
(
minute
=
in
t
(
self
.
getConfig
(
'frequency'
,
5
)))
self
.
setPeriodicity
(
minute
=
floa
t
(
self
.
getConfig
(
'frequency'
,
5
)))
def
sense
(
self
):
"""
...
...
slapos/promise/plugin/validate_frontend_configuration.py
View file @
c4f9988a
...
...
@@ -11,7 +11,7 @@ class RunPromise(GenericPromise):
def
__init__
(
self
,
config
):
super
(
RunPromise
,
self
).
__init__
(
config
)
# check configuration every 5 minutes (only for anomaly)
self
.
setPeriodicity
(
minute
=
in
t
(
self
.
getConfig
(
'frequency'
,
5
)))
self
.
setPeriodicity
(
minute
=
floa
t
(
self
.
getConfig
(
'frequency'
,
5
)))
def
sense
(
self
):
"""
...
...
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