Searched refs:server_models (Results 1 – 4 of 4) sorted by relevance
/external/autotest/site_utils/ |
D | server_manager_unittest.py | 13 from autotest_lib.frontend.server import models as server_models unknown 53 server_models.ServerRole, 54 attrs={'role': server_models.ServerRole.ROLE.DRONE}) 56 server_models.ServerRole, 57 attrs={'role': server_models.ServerRole.ROLE.SCHEDULER}) 59 server_models.ServerAttribute, 62 server_models.Server, 64 'status': server_models.Server.STATUS.PRIMARY, 68 server_models.Server, 70 'status': server_models.Server.STATUS.REPAIR_REQUIRED, [all …]
|
D | server_manager_actions.py | 19 from autotest_lib.frontend.server import models as server_models unknown 27 RESTART_SCHEDULER = (server_models.ServerRole.ROLE.SCHEDULER, 29 RESTART_HOST_SCHEDULER = (server_models.ServerRole.ROLE.HOST_SCHEDULER, 31 RELOAD_APACHE = (server_models.ServerRole.ROLE.SCHEDULER, 34 STOP_SCHEDULER = (server_models.ServerRole.ROLE.SCHEDULER, 36 STOP_HOST_SCHEDULER = (server_models.ServerRole.ROLE.HOST_SCHEDULER, 43 server_models.ServerRole.ROLE.SCHEDULER: [RESTART_SCHEDULER], 44 server_models.ServerRole.ROLE.HOST_SCHEDULER: [RESTART_HOST_SCHEDULER], 45 server_models.ServerRole.ROLE.DRONE: [RESTART_SCHEDULER], 46 server_models.ServerRole.ROLE.DATABASE: [all …]
|
D | server_manager.py | 37 from autotest_lib.frontend.server import models as server_models unknown 52 server_models.validate(role=role) 62 if (role in server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE and 63 server.status == server_models.Server.STATUS.PRIMARY): 64 servers = server_models.Server.objects.filter( 65 roles__role=role, status=server_models.Server.STATUS.PRIMARY) 71 server_models.ServerRole.objects.create(server=server, role=role) 90 server_models.validate(role=role) 95 if server.status == server_models.Server.STATUS.PRIMARY: 112 server.status == server_models.Server.STATUS.PRIMARY): [all …]
|
D | server_manager_utils.py | 21 from autotest_lib.frontend.server import models as server_models unknown 46 servers = server_models.Server.objects.filter( 48 status=server_models.Server.STATUS.PRIMARY).exclude( 74 return list(server_models.Server.objects.filter(**filters)) 135 roles = [role for role, _ in server_models.ServerRole.ROLE.choices()] 209 server = server_models.Server.objects.get(hostname=hostname) 231 servers = get_servers(role=server_models.ServerRole.ROLE.DRONE, 232 status=server_models.Server.STATUS.PRIMARY) 261 attributes = server_models.ServerAttribute.objects.filter( 274 server_models.ServerAttribute.objects.create( [all …]
|