Lines Matching refs:STATUS
46 status=server_models.Server.STATUS.PRIMARY).exclude(
56 def get_servers(hostname=None, role=None, status=None):
57 """Find servers with given role and status.
61 @param status: Status of server, default to None.
63 @return: A list of server objects with given role and status.
70 if status:
71 filters['status'] = status
81 Status : primary
88 Hostname | Status | Roles | Date Created | Date Modified | Note
108 @param summary: True to only show the summary of roles and status of
114 # Hostname, Status, Roles, Date Created, Date Modified, Note
115 TABLEVIEW_FORMAT = ('%(hostname)-30s | %(status)-7s | %(roles)-20s | '
124 {'hostname':'Hostname', 'status':'Status',
131 'status': server.status or '',
137 result += 'Roles and status of servers:\n\n'
143 result += '%s(%s), ' % (server.hostname, server.status)
156 the role from its roles list. If it has no other role, set its status to
223 """Get a list of drones in status primary.
225 @return: A list of drones in status primary.
228 status=server_models.Server.STATUS.PRIMARY)
277 """Get a list of shards in status primary.
279 @return: A list of shards in status primary.
282 status=server_models.Server.STATUS.PRIMARY)
287 """Confirm a given server has the given role, and its status is primary.
292 not in primary status.
298 servers = get_servers(role=role, status=server_models.Server.STATUS.PRIMARY)
303 'status primary.' % (hostname, role))