bundle_data 98 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 100 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, pe__const_top_resource(rsc, true)); bundle_data 101 lib/pengine/bundle.c return bundle_data->nreplicas; bundle_data 115 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 117 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, pe__const_top_resource(rsc, true)); bundle_data 118 lib/pengine/bundle.c return bundle_data->child; bundle_data 164 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 166 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 167 lib/pengine/bundle.c for (GList *iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 189 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 192 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 193 lib/pengine/bundle.c if (bundle_data->replicas == NULL) { bundle_data 196 lib/pengine/bundle.c replica = bundle_data->replicas->data; bundle_data 214 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 216 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 217 lib/pengine/bundle.c for (GList *iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 239 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 241 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 242 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 989 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 995 lib/pengine/bundle.c bundle_data = calloc(1, sizeof(pe__bundle_variant_data_t)); bundle_data 996 lib/pengine/bundle.c rsc->variant_opaque = bundle_data; bundle_data 997 lib/pengine/bundle.c bundle_data->prefix = strdup(rsc->id); bundle_data 1001 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_DOCKER; bundle_data 1005 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_RKT; bundle_data 1009 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_PODMAN; bundle_data 1022 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->promoted_max, 0); bundle_data 1026 lib/pengine/bundle.c if ((value == NULL) && (bundle_data->promoted_max > 0)) { bundle_data 1027 lib/pengine/bundle.c bundle_data->nreplicas = bundle_data->promoted_max; bundle_data 1029 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas, 1); bundle_data 1038 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas_per_host, 1); bundle_data 1039 lib/pengine/bundle.c if (bundle_data->nreplicas_per_host == 1) { bundle_data 1043 lib/pengine/bundle.c bundle_data->container_command = crm_element_value_copy(xml_obj, "run-command"); bundle_data 1044 lib/pengine/bundle.c bundle_data->launcher_options = crm_element_value_copy(xml_obj, "options"); bundle_data 1045 lib/pengine/bundle.c bundle_data->image = crm_element_value_copy(xml_obj, "image"); bundle_data 1046 lib/pengine/bundle.c bundle_data->container_network = crm_element_value_copy(xml_obj, "network"); bundle_data 1051 lib/pengine/bundle.c bundle_data->ip_range_start = crm_element_value_copy(xml_obj, "ip-range-start"); bundle_data 1052 lib/pengine/bundle.c bundle_data->host_netmask = crm_element_value_copy(xml_obj, "host-netmask"); bundle_data 1053 lib/pengine/bundle.c bundle_data->host_network = crm_element_value_copy(xml_obj, "host-interface"); bundle_data 1054 lib/pengine/bundle.c bundle_data->control_port = crm_element_value_copy(xml_obj, "control-port"); bundle_data 1056 lib/pengine/bundle.c if (crm_str_to_boolean(value, &bundle_data->add_host) != 1) { bundle_data 1057 lib/pengine/bundle.c bundle_data->add_host = TRUE; bundle_data 1076 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1101 lib/pengine/bundle.c mount_add(bundle_data, source, target, options, flags); bundle_data 1111 lib/pengine/bundle.c if (xml_obj && valid_network(bundle_data)) { bundle_data 1121 lib/pengine/bundle.c crm_xml_set_id(xml_resource, "%s-%s", bundle_data->prefix, bundle_data 1122 lib/pengine/bundle.c (bundle_data->promoted_max? "master" bundle_data 1126 lib/pengine/bundle.c crm_xml_set_id(xml_set, "%s-%s-meta", bundle_data->prefix, xml_resource->name); bundle_data 1131 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas); bundle_data 1135 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas_per_host); bundle_data 1140 lib/pengine/bundle.c pcmk__btoa(bundle_data->nreplicas_per_host > 1)); bundle_data 1142 lib/pengine/bundle.c if (bundle_data->promoted_max) { bundle_data 1146 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->promoted_max); bundle_data 1166 lib/pengine/bundle.c if (pe__unpack_resource(xml_resource, &(bundle_data->child), rsc, bundle_data 1192 lib/pengine/bundle.c mount_add(bundle_data, DEFAULT_REMOTE_KEY_LOCATION, bundle_data 1196 lib/pengine/bundle.c mount_add(bundle_data, CRM_BUNDLE_DIR, "/var/log", NULL, bundle_data 1201 lib/pengine/bundle.c if(bundle_data->control_port) { bundle_data 1202 lib/pengine/bundle.c port->source = strdup(bundle_data->control_port); bundle_data 1215 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1218 lib/pengine/bundle.c for (childIter = bundle_data->child->children; childIter != NULL; bundle_data 1229 lib/pengine/bundle.c pe__set_resource_flags(bundle_data->child, pcmk_rsc_notify); bundle_data 1232 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); bundle_data 1233 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1235 lib/pengine/bundle.c bundle_data->attribute_target = g_hash_table_lookup(replica->child->meta, bundle_data 1238 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); bundle_data 1240 lib/pengine/bundle.c if (bundle_data->attribute_target) { bundle_data 1242 lib/pengine/bundle.c strdup(bundle_data->attribute_target)); bundle_data 1243 lib/pengine/bundle.c g_hash_table_replace(bundle_data->child->meta, bundle_data 1245 lib/pengine/bundle.c strdup(bundle_data->attribute_target)); bundle_data 1252 lib/pengine/bundle.c for (int lpc = 0; lpc < bundle_data->nreplicas; lpc++) { bundle_data 1256 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); bundle_data 1257 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1260 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); bundle_data 1263 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1267 lib/pengine/bundle.c if (create_replica_resources(rsc, bundle_data, replica) != pcmk_rc_ok) { bundle_data 1297 lib/pengine/bundle.c if (bundle_data->child) { bundle_data 1298 lib/pengine/bundle.c rsc->children = g_list_append(rsc->children, bundle_data->child); bundle_data 1321 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1324 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1325 lib/pengine/bundle.c for (iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 1369 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1372 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 1373 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1412 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1421 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1425 lib/pengine/bundle.c status_print("type=\"%s\" ", container_agent_str(bundle_data->agent_type)); bundle_data 1426 lib/pengine/bundle.c status_print("image=\"%s\" ", bundle_data->image); bundle_data 1433 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1460 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1469 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1477 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1508 lib/pengine/bundle.c "type", container_agent_str(bundle_data->agent_type), bundle_data 1509 lib/pengine/bundle.c "image", bundle_data->image, bundle_data 1614 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1620 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1630 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1657 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1658 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1663 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1687 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1694 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1695 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1748 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 1797 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1828 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1829 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1885 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1894 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1901 lib/pengine/bundle.c pre_text, ((bundle_data->nreplicas > 1)? " set" : ""), bundle_data 1902 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1910 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1921 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1986 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1989 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1992 lib/pengine/bundle.c free(bundle_data->prefix); bundle_data 1993 lib/pengine/bundle.c free(bundle_data->image); bundle_data 1994 lib/pengine/bundle.c free(bundle_data->control_port); bundle_data 1995 lib/pengine/bundle.c free(bundle_data->host_network); bundle_data 1996 lib/pengine/bundle.c free(bundle_data->host_netmask); bundle_data 1997 lib/pengine/bundle.c free(bundle_data->ip_range_start); bundle_data 1998 lib/pengine/bundle.c free(bundle_data->container_network); bundle_data 1999 lib/pengine/bundle.c free(bundle_data->launcher_options); bundle_data 2000 lib/pengine/bundle.c free(bundle_data->container_command); bundle_data 2001 lib/pengine/bundle.c g_free(bundle_data->container_host_options); bundle_data 2003 lib/pengine/bundle.c g_list_free_full(bundle_data->replicas, bundle_data 2005 lib/pengine/bundle.c g_list_free_full(bundle_data->mounts, (GDestroyNotify)mount_free); bundle_data 2006 lib/pengine/bundle.c g_list_free_full(bundle_data->ports, (GDestroyNotify)port_free); bundle_data 2009 lib/pengine/bundle.c if(bundle_data->child) { bundle_data 2010 lib/pengine/bundle.c free_xml(bundle_data->child->xml); bundle_data 2011 lib/pengine/bundle.c bundle_data->child->xml = NULL; bundle_data 2012 lib/pengine/bundle.c bundle_data->child->fns->free(bundle_data->child); 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 return bundle_data->nreplicas; bundle_data 2047 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2049 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2050 lib/pengine/bundle.c for (GList *item = bundle_data->replicas; item != NULL; item = item->next) { bundle_data 2073 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2078 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2080 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; gIter = gIter->next) { bundle_data 2214 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2216 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2217 lib/pengine/bundle.c CRM_ASSERT(bundle_data->nreplicas_per_host >= 0); bundle_data 2218 lib/pengine/bundle.c return (unsigned int) bundle_data->nreplicas_per_host;