AndersW had floated a patch for this - http://list.opensaf.org/pipermail/devel/2013-January/028573.html .
However this topic needs a little more consideration. This ticket/patch by itself isnot having any problems, however it opens up a lot of other things that were not possible without this patch like performing admin op on middleware SU.
One of them is, for AMF to allow the below commands only if they are initiated by SMF, i.e. during upgrade. For instance AMF could achieve this by seeing if a campaign is in progress(sumaintenance campaign attribute?)
amf-adm lock safSu=SC-2\,safSg=2N\,safApp=OpenSAF
amf-adm lock-in safSu=SC-2\,safSg=2N\,safApp=OpenSAF
amf-adm unlock-in safSu=SC-2\,safSg=2N\,safApp=OpenSAF
Also, additional considerations discussed in the below links have to be accounted for:
http://list.opensaf.org/pipermail/devel/2011-September/017903.html
https://sourceforge.net/p/opensaf/tickets/436/
Migrating this ticket for reference:
With the exception of immnd, the services started by NID cannot be restarted by AMF. This is because they always assume that they were started by NID, and therefore do not register with AMF.
The logic in immnd for handling start from either NID or AMF should be reused also in the other NID started services.
Changed 9 months ago by anwi
status changed from new to accepted
Changed 9 months ago by anders
Actually, the IMMD is also monitored by the AMF, but that monitorign can only start
after the AMF is up, which has to be after IMMNDs have loaded.
The problem should only exist for early starting services.
Changed 9 months ago by anders
And "early starting services" I suppose equals NID started services.
Changed 9 months ago by nagendra
Except IMMND, other services are not restartable services. Once any one of those services are down, node reboots.
Changed 9 months ago by hafe
milestone changed from 4.2.2 to future_releases
I removed the milestone for this ticket since we haven't concluded what this is about yet. As Nags say, an active NID started service cannot just be restarted if it crash. But there are other problems. NID does not supervise its started services more than one by one. It forget each one after it has responded. This is not good since when AMF starts any NID started service could be down and it is not really designed for that.
Another use case is that unlock-instantiation of the 2N opensaf SU does not work because of this. This use case could be useful to change the actual AMF model of opensaf itself.
Changed 7 months ago by anwi
priority changed from major to minor
type changed from defect to enhancement
patch_waiting changed from no to yes
Migrated from #2802
changeset: 4763:7fb7ea00badc
user: Anders Widell anders.widell@ericsson.com
date: Fri Dec 20 16:42:41 2013 +0100
summary: clm: Add support for being started by AMF [#443]
changeset: 4764:f22934822975
user: Anders Widell anders.widell@ericsson.com
date: Fri Dec 20 16:42:42 2013 +0100
summary: fm: Add support for being started by AMF [#443]
changeset: 4765:4a0c9d985c49
user: Anders Widell anders.widell@ericsson.com
date: Fri Dec 20 16:42:42 2013 +0100
summary: imm: Add support to IMMD for being started by AMF [#443]
changeset: 4766:4840d53667ea
user: Anders Widell anders.widell@ericsson.com
date: Fri Dec 20 16:42:42 2013 +0100
summary: log: Add support for being started by AMF [#443]
changeset: 4767:e2df10319a3e
user: Anders Widell anders.widell@ericsson.com
date: Fri Dec 20 16:42:42 2013 +0100
summary: ntf: Add support for being started by AMF [#443]
changeset: 4768:b942765a49b8
user: Anders Widell anders.widell@ericsson.com
date: Fri Dec 20 16:42:42 2013 +0100
summary: plm: Add support for being started by AMF [#443]
changeset: 4769:d5547a227d7c
tag: tip
user: Anders Widell anders.widell@ericsson.com
date: Fri Dec 20 16:42:43 2013 +0100
summary: rde: Add support for being started by AMF [#443]
[staging:7fb7ea]
[staging:f22934]
[staging:4a0c9d]
[staging:4840d5]
[staging:e2df10]
[staging:b94276]
[staging:d5547a]
Related
Commit: [4840d5]
Commit: [4a0c9d]
Commit: [7fb7ea]
Commit: [b94276]
Commit: [d5547a]
Commit: [e2df10]
Commit: [f22934]
Tickets:
#443Doc updates are pending. Nagendra to update the AMF PR doc.
Moving this to 4.4 RC2 in preparation for RC1.
The patches are all pushed. High level README update is pending.
Will do it via https://sourceforge.net/p/opensaf/tickets/792/.