-
Notifications
You must be signed in to change notification settings - Fork 302
fleetctl: Add restart and ssh-port functionality #961
Conversation
Thanks to everyone's suggestions, I rewrote this to use SSH and It works well and restarts units; however, one snag is that I am having trouble confirming that a unit has restarted successfully or not. |
@@ -95,6 +100,7 @@ func runSSH(args []string) (exit int) { | |||
sshClient, err = ssh.NewSSHClient("core", addr, getChecker(), flagSSHAgentForwarding) | |||
} | |||
if err != nil { | |||
stderr("Failed building SSH client: %s", addr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add this information to the log line below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not intend to leave that there. Will fix.
This isn't going to work with global units. It should probably just fail if a global unit is provided as an argument. @jonboulle ? |
Thanks @bcwaldon - Fixed the unnecessary log line and changed the naming convention based on standard. |
Starts and stops a unit in one command. Adds support to specify SSH port for SSH based commands: * journal * status * ssh * restart refs coreos#760
@ryandub Ok, only took me a month to get back to this :( We've got a pretty big naming problem here. We currently support Now in this PR, we're considering adding a The only way I can see to resolve this is to rename the /cc @jonboulle |
@ryandub Were you able to break apart the |
Please reopen if you're able to come back to this. |
Especially the fleetctl restart feature would be invaluable for continuous deployment into coreos (I just want to restart the service, triggering a new download and a restart, but don't know which machine the service is currently located). |
Starts and stops a unit in one command.
Adds support to specify SSH port for SSH based commands:
refs #760
refs #932