« Previous | Next » 

Revision 4cff5d70

ID4cff5d708e55e4c50a9a67a36901795ac9af1b44
Parent f582cd0e
Child db1f6f47

Added by Daniel Molina over 8 years ago

Extend vmm_dummy functionality. Success/failure result can be defined per action

By default all actions will succeed

Action results can be specified in the DUMMY_ACTIONS_DIRS (/tmp/opennebula_dummy_actions) * Example, Next deploy will fail
echo "failure" > $DUMMY_ACTIONS_DIR/deploy
If this file is not removed next deploy actions will fail
rm $DUMMY_ACTIONS_DIR/deploy
or
echo "success" > $DUMMY_ACTIONS_DIR/deploy * Example, Defining multiple results per action
echo "success\nfailure" > $DUMMY_ACTIONS_DIR/deploy
The 1st deploy will succeed and the 2nd will fail. This
behavior will be repeated, i.e 3th success, 4th failure

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences