[PATCH 0 of 4] This set of patches adds the profile-related providersand classes to the PG_InterOp namespace

# HG changeset patch # User Richard Maciel <rmaciel@linux.vnet.ibm.com> # Date 1256821800 7200 # Node ID 0777abcae2501319c8ce771f7e44e986d5b2284a # Parent 906a78ecf9f3e4972133c6792c1ff543cc57b493 This register base profile classes in the PG_InterOp Signed-off-by: Richard Maciel <rmaciel@linux.vnet.ibm.com> diff -r 906a78ecf9f3 -r 0777abcae250 base_schema/cimv2.21.0-pginterop_mof --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/base_schema/cimv2.21.0-pginterop_mof Thu Oct 29 11:10:00 2009 -0200 @@ -0,0 +1,9 @@ +#pragma locale ("en_US") +#pragma include ("Interop/CIM_RegisteredSpecification.mof") +#pragma include ("Interop/CIM_RegisteredProfile.mof") +#pragma include ("Interop/CIM_RegisteredSubProfile.mof") +#pragma include ("Interop/CIM_ElementConformsToProfile.mof") +#pragma include ("Interop/CIM_ReferencedSpecification.mof") +#pragma include ("Interop/CIM_ReferencedProfile.mof") +#pragma include ("Interop/CIM_SubProfileRequiresProfile.mof") +#pragma include ("Interop/CIM_Error.mof") diff -r 906a78ecf9f3 -r 0777abcae250 base_schema/install_base_schema.sh.in --- a/base_schema/install_base_schema.sh.in Mon Oct 05 06:02:39 2009 -0700 +++ b/base_schema/install_base_schema.sh.in Thu Oct 29 11:10:00 2009 -0200 @@ -22,6 +22,7 @@ fix_schema() { cp -a ${DATA}/cimv2.21.0-interop_mof ${TMPDIR}/cimv2.21.0-interop.mof cp -a ${DATA}/cimv2.21.0-cimv2_mof ${TMPDIR}/cimv2.21.0-cimv2.mof + cp -a ${DATA}/cimv2.21.0-pginterop_mof ${TMPDIR}/cimv2.21.0-pginterop.mof } @@ -74,6 +75,7 @@ cimmofl -uc -aEV -R$repo -n $NS qualifiers_optional.mof cimmofl -uc -aEV -R$repo -n /root/interop cimv?.??.?-interop.mof cimmofl -uc -aEV -R$repo -n /root/cimv2 cimv?.??.?-cimv2.mof + cimmofl -uc -aEV -R$repo -n /root/PG_InterOp cimv?.??.?-pginterop.mof } install_schema_sfcb() {

# HG changeset patch # User Richard Maciel <rmaciel@linux.vnet.ibm.com> # Date 1256824833 7200 # Node ID ff0f61a6f1e76dccf23486d61f2ee25b592e4b87 # Parent 0777abcae2501319c8ce771f7e44e986d5b2284a Update .registration files to include them in the PG_InterOp namespace Signed-off-by: Richard Maciel <rmaciel@linux.vnet.ibm.com> diff -r 0777abcae250 -r ff0f61a6f1e7 schema/ElementConformsToProfile.registration --- a/schema/ElementConformsToProfile.registration Thu Oct 29 11:10:00 2009 -0200 +++ b/schema/ElementConformsToProfile.registration Thu Oct 29 12:00:33 2009 -0200 @@ -2,10 +2,13 @@ # Classname Namespace ProviderName ProviderModule ProviderTypes Xen_ElementConformsToProfile root/virt Virt_ElementConformsToProfile Virt_ElementConformsToProfile association Xen_ElementConformsToProfile root/interop Virt_ElementConformsToProfile Virt_ElementConformsToProfile association +Xen_ElementConformsToProfile root/PG_InterOp Virt_ElementConformsToProfile Virt_ElementConformsToProfile association Xen_ElementConformsToProfile root/cimv2 Virt_ElementConformsToProfile Virt_ElementConformsToProfile association KVM_ElementConformsToProfile root/virt Virt_ElementConformsToProfile Virt_ElementConformsToProfile association KVM_ElementConformsToProfile root/interop Virt_ElementConformsToProfile Virt_ElementConformsToProfile association +KVM_ElementConformsToProfile root/PG_InterOp Virt_ElementConformsToProfile Virt_ElementConformsToProfile association KVM_ElementConformsToProfile root/cimv2 Virt_ElementConformsToProfile Virt_ElementConformsToProfile association LXC_ElementConformsToProfile root/virt Virt_ElementConformsToProfile Virt_ElementConformsToProfile association LXC_ElementConformsToProfile root/interop Virt_ElementConformsToProfile Virt_ElementConformsToProfile association +LXC_ElementConformsToProfile root/PG_InterOp Virt_ElementConformsToProfile Virt_ElementConformsToProfile association LXC_ElementConformsToProfile root/cimv2 Virt_ElementConformsToProfile Virt_ElementConformsToProfile association diff -r 0777abcae250 -r ff0f61a6f1e7 schema/ReferencedProfile.registration --- a/schema/ReferencedProfile.registration Thu Oct 29 11:10:00 2009 -0200 +++ b/schema/ReferencedProfile.registration Thu Oct 29 12:00:33 2009 -0200 @@ -3,3 +3,6 @@ Xen_ReferencedProfile root/interop Virt_ReferencedProfile Virt_ReferencedProfile association KVM_ReferencedProfile root/interop Virt_ReferencedProfile Virt_ReferencedProfile association LXC_ReferencedProfile root/interop Virt_ReferencedProfile Virt_ReferencedProfile association +Xen_ReferencedProfile root/PG_InterOp Virt_ReferencedProfile Virt_ReferencedProfile association +KVM_ReferencedProfile root/PG_InterOp Virt_ReferencedProfile Virt_ReferencedProfile association +LXC_ReferencedProfile root/PG_InterOp Virt_ReferencedProfile Virt_ReferencedProfile association diff -r 0777abcae250 -r ff0f61a6f1e7 schema/RegisteredProfile.registration --- a/schema/RegisteredProfile.registration Thu Oct 29 11:10:00 2009 -0200 +++ b/schema/RegisteredProfile.registration Thu Oct 29 12:00:33 2009 -0200 @@ -3,3 +3,6 @@ Xen_RegisteredProfile root/interop Virt_RegisteredProfile Virt_RegisteredProfile instance KVM_RegisteredProfile root/interop Virt_RegisteredProfile Virt_RegisteredProfile instance LXC_RegisteredProfile root/interop Virt_RegisteredProfile Virt_RegisteredProfile instance +Xen_RegisteredProfile root/PG_InterOp Virt_RegisteredProfile Virt_RegisteredProfile instance +KVM_RegisteredProfile root/PG_InterOp Virt_RegisteredProfile Virt_RegisteredProfile instance +LXC_RegisteredProfile root/PG_InterOp Virt_RegisteredProfile Virt_RegisteredProfile instance

# HG changeset patch # User Richard Maciel <rmaciel@linux.vnet.ibm.com> # Date 1256824836 7200 # Node ID a21bca13fac941c41ddb5ca1207be1f33e5f60d9 # Parent ff0f61a6f1e76dccf23486d61f2ee25b592e4b87 Fix .spec file so it also registers the profile providers in the PG_InterOp namespace Signed-off-by: Richard Maciel <rmaciel@linux.vnet.ibm.com> diff -r ff0f61a6f1e7 -r a21bca13fac9 libvirt-cim.spec.in --- a/libvirt-cim.spec.in Thu Oct 29 12:00:33 2009 -0200 +++ b/libvirt-cim.spec.in Thu Oct 29 12:00:36 2009 -0200 @@ -54,6 +54,9 @@ %define INTEROP_REG %{_datadir}/%{name}/{RegisteredProfile,ElementConformsToProfile,ReferencedProfile}.registration %define INTEROP_MOF %{_datadir}/%{name}/{ComputerSystem,HostSystem,RegisteredProfile,DiskPool,MemoryPool,NetPool,ProcessorPool,VSMigrationService,ElementConformsToProfile,ReferencedProfile,AllocationCapabilities}.mof +%define PGINTEROP_REG %{_datadir}/%{name}/{RegisteredProfile,ElementConformsToProfile,ReferencedProfile}.registration +%define PGINTEROP_MOF %{_datadir}/%{name}/{RegisteredProfile,ElementConformsToProfile,ReferencedProfile}.mof + %define CIMV2_REG %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,ElementConformsToProfile,HostedAccessPoint}.registration %define CIMV2_MOF %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,RegisteredProfile,ComputerSystem,ElementConformsToProfile,HostedAccessPoint}.mof @@ -78,6 +81,9 @@ -n root/interop \ -r %{INTEROP_REG} -m %{INTEROP_MOF} -v >/dev/null 2>&1 || true %{_datadir}/%{name}/provider-register.sh -t pegasus \ + -n root/PG_InterOp \ + -r %{PGINTEROP_REG} -m %{PGINTEROP_MOF} -v >/dev/null 2>&1 || true +%{_datadir}/%{name}/provider-register.sh -t pegasus \ -n root/cimv2\ -r %{CIMV2_REG} -m %{CIMV2_MOF} -v >/dev/null 2>&1 || true @@ -85,6 +91,9 @@ %{_datadir}/%{name}/provider-register.sh -d -t pegasus \ -n @CIM_VIRT_NS@ \ -r %{REGISTRATION} -m %{SCHEMA} >/dev/null 2>&1 || true +%{_datadir}/%{name}/provider-register.sh -d -t pegasus \ + -n root/PG_InterOp \ + -r %{PGINTEROP_REG} -m %{PGINTEROP_MOF} >/dev/null 2>&1 || true %postun -p /sbin/ldconfig @@ -105,5 +114,7 @@ %{_datadir}/libvirt-cim/cimv*-MOFs.zip %changelog +* Wed Oct 28 2009 Richard Maciel <rmaciel@linux.vnet.ibm.com> - 0.1-1 +- Added profile classes to the PG_InterOp namespace * Fri Oct 26 2007 Daniel Veillard <veillard@redhat.com> - 0.1-1 - created

# HG changeset patch # User Richard Maciel <rmaciel@linux.vnet.ibm.com> # Date 1256824836 7200 # Node ID cedaf9d6dceeea59f09371d262f4c15d9e12043f # Parent a21bca13fac941c41ddb5ca1207be1f33e5f60d9 Add profile providers to the PG_InterOp namespace to fix the SLP issue Signed-off-by: Richard Maciel <rmaciel@linux.vnet.ibm.com> diff -r a21bca13fac9 -r cedaf9d6dcee Makefile.am --- a/Makefile.am Thu Oct 29 12:00:36 2009 -0200 +++ b/Makefile.am Thu Oct 29 12:00:36 2009 -0200 @@ -71,6 +71,11 @@ schema/ReferencedProfile.mof \ schema/AllocationCapabilities.mof +PGINTEROP_MOFS = \ + schema/RegisteredProfile.mof \ + schema/ElementConformsToProfile.mof \ + schema/ReferencedProfile.mof + CIMV2_MOFS = \ schema/HostedResourcePool.mof \ schema/ElementCapabilities.mof \ @@ -138,6 +143,11 @@ schema/ElementConformsToProfile.registration \ schema/ReferencedProfile.registration +PGINTEROP_REGS = \ + schema/RegisteredProfile.registration \ + schema/ElementConformsToProfile.registration \ + schema/ReferencedProfile.registration + CIMV2_REGS = \ schema/HostedResourcePool.registration \ schema/ElementCapabilities.registration \ @@ -178,6 +188,7 @@ sh provider-register.sh -v -t @CIMSERVER@ -n @CIM_VIRT_NS@ -r $(REGS) -m $(MOFS) sh provider-register.sh -v -t @CIMSERVER@ -n root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS) sh provider-register.sh -v -t @CIMSERVER@ -n root/cimv2 -r $(CIMV2_REGS) -m $(CIMV2_MOFS) + sh provider-register.sh -v -t @CIMSERVER@ -n root/PG_InterOp -r $(PGINTEROP_REGS) -m $(PGINTEROP_MOFS) virsh -v | grep -q '^0.3' && cp examples/diskpool.conf $(DISK_POOL_CONFIG) || true mkdir -p $(INFO_STORE) @@ -185,6 +196,8 @@ sh provider-register.sh -v -d -t @CIMSERVER@ -n @CIM_VIRT_NS@ -r $(REGS) -m $(MOFS) sh provider-register.sh -v -d -t @CIMSERVER@ -n root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS) sh provider-register.sh -v -d -t @CIMSERVER@ -n root/cimv2 -r $(CIMV2_REGS) -m $(CIMV2_MOFS) + sh provider-register.sh -v -d -t @CIMSERVER@ -n root/PG_InterOp -r $(PGINTEROP_REGS) -m $(PGINTEROP_MOFS) + rpm: clean @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
participants (1)
-
Richard Maciel