Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: cgalibern/opensvc

Tags

2.0

Toggle 2.0's commit message
Add aenum module

aenum is a pure-python python3 enum compatible implementation.

1.9

Toggle 1.9's commit message
Add Darwin HFS provisioning and fixes for the loop driver

1.8

Toggle 1.8's commit message
Strip trailing whitespaces from nodemgr

1.7

Toggle 1.7's commit message
Merge branch 'master' of git+ssh://www.opensvc.com/home/opensvc/opensvc

1.6

Toggle 1.6's commit message
Fix proxy methods initialization

Wrong variable name was used to initialize. Also initializing to
[] is saner than initializing to None.

1.5

Toggle 1.5's commit message
DataCore scalability issue workaround

The DataCore ssh access is not scalable. Limit the
pollers population by disabling the datacore resource
status evaluation on passive service nodes.

1.4

Toggle 1.4's commit message
Don't stack on unicodes in table formatter

The lib formatting collector data as ascii tables stacked on
non-translatable unicodes, as it uses str-only methods like 'ljust'.

Silently ignore translation errors.

1.3

Toggle 1.3's commit message
Treat correctly disabled heartbeat resource

- cancel stonith action
- cancel resource monitoring
- authorize service actions without --cluster

1.2

Toggle 1.2's commit message
Move com.opensvc compliance modules to objects are wrappers

The features of these modules are thus available to module
developpers. Even shell-scripts modules can thus use complex
json-serialized variables using com.opensvc object wrappers.

Example: Module using files+packages facilities

PATH_SCRIPT="$(cd $(/usr/bin/dirname $(type -p -- $0 || echo $0));pwd)"
PATH_LIB=$PATH_SCRIPT/com.opensvc
PREFIX=OSVC_COMP_FOO

typeset -i r=0

case $1 in
check)
	$PATH_LIB/files ${PREFIX}_FILES check
        [ $? -eq 1 ] && r=1
	$PATH_LIB/packages ${PREFIX}_PKG check
        [ $? -eq 1 ] && r=1
        exit $r
        ;;
fix)
	$PATH_LIB/files ${PREFIX}_FILES check
        [ $? -eq 1 ] && exit 1
	$PATH_LIB/packages ${PREFIX}_PKG check
        [ $? -eq 1 ] && exit 1
        ;;
fixable)
	exit 2
	;;
esac

1.1

Toggle 1.1's commit message
Missing resource detail in 'print_status'

'print_status' did not print resource detail in groups with only
one resource. The heartbeart group for example usually has only
one resource.