modeling gateway ss crash

Document ID : KB000097218
Last Modified Date : 22/05/2018
Show Technical Document Details
Running modelinggateway import on 10.2.3 box, SpectroSERVER crashes in Segmentation fault

Core was generated by `/sw/spectrum/SS/SpectroSERVER'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f84c489b250 in __strncpy_sse2_unaligned () from /lib64/
Missing separate debuginfos, use: debuginfo-install glibc-2.17-78.el7.x86_64 libgcc-4.8.3-9.el7.x86_64 libstdc++-4.8.3-9.el7.x86_64 nss-softokn-freebl-

(gdb) where
#0 0x00007f84c489b250 in __strncpy_sse2_unaligned () from /lib64/
#1 0x00007f84ca7c4b5b in unpack_string(unsigned char const*, unsigned char const**) () from /opt/SPECTRUM/lib/../SS/
#2 0x00007f84ca7a5c70 in CsHPSESnmpv3Info::CsHPSESnmpv3Info(unsigned char const*, unsigned char const**) () from /opt/SPECTRUM/lib/../SS/
#3 0x00007f84ca7af72f in CsHPSnmpEngine::ResetAndLoadV3Profiles(unsigned char const*) () from /opt/SPECTRUM/lib/../SS/
#4 0x00007f84ce4f414c in SnmpV3ProfileGlobalConfigIH::processProfileData(CsBuffer*) () from /opt/SPECTRUM/lib/../SS/
#5 0x00007f84d03583ec in CsIHMTAttrWatcher::notify(CsIncidentParm const*, CsSecurityIf const*) () from /opt/SPECTRUM/lib/../SS/
#6 0x00007f84d03ae9cf in CsModel::react_to_change(CsVPList&) () from /opt/SPECTRUM/lib/../SS/
#7 0x00007f84d03b7c28 in CsModel::process_changes() () from /opt/SPECTRUM/lib/../SS/
#8 0x00007f84d03ed101 in CsNotificationMgr::process_queued_work(CsWorkNode const*) () from /opt/SPECTRUM/lib/../SS/
#9 0x00007f84cb602282 in CsWorkQueue::process_work_node(CsWorkNode*) () from /opt/SPECTRUM/lib/
#10 0x00007f84cb60158a in CsWorkScheduler::do_work() () from /opt/SPECTRUM/lib/
#11 0x00007f84d0058a63 in moot_thread_start () from /opt/SPECTRUM/lib/
#12 0x00007f84c484c0f0 in ?? () from /lib64/
#13 0x0000000000000000 in ?? ()

The modelinggateway debug shows the following exception:
SpectrumConfigurationExport for model_type PolicyManager Attr count = 1
Parsing SpectrumConfigurationExport
parseExportAttrs( SpectrumConfigurationExport ) 5
Attribute SNMPv3Profiles
Attr count = 1
Attr ID = 0x13388
Attr SNMPv3Profiles's ID is 13388
Attribute HibernationCommSuccessTries
Attr count = 1
Attr ID = 0x12acb
Attr HibernationCommSuccessTries's ID is 12acb
First time see attr 13388 Type = CSC_OCTET_STRING
First time see attr 12acb Type = CSC_INTEGER
Attribute SNMPv3Profiles/0x13388 on com.aprisma.tie.parse.ModelElement GlobalConfig: was updated.
Attribute HibernationCommSuccessTries/0x12acb on com.aprisma.tie.parse.ModelElement GlobalConfig: was updated.
Modeling Gateway import exception: org.omg.CORBA.TRANSIENT: vmcid: 0x0 minor code: 0 completed: No 20180330.19.51.11
org.omg.CORBA.TRANSIENT: vmcid: 0x0 minor code: 0 completed: No20180330.19.51.11
org.omg.CORBA.TRANSIENT: vmcid: 0x0 minor code: 0 completed: No
at com.inprise.vbroker.orb.DelegateImpl.verifyConnection(Unknown Source)
at com.inprise.vbroker.orb.DelegateImpl.is_local(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._is_local(
at com.aprisma.spectrum.core.idl._CsCModelDomainStub.getModelDomainName(
at com.aprisma.tie.imprt.TIBase.identifyModel(
at com.aprisma.tie.imprt.TIBase.identifyModel(
at com.aprisma.tie.imprt.UpdateImporter.importModels(
at com.aprisma.tie.imprt.MgImportMain.startImport(
at com.aprisma.tie.ModelingGateway.performAction(
at com.aprisma.tie.ModelingGatewayMain.main(

Customer is trying to import the data and smpv3 profile from 10.2.1 to 10.2.3 
10.2.3 on Linux
Actually the name for attribute 0x12bd4 is changed from SNMPv3Profiles (pre 10.2.2) to oldSNMPv3Profiles (post 10.2.2). And a new attribute 0x13388 is added for SNMPv3Profiles in 10.2.2.
So, to make the modelinggateway import to work, below changes are needed.

1. Please add the below entry in .modelinggatewayresource.xml, just above the "SNMPv3Profiles attr 0x13388" entry.
2. And in import file please change the tag from SNMPv3Profiles to oldSNMPv3Profiles, for the attribute 0x12bd4.
3. Now run the modelinggateway import.
4. After 3rd step the old Profiles may not be seen in OneClick. To get them, please run the below action. ./update.exe action=0x10332 mh= To find the GlobalConfig model, please run 'show models | grep GlobalConfig' from CLI.

Note: If new profiles are created post upgrade to 10.2.3, they will be lost after 0x10332 action, and need to be created again if needed.