Admin interface on ZOS
Related to
- https://git.ourworld.tf/tfgrid/circle_engineering/issues/130
Should allow
- [x] rebooting the node
- [x] restart specific zinit service
- [x] restart all zinit services
- [x] stopping specific workload
- [x] show logs of X lines of zinit service
- [x] show /etc/resolve
- [x] show open connections with rpc
I discussed with sameh the possibility of querying the open connections to the rpc nodes and it won't be straight forward as more than one service can be running on the same machine with the same ip so instead we can try to list all the open connections and we can use this info to identify what nodes create more connections than they should.
WIP
- added all requested endpoints
- added example to all endpoints to node client
- added docs of all endpoints to the api manual
WIP
Tried testing the pr, but had a problem testing both restart and restart_all endpoints as the nodes are currently running zinit v0.2.11 and the restart feature of zinit is added in v0.2.13 so was trying to update zinit version and building a local zos image to test it before updating zinit.
blocked on https://github.com/threefoldtech/0-initramfs/issues/87
updated zosbase to have the new admin interface endpoints in zos-api and zos-api-light, but still blocked on https://github.com/threefoldtech/0-initramfs/issues/87
WIP: the updated admin interface is now fully working for zos3 nodes with this efi image and all its features are tested. waiting for maxime to release the new image for zos3light and zos4 so I can test them and release the feature