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.BACKUP, [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 RESTART_SUITE_SCHEDULER = (server_models.ServerRole.ROLE.SUITE_SCHEDULER, 33 RELOAD_APACHE = (server_models.ServerRole.ROLE.SCHEDULER, 36 STOP_SCHEDULER = (server_models.ServerRole.ROLE.SCHEDULER, 38 STOP_HOST_SCHEDULER = (server_models.ServerRole.ROLE.HOST_SCHEDULER, 40 STOP_SUITE_SCHEDULER = (server_models.ServerRole.ROLE.SUITE_SCHEDULER, 47 server_models.ServerRole.ROLE.SCHEDULER: [RESTART_SCHEDULER], 48 server_models.ServerRole.ROLE.HOST_SCHEDULER: [RESTART_HOST_SCHEDULER], [all …]
|
D | server_manager.py | 38 from autotest_lib.frontend.server import models as server_models unknown 53 server_models.validate(role=role) 63 if (role in server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE and 64 server.status == server_models.Server.STATUS.PRIMARY): 65 servers = server_models.Server.objects.filter( 66 roles__role=role, status=server_models.Server.STATUS.PRIMARY) 72 server_models.ServerRole.objects.create(server=server, role=role) 91 server_models.validate(role=role) 96 if server.status == server_models.Server.STATUS.PRIMARY: 115 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)) 200 roles = [role for role, _ in server_models.ServerRole.ROLE.choices()] 274 server = server_models.Server.objects.get(hostname=hostname) 296 servers = get_servers(role=server_models.ServerRole.ROLE.DRONE, 297 status=server_models.Server.STATUS.PRIMARY) 326 attributes = server_models.ServerAttribute.objects.filter( 339 server_models.ServerAttribute.objects.create( [all …]
|