- **status**: review --> fixed
- **assigned_to**: Canh Truong -->  nobody 
- **Comment**:

commit 89c579247b5b43122301b248433b319054178b58 (HEAD -> develop, 
origin/develop)
Author: Canh Van Truong <[email protected]>
Date:   Thu Feb 28 10:50:42 2019 +0700

    log: fix last value of logRecordDestinationConfiguration is not deleted 
[#3014]

    When using the command "immcfg logConfig=1,safApp=safLogService -a
    logRecordDestinationConfiguration-=<VALUE>" If there is just one value
    in the multi attribute and we delete last one, the value will be
    deleted in imm database but it is not deleted in LGD.

    The patch update the attribute "logRecordDestinationConfiguration" =
    empty in lgd after the last value is deleted.



---

** [tickets:#3014] log: The value of logRecordDestinationConfiguration is not 
deleted in lgd**

**Status:** fixed
**Milestone:** 5.19.03
**Created:** Thu Feb 28, 2019 03:33 AM UTC by Canh Truong
**Last Updated:** Fri Mar 01, 2019 10:36 AM UTC
**Owner:** nobody


After removing value 
"saLogSystem_dest;UNIX_SOCKET;/var/run/stream/CMW_saLogSystem.sock" from 
logRecordDestinationConfiguration of logConfig=1 successfully

SC-2-1:~ # immlist logConfig=1,safApp=safLogService
Name                                               Type         Value(s)
========================================================================
logStreamSystemLowLimit                            SA_UINT32_T  100 (0x64)
logStreamSystemHighLimit                           SA_UINT32_T  10500 (0x2904)
logStreamFileFormat                                SA_STRING_T  @Cr 
@CY-@Cm-@CdT@Ch:@Cn:@Cs.@Ck@Cz @Cp @Cq @Sl @Sv: "@Cb"
logStreamAppLowLimit                               SA_UINT32_T  1000 (0x3e8)
logStreamAppHighLimit                              SA_UINT32_T  52500 (0xcd14)
logRootDirectory                                   SA_STRING_T  
/storage/no-backup/coremw/var/log/saflog
**logRecordDestinationConfiguration                  SA_STRING_T  <Empty>**
logMaxLogrecsize                                   SA_UINT32_T  32767 (0x7fff)
logMaxApplicationStreams                           SA_UINT32_T  64 (0x40)
logFileSysConfig                                   SA_UINT32_T  1 (0x1)
logFileIoTimeout                                   SA_UINT32_T  500 (0x1f4)
logDataGroupname                                   SA_STRING_T  cmw-log-data
logConfig                                          SA_STRING_T  logConfig=1
SaImmAttrImplementerName                           SA_STRING_T  safLogService
SaImmAttrClassName                                 SA_STRING_T  OpenSafLogConfig
SaImmAttrAdminOwnerName                            SA_STRING_T  <Empty>

 

The runtime object logConfig=current was not updated accordingly

SC-2-1:~ # immlist logConfig=currentConfig,safApp=safLogService
Name                                               Type         Value(s)
========================================================================
logStreamSystemLowLimit                            SA_UINT32_T  100 (0x64)
logStreamSystemHighLimit                           SA_UINT32_T  10500 (0x2904)
logStreamFileFormat                                SA_STRING_T  @Cr 
@CY-@Cm-@CdT@Ch:@Cn:@Cs.@Ck@Cz @Cp @Cq @Sl @Sv: "@Cb"
logStreamAppLowLimit                               SA_UINT32_T  1000 (0x3e8)
logStreamAppHighLimit                              SA_UINT32_T  52500 (0xcd14)
logRootDirectory                                   SA_STRING_T  
/storage/no-backup/coremw/var/log/saflog
logRecordDestinationStatus                         SA_STRING_T  <Empty>
**logRecordDestinationConfiguration                  SA_STRING_T  
saLogSystem_dest;UNIX_SOCKET;/var/run/stream/CMW_saLogSystem.sock**
logMaxLogrecsize                                   SA_UINT32_T  32767 (0x7fff)
logMaxApplicationStreams                           SA_UINT32_T  64 (0x40)
logFileSysConfig                                   SA_UINT32_T  1 (0x1)
logFileIoTimeout                                   SA_UINT32_T  500 (0x1f4)
logDataGroupname                                   SA_STRING_T  cmw-log-data
logConfig                                          SA_STRING_T  
logConfig=currentConfig
SaImmAttrImplementerName                           SA_STRING_T  safLogService
SaImmAttrClassName                                 SA_STRING_T  
OpenSafLogCurrentConfig
SaImmAttrAdminOwnerName                            SA_STRING_T  <Empty>



---

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

Reply via email to