bundle_data 48 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 52 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 61 lib/pacemaker/pcmk_sched_bundle.c pcmk__assign_instances(rsc, containers, bundle_data->nreplicas, bundle_data 62 lib/pacemaker/pcmk_sched_bundle.c bundle_data->nreplicas_per_host); bundle_data 65 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 119 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 122 lib/pacemaker/pcmk_sched_bundle.c g_hash_table_iter_init(&iter, bundle_data->child->allowed_nodes); bundle_data 124 lib/pacemaker/pcmk_sched_bundle.c if (is_bundle_node(bundle_data, node)) { bundle_data 131 lib/pacemaker/pcmk_sched_bundle.c rsc->id, bundle_data->child->id); bundle_data 132 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->assign(bundle_data->child, prefer); bundle_data 145 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 150 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 151 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 169 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 170 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->create_actions(bundle_data->child); bundle_data 172 lib/pacemaker/pcmk_sched_bundle.c if (pcmk_is_set(bundle_data->child->flags, pe_rsc_promotable)) { bundle_data 191 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 195 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 197 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 198 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(rsc, RSC_START, bundle_data->child, bundle_data 200 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(rsc, RSC_STOP, bundle_data->child, bundle_data 203 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child->children) { bundle_data 204 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_STARTED, rsc, bundle_data 207 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_STOPPED, rsc, bundle_data 211 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_START, rsc, bundle_data 214 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_STOP, rsc, bundle_data 220 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 276 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 277 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->internal_constraints(bundle_data->child); bundle_data 278 lib/pacemaker/pcmk_sched_bundle.c if (pcmk_is_set(bundle_data->child->flags, pe_rsc_promotable)) { bundle_data 282 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_DEMOTED, rsc, bundle_data 287 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(rsc, RSC_DEMOTE, bundle_data->child, bundle_data 292 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(bundle_data->child, RSC_PROMOTED, rsc, bundle_data 297 lib/pacemaker/pcmk_sched_bundle.c pcmk__order_resource_actions(rsc, RSC_PROMOTE, bundle_data->child, bundle_data 310 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 313 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 318 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 429 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 470 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, primary); bundle_data 474 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 613 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 614 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 618 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 631 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child bundle_data 634 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->apply_location(bundle_data->child, bundle_data 636 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->rsc_location = g_list_prepend(bundle_data->child->rsc_location, bundle_data 650 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 654 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 656 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->child) { bundle_data 657 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->add_actions_to_graph(bundle_data->child); bundle_data 660 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 733 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 737 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 738 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 769 lib/pacemaker/pcmk_sched_bundle.c for (GList *tIter = bundle_data->replicas; bundle_data 770 lib/pacemaker/pcmk_sched_bundle.c tIter && (bundle_data->nreplicas_per_host == 1); bundle_data 817 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 821 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 822 lib/pacemaker/pcmk_sched_bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 848 lib/pacemaker/pcmk_sched_bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 855 lib/pacemaker/pcmk_sched_bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 856 lib/pacemaker/pcmk_sched_bundle.c if (bundle_data->replicas == NULL) { bundle_data 864 lib/pacemaker/pcmk_sched_bundle.c replica = (pe__bundle_replica_t *) bundle_data->replicas->data; bundle_data 37 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 39 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, pe__const_top_resource(rsc, true)); bundle_data 40 lib/pengine/bundle.c return bundle_data->nreplicas; bundle_data 54 lib/pengine/bundle.c const pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 56 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, pe__const_top_resource(rsc, true)); bundle_data 57 lib/pengine/bundle.c return bundle_data->nreplicas_per_host; bundle_data 667 lib/pengine/bundle.c mount_add(pe__bundle_variant_data_t *bundle_data, const char *source, bundle_data 677 lib/pengine/bundle.c bundle_data->mounts = g_list_append(bundle_data->mounts, mount); bundle_data 701 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 711 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, top); bundle_data 712 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 794 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 800 lib/pengine/bundle.c bundle_data = calloc(1, sizeof(pe__bundle_variant_data_t)); bundle_data 801 lib/pengine/bundle.c rsc->variant_opaque = bundle_data; bundle_data 802 lib/pengine/bundle.c bundle_data->prefix = strdup(rsc->id); bundle_data 806 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_DOCKER; bundle_data 810 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_RKT; bundle_data 814 lib/pengine/bundle.c bundle_data->agent_type = PE__CONTAINER_AGENT_PODMAN; bundle_data 827 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->promoted_max, 0); bundle_data 831 lib/pengine/bundle.c if ((value == NULL) && (bundle_data->promoted_max > 0)) { bundle_data 832 lib/pengine/bundle.c bundle_data->nreplicas = bundle_data->promoted_max; bundle_data 834 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas, 1); bundle_data 843 lib/pengine/bundle.c pcmk__scan_min_int(value, &bundle_data->nreplicas_per_host, 1); bundle_data 844 lib/pengine/bundle.c if (bundle_data->nreplicas_per_host == 1) { bundle_data 848 lib/pengine/bundle.c bundle_data->container_command = crm_element_value_copy(xml_obj, "run-command"); bundle_data 849 lib/pengine/bundle.c bundle_data->launcher_options = crm_element_value_copy(xml_obj, "options"); bundle_data 850 lib/pengine/bundle.c bundle_data->image = crm_element_value_copy(xml_obj, "image"); bundle_data 851 lib/pengine/bundle.c bundle_data->container_network = crm_element_value_copy(xml_obj, "network"); bundle_data 856 lib/pengine/bundle.c bundle_data->ip_range_start = crm_element_value_copy(xml_obj, "ip-range-start"); bundle_data 857 lib/pengine/bundle.c bundle_data->host_netmask = crm_element_value_copy(xml_obj, "host-netmask"); bundle_data 858 lib/pengine/bundle.c bundle_data->host_network = crm_element_value_copy(xml_obj, "host-interface"); bundle_data 859 lib/pengine/bundle.c bundle_data->control_port = crm_element_value_copy(xml_obj, "control-port"); bundle_data 861 lib/pengine/bundle.c if (crm_str_to_boolean(value, &bundle_data->add_host) != 1) { bundle_data 862 lib/pengine/bundle.c bundle_data->add_host = TRUE; bundle_data 881 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 906 lib/pengine/bundle.c mount_add(bundle_data, source, target, options, flags); bundle_data 916 lib/pengine/bundle.c if (xml_obj && valid_network(bundle_data)) { bundle_data 926 lib/pengine/bundle.c crm_xml_set_id(xml_resource, "%s-%s", bundle_data->prefix, bundle_data 927 lib/pengine/bundle.c (bundle_data->promoted_max? "master" bundle_data 931 lib/pengine/bundle.c crm_xml_set_id(xml_set, "%s-%s-meta", bundle_data->prefix, xml_resource->name); bundle_data 936 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas); bundle_data 941 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->nreplicas_per_host); bundle_data 947 lib/pengine/bundle.c pcmk__btoa(bundle_data->nreplicas_per_host > 1)); bundle_data 949 lib/pengine/bundle.c if (bundle_data->promoted_max) { bundle_data 953 lib/pengine/bundle.c value = pcmk__itoa(bundle_data->promoted_max); bundle_data 974 lib/pengine/bundle.c if (pe__unpack_resource(xml_resource, &(bundle_data->child), rsc, bundle_data 1000 lib/pengine/bundle.c mount_add(bundle_data, DEFAULT_REMOTE_KEY_LOCATION, bundle_data 1004 lib/pengine/bundle.c mount_add(bundle_data, CRM_BUNDLE_DIR, "/var/log", NULL, bundle_data 1009 lib/pengine/bundle.c if(bundle_data->control_port) { bundle_data 1010 lib/pengine/bundle.c port->source = strdup(bundle_data->control_port); bundle_data 1023 lib/pengine/bundle.c bundle_data->ports = g_list_append(bundle_data->ports, port); bundle_data 1026 lib/pengine/bundle.c for (childIter = bundle_data->child->children; childIter != NULL; bundle_data 1037 lib/pengine/bundle.c pe__set_resource_flags(bundle_data->child, pe_rsc_notify); bundle_data 1040 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); bundle_data 1041 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1043 lib/pengine/bundle.c bundle_data->attribute_target = g_hash_table_lookup(replica->child->meta, bundle_data 1046 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); bundle_data 1048 lib/pengine/bundle.c if (bundle_data->attribute_target) { bundle_data 1050 lib/pengine/bundle.c strdup(bundle_data->attribute_target)); bundle_data 1051 lib/pengine/bundle.c g_hash_table_replace(bundle_data->child->meta, bundle_data 1053 lib/pengine/bundle.c strdup(bundle_data->attribute_target)); bundle_data 1060 lib/pengine/bundle.c for (int lpc = 0; lpc < bundle_data->nreplicas; lpc++) { bundle_data 1064 lib/pengine/bundle.c allocate_ip(bundle_data, replica, buffer); bundle_data 1065 lib/pengine/bundle.c bundle_data->replicas = g_list_append(bundle_data->replicas, bundle_data 1068 lib/pengine/bundle.c bundle_data->container_host_options = g_string_free(buffer, FALSE); bundle_data 1071 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1075 lib/pengine/bundle.c if (create_replica_resources(rsc, bundle_data, replica) != pcmk_rc_ok) { bundle_data 1105 lib/pengine/bundle.c if (bundle_data->child) { bundle_data 1106 lib/pengine/bundle.c rsc->children = g_list_append(rsc->children, bundle_data->child); bundle_data 1129 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1132 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1133 lib/pengine/bundle.c for (iter = bundle_data->replicas; iter != NULL; iter = iter->next) { bundle_data 1177 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1180 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, bundle); bundle_data 1181 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1220 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1229 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1233 lib/pengine/bundle.c status_print("type=\"%s\" ", container_agent_str(bundle_data->agent_type)); bundle_data 1234 lib/pengine/bundle.c status_print("image=\"%s\" ", bundle_data->image); bundle_data 1240 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1266 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1275 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1283 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1314 lib/pengine/bundle.c "type", container_agent_str(bundle_data->agent_type), bundle_data 1315 lib/pengine/bundle.c "image", bundle_data->image, bundle_data 1418 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1424 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1434 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1461 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1462 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1467 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1491 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1498 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1499 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1551 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1557 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1567 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1594 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1595 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1600 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1631 lib/pengine/bundle.c (bundle_data->nreplicas > 1)? " set" : "", bundle_data 1632 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1688 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1697 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1704 lib/pengine/bundle.c pre_text, ((bundle_data->nreplicas > 1)? " set" : ""), bundle_data 1705 lib/pengine/bundle.c rsc->id, bundle_data->image, bundle_data 1713 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; bundle_data 1724 lib/pengine/bundle.c if (pcmk__list_of_multiple(bundle_data->replicas)) { bundle_data 1789 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1792 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1795 lib/pengine/bundle.c free(bundle_data->prefix); bundle_data 1796 lib/pengine/bundle.c free(bundle_data->image); bundle_data 1797 lib/pengine/bundle.c free(bundle_data->control_port); bundle_data 1798 lib/pengine/bundle.c free(bundle_data->host_network); bundle_data 1799 lib/pengine/bundle.c free(bundle_data->host_netmask); bundle_data 1800 lib/pengine/bundle.c free(bundle_data->ip_range_start); bundle_data 1801 lib/pengine/bundle.c free(bundle_data->container_network); bundle_data 1802 lib/pengine/bundle.c free(bundle_data->launcher_options); bundle_data 1803 lib/pengine/bundle.c free(bundle_data->container_command); bundle_data 1804 lib/pengine/bundle.c g_free(bundle_data->container_host_options); bundle_data 1806 lib/pengine/bundle.c g_list_free_full(bundle_data->replicas, bundle_data 1808 lib/pengine/bundle.c g_list_free_full(bundle_data->mounts, (GDestroyNotify)mount_free); bundle_data 1809 lib/pengine/bundle.c g_list_free_full(bundle_data->ports, (GDestroyNotify)port_free); bundle_data 1812 lib/pengine/bundle.c if(bundle_data->child) { bundle_data 1813 lib/pengine/bundle.c free_xml(bundle_data->child->xml); bundle_data 1814 lib/pengine/bundle.c bundle_data->child->xml = NULL; bundle_data 1815 lib/pengine/bundle.c bundle_data->child->fns->free(bundle_data->child); bundle_data 1840 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1842 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1843 lib/pengine/bundle.c return bundle_data->nreplicas; bundle_data 1850 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1852 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1853 lib/pengine/bundle.c for (GList *item = bundle_data->replicas; item != NULL; item = item->next) { bundle_data 1876 lib/pengine/bundle.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 1881 lib/pengine/bundle.c get_bundle_variant_data(bundle_data, rsc); bundle_data 1883 lib/pengine/bundle.c for (GList *gIter = bundle_data->replicas; gIter != NULL; gIter = gIter->next) { bundle_data 433 lib/pengine/tests/native/native_find_rsc_test.c pe__bundle_variant_data_t *bundle_data = NULL; bundle_data 441 lib/pengine/tests/native/native_find_rsc_test.c get_bundle_variant_data(bundle_data, httpd_bundle); bundle_data 442 lib/pengine/tests/native/native_find_rsc_test.c replica_0 = (pe__bundle_replica_t *) bundle_data->replicas->data;