12 #include <sys/param.h> 33 const char* argv[] = {
"", NULL };
45 all = g_list_prepend(all, strdup(
"*"));
50 crm_err(
"Can't log resource details due to internal error: %s\n",
56 for (GList *item = data_set->
resources; item != NULL; item = item->next) {
62 out->
message(out, crm_map_element_name(rsc->
xml), 0, rsc, all, all);
67 g_list_free_full(all, free);
90 data_set->
input = xml_input;
94 crm_trace(
"Already have status - reusing");
97 if (data_set->
now == NULL) {
104 log_resource_details(data_set);
107 crm_trace(
"Applying location constraints");
114 crm_trace(
"Create internal constraints");
123 crm_trace(
"Processing fencing and shutdown cases");
126 crm_trace(
"Applying ordering constraints");
132 crm_trace(
"=#=#=#=#= Summary =#=#=#=#=");
133 crm_trace(
"\t========= Set %d (Un-runnable) =========", -1);
136 for (; gIter != NULL; gIter = gIter->next) {
139 if (!pcmk_any_flags_set(
action->flags,
148 return data_set->
graph;
#define PCMK__SUPPORTED_FORMAT_LOG
gboolean stage2(pe_working_set_t *data_set)
gboolean stage5(pe_working_set_t *data_set)
gboolean stage3(pe_working_set_t *data_set)
int(* message)(pcmk__output_t *out, const char *message_id,...)
struct crm_time_s crm_time_t
gboolean stage0(pe_working_set_t *data_set)
gboolean show_utilization
#define pe_flag_have_status
const char * pcmk_rc_str(int rc)
Get a user-friendly description of a return code.
void pcmk__register_formats(GOptionGroup *group, pcmk__supported_format_t *table)
gboolean stage8(pe_working_set_t *data_set)
gboolean stage4(pe_working_set_t *data_set)
#define crm_trace(fmt, args...)
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
void set_working_set_defaults(pe_working_set_t *data_set)
Wrappers for and extensions to libxml2.
void pe__register_messages(pcmk__output_t *out)
void pcmk__output_free(pcmk__output_t *out)
unsigned int get_crm_log_level(void)
xmlNode * pcmk__schedule_actions(pe_working_set_t *data_set, xmlNode *xml_input, crm_time_t *now)
void log_action(unsigned int log_level, const char *pre_text, pe_action_t *action, gboolean details)
gboolean stage7(pe_working_set_t *data_set)
#define pe_flag_quick_location
Cluster status and scheduling.
#define crm_err(fmt, args...)
crm_time_t * crm_time_new(const char *string)
This structure contains everything that makes up a single output formatter.
gboolean stage6(pe_working_set_t *data_set)
int pcmk__output_new(pcmk__output_t **out, const char *fmt_name, const char *filename, char **argv)