Mike Degatano
e449205863
Add share to docker config issue ( #4322 )
2023-05-30 15:36:06 -04:00
Mike Degatano
841f68c175
Make issue for problem with config for containers ( #4317 )
...
* Make issue for problem with config for containers
* Mount propagation in tests
* Fixes from rebase and feedback
2023-05-30 13:25:38 -04:00
Mike Degatano
f6c3bdb6a8
Add mount to supported features ( #4301 )
...
* Add mount to supported features
* Typo in enable
* Fix places mocking os available without version
* Increase resilence of problematic repeat task test
2023-05-23 14:00:15 +02:00
Mike Degatano
34c394c3d1
Add support for network mounts ( #4269 )
...
* Add support for network mounts
* Handle backups and save data
* fix pylint issues
2023-05-01 08:45:52 +02:00
Mike Degatano
8cf71ffa81
Issue changed messages include suggestions ( #4225 )
...
* Issue changed messages include suggestions
* Fix test so ordering of suggestions doesn't matter
2023-04-03 14:00:01 -04:00
Mike Degatano
842e550dda
Create issue for multiple data disks detected ( #4218 )
2023-03-31 11:31:39 -04:00
Mike Degatano
a6caccd845
Use session dbus mocks for all tests ( #4198 )
...
* Use session dbus mocks for all tests
* func instead of fn for pylint
2023-03-21 07:30:31 +01:00
Pascal Vizeli
692d34a13c
Handle OSError / Filesystem corruptions ( #4127 )
...
* Handle OSError / Filesystem corruptions
* Fix tests
2023-02-28 19:57:05 +01:00
dependabot[bot]
4a0e17f050
Bump black from 22.12.0 to 23.1.0 ( #4126 )
...
* Bump black from 22.12.0 to 23.1.0
Bumps [black](https://github.com/psf/black ) from 22.12.0 to 23.1.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/22.12.0...23.1.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump black in precommit
* reformat with new black version
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2023-02-01 16:41:46 -05:00
Mike Degatano
14fcda5d78
Sentry only loaded when diagnostics on ( #3993 )
...
* Sentry only loaded when diagnostics on
* Logging when sentry is closed
2022-11-13 21:23:52 +01:00
Mike Degatano
672b220f69
Add boards APIs ( #3984 )
...
* Add boards APIs
* Move boards to agent
2022-11-04 08:22:24 +01:00
Mike Degatano
7a0c4c5060
Unsupported check for journal gateway ( #3950 )
2022-10-16 11:07:31 +02:00
Mike Degatano
5d2b5bada7
Events when unhealthy/unsupported changes ( #3951 )
...
* Events when unhealthy/unsupported changes
* called_once_with to called_once
2022-10-16 11:07:15 +02:00
Mike Degatano
2a6fc512e7
Check if issue in list, not end of list in test ( #3891 )
...
* Check if issue in list, not end of list
* Similar fix to other test
2022-09-22 16:52:07 +02:00
Mike Degatano
a5103cc329
Add restart policy evaluation ( #3886 )
...
* Add restart policy evaluation
* No container meta does not fail evaluation
2022-09-22 09:16:33 +02:00
Mike Degatano
99bc201688
Listen for dbus property changes ( #3872 )
...
* Listen for dbus property changes
* Avoid remaking dbus proxy objects
* proper snake case for pylint
* some cleanup and more tests
2022-09-17 09:55:41 +02:00
Joakim Sørensen
c67d4d7c0b
Cleanup evaluations ( #3857 )
...
* Cleanup
* move
* Add OS available test
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-09-13 13:19:07 -04:00
Mike Degatano
ebae1e70ee
Add tests for backups check ( #3845 )
2022-09-07 10:33:46 +02:00
Mike Degatano
bf48d48c51
Create issue+suggestion when no recent backup ( #3814 )
...
* Automatic full backup option
* Fix test for change in free space check
* Suggestions only, no automation
* Remove extra in backup config schema
2022-09-03 09:50:23 +02:00
Mike Degatano
fc646db95f
Reduce connectivity checks ( #3836 )
...
* Reduce connectivity checks
* Fix/remove connectivity tests
* Remove throttle from prior connectivity tests
* Use dbus_property wrapper
* Allow variable throttle period with lambda
* Add evaluation for connectivity check disabled
2022-09-03 09:48:30 +02:00
Mike Degatano
1f28e6ad93
Fire issue events on HA's bus ( #3837 )
...
* Fire issue events on HA's bus
* Convey event type with event field
* Message for humans
2022-09-02 17:40:10 +02:00
Mike Degatano
4ea27f6311
Network connection check only about ipv4 ( #3830 )
...
* Network connection test only about ipv4
* Better test of change being made
2022-08-30 08:39:08 +02:00
Mike Degatano
32d65722e9
Handle multiple suggestions with different references ( #3817 )
2022-08-25 10:09:25 -04:00
Mike Degatano
d5f9fcfdc7
Fire events on issue changes ( #3818 )
...
* Fire events on issue changes
* API includes if suggestion has autofix
2022-08-25 11:42:31 +02:00
Mike Degatano
b4e1e3e853
Identify and handle dhcp issues ( #3806 )
...
* Identify and handle dhcp issues
* Change test from DHCP to Connection Problem
2022-08-23 13:57:16 +02:00
Mike Degatano
cbddca2658
Rename dns checks to fit pattern ( #3811 )
...
* Rename dns checks to fit pattern
* Missed a patch reference
2022-08-23 13:54:22 +02:00
Mike Degatano
c8f184f24c
Add auto update option ( #3769 )
...
* Add update freeze option
* Freeze to auto update and plugin condition
* Add tests
* Add supervisor_version evaluation
* OS updates require supervisor up to date
* Run version check during startup
2022-08-15 12:13:22 -04:00
Stefan Agner
a92058e6fc
Mark CGroup V2 supported on Home Assistant OS ( #3778 )
...
* Mark CGroup V2 supported on Home Assistant OS
* Fix tests
* Fix comparision
* Move evaluation of CGroup after OSManager has been initialized
2022-08-09 11:32:51 +02:00
Mike Degatano
d19166bb86
Docker events based watchdog and docker healthchecks ( #3725 )
...
* Docker events based watchdog
* Separate monitor from DockerAPI since it needs coresys
* Move monitor into dockerAPI
* Fix properties on coresys
* Add watchdog tests
* Added tests
* pylint issue
* Current state failures test
* Thread-safe event processing
* Use labels property
2022-07-15 09:21:59 +02:00
Pascal Vizeli
1f69cf0fe6
Verify the cgroup supported level ( #3688 )
...
* Verify the cgroup supported level
* add tests
2022-06-22 11:22:27 -04:00
Mike Degatano
ccd2c31390
Move repository urls to store settings file ( #3665 )
...
* Move repository urls to store settings file
* Remove default repos from supervisor config
* Fix clone at initial store load
* Mock git load in repository fixture
2022-06-07 10:02:21 +02:00
Mike Degatano
138fd7eec9
APIs for adding/removing an addon repository ( #3649 )
...
* APIs for adding/removing an addon repository
* Misunderstood addons.store, fixed usage
2022-05-23 09:16:42 +02:00
Pascal Vizeli
942b5e6150
Rework fixups & Add integrity ( #3614 )
...
* Rework fixups & Add integrity
* Fix tests
* fix test v2
* Protect ddos
2022-05-05 16:21:19 +02:00
Pascal Vizeli
ca1f764080
Add integrity check ( #3608 )
...
* Add integrity check
* add API test
* add tests
* tests for add-ons
2022-04-30 10:14:43 +02:00
Mike Degatano
8bb4596d04
Add API option to disable fallback DNS ( #3586 )
...
* Add API option to disable fallback DNS
* DNS unsupported evaluation and fallback in sentry
2022-04-25 18:15:40 +02:00
Mike Degatano
f3e2ccce43
Create issue for detected DNS server problem ( #3578 )
...
* Create issue for detected DNS server problem
* Validate behavior on restart as well
* tls:// not supported, remove check
* Move DNS server checks into resolution checks
* Revert all changes to plugins.dns
* Run DNS server checks if affected
* Mock aiodns query during all checks tests
2022-04-21 10:55:49 +02:00
Mike Degatano
dd3a4a1f47
Add unsupported message if no systemd-resolved ( #3487 )
...
* Require resolved for supported systems
* Added properties for dbus resolved
2022-03-07 10:38:24 +01:00
Pascal Vizeli
9104b287e5
New Backup format for core ( #3451 )
...
* New Backup format for core
* cleanup
* next round
* partial resotre encrypted function of metadata
* Using securetar as modul
* fix securetar imports
* simplify
* more typing
* adjust handling
* Handling replace better
* increase the order
* more logic cleanup
* create new core backup
* handle restore
* fix tests
* better checks
* Fix attribute issues
* Update supervisor/backups/manager.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Address comments
* Fix tests
* Update supervisor/exceptions.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2022-02-23 16:08:02 +01:00
Mike Degatano
d2e0b0417c
Hash correct folder in source_mods tests ( #3442 )
...
Source mods test was corrected to start from `supervisor` folder within repo and not include tests. The patch here was still starting from the workspace directory since that's what it used to do
2022-02-10 11:33:47 -05:00
dependabot[bot]
d4fd8f3f0d
Bump black from 21.12b0 to 22.1.0 ( #3425 )
...
* Bump black from 21.12b0 to 22.1.0
Bumps [black](https://github.com/psf/black ) from 21.12b0 to 22.1.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/commits/22.1.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update black
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2022-02-10 14:13:40 +01:00
Pascal Vizeli
3478005e70
Using CAS for content-trust ( #3382 )
...
* Using CAS for content-trust
* v2
* Fix linting errors
* Adjust field checked for status in CAS response
* CI workflow needs CAS not VCN now
* Use cwd in test as code won't be in /usr/src
* Pre-cache CAS pub key for supervisor
* Cas doesn't actually need key file executable
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-02-10 09:21:21 +01:00
Joakim Sørensen
ef5b6a5f4c
Rename unsupported reason container to software ( #3240 )
...
* Rename unsupported reason container to software
* rename in tests
2021-10-19 11:26:58 +02:00
Joakim Sørensen
bb474a5c14
Only run container evaluation when system is running ( #3239 )
...
* Only run container evaluation when system is running
* adjust test
2021-10-18 20:25:50 +02:00
Joakim Sørensen
8a553dbb59
Adjust container evaluation ( #3174 )
...
* Adjust container evaluation
* remove test
2021-10-18 13:58:51 +02:00
Pascal Vizeli
5933b66b1c
Add os-agent to evaluations for supported systems ( #3138 )
2021-09-22 15:59:35 +02:00
Pascal Vizeli
271e4f0cc4
Support OS-Agent Data disk ( #3120 )
...
* Support OS-Agent Data disk
* fix lint
* add tests
* Fix empty path
* revert change
* Using as_posix()
* clean not needed cast
* rename
* Rename files
2021-09-17 15:01:07 +02:00
Pascal Vizeli
b2abe37d72
Add check for plugin trust ( #3080 )
...
* Add check for plugin trust
* Update supervisor/resolution/checks/plugin_trust.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-08-30 10:56:05 +02:00
Pascal Vizeli
d54c23952f
Codenotary vcn 0.9.8 - System trust check ( #3070 )
...
* Update codenotary 0.9.8
* Fix lint
* ditch wrong code
* Fix run health check
* remove old code
* better structured
* more cleaner
* Fix core
* Add tests
* addjust test
* Split checks
* Update supervisor/resolution/checks/core_trust.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Fix line end
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-08-24 12:19:08 +02:00
Joakim Sørensen
419f603571
Rename snapshot -> backup ( #2940 )
2021-07-27 10:06:09 +02:00
Pascal Vizeli
2b6829a786
OS-Agent support ( #2811 )
...
* OS-Agent support
* add agent to host feature
* Add support for os-agent on devcontainer
* Rename core
* fix tests
* add setter
* add cgroup / apparmor
* all interfaces added
* fix import
* Add tests
* More tests
* Finish tests
* reformating xml files
* fix doc string
* address comments
* change return value
* fix tests
* Update supervisor/dbus/agent/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update scripts/supervisor.sh
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-06-30 11:55:53 +02:00