[Libvirt-cim] [PATCH] libvirt-cim.spec.in: Uninstall open-pegasus-specific providers
Jincheng Miao
jmiao at redhat.com
Thu Aug 22 09:15:16 UTC 2013
----- Original Message -----
> Yes, if you install libvirt-cim-0.6.1-4.el6 (which is the version in
> RHEL6.4),
> PG_InterOp would get installed as well.
>
> Since upstream commit 07adabc, the providers registered on installation are
> only unregistered on uninstall, not update.
>
> Commit 19ffef8 only fixed this for uninstall -> install, where PG_InterOp
> gets
> unregistered by the old package (without this commit) and the new package
> (with the commit) doesn't register it.
>
> On upgrade, the old package leaves it behind.
yes, confirm.
some verification steps:
1. for old package it can clean the PG_InterOp as we seen
# rpm -ivh libvirt-cim-0.6.1-4.el6_4.1.x86_64.rpm
Preparing... ########################################### [100%]
1:libvirt-cim ########################################### [100%]
[ OK ] down CIM server: [ OK ]
Starting up CIM server: [ OK ]
# ls /var/lib/sfcb/registration/repository/root/
cimv2 interop PG_InterOp virt
# rpm -e libvirt-cim
Deleting registered classes in libvirt-cim.
Deleting registered classes in libvirt-cim.
# ls /var/lib/sfcb/registration/repository/root/
cimv2 interop
2. for upgrade libvirt-cim
# rpm -ivh libvirt-cim-0.6.1-4.el6_4.1.x86_64.rpm
Preparing... ########################################### [100%]
1:libvirt-cim ########################################### [100%]
[ OK ] down CIM server: [ OK ]
Starting up CIM server: [ OK ]
# ls /var/lib/sfcb/registration/repository/root/
cimv2 interop PG_InterOp virt
# sfcbrepos -f -c /usr/share/mof/cimv2.22.0/
logger not started*** Repository error for /var/lib/sfcb/registration/repository//root/pg_interop/qualifiers
could not write qualifier Association
backend error has occured writing classSchemas
Failed compiling the MOF files.
# rpm -Uvh libvirt-cim-0.6.1-7.el6.x86_64.rpm
Preparing... ########################################### [100%]
1:libvirt-cim ########################################### [100%]
[ OK ] down CIM server: [ OK ]
Starting up CIM server: [ OK ]
# ls /var/lib/sfcb/registration/repository/root/
cimv2 interop PG_InterOp virt
# sfcbrepos -f -c /usr/share/mof/cimv2.22.0/
logger not started*** Repository error for /var/lib/sfcb/registration/repository//root/pg_interop/qualifiers
could not write qualifier Association
backend error has occured writing classSchemas
Failed compiling the MOF files.
# rpm -e libvirt-cim
Deleting registered classes in libvirt-cim.
Deleting registered classes in libvirt-cim.
# ls /var/lib/sfcb/registration/repository/root/
cimv2 interop PG_InterOp
Here we can still find PG_InterOp. So we should keep the clean script for PG_InterOp.
More information about the Libvirt-cim
mailing list