[PATCH] Add a basic README file
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1193414283 25200
# Node ID 6e4b77769d72ea84581f50c173bb98e3e977edac
# Parent cdd77491efaac8f60428cbf0ef92ec8b566f5b60
Add a basic README file
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r cdd77491efaa -r 6e4b77769d72 README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README Fri Oct 26 08:58:03 2007 -0700
@@ -0,0 +1,37 @@
+ libcmpiutil : A CMPI toolkit library for writing providers
+
+Libcmpiutil is a library of utility functions for CMPI providers. It
+is free software available under the GNU Lesser General Public
+License. The goal is to reduce the amount of repetitive work done in
+most CMPI providers by encapsulating common procedures with more
+"normal" APIs. This extends from operations like getting typed
+instance properties to standardizing method dispatch and argument
+checking.
+
+The latest version of the library can be found here:
+
+ http://libvirt.org/hg/libcmpiutil
+
+ Development discussion currently takes place on the libvirt-cim
+ mailing list:
+
+ https://www.redhat.com/mailman/listinfo/libvirt-cim
+
+Building
+--------
+
+Requirements:
+
+ - Pegasus or SFCB development headers
+ - libxml2
+ - Lex (if enabling the EO parser)
+ - Yacc (if enabling the EO parser)
+ - doxygen
+
+Procedure:
+
+ $ ./autogen.sh
+ $ # You probably want the EO parser enabled
+ $ ./configure --enable-eoparser
+ $ make
+ $ sudo make install
17 years, 2 months
[PATCH] Add a basic README file to libcmpiutil (without libxml2 as a requirement)
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1193417112 25200
# Node ID 28180922bc19dc31223ceed66358cd108e2e2124
# Parent cdd77491efaac8f60428cbf0ef92ec8b566f5b60
Add a basic README file to libcmpiutil (without libxml2 as a requirement)
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r cdd77491efaa -r 28180922bc19 README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README Fri Oct 26 09:45:12 2007 -0700
@@ -0,0 +1,36 @@
+ libcmpiutil : A CMPI toolkit library for writing providers
+
+Libcmpiutil is a library of utility functions for CMPI providers. It
+is free software available under the GNU Lesser General Public
+License. The goal is to reduce the amount of repetitive work done in
+most CMPI providers by encapsulating common procedures with more
+"normal" APIs. This extends from operations like getting typed
+instance properties to standardizing method dispatch and argument
+checking.
+
+The latest version of the library can be found here:
+
+ http://libvirt.org/hg/libcmpiutil
+
+ Development discussion currently takes place on the libvirt-cim
+ mailing list:
+
+ https://www.redhat.com/mailman/listinfo/libvirt-cim
+
+Building
+--------
+
+Requirements:
+
+ - Pegasus or SFCB development headers
+ - Lex (if enabling the EO parser)
+ - Yacc (if enabling the EO parser)
+ - doxygen
+
+Procedure:
+
+ $ ./autogen.sh
+ $ # You probably want the EO parser enabled
+ $ ./configure --enable-eoparser
+ $ make
+ $ sudo make install
17 years, 2 months
[PATCH 0 of 3] Add DiskPool support
by Dan Smith
This set adds disk pool support and the relevant changes to RAFP and EAFP
to support discovery of membership from LogicalDisk and DiskRASD. It's
a little raw right now, but it works.
17 years, 2 months
[PATCH] Add a basic README file
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1193412852 25200
# Node ID ca75b48896652c812520d6b08eac07bc4e9473ec
# Parent d41b62edd9412659b17b39c36d9ad488ca24f622
Add a basic README file
I'm sure the list of requirements is not complete here, but it's a start
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r d41b62edd941 -r ca75b4889665 README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README Fri Oct 26 08:34:12 2007 -0700
@@ -0,0 +1,36 @@
+
+ libvirt-cim : A CIM provider for libvirt
+
+Libvirt-cim is a CMPI CIM provider that implements the DMTF SVPC
+virtualization model. It is free software available under the GNU
+Lesser General Public License. The goal is to support most of the
+features exported by libvirt itself, enabling management of multiple
+platforms with a single provider.
+
+The latest version of the library can be found here:
+
+ http://libvirt.org/hg/libvirt-cim
+
+and the development discussion mailing list is here:
+
+ https://www.redhat.com/mailman/listinfo/libvirt-cim
+
+Building
+--------
+
+Requirements:
+
+ - Pegasus or SFCB development headers
+ - libvirt 0.2.3 or greater
+ - e2fsprogs-devel
+ - libxml2
+ - libcmpiutil (http://libvirt.org/hg/libcmpiutil)
+ - DMTF v2.16 experimental CIM Schema installed
+
+Procedure:
+
+ $ ./autoconfiscate.sh
+ $ ./configure
+ $ make
+ $ sudo make install
+ $ sudo make postinstall
17 years, 2 months
[PATCH] Make VSMS an instance provider
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1193407878 25200
# Node ID 1fef15850ba5557cc421206fb3ff569f6845ad99
# Parent c0f41fb8b46631e3a636e28beb50be22a7929a1e
Make VSMS an instance provider
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r c0f41fb8b466 -r 1fef15850ba5 schema/VirtualSystemManagementService.registration
--- a/schema/VirtualSystemManagementService.registration Fri Oct 26 07:05:10 2007 -0700
+++ b/schema/VirtualSystemManagementService.registration Fri Oct 26 07:11:18 2007 -0700
@@ -1,3 +1,3 @@
# Copyright IBM Corp. 2007
-Xen_VirtualSystemManagementService root/ibmsd Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method
-KVM_VirtualSystemManagementService root/ibmsd Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method
+Xen_VirtualSystemManagementService root/ibmsd Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance
+KVM_VirtualSystemManagementService root/ibmsd Virt_VirtualSystemManagementService Virt_VirtualSystemManagementService method instance
diff -r c0f41fb8b466 -r 1fef15850ba5 src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Fri Oct 26 07:05:10 2007 -0700
+++ b/src/Virt_VirtualSystemManagementService.c Fri Oct 26 07:11:18 2007 -0700
@@ -896,6 +896,80 @@ STDIM_MethodMIStub(, Virt_VirtualSystemM
STDIM_MethodMIStub(, Virt_VirtualSystemManagementService,
_BROKER, CMNoHook, my_handlers);
+
+static CMPIStatus return_vsms(const CMPIObjectPath *reference,
+ const CMPIResult *results,
+ int name_only)
+{
+ CMPIStatus s;
+ CMPIInstance *inst;
+
+ inst = get_typed_instance(_BROKER,
+ "VirtualSystemManagementService",
+ NAMESPACE(reference));
+ if (inst == NULL) {
+ cu_statusf(_BROKER, &s,
+ CMPI_RC_ERR_FAILED,
+ "Failed to create instance");
+ goto out;
+ }
+
+ CMSetProperty(inst, "Name",
+ (CMPIValue *)"Management Service", CMPI_chars);
+
+ if (name_only)
+ cu_return_instance_name(results, inst);
+ else
+ CMReturnInstance(results, inst);
+
+ CMSetStatus(&s, CMPI_RC_OK);
+
+ out:
+ return s;
+}
+
+static CMPIStatus EnumInstanceNames(CMPIInstanceMI *self,
+ const CMPIContext *context,
+ const CMPIResult *results,
+ const CMPIObjectPath *reference)
+{
+ return return_vsms(reference, results, 1);
+}
+
+static CMPIStatus EnumInstances(CMPIInstanceMI *self,
+ const CMPIContext *context,
+ const CMPIResult *results,
+ const CMPIObjectPath *reference,
+ const char **properties)
+{
+
+ return return_vsms(reference, results, 0);
+}
+
+static CMPIStatus GetInstance(CMPIInstanceMI *self,
+ const CMPIContext *context,
+ const CMPIResult *results,
+ const CMPIObjectPath *reference,
+ const char **properties)
+{
+ return return_vsms(reference, results, 0);
+}
+
+DEFAULT_CI();
+DEFAULT_MI();
+DEFAULT_DI();
+DEFAULT_EQ();
+DEFAULT_INST_CLEANUP();
+
+/* Avoid a warning in the stub macro below */
+CMPIInstanceMI *
+Virt_VirtualSystemManagementService_Create_InstanceMI(const CMPIBroker *,
+ const CMPIContext *,
+ CMPIStatus *rc);
+
+CMInstanceMIStub(, Virt_VirtualSystemManagementService, _BROKER, CMNoHook);
+
+
/*
* Local Variables:
* mode: C
17 years, 2 months
[PATCH] Move RASD base classes out of provider MOFs
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1193407510 25200
# Node ID c0f41fb8b46631e3a636e28beb50be22a7929a1e
# Parent d41b62edd9412659b17b39c36d9ad488ca24f622
Move RASD base classes out of provider MOFs.
This adds another script that can be used to register additional base classes
to the schema, without registering a new provider. This lets us extend the
base schema with our Xen_RASD and KVM_RASD classes. It also provides us
a framework to install bundled base schema, which may be necessary at some
point.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r d41b62edd941 -r c0f41fb8b466 Makefile.am
--- a/Makefile.am Thu Oct 25 14:37:09 2007 -0700
+++ b/Makefile.am Fri Oct 26 07:05:10 2007 -0700
@@ -69,6 +69,10 @@ INTEROP_REGS = \
schema/RegisteredProfile.registration \
schema/ElementConformsToProfile.registration
+EXTRA_BASE_MOFS = \
+ schema/Xen_ResourceAllocationSettingData.mof \
+ schema/KVM_ResourceAllocationSettingData.mof
+
pkgdata_DATA = $(MOFS) $(REGS)
pkgdata_SCRIPTS = provider-register.sh
@@ -77,6 +81,7 @@ 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 register_base.sh @CIMSERVER@ $(EXTRA_BASE_MOFS)
sh provider-register.sh -t @CIMSERVER@ -n /root/ibmsd -r $(REGS) -m $(MOFS)
sh provider-register.sh -t @CIMSERVER@ -n /root/interop -r $(INTEROP_REGS) -m $(INTEROP_MOFS)
diff -r d41b62edd941 -r c0f41fb8b466 register_base.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/register_base.sh Fri Oct 26 07:05:10 2007 -0700
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# A script to register base classes with the CIMOM
+#
+# Copyright IBM Corp. 2007
+# Author: Dan Smith <danms(a)us.ibm.com>
+#
+# Usage:
+#
+# $ register_base.sh (sfcb|pegasus) [MOF...]
+#
+# FIXME: Need to make pegasus location and namespace variable
+
+CIMOM=$1
+
+if [ -z "$CIMOM" ]; then
+ echo "Usage: $0 (pegasus|sfcb)"
+ exit 1
+fi
+
+shift
+
+if [ "$CIMOM" = "pegasus" ]; then
+ for i in $*; do
+ cimmofl -W -uc -aEV -R/var/lib/Pegasus -n /root/ibmsd $i
+ done
+elif [ "$CIMOM" = "sfcb" ]; then
+ for i in $*; do
+ sfcbstage -n /root/ibmsd $i
+ done
+else
+ echo "Unknown CIMOM type: $CIMOM"
+fi
diff -r d41b62edd941 -r c0f41fb8b466 schema/KVM_ResourceAllocationSettingData.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/KVM_ResourceAllocationSettingData.mof Fri Oct 26 07:05:10 2007 -0700
@@ -0,0 +1,9 @@
+// Copyright IBM Corp. 2007
+class KVM_ResourceAllocationSettingData : CIM_ResourceAllocationSettingData {
+
+ [Key,
+ Description ("The type of allocated resource"),
+ Override ("ResourceType")]
+ uint16 ResourceType;
+
+};
diff -r d41b62edd941 -r c0f41fb8b466 schema/ResourceAllocationSettingData.mof
--- a/schema/ResourceAllocationSettingData.mof Thu Oct 25 14:37:09 2007 -0700
+++ b/schema/ResourceAllocationSettingData.mof Fri Oct 26 07:05:10 2007 -0700
@@ -1,22 +1,4 @@
// Copyright IBM Corp. 2007
-class Xen_ResourceAllocationSettingData : CIM_ResourceAllocationSettingData {
-
- [Key,
- Description ("The type of allocated resource"),
- Override ("ResourceType")]
- uint16 ResourceType;
-
-};
-
-class KVM_ResourceAllocationSettingData : CIM_ResourceAllocationSettingData {
-
- [Key,
- Description ("The type of allocated resource"),
- Override ("ResourceType")]
- uint16 ResourceType;
-
-};
-
[Description ("Xen virtual disk configuration")]
class Xen_DiskResourceAllocationSettingData : Xen_ResourceAllocationSettingData{
diff -r d41b62edd941 -r c0f41fb8b466 schema/Xen_ResourceAllocationSettingData.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/Xen_ResourceAllocationSettingData.mof Fri Oct 26 07:05:10 2007 -0700
@@ -0,0 +1,9 @@
+// Copyright IBM Corp. 2007
+class Xen_ResourceAllocationSettingData : CIM_ResourceAllocationSettingData {
+
+ [Key,
+ Description ("The type of allocated resource"),
+ Override ("ResourceType")]
+ uint16 ResourceType;
+
+};
17 years, 2 months