- **status**: review --> fixed
- **assigned_to**: Vu Nguyen --> nobody
- **Comment**:
changeset: 6580:d7c7deeb70f7
tag: tip
parent: 6577:7c09a2f59ad5
user: Vu Minh Nguyen <[email protected]>
date: Fri May 22 15:50:55 2015 +0700
summary: log: fix unable to rename cfg file when changing
saLogStreamFileName attribute [#1346]
rev: d7c7deeb70f715f8ddd314202d4b56a5db0a3983
changeset: 6579:739580ef5f0f
branch: opensaf-4.6.x
parent: 6576:91f6d5c44742
user: Vu Minh Nguyen <[email protected]>
date: Fri May 22 16:20:15 2015 +0700
summary: log: fix unable to rename cfg file when changing
saLogStreamFileName attribute [#1346]
rev: 739580ef5f0f0f3833d8487c0cf6b8a61e98eb1a
changeset: 6578:b97fb7dc095d
branch: opensaf-4.5.x
parent: 6575:67be46646536
user: Vu Minh Nguyen <[email protected]>
date: Fri May 22 16:11:36 2015 +0700
summary: log: fix unable to rename cfg file when changing
saLogStreamFileName attribute [#1346]
rev: b97fb7dc095dd99f642bd012b05e6d0dcb2f839f
---
** [tickets:#1346] LOG: Unnable to rename cfg file when changing
saLogStreamFileName attribute**
**Status:** fixed
**Milestone:** 4.5.2
**Created:** Mon Apr 27, 2015 10:27 AM UTC by Vu Nguyen
**Last Updated:** Fri May 08, 2015 03:54 AM UTC
**Owner:** nobody
Steps to reproduce
------------------
Change the saLogStreamFileName attribute by following command:
# immcfg -a saLogStreamFileName="saLogAlarm_test_1st"
safLgStrCfg=saLogAlarm,safApp=safLogService
Observed behaviour
------------------
LOG server fails to rename configuration (cfg) file.
Expected behaviour
------------------
LOG server should rename the old configuration file, then creating new one
(e.g: saLogAlarm_test_1st.cfg) as well as the stream log file (e.g:
aLogAlarm_test_1st_20150423_111434.log)
Error messages
------------------
Apr 23 11:14:34.714378 osaflogd 40028d80 [419:lgs_util.c:0295] T4 Rename file
from /repl_opensaf/saflog/./saLogAlarm_test_1st.cfg
Apr 23 11:14:34.714497 osaflogd 40028d80 [419:lgs_util.c:0296] T4
to /repl_opensaf/saflog/./saLogAlarm_test_1st_20150423_111434.cfg
Apr 23 11:14:34.714655 osaflogd 41f1a700 [419:lgs_filehdl.c:0137] >>
rename_file_hdl
Apr 23 11:14:34.715456 osaflogd 41f1a700 [419:lgs_filehdl.c:0145] NO rename:
FAILED - No such file or directory
Apr 23 11:14:34.716057 osaflogd 41f1a700 [419:lgs_filehdl.c:0149] <<
rename_file_hdl
Apr 23 11:14:34.716397 osaflogd 40028d80 [419:lgs_util.c:0333] <<
lgs_file_rename_h
Apr 23 11:14:34.716573 osaflogd 40028d80 [419:lgs_stream.c:1517] <<
log_stream_config_change
Apr 23 11:14:34.716797 osaflogd 40028d80 [419:lgs_imm.c:2290] ER
log_stream_config_change failed: -1
=========================
NOTE: Need to check this case on application streams too.
---
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.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets