Saturday, 4 December 2010

Tivoli Directory Integrator 7 - More on Updates

After much trial and a lot of error, I realised that my TDI update wasn't ever going to finish properly until: -

(a) I used X11
(b) I had the right version of Java installed

When I ran the update from a console  session, it failed  with messages relating to a X11 window not being able to open. When I finally ran the update from an X terminal, I saw the error, which pointed me to a log file: -

/opt/IBM/TDI/V7.0/ce/eclipsece/configuration/1291492401767.log

which showed: -

...
java.lang.ClassNotFoundException: com.ibm.tdi.loader.TDIClassLoaderHook
...
java.lang.RuntimeException: No application id has been found.
...

and ended with: -

!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6

This led me to check that I had the right version of Java installed - I was still using the version of Java 1.4.2 installed in /etc/alternatives - so I installed Java 6 Update 21

./jre-6u21-linux-i586-rpm.bin

java -version

now returns: -

java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing)

Having done this, I re-ran the update ( having ensure that I'd run ./applyUpdates.sh -rollback beforehand.

Before

./applyUpdates.sh -queryreg

Information from .registry file in: /opt/IBM/TDI/V7.0
Edition: General Purpose
Level: 7.0.0.0
License: Full

Fixes Applied
=-=-=-=-=-=-=
None

Components Installed
=-=-=-=-=-=-=-=-=-=
BASE
SERVER
CE
JAVADOCS
EXAMPLES
EMBEDDED WEB PLATFORM
AMC
   Deferred: false

During

./applyUpdates.sh -update /tmp/TDI/7.0.0-TIV-TDI-FP0005/TDI-7.0-FP0005.zip

CTGDKO023I Applying fix 'TDI-7.0-FP0005' using backup directory '/opt/IBM/TDI/V7.0/maintenance/BACKUP/TDI-7.0-FP0005'.
CTGDKO027I Updating SERVER.
CTGDKO027I Updating CE.
CTGDKO027I Updating EXAMPLES.

After

./applyUpdates.sh -queryreg

Information from .registry file in: /opt/IBM/TDI/V7.0
Edition: General Purpose
Level: 7.0.0.5
License: Full

Fixes Applied
=-=-=-=-=-=-=
TDI-7.0-FP0005(7.0.0.0)

Components Installed
=-=-=-=-=-=-=-=-=-=
BASE
SERVER
   -TDI-7.0-FP0005
CE
   -TDI-7.0-FP0005
JAVADOCS
EXAMPLES
   -TDI-7.0-FP0005
EMBEDDED WEB PLATFORM
AMC
   Deferred: false

No comments:

Note to self - use kubectl to query images in a pod or deployment

In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...