I am running a simple Amf demo for counting which uses checkpoint on opensaf 
verion 5.18.04.

   1)I created the checkpoint with creation flags SA_CKPT_CHECKPOINT_COLLOCATED 
| SA_CKPT_WR_ACTIVE_REPLICA on both SC-1(Active) and SC-2(Standby).
   2)I am writing into the checkpoint opened in SC-1 and reading it from the 
SC-2.
   3)root@mohan-VirtualBox:/home/mohan/opensaf-code/samples/amf/sa_aware# 
amf-state siass
safSISU=safSu=SC-1\,safSg=2N\,safApp=OpenSAF,safSi=SC-2N,safApp=OpenSAF
        saAmfSISUHAState=ACTIVE(1)
        saAmfSISUHAReadinessState=READY_FOR_ASSIGNMENT(1)
safSISU=safSu=SC-1\,safSg=NoRed\,safApp=OpenSAF,safSi=NoRed1,safApp=OpenSAF
        saAmfSISUHAState=ACTIVE(1)
        saAmfSISUHAReadinessState=READY_FOR_ASSIGNMENT(1)
safSISU=safSu=SU1\,safSg=AmfDemo\,safApp=AmfDemo1,safSi=AmfDemo,safApp=AmfDemo1
        saAmfSISUHAState=ACTIVE(1)
        saAmfSISUHAReadinessState=READY_FOR_ASSIGNMENT(1)
safSISU=safSu=SC-2\,safSg=NoRed\,safApp=OpenSAF,safSi=NoRed2,safApp=OpenSAF
        saAmfSISUHAState=ACTIVE(1)
        saAmfSISUHAReadinessState=READY_FOR_ASSIGNMENT(1)
safSISU=safSu=SC-2\,safSg=2N\,safApp=OpenSAF,safSi=SC-2N,safApp=OpenSAF
        saAmfSISUHAState=STANDBY(2)
        saAmfSISUHAReadinessState=READY_FOR_ASSIGNMENT(1)
safSISU=safSu=SU2\,safSg=AmfDemo\,safApp=AmfDemo1,safSi=AmfDemo,safApp=AmfDemo1
        saAmfSISUHAState=STANDBY(2)
        saAmfSISUHAReadinessState=READY_FOR_ASSIGNMENT(1)
root@mohan-VirtualBox:/home/mohan/opensaf-code/samples/amf/sa_aware#
   4)I used the following Amf commands to unlock and lock
    
        a)lock(SC-1)
        root@mohan-VirtualBox:/home/mohan/opensaf-code/samples/amf/sa_aware# 
amf-adm lock   safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1
        b)unlock(sc-1)
        root@mohan-VirtualBox:/home/mohan/opensaf-code/samples/amf/sa_aware# 
amf-adm unlock-in safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1
        root@mohan-VirtualBox:/home/mohan/opensaf-code/samples/amf/sa_aware# 
amf-adm unlock safSu=SU1,safSg=AmfDemo,safApp=AmfDemo1
        c)lock(SC-2)
        root@mohan-VirtualBox:/home/mohan/opensaf-code/samples/amf/sa_aware# 
amf-adm lock   safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1
        d)unlock(sc-2)
        root@mohan-VirtualBox:/home/mohan/opensaf-code/samples/amf/sa_aware# 
amf-adm unlock-in safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1
        root@mohan-VirtualBox:/home/mohan/opensaf-code/samples/amf/sa_aware# 
amf-adm unlock safSu=SU2,safSg=AmfDemo,safApp=AmfDemo1

   5)syslog traces on sc-1(Active)
        Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: Health check .. 157
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: 0. Setting the Active Replica 
for my checkpoint ....
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: 1. Setting the Active Replica 
for my checkpoint ....
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: saCkptActiveReplicaSet Success 
....
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: Created Section ....
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: saCkptSectionCreate PASSED
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: Writing to Checkpoint 
safCkpt=DemoCkpt,safApp=safCkptService ....
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: Section-Id = 11 ....
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: CheckpointData being written = 
"************ This is the saCkptCheckpointTrackCallback demo ***********"
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: DataOffset = 0 ....
Aug 29 15:38:17 mohan-VirtualBox amf_demo[7343]: saCkptCheckpointWrite PASSED
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: Health check .. 158
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: 0. Setting the Active Replica 
for my checkpoint ....
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: 1. Setting the Active Replica 
for my checkpoint ....
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: saCkptActiveReplicaSet Success 
....
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: Created Section ....
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: saCkptSectionCreate Failed
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: Writing to Checkpoint 
safCkpt=DemoCkpt,safApp=safCkptService ....
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: Section-Id = 11 ....
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: CheckpointData being written = 
"************ This is the saCkptCheckpointTrackCallback demo ***********"
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: DataOffset = 0 ....
Aug 29 15:38:28 mohan-VirtualBox amf_demo[7343]: saCkptCheckpointWrite PASSED
        

   6)syslog traces on SC-2(Standby)
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Health check .. 162
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: 0. Setting the Active Replica 
for my checkpoint ....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: 2. Standby Setting the Active 
Replica for my checkpoint ....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Waiting to Read from 
Checkpoint safCkpt=DemoCkpt,safApp=safCkptService....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Checkpoint Data Read = 
"************ This is the saCkptCheckpointTrackCallback demo ***********"
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: PASSED
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Health check .. 163
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: 0. Setting the Active Replica 
for my checkpoint ....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: 2. Standby Setting the Active 
Replica for my checkpoint ....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Waiting to Read from 
Checkpoint safCkpt=DemoCkpt,safApp=safCkptService....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Checkpoint Data Read = 
"************ This is the saCkptCheckpointTrackCallback demo ***********"
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: PASSED
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Health check .. 164
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: 0. Setting the Active Replica 
for my checkpoint ....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: 2. Standby Setting the Active 
Replica for my checkpoint ....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Waiting to Read from 
Checkpoint safCkpt=DemoCkpt,safApp=safCkptService....
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: Checkpoint Data Read = 
"************ This is the saCkptCheckpointTrackCallback demo ***********"
Aug 29 15:41:27 mohan-VirtualBox amf_demo[9321]: PASSED




---

** [tickets:#467] checkpoint with COLLOCATED flag forcing to register for 
arrival callback**

**Status:** accepted
**Milestone:** 5.18.08
**Created:** Mon Jun 24, 2013 06:36 AM UTC by A V Mahesh (AVM)
**Last Updated:** Wed Aug 29, 2018 09:52 AM UTC
**Owner:** Mohan  Kanakam


 am using opensaf 4.0.0
http://devel.opensaf.org/ticket/1866


I am running a simple Amf demo for counting which uses checkpoint.


my checkpoint creation flags are : SA_CKPT_CHECKPOINT_COLLOCATED| 
SA_CKPT_WR_ALL_REPLICAS


i tested it on a 2 node cluster(both target hardware and UML nodes).


problem is that unless i register for arrivalcallback, my standby component is 
faulting. amf is reporting healthcheck timeout.


i tested for SA_CKPT_CHECKPOINT_COLLOCATED| SA_CKPT_WR_ACTIVE_REPLICA also . I 
am facing facing same issue.


If I remove the collocated flag, it works fine. 





---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to