'Check a server in a created network can signal to heat.'

def _test_server_signal(self, user_data_format='RAW', image=None):

    parameters = {'key_name': self.keypair_name, 'flavor': self.conf.minimal_instance_type, 'image': image, 'timeout': self.conf.build_timeout, 'user_data_format': user_data_format}
    sid = self.launch_stack(template_name='test_server_signal.yaml', parameters=parameters, expected_status=None)
    for res in ('sg', 'floating_ip', 'network', 'router', 'subnet', 'router_interface', 'wait_handle', 'server', 'server_floating_ip_assoc'):
        self._wait_for_resource_status(sid, res, 'CREATE_COMPLETE')
    server_resource = self.client.resources.get(sid, 'server')
    server_id = server_resource.physical_resource_id
    server = self.compute_client.servers.get(server_id)
    try:
        self._wait_for_resource_status(sid, 'wait_condition', 'CREATE_COMPLETE')
    except (exceptions.StackResourceBuildErrorException, exceptions.TimeoutException):
        raise
    finally:
        self._log_console_output(servers=[server])
    stack = self.client.stacks.get(sid)
    wc_data = json.loads(self._stack_output(stack, 'wc_data'))
    self.assertEqual({'1': 'test    complete'}, wc_data)
    server_ip = self._stack_output(stack, 'server_ip')
    if (not self._ping_ip_address(server_ip)):
        self._log_console_output(servers=[server])
        self.fail(('Timed    out    waiting    for    %s    to    become    reachable' % server_ip))
