Child EEs (VMs) can fail to boot up when unlocking the parent EE.

The current code resets the VM when unlocking the parent EE. This is done in
plms_move_chld_ent_to_insvc(). Later in the unlock function, the child EEs
are reset again. libvirt does not like these resets being done in less than 1
second, and often will not boot the VM.

Don't reset the child EEs twice when unlocking the parent EE.
---
 src/plm/plmd/plms_adm_fsm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plm/plmd/plms_adm_fsm.c b/src/plm/plmd/plms_adm_fsm.c
index 8f5725cd8..a29dc28e0 100644
--- a/src/plm/plmd/plms_adm_fsm.c
+++ b/src/plm/plmd/plms_adm_fsm.c
@@ -4520,7 +4520,10 @@ static SaUint32T plms_ent_unlock(PLMS_ENTITY *ent, 
PLMS_TRACK_INFO *trk_info,
 
                        if ((PLMS_EE_ENTITY == head->plm_entity->entity_type) &&
                            (!plms_rdness_flag_is_set(head->plm_entity,
-                                                     SA_PLM_RF_DEPENDENCY))) {
+                                                     SA_PLM_RF_DEPENDENCY)) &&
+                           /* child EEs have already been instantiated above */
+                           head->plm_entity->parent->entity_type !=
+                               PLMS_EE_ENTITY) {
                                ret_err = plms_ee_instantiate(head->plm_entity,
                                                              false, true);
                                if (NCSCC_RC_SUCCESS != ret_err) {
-- 
2.13.6


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to