The problem here is that the new root path is not saved correctly on standby
when changed using an imm command. In the “old” logservice this was done in the
log service imm OI both on active and standby (applier). This is changed in the
“new” 4.4 variant so that the new root path is check-pointed instead. The
problem is that the new root path is not saved in the lgs_cb->logRootDirectory
on standby. I have a fix for this problem. This fix is however done in the code
that is updated with the fix for #688 so I cannot push it until after #688 is
pushed. When requesting review for #688 I will also send out the review request
for #711.
Code for getting a default root path from PKGLOGDIR can be found in
lgs_filehdl.c , make_log_dir_hdl() but it is commented out.
/Lennart
From: Mathi Naickan [mailto:mathi-naic...@users.sf.net]
Sent: den 21 januari 2014 17:41
To: [opensaf:tickets]
Subject: [opensaf:tickets] #711 log record write FAILED with
SA_AIS_ERR_TRY_AGAIN after failover
when the rootpath is configured with a junk folder,and when mkdir fails,
The intention is to default to PKGLOGDIR dir,
but the new_rootstr is not getting filled with any value(should filled with
PKGLOGDIR), in
the below line:
/* Handle a possible change of root dir to default */
if (new_rootstr[0] != '\0') {
lgs_imm_rootpathconf_set(new_rootstr);
TRACE("%s - new_rootstr \"%s\"",__FUNCTION__,new_rootstr);
}
We can fill with a default path in the above line, or we can fill a default
rootpath when reading from IMM itself(after validating).
What do you say?
________________________________
[tickets:#711]<http://sourceforge.net/p/opensaf/tickets/711/> log record write
FAILED with SA_AIS_ERR_TRY_AGAIN after failover
Status: unassigned
Created: Wed Jan 08, 2014 12:08 PM UTC by Sirisha Alla
Last Updated: Thu Jan 09, 2014 03:32 PM UTC
Owner: elunlen
Performed failover and through saflogger tried to write a log record into
standard streams, but write failed with SA_AIS_ERR_TRY_AGAIN. From the syslog,
it is observed that logsv is not able to get the logRootDirectory on the new
active controller and trying to create with the junk characters.
Snippet from the syslog
==========================================================
Jan 8 16:16:24 OpenSAF-SLOT2 opensaf_reboot: Rebooting remote node in the
absence of PLM is outside the scope of OpenSAF
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO LOG Root path does not exist.
Will be created
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: ER Making directory error
Permission denied
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO lgsv root path is changed to
"àf]·àf]·8ä^H^H8ä^H^H"
Jan 8 16:16:24 OpenSAF-SLOT2 osafamfd[3158]: NO Node 'SC-1' left the cluster
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO LOG Root path does not exist.
Will be created
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: ER Making directory error
Permission denied
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO lgsv root path is changed to
"àf]·àf]·8ä^H^H8ä^H^H"
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: WA Create directory
'àf]·àf]·8ä^H^H8ä^H^H/.' failed
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: ER write_log_record_hdl - write
FAILED: Bad file descriptor
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO LOG Root path does not exist.
Will be created
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: ER Making directory error
Permission denied
==============================================================================
________________________________
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/opensaf/tickets/711/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
---
** [tickets:#711] log record write FAILED with SA_AIS_ERR_TRY_AGAIN after
failover**
**Status:** unassigned
**Created:** Wed Jan 08, 2014 12:08 PM UTC by Sirisha Alla
**Last Updated:** Tue Jan 21, 2014 04:40 PM UTC
**Owner:** elunlen
Performed failover and through saflogger tried to write a log record into
standard streams, but write failed with SA_AIS_ERR_TRY_AGAIN. From the syslog,
it is observed that logsv is not able to get the logRootDirectory on the new
active controller and trying to create with the junk characters.
Snippet from the syslog
==========================================================
Jan 8 16:16:24 OpenSAF-SLOT2 opensaf_reboot: Rebooting remote node in the
absence of PLM is outside the scope of OpenSAF
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO LOG Root path does not exist.
Will be created
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: ER Making directory error
Permission denied
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO lgsv root path is changed to
"àf]·àf]·8ä^H^H8ä^H^H"
Jan 8 16:16:24 OpenSAF-SLOT2 osafamfd[3158]: NO Node 'SC-1' left the cluster
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO LOG Root path does not exist.
Will be created
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: ER Making directory error
Permission denied
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO lgsv root path is changed to
"àf]·àf]·8ä^H^H8ä^H^H"
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: WA Create directory
'àf]·àf]·8ä^H^H8ä^H^H/.' failed
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: ER write_log_record_hdl - write
FAILED: Bad file descriptor
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: NO LOG Root path does not exist.
Will be created
Jan 8 16:16:24 OpenSAF-SLOT2 osaflogd[3112]: ER Making directory error
Permission denied
==============================================================================
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is
subscribed to http://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
http://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets