check space generate only part of the checks definition.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NRPE Charm |
Fix Committed
|
Medium
|
Nikita Koltsov |
Bug Description
Having two nested children sections in lsblk output caused charm to skip several definitions.
Here is the json, with this json only 6 check generated.
{
"blockdevices": [
{"name": "loop0", "maj:min": "7:0", "rm": "0", "size": "9M", "ro": "1", "type": "loop", "mountpoint": "/snap/
{"name": "loop2", "maj:min": "7:2", "rm": "0", "size": "113.9M", "ro": "1", "type": "loop", "mountpoint": "/snap/
{"name": "loop3", "maj:min": "7:3", "rm": "0", "size": "9M", "ro": "1", "type": "loop", "mountpoint": "/snap/
{"name": "loop4", "maj:min": "7:4", "rm": "0", "size": "114M", "ro": "1", "type": "loop", "mountpoint": "/snap/
{"name": "sda", "maj:min": "8:0", "rm": "0", "size": "372.6G", "ro": "0", "type": "disk", "mountpoint": null,
]
}
]
},
{"name": "sdb", "maj:min": "8:16", "rm": "0", "size": "7.3T", "ro": "0", "type": "disk", "mountpoint": null,
]
}
]
}
Related branches
- Andrea Ieri: Approve
- Eric Chen: Needs Information
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- Robert Gildein: Approve
-
Diff: 220 lines (+80/-70)2 files modifiedhooks/nrpe_helpers.py (+24/-20)
tests/unit/test_nrpe_helpers.py (+56/-50)
- Andrea Ieri: Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- Eric Chen: Approve
- BootStack Reviewers: Pending requested
-
Diff: 131 lines (+96/-3)2 files modifiedhooks/nrpe_helpers.py (+7/-3)
tests/unit/test_nrpe_helpers.py (+89/-0)
Changed in charm-nrpe: | |
status: | Triaged → Fix Committed |
Changed in charm-nrpe: | |
assignee: | nobody → Nikita Koltsov (nkoltsov) |
Second children section is not handled correctly so None is returned as mountpoint which cause executing replace agains None object in https:/ /git.launchpad. net/charm- nrpe/tree/ hooks/nrpe_ helpers. py#n570