- **status**: review --> fixed
- **Comment**:

opensaf-4.5.x:

changeset:   5711:abd2e0576ccc
branch:      opensaf-4.5.x
parent:      5709:ea15bcddfabd
user:        Zoran Milinkovic <zoran.milinko...@ericsson.com>
date:        Wed Sep 03 16:13:55 2014 +0200
summary:     imm: fix loading long DNs from imm.xml and PBE [#974]

-----

default(4.6):

changeset:   5712:5a6ab7a375aa
tag:         tip
parent:      5710:487531132423
user:        Zoran Milinkovic <zoran.milinko...@ericsson.com>
date:        Wed Sep 03 16:13:55 2014 +0200
summary:     imm: fix loading long DNs from imm.xml and PBE [#974]



---

** [tickets:#974] IMM: Loading of xml or PBE will fail with objects having 
longdns**

**Status:** fixed
**Milestone:** 4.5.0
**Created:** Fri Aug 01, 2014 11:33 AM UTC by Neelakanta Reddy
**Last Updated:** Tue Aug 26, 2014 02:16 PM UTC
**Owner:** Zoran Milinkovic

Description:

1. Create the longdn objects with dn  Lexicographic ahead of dn 
"opensafImm=opensafImm,safApp=safImmService"

2. take the dump with immdump or load from PBE.

3. restart the cluster and try to load with the xml generated by immdump or 
imm.db

4. loading fails with following error:

syslog:
Aug  1 16:51:43 Slot-3 osafimmloadd: NO Load starting
Aug  1 16:51:43 Slot-3 osafimmloadd: NO IMMSV_PBE_FILE is defined (imm.db) 
check it for existence and SaImmRepositoryInitModeT
Aug  1 16:51:43 Slot-3 osafimmloadd: IN File '/etc/opensaf/imm.db' is not 
accessible for read/write, cause:No such file or directory
Aug  1 16:51:43 Slot-3 osafimmloadd: WA Could not open repository:imm.db
Aug  1 16:51:43 Slot-3 osafimmloadd: NO ***** Loading from XML file imm.xml at 
/etc/opensaf *****
Aug  1 16:51:43 Slot-3 osafimmloadd: ER Failed to create object err: 13, class: 
testClass6, dn: 
'LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLtEstAttr=0'.
 Check for duplicate attributes, or trace osafimmloadd
Aug  1 16:51:43 Slot-3 osafimmloadd: NO Failed to create object - exiting
Aug  1 16:51:43 Slot-3 osafimmnd[5640]: WA Hard close of admin owner IMMLOADER 
id(1)=> Loading must have failed
Aug  1 16:51:43 Slot-3 osafimmnd[5640]: ER LOADING APPARENTLY FAILED status:1
Aug  1 16:51:43 Slot-3 osafimmd[5625]: ER ******** LOADING FAILED. File(s) 
possibly missing, inaccessible or corrupt .. ? *********
Aug  1 16:51:43 Slot-3 opensafd[5564]: ER Failed   DESC:IMMND

IMMND traces:

Aug  1 16:51:43.313401 osafimmnd [5640:immnd_evt.c:5605] >> 
immnd_evt_proc_object_create
Aug  1 16:51:43.313409 osafimmnd [5640:ImmModel.cc:6423] >> ccbObjectCreate
Aug  1 16:51:43.313415 osafimmnd [5640:ImmModel.cc:6436] T2 parentName:
Aug  1 16:51:43.313423 osafimmnd [5640:ImmModel.cc:2563] >> getLongDnsAllowed
Aug  1 16:51:43.313428 osafimmnd [5640:ImmModel.cc:2574] << getLongDnsAllowed
Aug  1 16:51:43.313453 osafimmnd [5640:ImmModel.cc:6758] T7 ERR_NAME_TOO_LONG: 
DN is too long, size:786, max size is:2048
Aug  1 16:51:43.313461 osafimmnd [5640:ImmModel.cc:7376] << ccbObjectCreate
Aug  1 16:51:43.313467 osafimmnd [5640:immnd_evt.c:5774] T2 send immediate 
reply to client/agent

The loading failed because longDnsPermitted is false(getLongDnsAllowed () will 
return false). The possible solution may be delay the loading of objects until 
IMM object opensafImm=opensafImm,safApp=safImmService is created or if longdns 
are present delay the longdn objects until 
opensafImm=opensafImm,safApp=safImmService is 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.
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to