Mailinglist Archive: opensuse-ha (6 mails)

< Previous Next >
Re: [opensuse-ha] Error removing ldirectord package on CentOS 7
  • From: Dejan Muhamedagic <dejan@xxxxxxx>
  • Date: Fri, 28 Nov 2014 11:36:06 +0100
  • Message-id: <20141128103606.GA15138@walrus.homenet>
Hi,

On Fri, Nov 28, 2014 at 09:53:46AM +0000, David Ruiz Estefania wrote:
Hi.

Doing some more tests i've found that when I try to remove the ldirectord
package on CentOS 7 I get the following error:
error: %preun(ldirectord-3.9.5-4.1.x86_64): macro de ejecución de guión
fallido, estado de terminación 1
Error in PREUN scriptlet in rpm package ldirectord-3.9.5-4.1.x86_64
Aviso: scriptlet o algún otro tipo de error no fatal ha ocurrido durante la
transacción.

I've listed the package scriptlets:
[druiz.ext@galeno ~]$ rpm -q --scripts ldirectord
postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add ldirectord
preuninstall scriptlet (using /bin/sh):
/sbin/chkconfig --del ldirectord
postuninstall program: /sbin/ldconfig

As you can see, the package is still using the init.d scripts for
uninstalling the service, but on CentOS7 the service it's installed as a
Systemd service, so the preuninstall scriptlet exits with error, and the
package can't be uninstalled.

To do a successful package erase it's mandatory to use the
'--setopt=tsflags=noscripts' flag when executing yum, so that it ignores the
preuninstall scriptlet.

It'll be great to update the install/uninstall scriptlets in ldirectord
package, probably just erasing them it's the correct solution, as the Systemd
service has been correctly installed/removed from the system without manual
configuration after installing/removing the package.

I updated that section now and the packages are rebuilding. I'm
not really an expert for RHEL/CentOS or systemd, so please test
the result again.

Cheers,

Dejan

Thanks in advanced.

David Ruiz Estefanía
Administrador de Sistemas
Centro de Alta Disponibilidad

Correo: cad.ext@xxxxxxxxxxxxx
Teléfono: +34 941 298 000 - Ext. 84743
Móvil: +34 669 432 808


________________________________

GOBIERNO DE LA RIOJA
AVISO LEGAL: La información contenida en este mensaje es confidencial y está
destinada a ser leída sólo por la persona a la que va dirigida. Si Ud. no es
el destinatario señalado le informamos que está prohibida, y puede ser
ilegal, cualquier divulgación o reproducción de este mensaje.
Antes de imprimir este e-mail piense bien si es necesario hacerlo.
--
To unsubscribe, e-mail: opensuse-ha+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-ha+owner@xxxxxxxxxxxx

--
To unsubscribe, e-mail: opensuse-ha+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-ha+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation