container_data 700 lib/pengine/container.c mount_add(container_variant_data_t *container_data, const char *source, container_data 711 lib/pengine/container.c container_data->mounts = g_list_append(container_data->mounts, mount); container_data 733 lib/pengine/container.c container_variant_data_t *container_data = NULL; container_data 743 lib/pengine/container.c get_container_variant_data(container_data, top); container_data 744 lib/pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 834 lib/pengine/container.c container_variant_data_t *container_data = NULL; container_data 839 lib/pengine/container.c container_data = calloc(1, sizeof(container_variant_data_t)); container_data 840 lib/pengine/container.c rsc->variant_opaque = container_data; container_data 841 lib/pengine/container.c container_data->prefix = strdup(rsc->id); container_data 845 lib/pengine/container.c container_data->type = PE_CONTAINER_TYPE_DOCKER; container_data 849 lib/pengine/container.c container_data->type = PE_CONTAINER_TYPE_RKT; container_data 856 lib/pengine/container.c container_data->masters = crm_parse_int(value, "0"); container_data 857 lib/pengine/container.c if (container_data->masters < 0) { container_data 860 lib/pengine/container.c container_data->masters = 0; container_data 864 lib/pengine/container.c if ((value == NULL) && (container_data->masters > 0)) { container_data 865 lib/pengine/container.c container_data->replicas = container_data->masters; container_data 867 lib/pengine/container.c container_data->replicas = crm_parse_int(value, "1"); container_data 869 lib/pengine/container.c if (container_data->replicas < 1) { container_data 871 lib/pengine/container.c container_data->replicas = 1; container_data 880 lib/pengine/container.c container_data->replicas_per_host = crm_parse_int(value, "1"); container_data 881 lib/pengine/container.c if (container_data->replicas_per_host < 1) { container_data 884 lib/pengine/container.c container_data->replicas_per_host = 1; container_data 886 lib/pengine/container.c if (container_data->replicas_per_host == 1) { container_data 890 lib/pengine/container.c container_data->docker_run_command = crm_element_value_copy(xml_obj, "run-command"); container_data 891 lib/pengine/container.c container_data->docker_run_options = crm_element_value_copy(xml_obj, "options"); container_data 892 lib/pengine/container.c container_data->image = crm_element_value_copy(xml_obj, "image"); container_data 893 lib/pengine/container.c container_data->docker_network = crm_element_value_copy(xml_obj, "network"); container_data 898 lib/pengine/container.c container_data->ip_range_start = crm_element_value_copy(xml_obj, "ip-range-start"); container_data 899 lib/pengine/container.c container_data->host_netmask = crm_element_value_copy(xml_obj, "host-netmask"); container_data 900 lib/pengine/container.c container_data->host_network = crm_element_value_copy(xml_obj, "host-interface"); container_data 901 lib/pengine/container.c container_data->control_port = crm_element_value_copy(xml_obj, "control-port"); container_data 919 lib/pengine/container.c container_data->ports = g_list_append(container_data->ports, port); container_data 943 lib/pengine/container.c mount_add(container_data, source, target, options, flags); container_data 950 lib/pengine/container.c if (xml_obj && valid_network(container_data)) { container_data 954 lib/pengine/container.c if(container_data->masters > 0) { container_data 961 lib/pengine/container.c crm_xml_set_id(xml_resource, "%s-%s", container_data->prefix, xml_resource->name); container_data 964 lib/pengine/container.c crm_xml_set_id(xml_set, "%s-%s-meta", container_data->prefix, xml_resource->name); container_data 969 lib/pengine/container.c value = crm_itoa(container_data->replicas); container_data 974 lib/pengine/container.c value = crm_itoa(container_data->replicas_per_host); container_data 980 lib/pengine/container.c (container_data->replicas_per_host > 1)? container_data 983 lib/pengine/container.c if(container_data->masters) { container_data 984 lib/pengine/container.c value = crm_itoa(container_data->masters); container_data 1016 lib/pengine/container.c container_data->child = new_rsc; container_data 1039 lib/pengine/container.c mount_add(container_data, DEFAULT_REMOTE_KEY_LOCATION, container_data 1042 lib/pengine/container.c mount_add(container_data, CRM_LOG_DIR "/bundles", "/var/log", NULL, 1); container_data 1045 lib/pengine/container.c if(container_data->control_port) { container_data 1046 lib/pengine/container.c port->source = strdup(container_data->control_port); container_data 1059 lib/pengine/container.c container_data->ports = g_list_append(container_data->ports, port); container_data 1062 lib/pengine/container.c for(childIter = container_data->child->children; childIter != NULL; childIter = childIter->next) { container_data 1070 lib/pengine/container.c set_bit(container_data->child->flags, pe_rsc_notify); container_data 1073 lib/pengine/container.c offset += allocate_ip(container_data, tuple, buffer+offset, max-offset); container_data 1074 lib/pengine/container.c container_data->tuples = g_list_append(container_data->tuples, tuple); container_data 1075 lib/pengine/container.c container_data->attribute_target = g_hash_table_lookup(tuple->child->meta, XML_RSC_ATTR_TARGET); container_data 1077 lib/pengine/container.c container_data->docker_host_options = buffer; container_data 1078 lib/pengine/container.c if(container_data->attribute_target) { container_data 1079 lib/pengine/container.c g_hash_table_replace(rsc->meta, strdup(XML_RSC_ATTR_TARGET), strdup(container_data->attribute_target)); container_data 1080 lib/pengine/container.c g_hash_table_replace(container_data->child->meta, strdup(XML_RSC_ATTR_TARGET), strdup(container_data->attribute_target)); container_data 1088 lib/pengine/container.c for(int lpc = 0; lpc < container_data->replicas; lpc++) { container_data 1091 lib/pengine/container.c offset += allocate_ip(container_data, tuple, buffer+offset, max-offset); container_data 1092 lib/pengine/container.c container_data->tuples = g_list_append(container_data->tuples, tuple); container_data 1095 lib/pengine/container.c container_data->docker_host_options = buffer; container_data 1098 lib/pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 1100 lib/pengine/container.c if (create_container(rsc, container_data, tuple, data_set) == FALSE) { container_data 1107 lib/pengine/container.c if(container_data->child) { container_data 1108 lib/pengine/container.c rsc->children = g_list_append(rsc->children, container_data->child); container_data 1131 lib/pengine/container.c container_variant_data_t *container_data = NULL; container_data 1134 lib/pengine/container.c get_container_variant_data(container_data, rsc); container_data 1135 lib/pengine/container.c for (iter = container_data->tuples; iter != NULL; iter = iter->next) { container_data 1170 lib/pengine/container.c container_variant_data_t *container_data = NULL; container_data 1175 lib/pengine/container.c get_container_variant_data(container_data, parent); container_data 1178 lib/pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 1227 lib/pengine/container.c container_variant_data_t *container_data = NULL; container_data 1236 lib/pengine/container.c get_container_variant_data(container_data, rsc); container_data 1243 lib/pengine/container.c for (const char *c = container_type_as_string(container_data->type); container_data 1249 lib/pengine/container.c status_print("image=\"%s\" ", container_data->image); container_data 1255 lib/pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 1301 lib/pengine/container.c container_variant_data_t *container_data = NULL; container_data 1310 lib/pengine/container.c get_container_variant_data(container_data, rsc); container_data 1317 lib/pengine/container.c pre_text, container_type_as_string(container_data->type), container_data 1318 lib/pengine/container.c container_data->replicas>1?" set":"", rsc->id, container_data->image, container_data 1326 lib/pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 1336 lib/pengine/container.c if(g_list_length(container_data->tuples) > 1) { container_data 1401 lib/pengine/container.c container_variant_data_t *container_data = NULL; container_data 1404 lib/pengine/container.c get_container_variant_data(container_data, rsc); container_data 1407 lib/pengine/container.c free(container_data->prefix); container_data 1408 lib/pengine/container.c free(container_data->image); container_data 1409 lib/pengine/container.c free(container_data->control_port); container_data 1410 lib/pengine/container.c free(container_data->host_network); container_data 1411 lib/pengine/container.c free(container_data->host_netmask); container_data 1412 lib/pengine/container.c free(container_data->ip_range_start); container_data 1413 lib/pengine/container.c free(container_data->docker_network); container_data 1414 lib/pengine/container.c free(container_data->docker_run_options); container_data 1415 lib/pengine/container.c free(container_data->docker_run_command); container_data 1416 lib/pengine/container.c free(container_data->docker_host_options); container_data 1418 lib/pengine/container.c g_list_free_full(container_data->tuples, (GDestroyNotify)tuple_free); container_data 1419 lib/pengine/container.c g_list_free_full(container_data->mounts, (GDestroyNotify)mount_free); container_data 1420 lib/pengine/container.c g_list_free_full(container_data->ports, (GDestroyNotify)port_free); container_data 1423 lib/pengine/container.c if(container_data->child) { container_data 1424 lib/pengine/container.c free_xml(container_data->child->xml); container_data 1425 lib/pengine/container.c container_data->child->xml = NULL; container_data 1426 lib/pengine/container.c container_data->child->fns->free(container_data->child); container_data 1451 lib/pengine/container.c container_variant_data_t *container_data = NULL; container_data 1453 lib/pengine/container.c get_container_variant_data(container_data, rsc); container_data 1454 lib/pengine/container.c return container_data->replicas; container_data 121 pengine/container.c container_variant_data_t *container_data = NULL; container_data 125 pengine/container.c get_container_variant_data(container_data, rsc); container_data 136 pengine/container.c container_data->replicas, container_data->replicas_per_host, data_set); container_data 140 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 181 pengine/container.c if(container_data->child) { container_data 184 pengine/container.c g_hash_table_iter_init(&iter, container_data->child->allowed_nodes); container_data 186 pengine/container.c if(is_child_container_node(container_data, node)) { container_data 192 pengine/container.c container_data->child->cmds->allocate(container_data->child, prefer, data_set); container_data 206 pengine/container.c container_variant_data_t *container_data = NULL; container_data 211 pengine/container.c get_container_variant_data(container_data, rsc); container_data 212 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 229 pengine/container.c if(container_data->child) { container_data 230 pengine/container.c container_data->child->cmds->create_actions(container_data->child, data_set); container_data 232 pengine/container.c if(container_data->child->variant == pe_master) { container_data 251 pengine/container.c container_variant_data_t *container_data = NULL; container_data 255 pengine/container.c get_container_variant_data(container_data, rsc); container_data 257 pengine/container.c if(container_data->child) { container_data 258 pengine/container.c new_rsc_order(rsc, RSC_START, container_data->child, RSC_START, pe_order_implies_first_printed, data_set); container_data 259 pengine/container.c new_rsc_order(rsc, RSC_STOP, container_data->child, RSC_STOP, pe_order_implies_first_printed, data_set); container_data 261 pengine/container.c if(container_data->child->children) { container_data 262 pengine/container.c new_rsc_order(container_data->child, RSC_STARTED, rsc, RSC_STARTED, pe_order_implies_then_printed, data_set); container_data 263 pengine/container.c new_rsc_order(container_data->child, RSC_STOPPED, rsc, RSC_STOPPED, pe_order_implies_then_printed, data_set); container_data 265 pengine/container.c new_rsc_order(container_data->child, RSC_START, rsc, RSC_STARTED, pe_order_implies_then_printed, data_set); container_data 266 pengine/container.c new_rsc_order(container_data->child, RSC_STOP, rsc, RSC_STOPPED, pe_order_implies_then_printed, data_set); container_data 270 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 316 pengine/container.c if(container_data->child) { container_data 317 pengine/container.c container_data->child->cmds->internal_constraints(container_data->child, data_set); container_data 318 pengine/container.c if(container_data->child->variant == pe_master) { container_data 322 pengine/container.c new_rsc_order(container_data->child, RSC_DEMOTED, rsc, RSC_DEMOTED, pe_order_implies_then_printed, data_set); container_data 325 pengine/container.c new_rsc_order(rsc, RSC_DEMOTE, container_data->child, RSC_DEMOTE, pe_order_implies_first_printed, data_set); container_data 328 pengine/container.c new_rsc_order(container_data->child, RSC_PROMOTED, rsc, RSC_PROMOTED, pe_order_implies_then_printed, data_set); container_data 331 pengine/container.c new_rsc_order(rsc, RSC_PROMOTE, container_data->child, RSC_PROMOTE, pe_order_implies_first_printed, data_set); container_data 347 pengine/container.c container_variant_data_t *container_data = NULL; container_data 350 pengine/container.c get_container_variant_data(container_data, rsc); container_data 355 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 447 pengine/container.c container_variant_data_t *container_data = NULL; container_data 476 pengine/container.c get_container_variant_data(container_data, rsc); container_data 480 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 793 pengine/container.c container_variant_data_t *container_data = NULL; container_data 794 pengine/container.c get_container_variant_data(container_data, rsc); container_data 800 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 811 pengine/container.c if(container_data->child && (constraint->role_filter == RSC_ROLE_SLAVE || constraint->role_filter == RSC_ROLE_MASTER)) { container_data 812 pengine/container.c container_data->child->cmds->rsc_location(container_data->child, constraint); container_data 813 pengine/container.c container_data->child->rsc_location = g_list_prepend(container_data->child->rsc_location, constraint); container_data 820 pengine/container.c container_variant_data_t *container_data = NULL; container_data 824 pengine/container.c get_container_variant_data(container_data, rsc); container_data 826 pengine/container.c if(container_data->child) { container_data 827 pengine/container.c container_data->child->cmds->expand(container_data->child, data_set); container_data 830 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 863 pengine/container.c container_variant_data_t *container_data = NULL; container_data 867 pengine/container.c get_container_variant_data(container_data, rsc); container_data 868 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) { container_data 896 pengine/container.c for (GListPtr tIter = container_data->tuples; tIter != NULL && container_data->replicas_per_host == 1; tIter = tIter->next) { container_data 949 pengine/container.c container_variant_data_t *container_data = NULL; container_data 953 pengine/container.c get_container_variant_data(container_data, rsc); container_data 954 pengine/container.c for (GListPtr gIter = container_data->tuples; gIter != NULL; gIter = gIter->next) {