Friday, 30 October 2015

IBM Operational Decision Manager Rules - Problems augmenting profiles

So I've been battling with an issue today, whilst also wrestling with SSL/TLS ciphers and wrangling and munging Java class loader issues.

Essentially, I've installed IBM Operational Decision Manager (ODM) Advanced Decision Server onto my Linux VM.

I'm then creating the necessary WebSphere Application Server (WAS) profiles to build out an ODM cell.

Here's the profile creation part: -

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/management -profileName Dmgr01 -nodeName Dmgr -isDefault -enableAdminSecurity true -adminUserName wasadmin -adminPassword passw0rd

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/managed -profileName AppSrv01 -nodeName Node1


I then start the Deployment Manager: -

/opt/ibm/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh

and add the node into the cell: -

/opt/ibm/WebSphere/AppServer/profiles/AppSrv01/bin/addNode.sh `hostname` 8879 -profileName AppSrv01 -username wasadmin -password passw0rd

Finally ( for now ) I stop the Deployment Manager: -

/opt/ibm/WebSphere/AppServer/profiles/Dmgr01/bin/stopManager.sh -username wasadmin -password passw0rd

before augmenting the DM profile: -

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -augment -profileName Dmgr01 -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/ds/

This bit failed with: -

<record>
    <date>2015-10-30T04:28:58</date>
    <millis>1446222538186</millis>
    <sequence>41</sequence>
    <logger>com.ibm.wsspi.profile.WSProfileTemplate</logger>
    <level>INFO</level>
    <class>com.ibm.wsspi.profile.WSProfileTemplate</class>
    <method>parseTemplateMetadata</method>
    <thread>0</thread>
    <message>Unexpected exception caught!</message>
</record>
<record>
    <date>2015-10-30T04:28:58</date>
    <millis>1446222538186</millis>
    <sequence>42</sequence>
    <logger>com.ibm.wsspi.profile.WSProfileTemplate</logger>
    <level>SEVERE</level>
    <class>com.ibm.wsspi.profile.WSProfileTemplate</class>
    <method>parseTemplateMetadata</method>
    <thread>0</thread>
    <message>Exception caught while parsing template metadata: null</message>
</record>
<record>
    <date>2015-10-30T04:28:58</date>
    <millis>1446222538186</millis>
    <sequence>43</sequence>
    <logger>com.ibm.ws.profile.utils.PrereqTemplateUtils</logger>
    <level>INFO</level>
    <class>com.ibm.ws.profile.utils.PrereqTemplateUtils</class>
    <method>getListOfTemplatePathsForStackAugment</method>
    <thread>0</thread>
    <message>[/opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/ds/] is not a valid profile template for Dmgr01.</message>
</record>


This is what I had installed: -

/opt/ibm/InstallationManager/eclipse/tools/imcl listInstalledPackages -features

com.ibm.cic.agent_1.8.2000.20150303_1526 : 
com.ibm.websphere.ND.v85_8.5.5007.20150820_2101 : com.ibm.sdk.6_64bit,ejbdeploy,embeddablecontainer,samples,thinclient
com.ibm.websphere.IHS.v85_8.5.5007.20150820_2101 : arch.64bit
com.ibm.websphere.PLG.v85_8.5.5007.20150820_2101 : com.ibm.jre.6_64bit
com.ibm.websphere.odm.ds.rules.v87_8.7.0.20141114_0949 : com.ibm.wds.rules.res.feature


/opt/ibm/InstallationManager/eclipse/tools/imcl listInstalledPackages -features -long

/opt/ibm/InstallationManager/eclipse : com.ibm.cic.agent_1.8.2000.20150303_1526 : IBM® Installation Manager : 1.8.2 : 
/opt/ibm/WebSphere/AppServer : com.ibm.websphere.ND.v85_8.5.5007.20150820_2101 : IBM WebSphere Application Server Network Deployment : 8.5.5.7 : com.ibm.sdk.6_64bit,ejbdeploy,embeddablecontainer,samples,thinclient
/opt/ibm/HTTPServer : com.ibm.websphere.IHS.v85_8.5.5007.20150820_2101 : IBM HTTP Server for WebSphere Application Server : 8.5.5.7 : arch.64bit
/opt/ibm/WebSphere/Plugins : com.ibm.websphere.PLG.v85_8.5.5007.20150820_2101 : Web Server Plug-ins for IBM WebSphere Application Server : 8.5.5.7 : com.ibm.jre.6_64bit
/opt/ibm/ODM87 : com.ibm.websphere.odm.ds.rules.v87_8.7.0.20141114_0949 : Decision Server Rules : 8.7.0.0 : com.ibm.wds.rules.res.feature

using this response file: -

...
  <profile id='Operational Decision Manager V8.7' installLocation='/opt/ibm/ODM87'>
    <data key='eclipseLocation' value='/opt/ibm/ODM87'/>
    <data key='user.import.profile' value='false'/>
    <data key='cic.selector.os' value='linux'/>
    <data key='cic.selector.arch' value='x86_64'/>
    <data key='cic.selector.ws' value='gtk'/>
    <data key='cic.selector.nl' value='en'/>
    <data key='user.lic.dsr' value='full'/>
    <data key='user.prod.dsr' value='false'/>
    <data key='user.wodm_was_home' value='/opt/ibm/WebSphere/AppServer'/>
    <data key='user.lic.dsr' value='full'/>
    <data key='user.prod.dsr' value=''/>
    <data key='user.lic.dc' value='full'/>
    <data key='user.wodm_admin_username' value='wasadmin'/>
    <data key='user.wodm_admin_password' value='passw0rd'/>
    <data key='user.confirm_password' value='passw0rd'/>
  </profile>
  <install modify='false'>
    <offering profile='Operational Decision Manager V8.7' id='com.ibm.websphere.odm.ds.rules.v87' version='8.7.0.20141114_0949' features='com.ibm.wds.jdk.feature,base,com.ibm.wds.rules.res.feature' installFixes='none'/>
  </install>

...

To the best of my knowledge / experience, that should've been all I needed ( from a pure ODM perspective ).

And yet .....

I dug back into a prior blog post: -


which is what had led me to install this particular component of ODM: -

I guessed that I might be missing the appropriate WAS template for ODM, so I then installed the Decision Server Rules profile templates for WebSphere Application Server  8.7.0.0 element: -

/opt/ibm/InstallationManager/eclipse/tools/imcl listInstalledPackages -features

com.ibm.cic.agent_1.8.2000.20150303_1526 : 
com.ibm.websphere.ND.v85_8.5.5007.20150820_2101 : com.ibm.sdk.6_64bit,ejbdeploy,embeddablecontainer,samples,thinclient
com.ibm.websphere.IHS.v85_8.5.5007.20150820_2101 : arch.64bit
com.ibm.websphere.PLG.v85_8.5.5007.20150820_2101 : com.ibm.jre.6_64bit
com.ibm.websphere.odm.ds.rules.v87_8.7.0.20141114_0949 : com.ibm.wds.rules.res.feature
com.ibm.websphere.odm.pt.rules.v87_8.7.0.20141114_1039 : 


/opt/ibm/InstallationManager/eclipse/tools/imcl listInstalledPackages -features -long

/opt/ibm/InstallationManager/eclipse : com.ibm.cic.agent_1.8.2000.20150303_1526 : IBM® Installation Manager : 1.8.2 : 
/opt/ibm/WebSphere/AppServer : com.ibm.websphere.ND.v85_8.5.5007.20150820_2101 : IBM WebSphere Application Server Network Deployment : 8.5.5.7 : com.ibm.sdk.6_64bit,ejbdeploy,embeddablecontainer,samples,thinclient
/opt/ibm/HTTPServer : com.ibm.websphere.IHS.v85_8.5.5007.20150820_2101 : IBM HTTP Server for WebSphere Application Server : 8.5.5.7 : arch.64bit
/opt/ibm/WebSphere/Plugins : com.ibm.websphere.PLG.v85_8.5.5007.20150820_2101 : Web Server Plug-ins for IBM WebSphere Application Server : 8.5.5.7 : com.ibm.jre.6_64bit
/opt/ibm/ODM87 : com.ibm.websphere.odm.ds.rules.v87_8.7.0.20141114_0949 : Decision Server Rules : 8.7.0.0 : com.ibm.wds.rules.res.feature
/opt/ibm/ODM87 : com.ibm.websphere.odm.pt.rules.v87_8.7.0.20141114_1039 : Decision Server Rules profile templates for WebSphere Application Server  : 8.7.0.0 : 


via another IIM response file: -

...
  <profile id='Operational Decision Manager V8.7' installLocation='/opt/ibm/ODM87'>
    <data key='eclipseLocation' value='/opt/ibm/ODM87'/>
    <data key='user.import.profile' value='false'/>
    <data key='cic.selector.os' value='linux'/>
    <data key='cic.selector.arch' value='x86_64'/>
    <data key='cic.selector.ws' value='gtk'/>
    <data key='cic.selector.nl' value='en'/>
    <data key='user.lic.dsr' value='full'/>
    <data key='user.prod.dsr' value='false'/>
    <data key='user.wodm_was_home' value='/opt/ibm/WebSphere/AppServer'/>
    <data key='user.lic.dc' value='full'/>
    <data key='user.wodm_admin_username' value='wasadmin'/>
    <data key='user.wodm_admin_password' value='passw0rd'/>
    <data key='user.confirm_password' value='passw0rd'/>
  </profile>
  <install modify='false'>
    <!-- Decision Server Rules profile templates for WebSphere Application Server  8.7.0.0 -->
    <offering profile='Operational Decision Manager V8.7' id='com.ibm.websphere.odm.pt.rules.v87' version='8.7.0.20141114_1039' features='main.feature' installFixes='none'/>
  </install>

...

Now we're good to go ...

/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -augment -profileName Dmgr01 -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/ds/

INSTCONFSUCCESS: Profile augmentation succeeded.

So that's all good then .....

I do need to work out the differences but that's a job for another day ...

No comments: