- **status**: unassigned --> accepted
- **assigned_to**: Vu Minh Nguyen
- **Part**: - --> d
---
** [tickets:#2054] log: creating new directory wrongly when changing new
logRootDirectory**
**Status:** accepted
**Milestone:** 5.0.2
**Created:** Wed Sep 21, 2016 04:18 AM UTC by Canh Truong
**Last Updated:** Wed Sep 21, 2016 04:52 AM UTC
**Owner:** Vu Minh Nguyen
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:lgs_util.cc:0486] TR logsv_root_dir
"/srv/shared/saflog"
Sep 21 11:02:28.045554 osaflogd [463:lgs_util.cc:0487] TR path "./test"
Sep 21 11:02:28.045586 osaflogd [463:lgs_filehdl.cc:0341] >> make_log_dir_hdl
Sep 21 11:02:28.045604 osaflogd [463:lgs_filehdl.cc:0343] TR rootpath
"/srv/shared/saflog"
Sep 21 11:02:28.045621 osaflogd [463:lgs_filehdl.cc:0344] TR relpath "./test"
Sep 21 11:02:28.045643 osaflogd [463:lgs_filehdl.cc:0368] TR make_log_dir_hdl -
Path to create "/srv/shared/saflog/./test/"
Sep 21 11:02:28.045682 osaflogd [463:lgs_filehdl.cc:0389] TR make_log_dir_hdl -
Dir "/srv/shared/saflog/./test/" created
Sep 21 11:02:28.045701 osaflogd [463:lgs_filehdl.cc:0393] << make_log_dir_hdl:
mldh_rc = 0
Sep 21 11:02:28.046676 osaflogd [463:lgs_util.cc:0511] << lgs_make_reldir_h: rc
= 0
Sep 21 11:02:28.047021 osaflogd [463:lgs_util.cc:0104] TR
lgs_create_config_file_h - Config file path "/srv/shared/./test/TestApp7.cfg"
Sep 21 11:02:28.047075 osaflogd [463:lgs_filehdl.cc:0156] >>
create_config_file_hdl
Sep 21 11:02:28.047096 osaflogd [463:lgs_filehdl.cc:0158] TR
create_config_file_hdl - file_path "/srv/shared/./test/TestApp7.cfg"
Sep 21 11:02:28.048062 osaflogd [463:lgs_filehdl.cc:0168] NO Could not open
'/srv/shared/./test/TestApp7.cfg' - No such file or directory
Sep 21 11:02:28.048192 osaflogd [463:lgs_filehdl.cc:0218] <<
create_config_file_hdl: rc = -1
Sep 21 11:02:28.048255 osaflogd [463:lgs_util.cc:0165] <<
lgs_create_config_file_h: rc = -1
Sep 21 11:02:28.049655 osaflogd [463:lgs_imm.cc:1868] ER New config file could
not be created for stream: safLgStrCfg=TestApp7
Sep 21 11:02:28.049820 osaflogd [463:lgs_stream.cc:0667] >> log_file_open
Sep 21 11:02:28.049847 osaflogd [463:lgs_stream.cc:0671] TR log_file_open -
Opening file "/srv/shared/./test/TestApp7_20160921_110227.log"
Sep 21 11:02:28.049865 osaflogd [463:lgs_stream.cc:0066] >> fileopen_h
Sep 21 11:02:28.049883 osaflogd [463:lgs_stream.cc:0082] TR fileopen_h -
filepath "/srv/shared/./test/TestApp7_20160921_110227.log"
Sep 21 11:02:28.050923 osaflogd [463:lgs_filehdl.cc:0417] >> fileopen_hdl
Sep 21 11:02:28.050993 osaflogd [463:lgs_filehdl.cc:0419] TR fileopen_hdl -
filepath "/srv/shared/./test/TestApp7_20160921_110227.log"
Sep 21 11:02:28.051185 osaflogd [463:lgs_filehdl.cc:0436] IN Could not open:
/srv/shared/./test/TestApp7_20160921_110227.log - No such file or directory
Sep 21 11:02:28.051232 osaflogd [463:lgs_filehdl.cc:0457] << fileopen_hdl
Sep 21 11:02:28.051285 osaflogd [463:lgs_stream.cc:0100] << fileopen_h
Sep 21 11:02:28.051314 osaflogd [463:lgs_stream.cc:0678] << log_file_open
Sep 21 11:02:28.051686 osaflogd [463:lgs_imm.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