Pascal Vizeli
e09a839148
Fix byte order for network DNS settings ( #2315 )
2020-11-30 15:22:02 +01:00
Pascal Vizeli
49853e92a4
Fix sentry spam ( #2313 )
2020-11-30 11:01:10 +01:00
Pascal Vizeli
19620d6808
Fix: cleanup repository from list ( #2310 )
...
* Fix: cleanup repository from list
* Add repr
* Avoid not exists error message
2020-11-29 14:00:29 +01:00
Pascal Vizeli
f6bf44de1c
Add tests for remove function ( #2309 )
2020-11-29 12:34:33 +01:00
Pascal Vizeli
aa5297026f
Handle Store suggestion ( #2306 )
...
* Handle Store suggestion
* Add fixup
* Add more fixup & list
* Enable fixups
* Add tests
* fix index
* fix break
* fix import
* Load it anyway
* Run suFix ccestion on load too
* fix error message
* fix error message
* Fix remove
* Finishing
* Add tests
* Fix error
* fix cleanup stale stuff
* Fix source
* use source as url
* add test for url
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-11-28 15:03:44 +01:00
Pascal Vizeli
d9e20307de
Allow check to cleanup issues ( #2302 )
2020-11-26 22:38:33 +01:00
Pascal Vizeli
fda1b523ba
Extend resolution center ( #2297 )
...
* Extend resolution center
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* move forward
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* Rename it to fixups
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* Finish p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* Finish p1 - add files
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* Finishup
* Add more tests
* Add test for suggestion
* Add more tests
* fix tests & isort
* address comments
* address comments v2
* fix isort
* Change reference handling
2020-11-26 17:16:36 +01:00
Pascal Vizeli
056926242f
Fix sentry resoluton messages ( #2295 )
2020-11-24 14:17:47 +01:00
Pascal Vizeli
845c935b39
Add JobManager API ignore ( #2290 )
...
* Disable job condition for unhealth & unsupported systems
* Add JobManager API ignore
* Apply suggestions from code review
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Update tests/resolution/evaluation/test_evaluate_job_conditions.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* fix names
* address comments
* Update decorator.py
* adjust security
* add reset
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-11-24 10:54:57 +01:00
Pascal Vizeli
7e94537e36
Soft restart supervisor ( #2281 )
...
* Add softrestart to supervisor
* decouble
* adjust logger
* make sure it need run
* Use job condition
* add more job running
2020-11-21 12:48:16 +01:00
Joakim Sørensen
e607d4feeb
Fix missing primary interface after change ( #2274 )
...
* Fix missing primary interface after change
* Fix test
2020-11-20 12:01:59 +01:00
Pascal Vizeli
3dd3340e35
Make host feature cheaper to call and relay on it ( #2266 )
2020-11-18 14:13:49 +01:00
Pascal Vizeli
80f4309799
Enforce internet host/system ( #2263 )
2020-11-18 11:29:23 +01:00
Pascal Vizeli
550fca4bcd
Remove coroutine from job update ( #2264 )
2020-11-18 11:25:04 +01:00
Pascal Vizeli
4b500ef873
JobManager should not touch our exceptions ( #2261 )
...
* JobManager should not touch our exceptions
* Add tests
* temporary allow su update all time
* Update supervisor/jobs/decorator.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-11-17 18:46:02 +01:00
Pascal Vizeli
2040102e21
Handle Unhealthy like Unsupported ( #2255 )
...
* Handle Unhealthy like Unsupported
* Add tests
* Add unhealthy to sentry
* Add test
2020-11-14 16:16:00 +01:00
Joakim Sørensen
7ee5737f75
Activate new network settings after update ( #2253 )
2020-11-13 18:15:46 +01:00
Pascal Vizeli
8d499753a0
Fix auto interface method ( #2252 )
2020-11-13 16:58:28 +01:00
Pascal Vizeli
028ec277eb
Enable support for mdns & llmnr for host ( #2251 )
2020-11-13 16:47:56 +01:00
Pascal Vizeli
5552b1da49
Optimize flow / reduce call time ( #2250 )
...
* Optimize flow / reduce call time
* rename
* freeze too
* add connectivity task
* use newstyle timeout
* Fix tests
Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2020-11-13 12:19:10 +01:00
Joakim Sørensen
784c5d3b7c
Use bool for host internet ( #2247 )
...
* Use bool for host internet
* Ignore host check if no network manager
* Update supervisor/host/network.py
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
* Check dbus connection isntead of supported features
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-11-13 00:07:05 +01:00
Joakim Sørensen
a18b706f99
Add JobManager and Job decorator ( #2225 )
...
* Adds condition decorator to block execution that require internet
* Fix exsisting tests
* Add internet state to network info
* Add healthy condition
* Add tests
* It's all changed
* rename
2020-11-12 22:57:28 +01:00
Pascal Vizeli
cd34a40dd8
Send issues with sentry report ( #2246 )
2020-11-12 14:57:04 +01:00
Pascal Vizeli
46e92036ec
Fix handling with open or wpa-psk ( #2239 )
2020-11-11 16:33:46 +01:00
Pascal Vizeli
c4847ad10d
Handle dbus single byte ( #2237 )
2020-11-11 13:09:13 +01:00
Pascal Vizeli
7aceb21123
Fix auth mode WEP ( #2235 )
...
* Fix auth mode WEP
* fix mapping
2020-11-10 18:07:20 +01:00
Pascal Vizeli
9264d437b1
Fix network API default value & tests ( #2234 )
2020-11-10 15:08:35 +01:00
Pascal Vizeli
4c560d7c54
Fix gateway None on API ( #2230 )
...
* Fix gateway None on API
* fix tests
2020-11-09 10:00:39 +01:00
Pascal Vizeli
e1b9d754af
Fix all interface are primary ( #2228 )
2020-11-09 09:27:16 +01:00
Pascal Vizeli
ee49935b7d
Odroid-C4 ( #2226 )
...
* Add Odroid-C4
* add machine
2020-11-09 08:57:18 +01:00
Pascal Vizeli
bd786811a3
Network: abstract dbus and supervisor - ipv6/wifi/vlan ( #2217 )
...
* Abstract code between dbus - supervisor
* cleanup v2
* fix address vs interface
* fix API calls
* Fix methodnames
* add vlan type
* add vlan support
* Fix tests
* Add wifi support
* more OOO
* fix typing import
* typing part 2
* Fix profile
* fix test payload
* ignore powersafe
* support privancy
* fix property
* Fix tests
* full support all API
* Fix all
* more robust
* Update supervisor/dbus/network/connection.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Fix gateway
* fix empty gateway
* Allow no ipv6 or ipv4 kernel support
* Exclude device drivers
* Add wifi
* Use loop on api
* refactory p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p3
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p4
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p5
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p6
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p7
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p8
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* Fix lint
* update sup p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* update sup p2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* fix tests
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* fix logging
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* improve mock handling
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* add fixtures
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* fix tests
* better testing
* Add more tests
* Fix API test
* Add test for vlan payload
* Support variation
* Fix doc string
* support remove & wifi scan
* make sure we ignore local-link on ipv6
* remove privancy - add vlan
* Fix tests
* fix isort
* Fixture dbus by commands
* Add dnsmanager fixture
* expose commands called by dbus
* Add wifi tests
* Update supervisor/plugins/dns.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Address comments & fix tests
* change url to be closer on others
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-11-09 08:56:42 +01:00
Paulus Schoutsen
ffaeb2b96d
Add validate session API ( #2223 )
2020-11-06 11:52:11 +01:00
Joakim Sørensen
9479672b88
Create evaluation modules ( #2220 )
...
* Create evaluation modules
* Use sys_core
2020-11-05 17:36:02 +01:00
Joakim Sørensen
8f4ac10361
Add login support for dockerhub ( #2218 )
...
* Add login support for dockerhub
* Remove registry
2020-11-05 10:39:53 +01:00
Pascal Vizeli
28344ff5f3
Supervisor container startup health function ( #2214 )
...
* Supervisor container startup health function
* better struct
* add test
* address comment
* rename file
* Update tests/test_main.py
Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Stefan Agner <stefan@agner.ch>
2020-11-03 16:36:10 +01:00
Pascal Vizeli
042bdcdf37
Make startup more stable ( #2167 )
2020-10-23 16:48:03 +02:00
Pascal Vizeli
35b626a1c5
Fix gvariant bytes array ( #2162 )
2020-10-22 15:56:32 +02:00
Pascal Vizeli
01064564b4
Fix new version handling with Plugins ( #2159 )
2020-10-22 12:29:53 +02:00
Joakim Sørensen
b513512551
Normalize CPU stats ( #2154 )
...
* Normalize CPU stats
* Change fixture to make it clearer
* guard for 0
* Update supervisor/docker/stats.py
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
* Update stats.py
* Update stats.py
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-10-20 22:26:09 +02:00
Pascal Vizeli
45861617b9
Add test for network docker ( #2153 )
2020-10-20 10:52:16 +02:00
Pascal Vizeli
9c53caae80
Speedup HA core auth ( #2144 )
...
* Speedup HA core auth
* Add reset API call
* use delete
* Add complexe cache logic
* Allow manage api to handle auth reset/cache
* revert to only cache
* add tests
* ignore protected-access for this tests
* fix comment
2020-10-19 16:38:28 +02:00
Pascal Vizeli
7a9aac491e
Use /info for resolution API ( #2136 )
2020-10-16 13:07:02 +02:00
Pascal Vizeli
d119e99001
Resolution: extend type and context ( #2130 )
...
* Resolution: extend type and context
* fix property
* add helper
* fix api
* fix tests
* Fix patch
* finish tests
* Update supervisor/resolution/const.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/const.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Fix type
* fix lint
* Update supervisor/api/resolution.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update API & add more tests
* Update supervisor/api/resolution.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* fix black
* remove azure ci
* fix test
* fix tests
* fix tests
* fix tests p2
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-10-16 12:22:32 +02:00
Joakim Sørensen
02e72726a5
Add issues/suggestion to resolution center / start with diskspace ( #2125 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-10-14 17:14:25 +02:00
Joakim Sørensen
028b170cff
Add resolution manager and unsupported flags ( #2124 )
...
* Add unsupported reason flags
* Restore test_network.py
* Add Resolution manager object
* fix import
2020-10-13 12:54:17 +02:00
Pascal Vizeli
0f60fdd20b
Make api soon available ( #2119 )
...
* Make api soon available
* add more tests
2020-10-12 15:56:29 +02:00
Pascal Vizeli
ac4277cd7b
Return default network connection ( #2115 )
2020-10-12 09:13:27 +02:00
Joakim Sørensen
17559bfc8e
Extract exception message from chain for API errors ( #2100 )
...
* Get message from excepiton chain
* cleanup
2020-10-06 15:53:58 +02:00
Joakim Sørensen
9dc2f43ffb
Handle both cases of bind failures ( #2099 )
2020-10-06 11:28:09 +02:00
Joakim Sørensen
38db375fea
Add docker/info API ( #2095 )
2020-10-06 11:26:56 +02:00