Example #1
0
 def freeze(unschedule, server):
     """Freeze server, optionally unscheduling apps."""
     masterapi.update_server_state(
         context.GLOBAL.zk.conn,
         server,
         'frozen',
         unschedule
     )
Example #2
0
 def down(server):
     """Mark server down."""
     masterapi.update_server_state(context.GLOBAL.zk.conn, server, 'down')
Example #3
0
 def up(server):  # pylint: disable=C0103
     """Mark server up."""
     masterapi.update_server_state(context.GLOBAL.zk.conn, server, 'up')