bundle_data 95 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 97 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, pe__const_top_resource(rsc, true)); bundle_data 98 lib/pengine/bundle.c return bundle_data->nreplicas; bundle_data 112 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 114 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, pe__const_top_resource(rsc, true)); bundle_data 115 lib/pengine/bundle.c return bundle_data->child; bundle_data 161 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 163 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 164 lib/pengine/bundle.c for (GList *iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 186 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 189 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 190 lib/pengine/bundle.c if (bundle_data->replicas == NULL) { bundle_data 193 lib/pengine/bundle.c replica = bundle_data->replicas->data; bundle_data 211 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 213 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 214 lib/pengine/bundle.c for (GList *iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 236 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 238 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 239 lib/pengine/bundle.c for (const GList *iter = bundle_data->replicas; iter != NULL; bundle_data 833 lib/pengine/bundle.c mount_add(pe__bundle_variant_data_t *bundle_data, const char *source, bundle_data 843 lib/pengine/bundle.c bundle_data->mounts = g_list_append(bundle_data->mounts, mount); bundle_data 867 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 876 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, top); bundle_data 877 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 960 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 966 lib/pengine/bundle.c bundle_data = pcmk__assert_alloc(1, sizeof(pe__bundle_variant_data_t)); bundle_data 967 lib/pengine/bundle.c rsc->priv->variant_opaque = bundle_data; bundle_data 968 lib/pengine/bundle.c bundle_data->prefix = strdup(rsc->id); bundle_data 973 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_DOCKER; bundle_data 980 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_PODMAN; bundle_data 990 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->promoted_max, 0); bundle_data 996 lib/pengine/bundle.c if ((value == NULL) && (bundle_data->promoted_max > 0)) { bundle_data 997 lib/pengine/bundle.c bundle_data->nreplicas = bundle_data->promoted_max; bundle_data 999 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas, 1); bundle_data 1008 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas_per_host, 1); bundle_data 1009 lib/pengine/bundle.c if (bundle_data->nreplicas_per_host == 1) { bundle_data 1013 lib/pengine/bundle.c bundle_data->container_command = bundle_data 1015 lib/pengine/bundle.c bundle_data->launcher_options = crm_element_value_copy(xml_obj, bundle_data 1017 lib/pengine/bundle.c bundle_data->image = crm_element_value_copy(xml_obj, PCMK_XA_IMAGE); bundle_data 1018 lib/pengine/bundle.c bundle_data->container_network = crm_element_value_copy(xml_obj, bundle_data 1024 lib/pengine/bundle.c bundle_data->ip_range_start = bundle_data 1026 lib/pengine/bundle.c bundle_data->host_netmask = bundle_data 1028 lib/pengine/bundle.c bundle_data->host_network = bundle_data 1030 lib/pengine/bundle.c bundle_data->control_port = bundle_data 1033 lib/pengine/bundle.c if (crm_str_to_boolean(value, &bundle_data->add_host) != 1) { bundle_data 1034 lib/pengine/bundle.c bundle_data->add_host = TRUE; bundle_data 1058 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1087 lib/pengine/bundle.c mount_add(bundle_data, source, target, options, flags); bundle_data 1099 lib/pengine/bundle.c if (xml_obj && valid_network(bundle_data)) { bundle_data 1111 lib/pengine/bundle.c if (bundle_data->promoted_max > 0) { bundle_data 1115 lib/pengine/bundle.c pcmk__xe_set_id(xml_resource, "%s-%s", bundle_data->prefix, suffix); bundle_data 1119 lib/pengine/bundle.c bundle_data->prefix, xml_resource->name); bundle_data 1124 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas); bundle_data 1128 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas_per_host); bundle_data 1133 lib/pengine/bundle.c pcmk__btoa(bundle_data->nreplicas_per_host > 1)); bundle_data 1135 lib/pengine/bundle.c if (bundle_data->promoted_max) { bundle_data 1139 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->promoted_max); bundle_data 1160 lib/pengine/bundle.c if (pe__unpack_resource(xml_resource, &(bundle_data->child), rsc, bundle_data 1186 lib/pengine/bundle.c mount_add(bundle_data, DEFAULT_REMOTE_KEY_LOCATION, bundle_data 1190 lib/pengine/bundle.c mount_add(bundle_data, CRM_BUNDLE_DIR, "/var/log", NULL, bundle_data 1195 lib/pengine/bundle.c if(bundle_data->control_port) { bundle_data 1196 lib/pengine/bundle.c port->source = strdup(bundle_data->control_port); bundle_data 1210 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1213 lib/pengine/bundle.c for (childIter = bundle_data->child->priv->children; bundle_data 1225 lib/pengine/bundle.c pcmk__set_rsc_flags(bundle_data->child, pcmk__rsc_notify); bundle_data 1228 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); bundle_data 1229 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1231 lib/pengine/bundle.c bundle_data->attribute_target = bundle_data 1235 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); bundle_data 1237 lib/pengine/bundle.c if (bundle_data->attribute_target) { bundle_data 1240 lib/pengine/bundle.c bundle_data->attribute_target); bundle_data 1241 lib/pengine/bundle.c pcmk__insert_dup(bundle_data->child->priv->meta, bundle_data 1243 lib/pengine/bundle.c bundle_data->attribute_target); bundle_data 1250 lib/pengine/bundle.c for (int lpc = 0; lpc < bundle_data->nreplicas; lpc++) { bundle_data 1255 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); bundle_data 1256 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1259 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); bundle_data 1262 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1266 lib/pengine/bundle.c if (create_replica_resources(rsc, bundle_data, replica) != pcmk_rc_ok) { bundle_data 1298 lib/pengine/bundle.c if (bundle_data->child) { bundle_data 1300 lib/pengine/bundle.c bundle_data->child); bundle_data 1323 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1326 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1327 lib/pengine/bundle.c for (iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 1371 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1375 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 1376 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1398 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1406 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1414 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1447 lib/pengine/bundle.c const char *type = container_agent_str(bundle_data->agent_type); bundle_data 1462 lib/pengine/bundle.c PCMK_XA_IMAGE, bundle_data->image, bundle_data 1570 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1575 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1585 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1620 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1621 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1626 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1650 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { 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 1713 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1720 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1728 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1763 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1764 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1769 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1800 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1801 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1848 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1851 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1854 lib/pengine/bundle.c free(bundle_data->prefix); bundle_data 1855 lib/pengine/bundle.c free(bundle_data->image); bundle_data 1856 lib/pengine/bundle.c free(bundle_data->control_port); bundle_data 1857 lib/pengine/bundle.c free(bundle_data->host_network); bundle_data 1858 lib/pengine/bundle.c free(bundle_data->host_netmask); bundle_data 1859 lib/pengine/bundle.c free(bundle_data->ip_range_start); bundle_data 1860 lib/pengine/bundle.c free(bundle_data->container_network); bundle_data 1861 lib/pengine/bundle.c free(bundle_data->launcher_options); bundle_data 1862 lib/pengine/bundle.c free(bundle_data->container_command); bundle_data 1863 lib/pengine/bundle.c g_free(bundle_data->container_host_options); bundle_data 1865 lib/pengine/bundle.c g_list_free_full(bundle_data->replicas, bundle_data 1867 lib/pengine/bundle.c g_list_free_full(bundle_data->mounts, (GDestroyNotify)mount_free); bundle_data 1868 lib/pengine/bundle.c g_list_free_full(bundle_data->ports, (GDestroyNotify)port_free); bundle_data 1871 lib/pengine/bundle.c if(bundle_data->child) { bundle_data 1872 lib/pengine/bundle.c pcmk__xml_free(bundle_data->child->priv->xml); bundle_data 1873 lib/pengine/bundle.c bundle_data->child->priv->xml = NULL; bundle_data 1874 lib/pengine/bundle.c bundle_data->child->priv->fns->free(bundle_data->child); bundle_data 1897 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1899 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1900 lib/pengine/bundle.c return bundle_data->nreplicas; bundle_data 1908 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1910 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1911 lib/pengine/bundle.c for (GList *item = bundle_data->replicas; item != NULL; item = item->next) { bundle_data 1934 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1939 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1941 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; gIter = gIter->next) { bundle_data 2087 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 2089 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 2090 lib/pengine/bundle.c pcmk__assert(bundle_data->nreplicas_per_host >= 0); bundle_data 2091 lib/pengine/bundle.c return (unsigned int) bundle_data->nreplicas_per_host;