« Previous | Next » 

Revision fefb90b2

IDfefb90b295d314ba9414bbf9ed5f583f23c6739f
Parent 51ff205b
Child 28853b72

Added by Daniel Molina almost 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
(cherry picked from commit 4cff5d708e55e4c50a9a67a36901795ac9af1b44)

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences