diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 52848726..0eeed2dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - id: black types: [file, python] - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.42.0 + rev: v0.43.0 hooks: - id: markdownlint types: [file, markdown] diff --git a/scos_actions/__init__.py b/scos_actions/__init__.py index 5b461163..f9e29a7c 100644 --- a/scos_actions/__init__.py +++ b/scos_actions/__init__.py @@ -1 +1 @@ -__version__ = "11.0.0" +__version__ = "11.1.0" diff --git a/scos_actions/actions/acquire_sea_data_product.py b/scos_actions/actions/acquire_sea_data_product.py index 5e72550d..29861cf8 100644 --- a/scos_actions/actions/acquire_sea_data_product.py +++ b/scos_actions/actions/acquire_sea_data_product.py @@ -54,7 +54,7 @@ ntia_sensor, ) from scos_actions.metadata.structs.capture import CaptureSegment -from scos_actions.settings import SCOS_SENSOR_GIT_TAG +from scos_actions.settings import SCOS_SENSOR_GIT_TAG, SSD_DEVICE from scos_actions.signal_processing.apd import get_apd from scos_actions.signal_processing.fft import ( get_fft, @@ -712,7 +712,8 @@ def capture_diagnostics( Various CPU metrics make assumptions about the system: only Intel CPUs are supported. - Disk health check assumes the SSD is ``/dev/nvme0n1`` and + Disk health check collects SMART diagnostics on the + SSD specified by the `SSD_DEVICE` environment variable. This requires the Docker container to have the required privileges or capabilities and device passthrough. For more information, see ``scos_actions.hardware.utils.get_disk_smart_data()``. @@ -790,7 +791,7 @@ def capture_diagnostics( except: logger.warning("Failed to get SCOS uptime") try: # SSD SMART data - smart_data = get_disk_smart_data("/dev/nvme0n1") + smart_data = get_disk_smart_data(SSD_DEVICE) cpu_diag["ssd_smart_data"] = ntia_diagnostics.SsdSmartData(**smart_data) except: logger.warning("Failed to get SSD SMART data") diff --git a/scos_actions/settings.py b/scos_actions/settings.py index e924bc57..e719ca5e 100644 --- a/scos_actions/settings.py +++ b/scos_actions/settings.py @@ -45,3 +45,6 @@ logger.debug(f"scos-actions: PRESELECTOR_MODULE:{PRESELECTOR_MODULE}") PRESELECTOR_CLASS = env("PRESELECTOR_CLASS", default=None) logger.debug(f"scos-actions: PRESELECTOR_CLASS:{PRESELECTOR_CLASS}") + +SSD_DEVICE = env("SSD_DEVICE", default="/dev/nvme0n1") +logger.debug(f"scos-actions: SSD-DEVICE:{SSD_DEVICE}")