- **summary**: incorrect/irrelevant logging during loading with modified xml 
file --> IMM incorrect/irrelevant logging during loading with modified/corrupt 
xml file
- **status**: unassigned --> invalid
- **Priority**: major --> minor
- **Comment**:

I could not reproduce the problem.

When you dump an object to xml, the implementer attribute is dumped also
if there had been an implementer set for that object/class in the system.
If you then add another implementer-name attribute you would get the
error message about several values for an attribute that was not flagged
as multivalued in the class. 

In addition, when/if you edit an xml file manually you have to be VERY 
carefull not to miss a tag or cerate a duplicate tag. This would cause
the xml parser to derail and you can get all kinds of strange error
messages, simply due to the skewed parsing. 

Obviously loading from a correct xml file works. We do it all the time
here. 

I can agree that loading from a corrupt xml file can lead to hard
to understand and possibly missleading error messages. 
But that is not so easy to fix. We are using libxml.
In any case the error message about an attribute not being multivalued
I could only reproduce my having multiple values (same attribute name
tag several times) for an attribute that was single valued and that
seems then to be a reasonable error message. 




---

** [tickets:#1145] IMM incorrect/irrelevant logging during loading with 
modified/corrupt xml file**

**Status:** invalid
**Milestone:** 4.3.3
**Created:** Tue Sep 30, 2014 01:57 PM UTC by surender khetavath
**Last Updated:** Tue Sep 30, 2014 01:57 PM UTC
**Owner:** nobody

Changeset : 5918

Test:
Create a class and object
dump to xml file
Edit the xml file to include the below tags under the object DN

    <attr>
      <name>SaImmAttrImplementerName</name>
      <value>IMPL</value>
    </attr>


i.e From : 
  <object class="accessclass">
    <dn>accessdnvalue</dn>
    <attr>
      <name>SaImmAttrClassName</name>
      <value>accessclass</value>
    </attr>
  </object>

TO : 

  <object class="accessclass">
    <dn>accessdnvalue</dn>
    <attr>
      <name>SaImmAttrClassName</name>
      <value>accessclass</value>
    </attr>
    <attr>
      <name>SaImmAttrImplementerName</name>
      <value>IMPL</value>
    </attr>
  </object>

Now upload this modified xml file, with RepositoryInit pointing to load from 
XML file.

Below is the ERR_INVALID_PARAM is observed and the reason being "it is not 
multivalued attribute, and multiple values provided in create call"


Sep 30 19:06:41 SC-1 osafimmnd[12018]: NO ERR_INVALID_PARAM: attr 
'logStreamSystemLowLimit' is not multivalued yet multiple values provided in 
create call
Sep 30 19:06:41 SC-1 osafimmloadd: ER Failed to create object err: 7, class: 
OpenSafLogConfig, dn: 'logConfig=1'. Check for duplicate attributes, or trace 
osafimmloadd
Sep 30 19:06:41 SC-1 osafimmloadd: NO Failed to create object - exiting
Sep 30 19:06:41 SC-1 osafimmnd[12018]: NO Ccb 2 ABORTED (IMMLOADER)
Sep 30 19:06:41 SC-1 osafimmnd[12018]: WA Hard close of admin owner IMMLOADER 
id(2)=> Loading must have failed
Sep 30 19:06:41 SC-1 osafimmnd[12018]: ER LOADING APPARENTLY FAILED status:1
Sep 30 19:06:41 SC-1 osafimmd[11982]: ER ******** LOADING FAILED. File(s) 
possibly missing, inaccessible or corrupt .. ? *********
Sep 30 19:06:41 SC-1 opensafd[11931]: ER Could Not RESPAWN IMMND
Sep 30 19:06:41 SC-1 opensafd[11931]: ER Failed   DESC:IMMND
Sep 30 19:06:41 SC-1 opensafd[11931]: ER Trying To RESPAWN 
/usr/lib64/opensaf/clc-cli/osaf-immnd attempt #2
Sep 30 19:06:41 SC-1 opensafd[11931]: ER Sending SIGKILL to IMMND, pid=12013
Sep 30 19:06:41 SC-1 osafimmnd[12018]: ER IMMND - Periodic server job failed
Sep 30 19:06:41 SC-1 osafimmnd[12018]: ER Failed, exiting...
Sep 30 19:06:41 SC-1 osafimmd[11982]: WA IMMND coordinator at 2010f apparently 
crashed => electing new coord
Sep 30 19:06:41 SC-1 osafimmd[11982]: ER Failed to find candidate for new IMMND 
coordinator
Sep 30 19:06:41 SC-1 osafimmd[11982]: ER Active IMMD has to restart the IMMSv. 
All IMMNDs will restart
Sep 30 19:06:41 SC-1 osafimmd[11982]: NO Cluster failed to load => IMMDs will 
not exit.


In the modified xml file, nothing has been changed w.r.t object 
logStreamSystemLowLimit. Yet, the irrelevant error.


---

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.
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to