The network name shall be seen as an alias for a cluster to be used as a
complement to the existing cluster identity. Unlike the cluster identity the
alias shall be possible to change at any time without affecting any OpenSAF
functionality except of course features using the alias, in this case the new
token that can be used when formatting log records.
Solution proposal:
- Add a new configuration attribute of SA STRING type to the SaClmCluster,
"saClmNetworkName".
- Update the CLM OI to handle this attribute. Which means that changing
to any name is allowed.
- Create an applier in the log server to detect runtime changes of the
saClmNetworkName attribute. The log server will save the name
internally for fast access when formatting log records.
- The log server will also use an IMM object manager to initially read
the value.
For detailed clarification I have attached three patches that implements the
solution:
1.
clm_1480_prot.patch
Adds the saClmNetworkName attribute to the SaClmCluster class definition and
updates the CLM OI to handle the attribute.
2.
lgs_1480_prot.patch
Adds an applier "unit" to the log server that detects and handles the attribute
It also adds some test code in the lgs_main.c main() function.
3.
lgs_1480_prot_impl.patch
Implements applier start and stop:
- Start of active log server. Start applier
- HA state change. Stop applier on node becoming standby and start on node
becoming active
Remove test code mentioned in 2.
Add new TRACE writing current network name in the initialize process in the evt
handler.
Attachments:
-
[clm_1480_prot.patch](https://sourceforge.net/p/opensaf/tickets/_discuss/thread/1590600f/5722/attachment/clm_1480_prot.patch)
(6.3 kB; application/octet-stream)
-
[lgs_1480_prot.patch](https://sourceforge.net/p/opensaf/tickets/_discuss/thread/1590600f/5722/attachment/lgs_1480_prot.patch)
(35.7 kB; application/octet-stream)
-
[lgs_1480_prot_impl.patch](https://sourceforge.net/p/opensaf/tickets/_discuss/thread/1590600f/5722/attachment/lgs_1480_prot_impl.patch)
(6.0 kB; application/octet-stream)
---
** [tickets:#1480] LOG: Extend information about origin of log record**
**Status:** accepted
**Milestone:** 5.0.FC
**Created:** Tue Sep 15, 2015 12:50 PM UTC by elunlen
**Last Updated:** Sun Nov 01, 2015 09:36 PM UTC
**Owner:** elunlen
Add the possibility to show network name and CLM node name or node id as an
extension of the already existing way of showing the origin of a log record.
For a detailed description of what to implement see the attached .odt document.
To show/document how this can be implemented the ticket will be complimented
with a series of prototype patches that will be attached when ready
---
Sent from sourceforge.net because [email protected] 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.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets