(self)
Restart everything related to the web nodes including VM's.
        This is everything sitting between the clients and the compute nodes.
        Call this when doing upgrades that don't modify
        the Sage install or python client code on the compute machines.  This is minimally
        disruptive to users, at least compared to a full restart of compute machines!
Restart everything related to the web nodes including VM's.
        This is everything sitting between the clients and the compute nodes.
        Call this when doing upgrades that don't modify
        the Sage install or python client code on the compute machines.  This is minimally
        disruptive to users, at least compared to a full restart of compute machines!
Restart everything related to the web nodes including VM s . This is everything sitting between the clients and the compute nodes . Call this when doing upgrades that don t modify the Sage install or python client code on the compute machines . This is minimally disruptive to users at least compared to a full restart of compute machines!
def restart_web(self):
        """
        Restart everything related to the web nodes including VM's.
        This is everything sitting between the clients and the compute nodes.
        Call this when doing upgrades that don't modify
        the Sage install or python client code on the compute machines.  This is minimally
        disruptive to users, at least compared to a full restart of compute machines!
        """
        services = 'hub nginx'
        for service in services.split():
            self.stop(service, wait=True, parallel=True)
        web_hosts = [x for x in self._hosts._canonical_hostnames.values() if 'web' in x]
        for hostname in web_hosts:
            self.restart('vm',hostname=hostname, parallel=True, wait=False)
        self.wait_until_up(' '.join(web_hosts))
        for service in services.split():
            self.start(service, parallel=True, wait=True)
def restart_web ( self ) : services = 'hub nginx' for service in services . split ( ) : self . stop ( service , wait = True , parallel = True ) web_hosts = [ x for x in self . _hosts . _canonical_hostnames . values ( ) if 'web' in x ] for hostname in web_hosts : self . restart ( 'vm' , hostname = hostname , parallel = True , wait = False ) self . wait_until_up ( ' ' . join ( web_hosts ) ) for service in services . split ( ) : self . start ( service , parallel = True , wait = True )