- **Milestone**: 4.7.2 --> 5.0.2


---

** [tickets:#2054] log: creating new directory wrongly when changing new 
logRootDirectory**

**Status:** unassigned
**Milestone:** 5.0.2
**Created:** Wed Sep 21, 2016 04:18 AM UTC by Canh Truong
**Last Updated:** Wed Sep 21, 2016 04:19 AM UTC
**Owner:** nobody


Step to produce issue:
1/ Create new appstream with pathname: 
    immcfg -c SaLogStreamConfig  safLgStrCfg=TestApp7 -a 
saLogStreamPathName=./test -a saLogStreamFileName=TestApp7
2/ Currently the root directory is "/srv/shared/saflog" . Change new root 
directory:
    immcfg -a logRootDirectory=/srv/shared logConfig=1,safApp=safLogService

*Sep 21 11:02:28.045538 osaflogd [463:lgsutil.cc:0486] TR logsvrootdir 
"/srv/shared/saflog"
Sep 21 11:02:28.045554 osaflogd [463:lgsutil.cc:0487] TR path "./test"
Sep 21 11:02:28.045586 osaflogd [463:lgsfilehdl.cc:0341] >> makelogdirhdl
Sep 21 11:02:28.045604 osaflogd [463:lgsfilehdl.cc:0343] TR rootpath 
"/srv/shared/saflog"
Sep 21 11:02:28.045621 osaflogd [463:lgsfilehdl.cc:0344] TR relpath "./test"
Sep 21 11:02:28.045643 osaflogd [463:lgsfilehdl.cc:0368] TR makelogdirhdl - 
Path to create "/srv/shared/saflog/./test/"
Sep 21 11:02:28.045682 osaflogd [463:lgsfilehdl.cc:0389] TR makelogdirhdl - Dir 
"/srv/shared/saflog/./test/" created
Sep 21 11:02:28.045701 osaflogd [463:lgsfilehdl.cc:0393] << makelogdirhdl: 
mldhrc = 0
Sep 21 11:02:28.046676 osaflogd [463:lgsutil.cc:0511] << lgsmakereldirh: rc = 0
Sep 21 11:02:28.047021 osaflogd [463:lgsutil.cc:0104] TR lgscreateconfigfileh - 
Config file path "/srv/shared/./test/TestApp7.cfg"
Sep 21 11:02:28.047075 osaflogd [463:lgsfilehdl.cc:0156] >> createconfigfilehdl
Sep 21 11:02:28.047096 osaflogd [463:lgsfilehdl.cc:0158] TR createconfigfilehdl 
- filepath "/srv/shared/./test/TestApp7.cfg"
Sep 21 11:02:28.048062 osaflogd [463:lgsfilehdl.cc:0168] NO Could not open 
'/srv/shared/./test/TestApp7.cfg' - No such file or directory
Sep 21 11:02:28.048192 osaflogd [463:lgsfilehdl.cc:0218] << 
createconfigfilehdl: rc = -1
Sep 21 11:02:28.048255 osaflogd [463:lgsutil.cc:0165] << lgscreateconfigfileh: 
rc = -1
Sep 21 11:02:28.049655 osaflogd [463:lgsimm.cc:1868] ER New config file could 
not be created for stream: safLgStrCfg=TestApp7
Sep 21 11:02:28.049820 osaflogd [463:lgsstream.cc:0667] >> logfileopen
Sep 21 11:02:28.049847 osaflogd [463:lgsstream.cc:0671] TR logfileopen - 
Opening file "/srv/shared/./test/TestApp720160921110227.log"
Sep 21 11:02:28.049865 osaflogd [463:lgsstream.cc:0066] >> fileopenh
Sep 21 11:02:28.049883 osaflogd [463:lgsstream.cc:0082] TR fileopenh - filepath 
"/srv/shared/./test/TestApp720160921110227.log"
Sep 21 11:02:28.050923 osaflogd [463:lgsfilehdl.cc:0417] >> fileopenhdl
Sep 21 11:02:28.050993 osaflogd [463:lgsfilehdl.cc:0419] TR fileopenhdl - 
filepath "/srv/shared/./test/TestApp720160921110227.log"
Sep 21 11:02:28.051185 osaflogd [463:lgsfilehdl.cc:0436] IN Could not open: 
/srv/shared/./test/TestApp720160921110227.log - No such file or directory
Sep 21 11:02:28.051232 osaflogd [463:lgsfilehdl.cc:0457] << fileopenhdl
Sep 21 11:02:28.051285 osaflogd [463:lgsstream.cc:0100] << fileopenh
Sep 21 11:02:28.051314 osaflogd [463:lgsstream.cc:0678] << logfileopen
Sep 21 11:02:28.051686 osaflogd [463:lgsimm.cc:1878] ER New log file could not 
be created for stream: safLgStrCfg=TestApp7*


The new directory is created then creating new log/cfg file in there. But lgsv 
uses old root directory and pathname to create new directory. So actually the 
new directory is not created.


---

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.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to