'Wait 10 seconds for the server to be ACTIVE, else fail.
:param uuid: The server id.
:returns: The ACTIVE server.'

def _wait_for_active_server(self, uuid):

    server = self._do_get(('servers/%s' % uuid), return_json_body=True)['server']
    count = 0
    while ((server['status'] != 'ACTIVE') and (count < 10)):
        time.sleep(1)
        server = self._do_get(('servers/%s' % uuid), return_json_body=True)['server']
        count += 1
    if (server['status'] != 'ACTIVE'):
        self.fail(('Timed    out    waiting    for    server    %s    to    be    ACTIVE.' % uuid))
    return server
