- **status**: review --> fixed
- **assigned_to**: Vu Minh Nguyen -->  nobody 
- **Comment**:

changeset:   8213:32824c74a736
tag:         tip
parent:      8209:1eceec883b6c
user:        Vu Minh Nguyen <vu.m.ngu...@dektech.com.au>
date:        Wed Oct 12 15:47:24 2016 +0700
summary:     log: fix failure to create directory when changing 
logRootDirectory [#2054]

changeset:   8212:38f928e934cc
branch:      opensaf-5.1.x
parent:      8210:f6e7f4b93028
user:        Vu Minh Nguyen <vu.m.ngu...@dektech.com.au>
date:        Wed Oct 12 15:47:24 2016 +0700
summary:     log: fix failure to create directory when changing 
logRootDirectory [#2054]

changeset:   8211:9a42c66ed888
branch:      opensaf-5.0.x
parent:      8205:948f0b033f1f
user:        Vu Minh Nguyen <vu.m.ngu...@dektech.com.au>
date:        Wed Oct 12 15:47:24 2016 +0700
summary:     log: fix failure to create directory when changing 
logRootDirectory [#2054]




---

** [tickets:#2054] log: fail to create directory when changing 
logRootDirectory**

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


Steps to produce issue:

1/ Create new appstream with pathname: 
> immcfg -c SaLogStreamConfig  safLgStrCfg=TestApp7 -a 
> saLogStreamPathName=./test -a  saLogStreamFileName=TestApp7

2/ Change root directory:
>     immcfg -a logRootDirectory=/srv/shared logConfig=1,safApp=safLogService
>     


osaflogd trace log:

> 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
> 


New directory is not created. In consequence, creating cfg/log file of stream 
are failed.


---

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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to