Re: Review Request 837: journald: Add support for iterators
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/837/
-----------------------------------------------------------
(Updated Sept. 20, 2013, 10:05 a.m.)
Review request for OpenLMI Developers.
Changes
-------
Set branch (an experiment)
Repository: openlmi-providers
Description
-------
journald: Add support for iterators
This implements CIM_MessageLog iterator functionality according to
the model. The only limitation, or, let's say shortcoming, is a
free-form output data format from the GetRecord call. Currently we
feed the uint8 array with UTF-8 chars and it's up to the client to
deal with it (as suggested in the model). This may be subject to
change.
Many methods are returning modified iterator that has been passed
in and that allows having persistent iterators. As long as CIMOMs
may destroy the instances and unload providers on inactivity, any
particular delay would cause loss of the iterator. The iterator
string contains journal cursor string, uniquely identifying a
record. When this part of the iterator string is valid, the
provider is able to reopen journal and seek to that position,
allowing seamless continuation of the itearation process. If the
cursor points to non-existing record, an error is returned. This
typically happens when journal is rotated or the cursor is very
old.
The provider keeps track of active iterators during its lifetime,
keeping the journal open for fast access. Clients are supposed to
close the iterator by calling the CancelIteration method.
--
some TODOs will be addressed in future patches
tests will be published soon
Diffs
-----
src/journald/LMI_JournalMessageLogProvider.c PRE-CREATION
src/journald/instutil.h PRE-CREATION
src/journald/instutil.c PRE-CREATION
Diff: http://reviewboard-openlmi.rhcloud.com/r/837/diff/
Testing
-------
Thanks,
Tomáš Bžatek
_______________________________________________
openlmi-reviews mailing list
openlmi-reviews(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/openlmi-reviews
10 years, 7 months
ANNOUNCE: lmishell, method calls and refreshing
by Peter Hatina
Hi,
from commit 4059d9d, LMIShell does *not* auto-refresh a LMIInstance
after a method call.
To make scripts work with current lmishell, it is possible to pass
"RefreshInstance" parameter into a method call, which will instruct
lmishell to behave as before; or refresh the instance by hand.
Example:
instance.Method({"param" : val}, RefreshInstance=True)
or:
instance.Method({"param" : val})
instance.refresh()
Have a nice day!
--
Peter Hatina
ENG Server Experience, System Management
Red Hat Czech, Brno
10 years, 7 months
Error while using cmake in openlmi-networking
by Chethan Y
Hi,
I just encountered an error while using cmake in openlmi-networking
and am just stuck here from past a day. Please help me out ?
CMake Error at /usr/share/cmake/Modules/OpenLMIMacros.cmake:31 (message):
MOF file CIM_CLASSES not found
Call stack (most recent call first):
src/CMakeLists.txt:32 (konkretcmpi_generate)
-- Configuring incomplete, errors occured!
10 years, 7 months
testing error of storage
by sunil kumar
hi!.
i am working on openlmi-storage. While running the test case of
test_create_mdraid.py i am getting error. i created 10 partition (sdb?*)
and one sdc . is an other methodology to be followed while partition or
while running the test case.
partion using fdisk.
Disk /dev/sdb: 32.2 GB, 32212254720 bytes, 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0003e579
Device Boot Start End Blocks Id System
/dev/sdb1 2048 62914559 31456256 5 Extended
/dev/sdb5 4096 4198399 2097152 8e Linux LVM
/dev/sdb6 4200448 8394751 2097152 8e Linux LVM
/dev/sdb7 8396800 12591103 2097152 8e Linux LVM
/dev/sdb8 12593152 16787455 2097152 8e Linux LVM
/dev/sdb9 16789504 20983807 2097152 8e Linux LVM
/dev/sdb10 20985856 25180159 2097152 8e Linux LVM
/dev/sdb11 25182208 29376511 2097152 83 Linux
/dev/sdb12 29378560 33572863 2097152 83 Linux
/dev/sdb13 33574912 37769215 2097152 83 Linux
/dev/sdb14 37771264 41965567 2097152 8e Linux LVM
Disk /dev/sdc: 32.2 GB, 32212254720 bytes, 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@node5 test]export LMI_CIMOM_URL=https://localhost:5989
[root@node5 test]# export LMI_CIMOM_USERNAME=pegasus
[root@node5 test]# export LMI_CIMOM_PASSWORD=sunil
[root@node5 test]# export LMI_STORAGE_DISK=/dev/sdc
[root@node5 test]# LMI_STORAGE_PARTITIONS="/dev/sdb?*"
i also tried by giving /dev/sdb2/ /dev/sdb3 manually.. its not working..
i am getting this error...
InExtents=devices)
File "/usr/lib/python2.7/site-packages/pywbem/cim_operations.py", line
800, in InvokeMethod
result = self.methodcall(MethodName, obj, **params)
File "/usr/lib/python2.7/site-packages/pywbem/cim_operations.py", line
361, in methodcall
raise CIMError(code, tt[0][1]['DESCRIPTION'])
CIMError: (4, u'CIM_ERR_INVALID_PARAMETER: Parameter InExtents is
mandatory.')
----------------------------------------------------------------------
Ran 16 tests in 13.330s
FAILED (errors=15)
10 years, 7 months
storage providers error.
by sunil kumar
hi
while registering (make register fan). we are getting following error.
"Compiler general exception: parse error: Error getting class
PG_ProviderModule from namespace root/interop: CIM_ERR_NOT_FOUND:
PG_ProviderModule
2013-09-20 05:38:03 EXIT CODE: 248
2013-09-20 05:38:03 DONE WITH EXIT CODE: 0
Built target register-Fan'"
where can i find cim .c and .h files related to storage
10 years, 7 months
Re: Review Request 848: lmishell, unify method call arguments with instance filtering
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/848/
-----------------------------------------------------------
(Updated Sept. 19, 2013, 1:17 p.m.)
Status
------
This change has been marked as submitted.
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
This patch unifies the means of passing arguments to method call and instance filtering.
Example:
> instance.MethodCall({"Param1" : val1, "Param2" : val2, ...})
compared to:
> instance.MethodCall(Param1=val1, Param2=val2, ...)
NOTE: The previous way, how to pass parameters to the method call still works.
Diffs
-----
cli/lmi/shell/LMIMethod.py 8168ca406df98ba4da49ff31ba7b4188195593b7
Diff: http://reviewboard-openlmi.rhcloud.com/r/848/diff/
Testing
-------
Thanks,
Peter Hatina
_______________________________________________
openlmi-reviews mailing list
openlmi-reviews(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/openlmi-reviews
10 years, 7 months
Re: Review Request 687: lmishell, verify server side certificate
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/687/
-----------------------------------------------------------
(Updated Sept. 19, 2013, 1:17 p.m.)
Status
------
This change has been marked as submitted.
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
This patch introduces server side certificate check, if SSL used. LMIShell can be told not to verify the certificate by CLI option -n, --noverify.
Diffs
-----
cli/lmi/shell/LMIBaseClient.py a8ecbcb116de488c6099e6da71631323e98610b7
cli/lmi/shell/LMIConnection.py c1ecaea86a7a02479eaae37cfc1720203bf97202
cli/lmi/shell/LMIConsole.py f81099fa84f1dadf3ac59597f3f020a521320899
cli/lmi/shell/LMIShellClient.py ca9a927464de4e67a5331cb095be34ab0b01e903
cli/lmi/shell/LMIShellOptions.py 3e182a7e8ebcbebd78d526b2c938f20455dd1a29
cli/lmishell a49a2fa29342ecefbf48626e1caa285df1cfa16b
Diff: http://reviewboard-openlmi.rhcloud.com/r/687/diff/
Testing
-------
Thanks,
Peter Hatina
_______________________________________________
openlmi-reviews mailing list
openlmi-reviews(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/openlmi-reviews
10 years, 7 months
Re: Review Request 702: lmishell, introduce help() method
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/702/
-----------------------------------------------------------
(Updated Sept. 19, 2013, 1:17 p.m.)
Status
------
This change has been marked as submitted.
Review request for OpenLMI Developers.
Repository: openlmi-tools
Description
-------
This patch introduces simple help() function, which can either display man page for lmishell (if installed), or pydoc help for an object.
See following example:
> help
Type help() to see man page for lmishell, or help(object) for help about object.
> help()
... man page ...
or
Man page for lmishell can not be found, refer to Wiki page instead.
Available at: https://fedorahosted.org/openlmi/wiki/shell
> help(some_function)
... pydoc help ...
Diffs
-----
cli/lmi/shell/LMIConsole.py 31cecd6aaf7d2f49f6ce27122b464278a5dfc139
cli/lmi/shell/LMIHelper.py PRE-CREATION
cli/lmi/shell/LMIUtil.py 990ac8d1b5fac27cb21ad5f8796b68f08cf89432
Diff: http://reviewboard-openlmi.rhcloud.com/r/702/diff/
Testing
-------
Thanks,
Peter Hatina
_______________________________________________
openlmi-reviews mailing list
openlmi-reviews(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/openlmi-reviews
10 years, 7 months