mdadm --detail status with degraded mode is not reported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hw-health-charm |
Fix Released
|
High
|
Unassigned |
Bug Description
Drives with the following status are not reported in Thruk.
Need to check for degraded as well as clean status.
--
sudo mdadm --detail /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Thu Oct 18 19:18:41 2018
Raid Level : raid10
Array Size : 15624470528 (14900.66 GiB 15999.46 GB)
Used Dev Size : 3906117632 (3725.16 GiB 3999.86 GB)
Raid Devices : 8
Total Devices : 7
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Jun 2 00:57:01 2019
State : clean, degraded
Active Devices : 7
Working Devices : 7
Failed Devices : 0
Spare Devices : 0
Layout : near=2
Chunk Size : 512K
Name : CMOOSCHSTUP7325:1 (local to host CMOOSCHSTUP7325)
UUID : 02536f97:
Events : 30508
Number Major Minor RaidDevice State
0 8 34 0 active sync set-A /dev/sdc2
1 8 50 1 active sync set-B /dev/sdd2
2 8 66 2 active sync set-A /dev/sde2
3 8 82 3 active sync set-B /dev/sdf2
4 8 98 4 active sync set-A /dev/sdg2
10 0 0 10 removed
6 8 146 6 active sync set-A /dev/sdj2
7 8 162 7 active sync set-B /dev/sdk2
Related branches
- Paul Goins: Approve
- Drew Freiberger (community): Approve
- Stuart Bishop: Pending requested
-
Diff: 702 lines (+256/-86)13 files modifiedsrc/files/mdadm/cron_mdadm.py (+93/-31)
src/tests/hw-health-samples/mdadm.output (+4/-4)
src/tests/hw-health-samples/mdadm.output.critical.1 (+4/-4)
src/tests/hw-health-samples/mdadm.output.critical.2 (+33/-0)
src/tests/hw-health-samples/mdadm.output.warning (+33/-0)
src/tests/unit/lib/samples.py (+17/-0)
src/tests/unit/test_check_mdadm.py (+10/-18)
src/tests/unit/test_check_megacli.py (+7/-7)
src/tests/unit/test_check_nvme.py (+5/-3)
src/tests/unit/test_check_sas2ircu.py (+5/-4)
src/tests/unit/test_check_sas3ircu.py (+5/-3)
src/tests/unit/test_cron_mdadm.py (+35/-8)
src/tests/unit/test_hwdiscovery.py (+5/-4)
- Stuart Bishop (community): Approve
- Drew Freiberger (community): Needs Resubmitting
- Xav Paice (community): Needs Fixing
- Giuseppe Petralia: Approve
- BootStack Reviewers: Pending requested
-
Diff: 750 lines (+297/-87)15 files modifiedsrc/README.md (+25/-0)
src/files/ipmi/cron_ipmi_sensors.py (+15/-11)
src/files/mdadm/cron_mdadm.py (+100/-36)
src/files/sas3ircu/check_sas3ircu.py (+4/-4)
src/lib/hwhealth/discovery/supported_vendors.py (+1/-1)
src/lib/hwhealth/tools.py (+9/-2)
src/metadata.yaml (+2/-1)
src/tests/download_nagios_plugin3.py (+1/-1)
src/tests/functional/test_hwhealth.py (+19/-8)
src/tests/hw-health-samples/mdadm.output.critical.2 (+33/-0)
src/tests/hw-health-samples/mdadm.output.warning (+33/-0)
src/tests/unit/test_check_mdadm.py (+11/-17)
src/tests/unit/test_cron_mdadm.py (+40/-4)
src/tests/unit/test_hwdiscovery.py (+3/-2)
src/tox.ini (+1/-0)
Changed in hw-health-charm: | |
importance: | Undecided → High |
Changed in thruk-master-charm: | |
status: | Invalid → Won't Fix |
Changed in hw-health-charm: | |
status: | New → In Progress |
no longer affects: | charm-thruk-master |
Changed in charm-hw-health: | |
assignee: | nobody → Andrea Ieri (aieri) |
Changed in charm-hw-health: | |
assignee: | Andrea Ieri (aieri) → nobody |
This is not a thruk bug, but a monitoring agent needed bug.
I have added hw-health-charm to this bug as that is likely the best place to monitor for software raid health.