Exemple #1
0
def post_upgrade(nagios=None):
    outage = "Package Upgrade (%s@%s)." % (util.local_user(),
                                           util.local_host())
    services = {}
    start_services()
    services[env.host_string] = list_service()
    print_results(services)

    if nagios is not None:
        nagios.ensure_host_maintenance(outage)
Exemple #2
0
def post_upgrade(nagios=None):
    outage = "Package Upgrade (%s@%s)." % (util.local_user(),
                                           util.local_host())
    services = {}
    start_services()
    services[env.host_string] = list_service()
    print_results(services)

    if nagios is not None:
        nagios.ensure_host_maintenance(outage)
Exemple #3
0
def pre_upgrade(nagios=None):
    services = {}
    outage = "Package Upgrade (%s@%s)." % (util.local_user(),
                                           util.local_host())

    if nagios is not None:
        nagios.ensure_host_maintenance(outage)
    # stop the puppet service, in order to run puppet manually using agent
    puppet.stop_service()
    backup_ring()
    if 'swift-node' in identify_role_service():
        stop_services(services='background')
    else:
        stop_services(services='all')

    services[env.host_string] = list_service()
    print_results(services)
Exemple #4
0
def pre_upgrade(nagios=None):
    services = {}
    outage = "Package Upgrade (%s@%s)." % (util.local_user(),
                                           util.local_host())

    if nagios is not None:
        nagios.ensure_host_maintenance(outage)
    #stop the puppet service, in order
    #to run puppet manually using agent
    puppet.stop_service()
    backup_ring()
    if 'swift-node' in identify_role_service():
        stop_services(services='background')
    else:
        stop_services(services='all')

    services[env.host_string] = list_service()
    print_results(services)