Skip to content
Browse files

Medium: PE: Correctly log the actions for resources that are being re…

…covered

Mercurial revision: 72c89d3bed69d729d846e9f08d4a46a2e0b6c6b7
  • Loading branch information...
1 parent 95d252a commit df410428d3c26a921f2d77b801015ba86eaa8cd2 @beekhof beekhof committed Apr 7, 2009
Showing with 9 additions and 3 deletions.
  1. +9 −3 pengine/native.c
View
12 pengine/native.c
@@ -1309,6 +1309,13 @@ LogActions(resource_t *rsc, pe_working_set_t *data_set)
next = rsc->allocated_to;
if(rsc->running_on) {
current = rsc->running_on->data;
+ if(rsc->role == RSC_ROLE_STOPPED) {
+ /*
+ * This can occur when resources are being recovered
+ * We fiddle with the current role in native_create_actions()
+ */
+ rsc->role = RSC_ROLE_STARTED;
+ }
}
if(current == NULL && is_set(rsc->flags, pe_rsc_orphan)) {
@@ -1372,9 +1379,8 @@ LogActions(resource_t *rsc, pe_working_set_t *data_set)
if(rsc->next_role == RSC_ROLE_STOPPED || moving) {
CRM_CHECK(current != NULL,);
- if(current != NULL) {
- crm_notice("Stop resource %s\t(%s)", rsc->id, current->details->uname);
- }
+ slist_iter(node, node_t, rsc->running_on, lpc,
+ crm_notice("Stop resource %s\t(%s)", rsc->id, node->details->uname));
}
if(rsc->role == RSC_ROLE_STOPPED || moving) {

0 comments on commit df41042

Please sign in to comment.
Something went wrong with that request. Please try again.