[PATCH] Change installed namespace to root/virt

# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1194558864 28800 # Node ID 90ffd19dda747eb615f12b10aa04e4f9bc978b31 # Parent 114b074cb5e710e6c3613ca89edf205bbf945d4c Change installed namespace to root/virt This one deserves some serious testing, although I was pleasantly surprised at how few instances of the namespace we had hard-coded. We could probably use a configure flag to set the namespace, but the schema files would all have to change before it would work, so I'm not sure it's worth it. Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r 114b074cb5e7 -r 90ffd19dda74 Makefile.am --- a/Makefile.am Thu Nov 08 12:47:38 2007 -0800 +++ b/Makefile.am Thu Nov 08 13:54:24 2007 -0800 @@ -81,11 +81,11 @@ EXTRA_DIST = schema $(pkgdata_DATA) $(pk # Un/Register the providers and class definitions from/to the current CIMOM. # @CIMSERVER@ is set by the configure script postinstall: - sh provider-register.sh -v -t @CIMSERVER@ -n /root/ibmsd -r $(REGS) -m $(MOFS) + sh provider-register.sh -v -t @CIMSERVER@ -n /root/virt -r $(REGS) -m $(MOFS) sh provider-register.sh -v -t @CIMSERVER@ -n /root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS) preuninstall: - sh provider-register.sh -v -d -t @CIMSERVER@ -n /root/ibmsd -r $(REGS) -m $(MOFS) + sh provider-register.sh -v -d -t @CIMSERVER@ -n /root/virt -r $(REGS) -m $(MOFS) sh provider-register.sh -v -d -t @CIMSERVER@ -n /root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS) rpm: clean diff -r 114b074cb5e7 -r 90ffd19dda74 doc/Makefile.am --- a/doc/Makefile.am Thu Nov 08 12:47:38 2007 -0800 +++ b/doc/Makefile.am Thu Nov 08 13:54:24 2007 -0800 @@ -1,6 +1,8 @@ XSLTPROC = /usr/bin/xsltproc XSLTPROC = /usr/bin/xsltproc WEB_PAGES = index.html + +EXTRA_DIST = site.xsl libvirt-cim.html $(WEB_PAGES): libvirt-cim.html site.xsl $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/libvirt-cim.html > index.html diff -r 114b074cb5e7 -r 90ffd19dda74 doc/libvirt-cim.html --- a/doc/libvirt-cim.html Thu Nov 08 12:47:38 2007 -0800 +++ b/doc/libvirt-cim.html Thu Nov 08 13:54:24 2007 -0800 @@ -73,9 +73,9 @@ $ mkdir cim216<br/> $ cd cim216<br/> $ unzip $PATH_TO_ZIPFILE<br/> - $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/ibmsd cimv216.mof<br/> - $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/ibmsd qualifiers.mof<br/> - $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/ibmsd qualifiers_optional.mof<br/> + $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/virt cimv216.mof<br/> + $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/virt qualifiers.mof<br/> + $ sudo cimmofl -uc -aEV -R$PEGASUS_REPO -n /root/virt qualifiers_optional.mof<br/> </code></p> <h4>To install the schema in SFCB:</h4> diff -r 114b074cb5e7 -r 90ffd19dda74 schema/AllocationCapabilities.registration --- a/schema/AllocationCapabilities.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/AllocationCapabilities.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,4 +1,4 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_AllocationCapabilities root/ibmsd Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance -KVM_AllocationCapabilities root/ibmsd Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance +Xen_AllocationCapabilities root/virt Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance +KVM_AllocationCapabilities root/virt Virt_AllocationCapabilitiesProvider Virt_AllocationCapabilities instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ComputerSystem.registration --- a/schema/ComputerSystem.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ComputerSystem.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_ComputerSystem root/ibmsd Virt_ComputerSystemProvider Virt_ComputerSystem instance method +Xen_ComputerSystem root/virt Virt_ComputerSystemProvider Virt_ComputerSystem instance method # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_ComputerSystem root/ibmsd Virt_ComputerSystemProvider Virt_ComputerSystem instance +KVM_ComputerSystem root/virt Virt_ComputerSystemProvider Virt_ComputerSystem instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ComputerSystemIndication.registration --- a/schema/ComputerSystemIndication.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ComputerSystemIndication.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 -Xen_ComputerSystemCreatedIndication root/ibmsd Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method -Xen_ComputerSystemDeletedIndication root/ibmsd Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method -KVM_ComputerSystemCreatedIndication root/ibmsd Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method -KVM_ComputerSystemDeletedIndication root/ibmsd Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method +Xen_ComputerSystemCreatedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method +Xen_ComputerSystemDeletedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method +KVM_ComputerSystemCreatedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method +KVM_ComputerSystemDeletedIndication root/virt Virt_ComputerSystemIndicationProvider Virt_ComputerSystemIndication indication method diff -r 114b074cb5e7 -r 90ffd19dda74 schema/DiskPool.registration --- a/schema/DiskPool.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/DiskPool.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,2 +1,2 @@ Xen_DiskPool root/ibmsd Virt_DevicePoolP -Xen_DiskPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance -KVM_DiskPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance +Xen_DiskPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance +KVM_DiskPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ElementAllocatedFromPool.registration --- a/schema/ElementAllocatedFromPool.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ElementAllocatedFromPool.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,3 +1,3 @@ # Copyright IBM Corp. 2007 -Xen_ElementAllocatedFromPool root/ibmsd Xen_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association -KVM_ElementAllocatedFromPool root/ibmsd KVM_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association \ No newline at end of file +Xen_ElementAllocatedFromPool root/virt Xen_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association +KVM_ElementAllocatedFromPool root/virt KVM_ElementAllocatedFromPoolProvider Virt_ElementAllocatedFromPool association \ No newline at end of file diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ElementConformsToProfile.registration --- a/schema/ElementConformsToProfile.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ElementConformsToProfile.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,7 +1,7 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -#Xen_ElementConformsToProfile root/ibmsd Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association +#Xen_ElementConformsToProfile root/virt Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association Xen_ElementConformsToProfile root/interop Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association # Classname Namespace ProviderName ProviderModule ProviderTypes ... -#KVM_ElementConformsToProfile root/ibmsd Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association +#KVM_ElementConformsToProfile root/virt Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association KVM_ElementConformsToProfile root/interop Virt_ElementConformsToProfileProvider Virt_ElementConformsToProfile association diff -r 114b074cb5e7 -r 90ffd19dda74 schema/EnabledLogicalElementCapabilities.registration --- a/schema/EnabledLogicalElementCapabilities.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/EnabledLogicalElementCapabilities.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_EnabledLogicalElementCapabilities root/ibmsd Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance +Xen_EnabledLogicalElementCapabilities root/virt Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_EnabledLogicalElementCapabilities root/ibmsd Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance +KVM_EnabledLogicalElementCapabilities root/virt Virt_EnabledLogicalElementCapabilitiesProvider Virt_EnabledLogicalElementCapabilities instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/HostSystem.registration --- a/schema/HostSystem.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/HostSystem.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_HostSystem root/ibmsd Virt_HostSystemProvider Virt_HostSystem instance +Xen_HostSystem root/virt Virt_HostSystemProvider Virt_HostSystem instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_HostSystem root/ibmsd Virt_HostSystemProvider Virt_HostSystem instance +KVM_HostSystem root/virt Virt_HostSystemProvider Virt_HostSystem instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/HostedDependency.registration --- a/schema/HostedDependency.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/HostedDependency.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_HostedDependency root/ibmsd Virt_HostedDependencyProvider Virt_HostedDependency association +Xen_HostedDependency root/virt Virt_HostedDependencyProvider Virt_HostedDependency association # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_HostedDependency root/ibmsd Virt_HostedDependencyProvider Virt_HostedDependency association +KVM_HostedDependency root/virt Virt_HostedDependencyProvider Virt_HostedDependency association diff -r 114b074cb5e7 -r 90ffd19dda74 schema/HostedResourcePool.registration --- a/schema/HostedResourcePool.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/HostedResourcePool.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,3 +1,3 @@ # Copyright IBM Corp. 2007 -Xen_HostedResourcePool root/ibmsd Virt_HostedResourcePoolProvider Virt_HostedResourcePool association -KVM_HostedResourcePool root/ibmsd Virt_HostedResourcePoolProvider Virt_HostedResourcePool association \ No newline at end of file +Xen_HostedResourcePool root/virt Virt_HostedResourcePoolProvider Virt_HostedResourcePool association +KVM_HostedResourcePool root/virt Virt_HostedResourcePoolProvider Virt_HostedResourcePool association \ No newline at end of file diff -r 114b074cb5e7 -r 90ffd19dda74 schema/LogicalDisk.registration --- a/schema/LogicalDisk.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/LogicalDisk.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_LogicalDisk root/ibmsd Virt_DeviceProvider Virt_Device instance +Xen_LogicalDisk root/virt Virt_DeviceProvider Virt_Device instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_LogicalDisk root/ibmsd Virt_DeviceProvider Virt_Device instance +KVM_LogicalDisk root/virt Virt_DeviceProvider Virt_Device instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/Memory.registration --- a/schema/Memory.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/Memory.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_Memory root/ibmsd Virt_DeviceProvider Virt_Device instance +Xen_Memory root/virt Virt_DeviceProvider Virt_Device instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_Memory root/ibmsd Virt_DeviceProvider Virt_Device instance +KVM_Memory root/virt Virt_DeviceProvider Virt_Device instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/MemoryPool.registration --- a/schema/MemoryPool.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/MemoryPool.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_MemoryPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance +Xen_MemoryPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_MemoryPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance +KVM_MemoryPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/NetPool.registration --- a/schema/NetPool.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/NetPool.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,3 +1,3 @@ # Copyright IBM Corp. 2007 -Xen_NetworkPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance -KVM_NetworkPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance \ No newline at end of file +Xen_NetworkPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance +KVM_NetworkPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance \ No newline at end of file diff -r 114b074cb5e7 -r 90ffd19dda74 schema/NetworkPort.registration --- a/schema/NetworkPort.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/NetworkPort.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_NetworkPort root/ibmsd Virt_DeviceProvider Virt_Device instance +Xen_NetworkPort root/virt Virt_DeviceProvider Virt_Device instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_NetworkPort root/ibmsd Virt_DeviceProvider Virt_Device instance +KVM_NetworkPort root/virt Virt_DeviceProvider Virt_Device instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/Processor.registration --- a/schema/Processor.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/Processor.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_Processor root/ibmsd Virt_DeviceProvider Virt_Device instance +Xen_Processor root/virt Virt_DeviceProvider Virt_Device instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_Processor root/ibmsd Virt_DeviceProvider Virt_Device instance +KVM_Processor root/virt Virt_DeviceProvider Virt_Device instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ProcessorPool.registration --- a/schema/ProcessorPool.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ProcessorPool.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_ProcessorPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance +Xen_ProcessorPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_ProcessorPool root/ibmsd Virt_DevicePoolProvider Virt_DevicePool instance +KVM_ProcessorPool root/virt Virt_DevicePoolProvider Virt_DevicePool instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ResourceAllocationFromPool.registration --- a/schema/ResourceAllocationFromPool.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ResourceAllocationFromPool.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,3 +1,3 @@ # Copyright IBM Corp. 2007 -Xen_ResourceAllocationFromPool root/ibmsd Xen_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association -KVM_ResourceAllocationFromPool root/ibmsd KVM_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association \ No newline at end of file +Xen_ResourceAllocationFromPool root/virt Xen_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association +KVM_ResourceAllocationFromPool root/virt KVM_ResourceAllocationFromPoolProvider Virt_ResourceAllocationFromPool association \ No newline at end of file diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ResourceAllocationSettingData.registration --- a/schema/ResourceAllocationSettingData.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ResourceAllocationSettingData.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 -Xen_DiskResourceAllocationSettingData root/ibmsd Virt_RASDProvider Virt_RASD instance -Xen_NetResourceAllocationSettingData root/ibmsd Virt_RASDProvider Virt_RASD instance -Xen_ProcResourceAllocationSettingData root/ibmsd Virt_RASDProvider Virt_RASD instance -Xen_MemResourceAllocationSettingData root/ibmsd Virt_RASDProvider Virt_RASD instance +Xen_DiskResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance +Xen_NetResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance +Xen_ProcResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance +Xen_MemResourceAllocationSettingData root/virt Virt_RASDProvider Virt_RASD instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ResourcePoolConfigurationCapabilities.registration --- a/schema/ResourcePoolConfigurationCapabilities.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ResourcePoolConfigurationCapabilities.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,3 +1,3 @@ # Copyright IBM Corp. 2007 -Xen_ResourcePoolConfigurationCapabilities root/ibmsd Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance -KVM_ResourcePoolConfigurationCapabilities root/ibmsd Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance \ No newline at end of file +Xen_ResourcePoolConfigurationCapabilities root/virt Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance +KVM_ResourcePoolConfigurationCapabilities root/virt Virt_ResourcePoolConfigurationCapabilitiesProvider Virt_ResourcePoolConfigurationCapabilities instance \ No newline at end of file diff -r 114b074cb5e7 -r 90ffd19dda74 schema/ResourcePoolConfigurationService.registration --- a/schema/ResourcePoolConfigurationService.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/ResourcePoolConfigurationService.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,3 +1,3 @@ # Copyright IBM Corp. 2007 -Xen_ResourcePoolConfigurationService root/ibmsd Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method -KVM_ResourcePoolConfigurationService root/ibmsd Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method \ No newline at end of file +Xen_ResourcePoolConfigurationService root/virt Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method +KVM_ResourcePoolConfigurationService root/virt Virt_ResourcePoolConfigurationServiceProvider Virt_ResourcePoolConfigurationService instance method \ No newline at end of file diff -r 114b074cb5e7 -r 90ffd19dda74 schema/SettingsDefineCapabilities.registration --- a/schema/SettingsDefineCapabilities.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/SettingsDefineCapabilities.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,4 +1,4 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_SettingsDefineCapabilities root/ibmsd Xen_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association -KVM_SettingsDefineCapabilities root/ibmsd KVM_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association +Xen_SettingsDefineCapabilities root/virt Xen_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association +KVM_SettingsDefineCapabilities root/virt KVM_SettingsDefineCapabilitiesProvider Virt_SettingsDefineCapabilities association diff -r 114b074cb5e7 -r 90ffd19dda74 schema/SettingsDefineState.registration --- a/schema/SettingsDefineState.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/SettingsDefineState.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,4 +1,4 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_SettingsDefineState root/ibmsd Xen_SettingsDefineStateProvider Virt_SettingsDefineState association -KVM_SettingsDefineState root/ibmsd KVM_SettingsDefineStateProvider Virt_SettingsDefineState association +Xen_SettingsDefineState root/virt Xen_SettingsDefineStateProvider Virt_SettingsDefineState association +KVM_SettingsDefineState root/virt KVM_SettingsDefineStateProvider Virt_SettingsDefineState association diff -r 114b074cb5e7 -r 90ffd19dda74 schema/SystemDevice.registration --- a/schema/SystemDevice.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/SystemDevice.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,3 +1,3 @@ # Copyright IBM Corp. 2007 -Xen_SystemDevice root/ibmsd Xen_SystemDeviceProvider Virt_SystemDevice association -KVM_SystemDevice root/ibmsd KVM_SystemDeviceProvider Virt_SystemDevice association +Xen_SystemDevice root/virt Xen_SystemDeviceProvider Virt_SystemDevice association +KVM_SystemDevice root/virt KVM_SystemDeviceProvider Virt_SystemDevice association diff -r 114b074cb5e7 -r 90ffd19dda74 schema/VSSD.registration --- a/schema/VSSD.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/VSSD.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,4 +1,4 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_VirtualSystemSettingData root/ibmsd Virt_VSSDProvider Virt_VSSD instance -KVM_VirtualSystemSettingData root/ibmsd Virt_VSSDProvider Virt_VSSD instance +Xen_VirtualSystemSettingData root/virt Virt_VSSDProvider Virt_VSSD instance +KVM_VirtualSystemSettingData root/virt Virt_VSSDProvider Virt_VSSD instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/VSSDComponent.registration --- a/schema/VSSDComponent.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/VSSDComponent.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,4 +1,4 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_VirtualSystemSettingDataComponent root/ibmsd Xen_VSSDComponentProvider Virt_VSSDComponent association -KVM_VirtualSystemSettingDataComponent root/ibmsd KVM_VSSDComponentProvider Virt_VSSDComponent association +Xen_VirtualSystemSettingDataComponent root/virt Xen_VSSDComponentProvider Virt_VSSDComponent association +KVM_VirtualSystemSettingDataComponent root/virt KVM_VSSDComponentProvider Virt_VSSDComponent association diff -r 114b074cb5e7 -r 90ffd19dda74 schema/VirtualSystemManagementCapabilities.registration --- a/schema/VirtualSystemManagementCapabilities.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/VirtualSystemManagementCapabilities.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,5 +1,5 @@ # Copyright IBM Corp. 2007 # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_VirtualSystemManagementCapabilities root/ibmsd Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance +Xen_VirtualSystemManagementCapabilities root/virt Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance # Classname Namespace ProviderName ProviderModule ProviderTypes ... -KVM_VirtualSystemManagementCapabilities root/ibmsd Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance +KVM_VirtualSystemManagementCapabilities root/virt Virt_VirtualSystemManagementCapabilitiesProvider Virt_VirtualSystemManagementCapabilities instance diff -r 114b074cb5e7 -r 90ffd19dda74 schema/VirtualSystemManagementService.registration --- a/schema/VirtualSystemManagementService.registration Thu Nov 08 12:47:38 2007 -0800 +++ b/schema/VirtualSystemManagementService.registration Thu Nov 08 13:54:24 2007 -0800 @@ -1,3 +1,3 @@ # Copyright IBM Corp. 2007 -Xen_VirtualSystemManagementService root/ibmsd Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance -KVM_VirtualSystemManagementService root/ibmsd Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance +Xen_VirtualSystemManagementService root/virt Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance +KVM_VirtualSystemManagementService root/virt Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance diff -r 114b074cb5e7 -r 90ffd19dda74 src/Virt_ComputerSystemIndication.c --- a/src/Virt_ComputerSystemIndication.c Thu Nov 08 12:47:38 2007 -0800 +++ b/src/Virt_ComputerSystemIndication.c Thu Nov 08 13:54:24 2007 -0800 @@ -142,7 +142,7 @@ static bool async_ind(CMPIContext *conte CMPIStatus s; const char *type_name; char *type_cn = NULL; - const char *ns = "root/ibmsd"; + const char *ns = "root/virt"; /* FIXME: Hmm, need to get the namespace a better way */ diff -r 114b074cb5e7 -r 90ffd19dda74 src/Virt_ElementConformsToProfile.c --- a/src/Virt_ElementConformsToProfile.c Thu Nov 08 12:47:38 2007 -0800 +++ b/src/Virt_ElementConformsToProfile.c Thu Nov 08 13:54:24 2007 -0800 @@ -64,7 +64,7 @@ static CMPIStatus elem_instances(const C goto out; } - op = CMNewObjectPath(_BROKER, "/root/ibmsd", classname, &s); + op = CMNewObjectPath(_BROKER, "/root/virt", classname, &s); if ((s.rc != CMPI_RC_OK) || CMIsNullObject(op)) goto error;

On Thu, Nov 08, 2007 at 01:56:43PM -0700, Dan Smith wrote:
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1194558864 28800 # Node ID 90ffd19dda747eb615f12b10aa04e4f9bc978b31 # Parent 114b074cb5e710e6c3613ca89edf205bbf945d4c Change installed namespace to root/virt
This one deserves some serious testing, although I was pleasantly surprised at how few instances of the namespace we had hard-coded. We could probably use a configure flag to set the namespace, but the schema files would all have to change before it would work, so I'm not sure it's worth it.
Signed-off-by: Dan Smith <danms@us.ibm.com>
diff -r 114b074cb5e7 -r 90ffd19dda74 Makefile.am --- a/Makefile.am Thu Nov 08 12:47:38 2007 -0800 +++ b/Makefile.am Thu Nov 08 13:54:24 2007 -0800 @@ -81,11 +81,11 @@ EXTRA_DIST = schema $(pkgdata_DATA) $(pk # Un/Register the providers and class definitions from/to the current CIMOM. # @CIMSERVER@ is set by the configure script postinstall: - sh provider-register.sh -v -t @CIMSERVER@ -n /root/ibmsd -r $(REGS) -m $(MOFS) + sh provider-register.sh -v -t @CIMSERVER@ -n /root/virt -r $(REGS) -m $(MOFS) sh provider-register.sh -v -t @CIMSERVER@ -n /root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS)
In general root's home does not sound the proper place for storing system data, is there really no way to put this somewhere under /var instead ? The part below seems unrelated to the namespace change :-) but fine by me
diff -r 114b074cb5e7 -r 90ffd19dda74 doc/Makefile.am --- a/doc/Makefile.am Thu Nov 08 12:47:38 2007 -0800 +++ b/doc/Makefile.am Thu Nov 08 13:54:24 2007 -0800 @@ -1,6 +1,8 @@ XSLTPROC = /usr/bin/xsltproc XSLTPROC = /usr/bin/xsltproc
WEB_PAGES = index.html + +EXTRA_DIST = site.xsl libvirt-cim.html
Any chance to also add all the generated HTML pages ? That way we are sure the package will include the documentation in its final form, and even if xsltproc is not installed "make install" will suceed. We also need to initialize $(XSLTPROC) with a configure check if possible
$(WEB_PAGES): libvirt-cim.html site.xsl $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/libvirt-cim.html > index.html diff -r 114b074cb5e7 -r 90ffd19dda74 doc/libvirt-cim.html [...] @@ -142,7 +142,7 @@ static bool async_ind(CMPIContext *conte CMPIStatus s; const char *type_name; char *type_cn = NULL; - const char *ns = "root/ibmsd"; + const char *ns = "root/virt";
/* FIXME: Hmm, need to get the namespace a better way */
diff -r 114b074cb5e7 -r 90ffd19dda74 src/Virt_ElementConformsToProfile.c --- a/src/Virt_ElementConformsToProfile.c Thu Nov 08 12:47:38 2007 -0800 +++ b/src/Virt_ElementConformsToProfile.c Thu Nov 08 13:54:24 2007 -0800 @@ -64,7 +64,7 @@ static CMPIStatus elem_instances(const C goto out; }
- op = CMNewObjectPath(_BROKER, "/root/ibmsd", classname, &s); + op = CMNewObjectPath(_BROKER, "/root/virt", classname, &s); if ((s.rc != CMPI_RC_OK) || CMIsNullObject(op)) goto error;
Can't this go under $(datadir)/libvirt-cim ? If we could export this from config.h as a define I guess that would be perfect. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

DV> In general root's home does not sound the proper place for DV> storing system data, is there really no way to put this somewhere DV> under /var instead ? Okay, we're not *that* dumb :) The namespace is a CIM concept used to separate providers, which must be "/root/something". It's part of the URI used to make CIM queries. On a Pegasus box, this actually translates to $PEGASUS/repository/root/virt, where $PEGASUS is /var/lib/Pegasus (on most machines). DV> The part below seems unrelated to the namespace change :-) but fine by me Yes, thanks for that. It was supposed to be part of the rpm patch, but I leaked this hunk into the namespace patch :) DV> Any chance to also add all the generated HTML pages ? That way we DV> are sure the package will include the documentation in its final DV> form, and even if xsltproc is not installed "make install" will DV> suceed. Yep, that's fine. I guess I just need to make sure that the web pages get build as part of a normal build and installed appropriately. I've been focusing on getting the schema installation to work, but I can do this too. DV> We also need to initialize $(XSLTPROC) with a configure check if DV> possible Okay, I'm not familiar with what the options for XSLTPROC are, but I'll look at its pkg-config info for that. DV> If we could export this from config.h as a define I guess that DV> would be perfect. Yes, I can do that too. As I said in the log message, there are 62 schema files that you have to touch if you ever had to change it again, so a couple of source files aren't a big deal. However, I guess it *should* be in configure, so I'll add it :) Thanks! -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com

On Fri, Nov 09, 2007 at 06:37:02AM -0800, Dan Smith wrote:
DV> In general root's home does not sound the proper place for DV> storing system data, is there really no way to put this somewhere DV> under /var instead ?
Okay, we're not *that* dumb :)
The namespace is a CIM concept used to separate providers, which must be "/root/something". It's part of the URI used to make CIM queries. On a Pegasus box, this actually translates to $PEGASUS/repository/root/virt, where $PEGASUS is /var/lib/Pegasus (on most machines).
I had an epidermic reaction, I didn't check further, my bad :-) Still even in the XML space people always wonder if they can dereference the namespace name to get extra informatiosn, I bet I won't be the only one confused by /root/... Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
participants (2)
-
Dan Smith
-
Daniel Veillard