[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #33406 [Internal Services/Tor Sysadmin Team]: automate reboots



#33406: automate reboots
-------------------------------------------------+---------------------
 Reporter:  anarcat                              |          Owner:  tpa
     Type:  project                              |         Status:  new
 Priority:  Low                                  |      Milestone:
Component:  Internal Services/Tor Sysadmin Team  |        Version:
 Severity:  Major                                |     Resolution:
 Keywords:  tpa-roadmap-march                    |  Actual Points:
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+---------------------

Comment (by anarcat):

 Replying to [comment:2 arma]:
 > Replying to [comment:1 anarcat]:
 > > i also wonder, in general, if we should warn users about those
 reboots, as part of the reboot script.
 >
 > This idea might not at all be worth the hassle of implementing it, but
 your "rebooting x", "x is back" lines from #tor-project irc seem eminently
 automatable.

 This is getting closer to reality now. There's a KGB bot living on chives
 now (but just use the kgb-bot.torproject.org alias instead) that can be
 used for such notifications. It's not hooked into fabric just yet, but
 that's the next step. With the configuration from `/etc/kgb-client-
 tpa.conf`, one can do:

 {{{
 kgb-client --conf kgb-client-tpa.conf --relay-msg test
 }}}

 ... and that will say "test" in `#tor-project` and `#tor-bots`. This is
 obviously configurable, but the next step here is to find the best way to
 hook this into Fabric.

 I'm tempted to just shell out locally and do exactly the above to send
 notifications, as opposed to implementing a full KGB client in Python (!).
 But then again, "it's just JSON-RPC with some authentication mechanism".
 And we just use the "relay_message" bit:

 https://manpages.debian.org/unstable/kgb-bot/kgb-
 protocol.7p.en.html#relay_message_message

 ... so "how hard could it be"?

 Fun times.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33406#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs