bundle_data 71 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 75 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 86 lib/pacemaker/pcmk_sched_bundle.c distribute_children(rsc, containers, nodes, bundle_data->nreplicas, bundle_data 87 lib/pacemaker/pcmk_sched_bundle.c bundle_data->nreplicas_per_host, data_set); bundle_data 91 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 147 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 150 lib/pacemaker/pcmk_sched_bundle.c g_hash_table_iter_init(&iter, bundle_data->child->allowed_nodes); bundle_data 152 lib/pacemaker/pcmk_sched_bundle.c if (is_bundle_node(bundle_data, node)) { bundle_data 159 lib/pacemaker/pcmk_sched_bundle.c rsc->id, bundle_data->child->id); bundle_data 160 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->allocate(bundle_data->child, prefer, data_set); bundle_data 173 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 178 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 179 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 198 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 199 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->create_actions(bundle_data->child, data_set); bundle_data 201 lib/pacemaker/pcmk_sched_bundle.c if (pcmk_is_set(bundle_data->child->flags, pe_rsc_promotable)) { bundle_data 221 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 225 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 227 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 228 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(rsc, RSC_START, bundle_data->child, bundle_data 231 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(rsc, RSC_STOP, bundle_data->child, bundle_data 235 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child->children) { bundle_data 236 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_STARTED, rsc, bundle_data 240 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_STOPPED, rsc, bundle_data 245 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_START, rsc, bundle_data 249 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_STOP, rsc, bundle_data 256 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 317 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 318 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->internal_constraints(bundle_data->child, data_set); bundle_data 319 lib/pacemaker/pcmk_sched_bundle.c if (pcmk_is_set(bundle_data->child->flags, pe_rsc_promotable)) { bundle_data 323 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_DEMOTED, rsc, bundle_data 329 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(rsc, RSC_DEMOTE, bundle_data->child, bundle_data 335 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_PROMOTED, rsc, bundle_data 341 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(rsc, RSC_PROMOTE, bundle_data->child, bundle_data 354 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 357 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 362 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 470 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 507 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, primary); bundle_data 511 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 868 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 869 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 873 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 886 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child bundle_data 889 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->rsc_location(bundle_data->child, constraint); bundle_data 890 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->rsc_location = g_list_prepend(bundle_data->child->rsc_location, bundle_data 898 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 902 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 904 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 905 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->expand(bundle_data->child, data_set); bundle_data 908 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 975 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 979 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 980 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1015 lib/pacemaker/pcmk_sched_bundle.c for (GList *tIter = bundle_data->replicas; bundle_data 1016 lib/pacemaker/pcmk_sched_bundle.c tIter && (bundle_data->nreplicas_per_host == 1); bundle_data 1071 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1075 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1076 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1101 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1108 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1109 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->replicas == NULL) { bundle_data 1117 lib/pacemaker/pcmk_sched_bundle.c replica = (pe__bundle_replica_t *) bundle_data->replicas->data; bundle_data 885 lib/pengine/bundle.c mount_add(pe__bundle_variant_data_t *bundle_data, const char *source, bundle_data 895 lib/pengine/bundle.c bundle_data->mounts = g_list_append(bundle_data->mounts, mount); bundle_data 919 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 929 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, top); bundle_data 930 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1012 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1018 lib/pengine/bundle.c bundle_data = calloc(1, sizeof(pe__bundle_variant_data_t)); bundle_data 1019 lib/pengine/bundle.c rsc->variant_opaque = bundle_data; bundle_data 1020 lib/pengine/bundle.c bundle_data->prefix = strdup(rsc->id); bundle_data 1024 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_DOCKER; bundle_data 1028 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_RKT; bundle_data 1032 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_PODMAN; bundle_data 1045 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->promoted_max, 0); bundle_data 1049 lib/pengine/bundle.c if ((value == NULL) && (bundle_data->promoted_max > 0)) { bundle_data 1050 lib/pengine/bundle.c bundle_data->nreplicas = bundle_data->promoted_max; bundle_data 1052 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas, 1); bundle_data 1061 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas_per_host, 1); bundle_data 1062 lib/pengine/bundle.c if (bundle_data->nreplicas_per_host == 1) { bundle_data 1066 lib/pengine/bundle.c bundle_data->container_command = crm_element_value_copy(xml_obj, "run-command"); bundle_data 1067 lib/pengine/bundle.c bundle_data->launcher_options = crm_element_value_copy(xml_obj, "options"); bundle_data 1068 lib/pengine/bundle.c bundle_data->image = crm_element_value_copy(xml_obj, "image"); bundle_data 1069 lib/pengine/bundle.c bundle_data->container_network = crm_element_value_copy(xml_obj, "network"); bundle_data 1074 lib/pengine/bundle.c bundle_data->ip_range_start = crm_element_value_copy(xml_obj, "ip-range-start"); bundle_data 1075 lib/pengine/bundle.c bundle_data->host_netmask = crm_element_value_copy(xml_obj, "host-netmask"); bundle_data 1076 lib/pengine/bundle.c bundle_data->host_network = crm_element_value_copy(xml_obj, "host-interface"); bundle_data 1077 lib/pengine/bundle.c bundle_data->control_port = crm_element_value_copy(xml_obj, "control-port"); bundle_data 1079 lib/pengine/bundle.c if (crm_str_to_boolean(value, &bundle_data->add_host) != 1) { bundle_data 1080 lib/pengine/bundle.c bundle_data->add_host = TRUE; bundle_data 1099 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1124 lib/pengine/bundle.c mount_add(bundle_data, source, target, options, flags); bundle_data 1134 lib/pengine/bundle.c if (xml_obj && valid_network(bundle_data)) { bundle_data 1144 lib/pengine/bundle.c crm_xml_set_id(xml_resource, "%s-%s", bundle_data->prefix, bundle_data 1145 lib/pengine/bundle.c (bundle_data->promoted_max? "master" bundle_data 1149 lib/pengine/bundle.c crm_xml_set_id(xml_set, "%s-%s-meta", bundle_data->prefix, xml_resource->name); bundle_data 1154 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas); bundle_data 1159 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas_per_host); bundle_data 1165 lib/pengine/bundle.c pcmk__btoa(bundle_data->nreplicas_per_host > 1)); bundle_data 1167 lib/pengine/bundle.c if (bundle_data->promoted_max) { bundle_data 1171 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->promoted_max); bundle_data 1203 lib/pengine/bundle.c bundle_data->child = new_rsc; bundle_data 1226 lib/pengine/bundle.c mount_add(bundle_data, DEFAULT_REMOTE_KEY_LOCATION, bundle_data 1230 lib/pengine/bundle.c mount_add(bundle_data, CRM_BUNDLE_DIR, "/var/log", NULL, bundle_data 1235 lib/pengine/bundle.c if(bundle_data->control_port) { bundle_data 1236 lib/pengine/bundle.c port->source = strdup(bundle_data->control_port); bundle_data 1249 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1252 lib/pengine/bundle.c for (childIter = bundle_data->child->children; childIter != NULL; bundle_data 1263 lib/pengine/bundle.c pe__set_resource_flags(bundle_data->child, pe_rsc_notify); bundle_data 1266 lib/pengine/bundle.c offset += allocate_ip(bundle_data, replica, buffer+offset, bundle_data 1268 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1270 lib/pengine/bundle.c bundle_data->attribute_target = g_hash_table_lookup(replica->child->meta, bundle_data 1273 lib/pengine/bundle.c bundle_data->container_host_options = buffer; bundle_data 1274 lib/pengine/bundle.c if (bundle_data->attribute_target) { bundle_data 1276 lib/pengine/bundle.c strdup(bundle_data->attribute_target)); bundle_data 1277 lib/pengine/bundle.c g_hash_table_replace(bundle_data->child->meta, bundle_data 1279 lib/pengine/bundle.c strdup(bundle_data->attribute_target)); bundle_data 1287 lib/pengine/bundle.c for (int lpc = 0; lpc < bundle_data->nreplicas; lpc++) { bundle_data 1291 lib/pengine/bundle.c offset += allocate_ip(bundle_data, replica, buffer+offset, bundle_data 1293 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1296 lib/pengine/bundle.c bundle_data->container_host_options = buffer; bundle_data 1299 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1303 lib/pengine/bundle.c if (!create_container(rsc, bundle_data, replica, data_set)) { bundle_data 1333 lib/pengine/bundle.c if (bundle_data->child) { bundle_data 1334 lib/pengine/bundle.c rsc->children = g_list_append(rsc->children, bundle_data->child); bundle_data 1357 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1360 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1361 lib/pengine/bundle.c for (iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 1405 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1408 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 1409 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1453 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1462 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1466 lib/pengine/bundle.c status_print("type=\"%s\" ", container_agent_str(bundle_data->agent_type)); bundle_data 1467 lib/pengine/bundle.c status_print("image=\"%s\" ", bundle_data->image); bundle_data 1473 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1498 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1505 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1513 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1542 lib/pengine/bundle.c "type", container_agent_str(bundle_data->agent_type), bundle_data 1543 lib/pengine/bundle.c "image", bundle_data->image, bundle_data 1622 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1628 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1636 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1663 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1664 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1668 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1692 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1699 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1700 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1750 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1754 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1764 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1791 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1792 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1796 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1827 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1828 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1875 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1884 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1891 lib/pengine/bundle.c pre_text, ((bundle_data->nreplicas > 1)? " set" : ""), bundle_data 1892 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1900 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1911 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1976 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1979 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1982 lib/pengine/bundle.c free(bundle_data->prefix); bundle_data 1983 lib/pengine/bundle.c free(bundle_data->image); bundle_data 1984 lib/pengine/bundle.c free(bundle_data->control_port); bundle_data 1985 lib/pengine/bundle.c free(bundle_data->host_network); bundle_data 1986 lib/pengine/bundle.c free(bundle_data->host_netmask); bundle_data 1987 lib/pengine/bundle.c free(bundle_data->ip_range_start); bundle_data 1988 lib/pengine/bundle.c free(bundle_data->container_network); bundle_data 1989 lib/pengine/bundle.c free(bundle_data->launcher_options); bundle_data 1990 lib/pengine/bundle.c free(bundle_data->container_command); bundle_data 1991 lib/pengine/bundle.c free(bundle_data->container_host_options); bundle_data 1993 lib/pengine/bundle.c g_list_free_full(bundle_data->replicas, bundle_data 1995 lib/pengine/bundle.c g_list_free_full(bundle_data->mounts, (GDestroyNotify)mount_free); bundle_data 1996 lib/pengine/bundle.c g_list_free_full(bundle_data->ports, (GDestroyNotify)port_free); bundle_data 1999 lib/pengine/bundle.c if(bundle_data->child) { bundle_data 2000 lib/pengine/bundle.c free_xml(bundle_data->child->xml); bundle_data 2001 lib/pengine/bundle.c bundle_data->child->xml = NULL; bundle_data 2002 lib/pengine/bundle.c bundle_data->child->fns->free(bundle_data->child); bundle_data 2027 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2029 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2030 lib/pengine/bundle.c return bundle_data->nreplicas; bundle_data 2037 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2039 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2040 lib/pengine/bundle.c for (GList *item = bundle_data->replicas; item != NULL; item = item->next) { bundle_data 2062 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2067 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2069 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; gIter = gIter->next) { bundle_data 438 lib/pengine/tests/native/native_find_rsc_test.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 446 lib/pengine/tests/native/native_find_rsc_test.c get_bundle_variant_data(bundle_data, httpd_bundle); bundle_data 447 lib/pengine/tests/native/native_find_rsc_test.c replica_0 = (pe__bundle_replica_t *) bundle_data->replicas->data;