Re: [pca] patch 118666-42 fails on sparse root zones

2013-03-05 Thread Martin Paul

Am 04.03.2013 15:57, schrieb Brookins, Neil (Philadelphia):

This looks like a bug in the patch itself causing it to not handle sparse zones 
in a user friendly way. Note that the three other Java patches do not have this 
issue.  I don't think there is a problem with PCA itself; its simply reporting 
the errors that patchadd is reporting back.


Correct. I guess the way to go would be a support request to Oracle then.


rm: /a/usr/jdk/jdk1.5.0_40 not removed: Read-only file system
rm: /a/usr/jdk/jdk1.5.0_40 not removed: Read-only file system
ln: cannot create /a/usr/jdk/jdk1.5.0_40/jdk1.5.0: Read-only file system
ln: cannot create /a/usr/java/jdk1.5.0_40: Read-only file system


I think I've seen different errors in the past when the system wasn't 
rebooted after installing e.g. a kernel patch (does df show a lot of 
these /a-mounts?). PCA and patchadd don't enforce reboots, so maybe 
that's worth a look.


Martin.



[pca] patch 118666-42 fails on sparse root zones

2013-03-04 Thread Brookins, Neil (Philadelphia)
When I patch my global zone with 118666-42, it installs OK in the global zone, 
then it installs OK when it does the whole root zones.
But, when there are sparse root zones, where the /usr partition is inherited 
from the global zone, it fails due to read-only file system.
The good news is that despite the failure, and the subsequent back-out of the 
partial patch, when I run java -version it stills sees the new version 
because its inheriting the patched version from the global zone.

My concern here is that errors show up in the PCA install log (for the failed 
patch) and the reports that show missing patches (pca -l) make it look like 
there is a missing patch. Auditors don't like this. Clearly, the patch isn't 
truly missing if the patched version is installed and runnable as shown below.

This looks like a bug in the patch itself causing it to not handle sparse zones 
in a user friendly way. Note that the three other Java patches do not have this 
issue.  I don't think there is a problem with PCA itself; its simply reporting 
the errors that patchadd is reporting back.

$ /usr/jdk/jdk1.5.0_40/bin/java -version
java version 1.5.0_40
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_40-b02)
Java HotSpot(TM) Server VM (build 1.5.0_40-b02, mixed mode)

$ ../pca -l --minimal missingr
Using /var/tmp/patchdiag.xref from Mar/03/13
Host: V210_sparse_zone (SunOS 5.10/Generic_147147-26/sparc/sun4u)
List: missingr-minimal (1/14)

Patch  IR   CR RSB Age Synopsis
-- -- - -- --- --- ---
118666 38  42 RS-  14 JavaSE 5.0: update 40 patch (equivalent to JDK 5.0u40)

$ more /var/tmp/118666-42.log.11833
...
rm: /a/usr/jdk/jdk1.5.0_40 not removed: Read-only file system
rm: /a/usr/jdk/jdk1.5.0_40 not removed: Read-only file system
ln: cannot create /a/usr/jdk/jdk1.5.0_40/jdk1.5.0: Read-only file system
ln: cannot create /a/usr/java/jdk1.5.0_40: Read-only file system
ln: cannot create /a/usr/bin/javaws: Read-only file system
/a/var/sadm/pkg/SUNWj5rt/install/postinstall: /a/usr/share/control-center-2.0/ca
pplets/sun_java.desktop: cannot create
chmod: WARNING: can't change /a/usr/share/control-center-2.0/capplets/sun_java.d
esktop
chown: /a/usr/share/control-center-2.0/capplets/sun_java.desktop: Read-only file
system
chgrp: /a/usr/share/control-center-2.0/capplets/sun_java.desktop: Read-only file
system
cp: cannot create /a/usr/share/pixmaps/sun-java.png: Read-only file system
cp: cannot create /a/usr/share/icons/HighContrast/48x48/apps/sun-java.png: Read-
only file system
cp: cannot create /a/usr/share/icons/HighContrastInverse/48x48/apps/sun-java.png
: Read-only file system
cp: cannot create /a/usr/share/icons/LowContrast/48x48/apps/sun-java.png: Read-o
nly file system
/a/var/sadm/pkg/SUNWj5rt/install/postinstall: /a/usr/share/gnome/mime-info/java-
archive.keys: cannot create
pkgadd: ERROR: postinstall script did not complete successfully

Installation of SUNWj5rt failed.

Neil G. Brookins
Identity and Authentication Solutions - IT Global Solutions
Towers Watson
1500 Market Street | Philadelphia, PA 19102
Phone: +1 215 246 6046
neil.brook...@towerswatson.commailto:neil.brook...@towerswatson.com

Notice of Confidentiality
This transmission contains information that may be confidential. It has been 
prepared for the sole and exclusive use of the intended recipient and on the 
basis agreed with that person. If you are not the intended recipient of the 
message (or authorized to receive it for the intended recipient), you should 
notify us immediately; you should delete it from your system and may not 
disclose its contents to anyone else.


This e-mail has come to you from Towers Watson Delaware Inc.