Re: [pca] Method to stop applying patches when a patch fails to apply?

2012-03-07 Thread Martin Paul

Cashion, David (DXZ) wrote:

For instance, sometimes a kernel patch will fail to fully apply for various
reasons.  Since it shows up as being installed, the other patches that depend
on that kernel patch will successfully install. 


Hm, that's weird, I've never seen that. I always thought that this is taken care 
of by patchadd - when it noticed that a patch wasn't installed completely, it 
backs out all changes it made. When patchadd isn't atomic, things will become 
unpredictable.



I'm not sure how the CPU patchset determines if a kernel patch was
successfully applied, but the patchset script will notice the incomplete
kernel patch installation and try to reapply it.


I couldn't find anything in the patchset install script on a quick glance (it's 
a lng script). But I really think that it should be patchadd which should 
take care of that, not some other script.


Without knowing the exact conditions of such a partly-failed patch install, it 
will be impossible to add a workaround to PCA, I'm afraid. If you have more 
details, feel free to post them here and/or report it to Oracle.


Martin.


Thanks much, David Cashion







--
  Martin Paul \ System Administrator
  University of Vienna \ http://www.par.univie.ac.at/
Faculty of Computer Science \ Nordbergstrasse 15/C/3, A-1090 Wien
 Research Group Scientific Computing \ Tel +43 1 427739403 Fax +43 1 42779394



[pca] Method to stop applying patches when a patch fails to apply?

2012-03-06 Thread Cashion, David (DXZ)
All,

Was wondering if there is a method to force PCA to stop applying more patches 
when it encounters an error? 

For instance, sometimes a kernel patch will fail to fully apply for various 
reasons.  Since it shows up as being installed, the other patches that depend 
on that kernel patch will successfully install.  However, since it shows up as 
installed according to the OS, another PCA run will say that all the patches 
are applied and none are missing even though you should not reboot until the 
problematic kernel patch has been successfully installed.

I'm not sure how the CPU patchset determines if a kernel patch was successfully 
applied, but the patchset script will notice the incomplete kernel patch 
installation and try to reapply it.

Thanks much,
David Cashion