[Openais] AMF problem
deneb debelak
denebdebelak at hotmail.com
Tue Feb 6 01:59:49 PST 2007
Hello. I am just starting with openais and I managed to get AMF to work on a
single node, but I just can't get it to work on two nodes. I changed
amf.conf like this:
# AMF Test configuration file
# - Times in milliseconds
# - clccli_path can be set on any level from application and down and will
be
# added to the CLI commands if they are not already specified with an
absolute
# path (begins with /).
# WL - WorkLoad
safAmfCluster = TEST_CLUSTER {
saAmfClusterStartupTimeout=8000
safAmfNode = atca113 {
saAmfNodeSuFailOverProb=2000
saAmfNodeSuFailoverMax=2
# saAmfNodeClmNode=atca113
}
safAmfNode = ha_atca16 {
saAmfNodeSuFailOverProb=2000
saAmfNodeSuFailoverMax=2
# saAmfNodeClmNode=atca113
}
safApp = APP-1 {
safSg = RAID {
saAmfSGRedundancyModel=nplusm
saAmfSGNumPrefActiveSUs=1
saAmfSGMaxActiveSIsperSUs=2
saAmfSGNumPrefStandbySUs=1
saAmfSGMaxStandbySIsperSUs=2
saAmfSGCompRestartProb=100000
saAmfSGCompRestartMax=1
saAmfSGSuRestartProb=20000
saAmfSGSuRestartMax=1
saAmfSGAutoAdjustProb=5000
safSu = SERVICE_X_1 {
saAmfSUHostedByNode=ha_atca16
saAmfSUNumComponents=1
safComp = A {
saAmfCompCategory=sa_aware
saAmfCompCapability=x_active_or_y_standby
saAmfCompNumMaxActiveCsi=1
saAmfCompNumMaxStandbyCsi=1
saAmfCompDefaultClcCliTimeout = 500
saAmfCompDefaultCallbackTimeOut = 500
saAmfCompInstantiateCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompInstantiateCmdArgv= instantiate
/root/openais-0.80.2/test/testamf1
saAmfCompTerminateCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompTerminateCmdArgv = terminate
saAmfCompCleanupCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompCleanupCmdArgv = cleanup
saAmfCompCsTypes {
A
}
saAmfCompCmdEnv {
var1=val1
var2=val2
}
saAmfCompRecoveryOnError=component_restart
safHealthcheckKey = key1 {
saAmfHealthcheckPeriod = 5000
saAmfHealthcheckMaxDuration = 350
}
}
safComp = B {
saAmfCompCategory=sa_aware
saAmfCompCapability=x_active_or_y_standby
saAmfCompNumMaxActiveCsi=1
saAmfCompNumMaxStandbyCsi=1
saAmfCompDefaultClcCliTimeout = 500
saAmfCompDefaultCallbackTimeOut = 500
saAmfCompInstantiateCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompInstantiateCmdArgv= instantiate
/root/openais-0.80.2/test/testamf1
saAmfCompTerminateCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompTerminateCmdArgv = terminate
saAmfCompCleanupCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompCleanupCmdArgv = cleanup
saAmfCompCsTypes {
B
}
saAmfCompCmdEnv {
var1=val1
var2=val2
}
saAmfCompRecoveryOnError=component_restart
safHealthcheckKey = key1 {
saAmfHealthcheckPeriod = 5000
saAmfHealthcheckMaxDuration = 350
}
}
}
safSu = SERVICE_X_2 {
clccli_path=/root/openais-0.80.2/test
saAmfSUHostedByNode=atca113
saAmfSUNumComponents=1
safComp = A {
saAmfCompCategory=sa_aware
saAmfCompCapability=x_active_or_y_standby
saAmfCompNumMaxActiveCsi=1
saAmfCompNumMaxStandbyCsi=1
saAmfCompDefaultClcCliTimeout = 500
saAmfCompDefaultCallbackTimeOut = 500
saAmfCompInstantiateCmd = clc_cli_script
saAmfCompInstantiateCmdArgv= instantiate
saAmfCompTerminateCmd = clc_cli_script
saAmfCompTerminateCmdArgv = terminate
saAmfCompCleanupCmd = clc_cli_script
saAmfCompCleanupCmdArgv = cleanup
saAmfCompCsTypes {
A
}
saAmfCompCmdEnv {
COMP_BINARY_PATH=/root/openais-0.80.2/test
COMP_BINARY_NAME=testamf1
}
saAmfCompRecoveryOnError=component_restart
safHealthcheckKey = key1 {
saAmfHealthcheckPeriod = 5000
saAmfHealthcheckMaxDuration = 350
}
safHealthcheckKey = key2 {
saAmfHealthcheckPeriod = 3000
saAmfHealthcheckMaxDuration = 350
}
}
safComp = B {
saAmfCompCategory=sa_aware
saAmfCompCapability=x_active_or_y_standby
saAmfCompNumMaxActiveCsi=1
saAmfCompNumMaxStandbyCsi=1
saAmfCompDefaultClcCliTimeout = 500
saAmfCompDefaultCallbackTimeOut = 500
saAmfCompInstantiateCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompInstantiateCmdArgv= instantiate
/root/openais-0.80.2/test/testamf1
saAmfCompTerminateCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompTerminateCmdArgv = terminate
saAmfCompCleanupCmd = /root/openais-0.80.2/test/clc_cli_script
saAmfCompCleanupCmdArgv = cleanup
saAmfCompCsTypes {
B
}
saAmfCompCmdEnv {
var1=val1
var2=val2
}
saAmfCompRecoveryOnError=component_restart
safHealthcheckKey = key1 {
saAmfHealthcheckPeriod = 5000
saAmfHealthcheckMaxDuration = 350
}
}
}
}
safSi = WL1 {
saAmfSINumCSIs=2
safCsi = WL1-1 {
saAmfCSTypeName = A
}
safCsi = WL1-2 {
saAmfCSTypeName = B
safCSIAttr = attr1 {
val1
val2
}
safCSIAttr = good_health_limit {
5
}
}
}
safSi = WL2 {
saAmfSINumCSIs=2
safCsi = WL2-1 {
saAmfCSTypeName = A
}
safCsi = WL2-2 {
saAmfCSTypeName = B
safCSIAttr = attr1 {
val1
val2
}
safCSIAttr = good_health_limit {
5
}
}
}
safCSType = A {
safAmfCSAttrName = attr1
safAmfCSAttrName = good_health_limit
}
safCSType = B {
}
}
}
I have this in /etc/ais on each node and then run aisexec on each node. On
one node(atca113) it says: aisexec: amfcomp.c:1142: amf_comp_register:
Assertion `0' failed.
and on the oteher(ha_atca16) I get this:
Feb 6 10:56:42.986679 [MAIN ] AMF runtime attributes:
Feb 6 10:56:42.986707 [MAIN ]
===============================================
Feb 6 10:56:42.986734 [MAIN ] safCluster=TEST_CLUSTER
Feb 6 10:56:42.986762 [MAIN ] admin state: UNLOCKED
Feb 6 10:56:42.986789 [MAIN ] safNode=ha_atca16
Feb 6 10:56:42.986823 [MAIN ] admin state: UNLOCKED
Feb 6 10:56:42.986851 [MAIN ] oper state: ENABLED
Feb 6 10:56:42.986879 [MAIN ] safNode=atca113
Feb 6 10:56:42.986907 [MAIN ] admin state: UNLOCKED
Feb 6 10:56:42.986934 [MAIN ] oper state: UNKNOWN
Feb 6 10:56:42.986963 [MAIN ] safApp=APP-1
Feb 6 10:56:42.986989 [MAIN ] admin state: UNLOCKED
Feb 6 10:56:42.987016 [MAIN ] num_sg: 0
Feb 6 10:56:42.987043 [MAIN ] safSG=RAID
Feb 6 10:56:42.987071 [MAIN ] admin state: UNLOCKED
Feb 6 10:56:42.987097 [MAIN ] assigned SUs 1
Feb 6 10:56:42.987137 [MAIN ] non inst. spare SUs 0
Feb 6 10:56:42.987164 [MAIN ] inst. spare SUs 0
Feb 6 10:56:42.987192 [MAIN ] safSU=SERVICE_X_2
Feb 6 10:56:42.987231 [MAIN ] oper state: DISABLED
Feb 6 10:56:42.987259 [MAIN ] admin state: UNLOCKED
Feb 6 10:56:42.987286 [MAIN ] readiness state: OUT-OF-SERVICE
Feb 6 10:56:42.987313 [MAIN ] presence state: UNINSTANTIATED
Feb 6 10:56:42.987339 [MAIN ] hosted by node atca113
Feb 6 10:56:42.987370 [MAIN ] num active SIs 0
Feb 6 10:56:42.987399 [MAIN ] num standby SIs 0
Feb 6 10:56:42.987425 [MAIN ] restart count 0
Feb 6 10:56:42.987459 [MAIN ] restart control state 0
Feb 6 10:56:42.987485 [MAIN ] SU failover cnt 0
Feb 6 10:56:42.987513 [MAIN ] assigned SIs:
Feb 6 10:56:42.987544 [MAIN ] safComp=B
Feb 6 10:56:42.987571 [MAIN ] oper state: DISABLED
Feb 6 10:56:42.987602 [MAIN ] readiness state: OUT-OF-SERVICE
Feb 6 10:56:42.987630 [MAIN ] presence state: INSTANTIATING
Feb 6 10:56:42.987663 [MAIN ] num active CSIs 0
Feb 6 10:56:42.987698 [MAIN ] num standby CSIs 0
Feb 6 10:56:42.987726 [MAIN ] restart count 0
Feb 6 10:56:42.987753 [MAIN ] assigned CSIs:
Feb 6 10:56:42.987786 [MAIN ] safComp=A
Feb 6 10:56:42.987819 [MAIN ] oper state: DISABLED
Feb 6 10:56:42.987847 [MAIN ] readiness state: OUT-OF-SERVICE
Feb 6 10:56:42.987873 [MAIN ] presence state: INSTANTIATING
Feb 6 10:56:42.987903 [MAIN ] num active CSIs 0
Feb 6 10:56:42.987933 [MAIN ] num standby CSIs 0
Feb 6 10:56:42.987963 [MAIN ] restart count 0
Feb 6 10:56:42.987990 [MAIN ] assigned CSIs:
Feb 6 10:56:42.988020 [MAIN ] safSU=SERVICE_X_1
Feb 6 10:56:42.988047 [MAIN ] oper state: ENABLED
Feb 6 10:56:42.988073 [MAIN ] admin state: UNLOCKED
Feb 6 10:56:42.988102 [MAIN ] readiness state: IN-SERVICE
Feb 6 10:56:42.988128 [MAIN ] presence state: INSTANTIATED
Feb 6 10:56:42.988158 [MAIN ] hosted by node ha_atca16
Feb 6 10:56:42.988195 [MAIN ] num active SIs 1
Feb 6 10:56:42.988227 [MAIN ] num standby SIs 0
Feb 6 10:56:42.988256 [MAIN ] restart count 0
Feb 6 10:56:42.988288 [MAIN ] restart control state 0
Feb 6 10:56:42.988314 [MAIN ] SU failover cnt 0
Feb 6 10:56:42.988342 [MAIN ] assigned SIs:
Feb 6 10:56:42.988369 [MAIN ] safSi=WL2
Feb 6 10:56:42.988396 [MAIN ] HA state: ACTIVE
Feb 6 10:56:42.988426 [MAIN ] safSi=WL1
Feb 6 10:56:42.988453 [MAIN ] HA state: UNKNOWN
Feb 6 10:56:42.988483 [MAIN ] safComp=B
Feb 6 10:56:42.988509 [MAIN ] oper state: ENABLED
Feb 6 10:56:42.988536 [MAIN ] readiness state: IN-SERVICE
Feb 6 10:56:42.988563 [MAIN ] presence state: INSTANTIATED
Feb 6 10:56:42.988596 [MAIN ] num active CSIs 1
Feb 6 10:56:42.988630 [MAIN ] num standby CSIs 0
Feb 6 10:56:42.988658 [MAIN ] restart count 0
Feb 6 10:56:42.988685 [MAIN ] assigned CSIs:
Feb 6 10:56:42.988714 [MAIN ] safCSI=WL2-2
Feb 6 10:56:42.988741 [MAIN ] HA state: ACTIVE
Feb 6 10:56:42.988769 [MAIN ] safCSI=WL1-2
Feb 6 10:56:42.988795 [MAIN ] HA state: UNKNOWN
Feb 6 10:56:42.988831 [MAIN ] safComp=A
Feb 6 10:56:42.988859 [MAIN ] oper state: ENABLED
Feb 6 10:56:42.988886 [MAIN ] readiness state: IN-SERVICE
Feb 6 10:56:42.988913 [MAIN ] presence state: INSTANTIATED
Feb 6 10:56:42.988945 [MAIN ] num active CSIs 1
Feb 6 10:56:42.988980 [MAIN ] num standby CSIs 0
Feb 6 10:56:42.989007 [MAIN ] restart count 0
Feb 6 10:56:42.989034 [MAIN ] assigned CSIs:
Feb 6 10:56:42.989063 [MAIN ] safCSI=WL2-1
Feb 6 10:56:42.989091 [MAIN ] HA state: ACTIVE
Feb 6 10:56:42.989121 [MAIN ] safCSI=WL1-1
Feb 6 10:56:42.989151 [MAIN ] HA state: UNKNOWN
Feb 6 10:56:42.989182 [MAIN ] safSi=WL2
Feb 6 10:56:42.989208 [MAIN ] admin state: UNLOCKED
Feb 6 10:56:42.989247 [MAIN ] assignm. state: PARTIALLY-ASSIGNED
Feb 6 10:56:42.989294 [MAIN ] active assignments: 1
Feb 6 10:56:42.989330 [MAIN ] standby assignments: 0
Feb 6 10:56:42.989358 [MAIN ] safCsi=WL2-2
aisexec: amfsg.c:337: assign_si_assumed_cbfn: Assertion `0' failed.
Feb 6 10:56:42.989389 [MAIN ] safCsi=WL2-1
Can you help me?
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the Openais
mailing list