Error creando zona desde flar

Page last edited hace 2148 días 22 horas
De Solaris-ES
Saltar a: navegación, buscar

Es posible que se produzca un error al intentar instalar una zona desde un flar en el proceso de actualización del software:

root@zonepool05 # ./crearzona_flar.sh pptweb01
Leyendo configuracion del archivo pptweb01.cfg
Generando zpool pptweb01-zpool en mirror con disco c0t0d0s6 y c0t1d0s6
Generando configuracion de la zona ...
flar/pptweb01-31Jan2012.cpio
/net/192.168.150.37/var/adm/sun/mgb/provision_zonas/flar/pptweb01-31Jan2012.cpio
Instalacion de zona desde /net/192.168.150.37/var/adm/sun/mgb/provision_zonas/flar/pptweb01-31Jan2012.cpio...
      Log File: /var/tmp/pptweb01.install_log.rFaqg5
    Installing: This may take several minutes...
Postprocessing: This may take a while...
   Postprocess: Updating the zone software to match the global zone...
   Postprocess: ERROR: Updating the Zone software failed
        Result: Postprocessing failed.

        Result: *** Installation FAILED ***
      Log File: /var/tmp/pptweb01.install_log.rFaqg5

Si analizamos el log de la instalación se verán paquetes que estan generando errores:

root@zonepool05 # more /var/tmp/pptweb01.install_log.rFa 
[Tue Jan 31 16:06:38 CET 2012]       Log File: /var/tmp/pptweb01.install_log.rFaqg5
[Tue Jan 31 16:06:38 CET 2012] Starting pre-installation tasks.
[Tue Jan 31 16:06:38 CET 2012] Installation started for zone "pptweb01"
[Tue Jan 31 16:06:39 CET 2012] flash archive
[Tue Jan 31 16:06:39 CET 2012]     Installing: This may take several minutes...
[Tue Jan 31 16:06:39 CET 2012] cd /zonas/pptweb01/root && cat /net/192.168.150.37/var/adm/sun/mgb/provision_zonas/flar/pptweb01-31Jan2012.cpio |   install_flar
[Tue Jan 31 16:12:35 CET 2012]   Sanity Check: Passed.  Looks like a native system.
[Tue Jan 31 16:12:36 CET 2012] Postprocessing: This may take a while...
[Tue Jan 31 16:12:36 CET 2012] running: p2v  -u  pptweb01 /zonas/pptweb01
[Tue Jan 31 16:12:36 CET 2012]    Postprocess: Creating mount points
[Tue Jan 31 16:12:46 CET 2012]    Postprocess: Updating the zone software to match the global zone...
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWccccfg, the source had patch 121082-08 but this system only has 121082-06
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWccccr, the source had patch 121082-08 but this system only has 121082-06
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWccccrr, the source had patch 121082-08 but this system only has 121082-06
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWccfw, the source had patch 121082-08 but this system only has 121082-06
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWccfwctrl, the source had patch 121082-08 but this system only has 121082-06
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWccinv, the source had patch 121082-08 but this system only has 121082-06
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWccsign, the source had patch 121082-08 but this system only has 121082-06
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWcctpx, the source had patch 121082-08 but this system only has 121082-06
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWppror, the source had patch 119789-10 which is not installed on this system
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWpprou, the source had patch 119789-10 which is not installed on this system
zoneadm: zone 'pptweb01': ERROR: attempt to downgrade package SUNWzfsu, the source had patch 118855-33 which is not installed on this system
[Tue Jan 31 16:12:57 CET 2012] ERROR: Updating the Zone software failed
[Tue Jan 31 16:12:57 CET 2012]         Result: Postprocessing failed.
[Tue Jan 31 16:12:57 CET 2012] 
[Tue Jan 31 16:12:57 CET 2012]         Result: *** Installation FAILED ***
[Tue Jan 31 16:12:57 CET 2012]       Log File: /var/tmp/pptweb01.install_log.rFaqg5

Para poder continuar con la instalacion deberemos poner los paquetes que generan conflicto en el blacklist:

root@zonepool05 # echo 121082 >> /usr/lib/brand/native/bad_patches
root@zonepool05 # echo 119789 >> /usr/lib/brand/native/bad_patches