bundle_data 96 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 98 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, pe__const_top_resource(rsc, true)); bundle_data 99 lib/pengine/bundle.c return bundle_data->nreplicas; bundle_data 113 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 115 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, pe__const_top_resource(rsc, true)); bundle_data 116 lib/pengine/bundle.c return bundle_data->child; bundle_data 162 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 164 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 165 lib/pengine/bundle.c for (GList *iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 187 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 190 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 191 lib/pengine/bundle.c if (bundle_data->replicas == NULL) { bundle_data 194 lib/pengine/bundle.c replica = bundle_data->replicas->data; bundle_data 212 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 214 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 215 lib/pengine/bundle.c for (GList *iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 237 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 239 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 240 lib/pengine/bundle.c for (const GList *iter = bundle_data->replicas; iter != NULL; bundle_data 862 lib/pengine/bundle.c mount_add(pe__bundle_variant_data_t *bundle_data, const char *source, bundle_data 872 lib/pengine/bundle.c bundle_data->mounts = g_list_append(bundle_data->mounts, mount); bundle_data 896 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 906 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, top); bundle_data 907 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 990 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 996 lib/pengine/bundle.c bundle_data = pcmk__assert_alloc(1, sizeof(pe__bundle_variant_data_t)); bundle_data 997 lib/pengine/bundle.c rsc->variant_opaque = bundle_data; bundle_data 998 lib/pengine/bundle.c bundle_data->prefix = strdup(rsc->id); bundle_data 1002 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_DOCKER; bundle_data 1010 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_RKT; bundle_data 1015 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_PODMAN; bundle_data 1037 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->promoted_max, 0); bundle_data 1043 lib/pengine/bundle.c if ((value == NULL) && (bundle_data->promoted_max > 0)) { bundle_data 1044 lib/pengine/bundle.c bundle_data->nreplicas = bundle_data->promoted_max; bundle_data 1046 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas, 1); bundle_data 1055 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas_per_host, 1); bundle_data 1056 lib/pengine/bundle.c if (bundle_data->nreplicas_per_host == 1) { bundle_data 1060 lib/pengine/bundle.c bundle_data->container_command = bundle_data 1062 lib/pengine/bundle.c bundle_data->launcher_options = crm_element_value_copy(xml_obj, bundle_data 1064 lib/pengine/bundle.c bundle_data->image = crm_element_value_copy(xml_obj, PCMK_XA_IMAGE); bundle_data 1065 lib/pengine/bundle.c bundle_data->container_network = crm_element_value_copy(xml_obj, bundle_data 1070 lib/pengine/bundle.c bundle_data->ip_range_start = bundle_data 1072 lib/pengine/bundle.c bundle_data->host_netmask = bundle_data 1074 lib/pengine/bundle.c bundle_data->host_network = bundle_data 1076 lib/pengine/bundle.c bundle_data->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 1103 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1130 lib/pengine/bundle.c mount_add(bundle_data, source, target, options, flags); bundle_data 1141 lib/pengine/bundle.c if (xml_obj && valid_network(bundle_data)) { bundle_data 1151 lib/pengine/bundle.c crm_xml_set_id(xml_resource, "%s-%s", bundle_data->prefix, bundle_data 1152 lib/pengine/bundle.c (bundle_data->promoted_max? "master" bundle_data 1156 lib/pengine/bundle.c crm_xml_set_id(xml_set, "%s-%s-meta", bundle_data->prefix, xml_resource->name); bundle_data 1161 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas); bundle_data 1165 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas_per_host); bundle_data 1170 lib/pengine/bundle.c pcmk__btoa(bundle_data->nreplicas_per_host > 1)); bundle_data 1172 lib/pengine/bundle.c if (bundle_data->promoted_max) { bundle_data 1176 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->promoted_max); bundle_data 1197 lib/pengine/bundle.c if (pe__unpack_resource(xml_resource, &(bundle_data->child), rsc, bundle_data 1223 lib/pengine/bundle.c mount_add(bundle_data, DEFAULT_REMOTE_KEY_LOCATION, bundle_data 1227 lib/pengine/bundle.c mount_add(bundle_data, CRM_BUNDLE_DIR, "/var/log", NULL, bundle_data 1232 lib/pengine/bundle.c if(bundle_data->control_port) { bundle_data 1233 lib/pengine/bundle.c port->source = strdup(bundle_data->control_port); bundle_data 1247 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1250 lib/pengine/bundle.c for (childIter = bundle_data->child->children; childIter != NULL; bundle_data 1262 lib/pengine/bundle.c pcmk__set_rsc_flags(bundle_data->child, pcmk_rsc_notify); bundle_data 1265 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); bundle_data 1266 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1268 lib/pengine/bundle.c bundle_data->attribute_target = bundle_data 1272 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); bundle_data 1274 lib/pengine/bundle.c if (bundle_data->attribute_target) { bundle_data 1276 lib/pengine/bundle.c bundle_data->attribute_target); bundle_data 1277 lib/pengine/bundle.c pcmk__insert_dup(bundle_data->child->meta, bundle_data 1279 lib/pengine/bundle.c bundle_data->attribute_target); bundle_data 1286 lib/pengine/bundle.c for (int lpc = 0; lpc < bundle_data->nreplicas; lpc++) { bundle_data 1291 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); bundle_data 1292 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1295 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); bundle_data 1298 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1302 lib/pengine/bundle.c if (create_replica_resources(rsc, bundle_data, replica) != pcmk_rc_ok) { bundle_data 1332 lib/pengine/bundle.c if (bundle_data->child) { bundle_data 1333 lib/pengine/bundle.c rsc->children = g_list_append(rsc->children, bundle_data->child); bundle_data 1356 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1359 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1360 lib/pengine/bundle.c for (iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 1404 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 1448 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1457 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1461 lib/pengine/bundle.c status_print("type=\"%s\" ", container_agent_str(bundle_data->agent_type)); bundle_data 1462 lib/pengine/bundle.c status_print("image=\"%s\" ", bundle_data->image); bundle_data 1471 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 1507 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1515 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1540 lib/pengine/bundle.c const char *type = container_agent_str(bundle_data->agent_type); bundle_data 1554 lib/pengine/bundle.c PCMK_XA_IMAGE, bundle_data->image, bundle_data 1662 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1668 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1678 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1705 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1706 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1711 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1738 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1745 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1746 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1801 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1807 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1817 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1844 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1845 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1850 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1884 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1885 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1942 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1951 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1958 lib/pengine/bundle.c pre_text, ((bundle_data->nreplicas > 1)? " set" : ""), bundle_data 1959 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1967 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1978 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 2043 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2046 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2049 lib/pengine/bundle.c free(bundle_data->prefix); bundle_data 2050 lib/pengine/bundle.c free(bundle_data->image); bundle_data 2051 lib/pengine/bundle.c free(bundle_data->control_port); bundle_data 2052 lib/pengine/bundle.c free(bundle_data->host_network); bundle_data 2053 lib/pengine/bundle.c free(bundle_data->host_netmask); bundle_data 2054 lib/pengine/bundle.c free(bundle_data->ip_range_start); bundle_data 2055 lib/pengine/bundle.c free(bundle_data->container_network); bundle_data 2056 lib/pengine/bundle.c free(bundle_data->launcher_options); bundle_data 2057 lib/pengine/bundle.c free(bundle_data->container_command); bundle_data 2058 lib/pengine/bundle.c g_free(bundle_data->container_host_options); bundle_data 2060 lib/pengine/bundle.c g_list_free_full(bundle_data->replicas, bundle_data 2062 lib/pengine/bundle.c g_list_free_full(bundle_data->mounts, (GDestroyNotify)mount_free); bundle_data 2063 lib/pengine/bundle.c g_list_free_full(bundle_data->ports, (GDestroyNotify)port_free); bundle_data 2066 lib/pengine/bundle.c if(bundle_data->child) { bundle_data 2067 lib/pengine/bundle.c free_xml(bundle_data->child->xml); bundle_data 2068 lib/pengine/bundle.c bundle_data->child->xml = NULL; bundle_data 2069 lib/pengine/bundle.c bundle_data->child->fns->free(bundle_data->child); bundle_data 2092 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2094 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2095 lib/pengine/bundle.c return bundle_data->nreplicas; bundle_data 2103 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2105 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2106 lib/pengine/bundle.c for (GList *item = bundle_data->replicas; item != NULL; item = item->next) { bundle_data 2129 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2134 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2136 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; gIter = gIter->next) { bundle_data 2270 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2272 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2273 lib/pengine/bundle.c pcmk__assert(bundle_data->nreplicas_per_host >= 0); bundle_data 2274 lib/pengine/bundle.c return (unsigned int) bundle_data->nreplicas_per_host;