Lines Matching refs:role
39 def warn_missing_role(role, exclude_server): argument
47 roles__role=role,
54 (role, exclude_server.hostname, role))
58 def get_servers(hostname=None, role=None, status=None): argument
70 if role:
71 filters['roles__role'] = role
135 roles = [role for role, _ in server_models.ServerRole.ROLE.choices()]
138 for role in server.get_role_names():
139 servers_by_role[role].append(server)
143 def _format_role_servers_summary(role, servers): argument
153 return '%-15s: %s' % (role, servers_part)
156 def check_server(hostname, role): argument
231 servers = get_servers(role=server_models.ServerRole.ROLE.DRONE,
285 servers = get_servers(role=server_models.ServerRole.ROLE.SHARD,
290 def confirm_server_has_role(hostname, role): argument
302 servers = get_servers(role=role, status=server_models.Server.STATUS.PRIMARY)
307 'status primary.' % (hostname, role))