You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
At the moment it is not possible to get status of the global unit. fleetctl returns Unable to determine status of global unit global.service. error message. The workaround it to use fleetctl ssh 6abfab3268cf6bb745b0aaf5da9b0cad systemctl status global.service, which is too tricky.
I suggest to get all machines where global unit is executed and iterate through them. This will potentially create a long running process when you have thousands of machines in the cluster, and that is why we have to implement machineid/hostname/machineIP filter.
This solution will allow us to restart global units as well (we will use same code as in fleetctl/status.go). And we can resolve #975. fleetctl ssh <whatever> sudo systemctl restart <whatever> looks too tricky. When you need to restart several units, you'll have to write something like:
I don't like the solution provided in #961, because it can create several simultaneous ssh connections when you will trigger batch of units and you can not limit amount of connections. The most bug-free and simple solution is to use status.go code.
+1 for the thought that fleetctl restart would be a nice feature. There must be a better way than "fleetctl ssh <whatever> sudo systemctl restart", which is indeed tricky. Maybe after the milestone v0.13, we could work on it.
Eh, the last bit was bogus. I don't know though how fleetctl status works right now, and what the problem is with showing the status for global units... Would have to investigate first before I can give a useful answer.
At the moment it is not possible to get status of the global unit. fleetctl returns
Unable to determine status of global unit global.service.
error message. The workaround it to usefleetctl ssh 6abfab3268cf6bb745b0aaf5da9b0cad systemctl status global.service
, which is too tricky.I suggest to get all machines where global unit is executed and iterate through them. This will potentially create a long running process when you have thousands of machines in the cluster, and that is why we have to implement
machineid/hostname/machineIP
filter.This solution will allow us to restart global units as well (we will use same code as in
fleetctl/status.go
). And we can resolve #975.fleetctl ssh <whatever> sudo systemctl restart <whatever>
looks too tricky. When you need to restart several units, you'll have to write something like:I don't like the solution provided in #961, because it can create several simultaneous ssh connections when you will trigger batch of units and you can not limit amount of connections. The most bug-free and simple solution is to use
status.go
code./cc @antrik @jonboulle @tixxdz does it sound reasonable for you?
The text was updated successfully, but these errors were encountered: