testing error of storage

Jan Safranek jsafrane at redhat.com
Fri Sep 20 10:46:34 UTC 2013


On 09/20/2013 11:35 AM, sunil kumar wrote:
> 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 at node5 test]export LMI_CIMOM_URL=https://localhost:5989
> [root at node5 test]# export LMI_CIMOM_USERNAME=pegasus
> [root at node5 test]# export LMI_CIMOM_PASSWORD=sunil
> [root at node5 test]# export LMI_STORAGE_DISK=/dev/sdc
> [root at 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.')
> 

That's quite strange. It should not matter if you set them one by one if
you properly export all of them in bash. Can you please post complete
set of commands to start the tests + also the command to run the test
itself?

I start the tests using this command (as one long line):

[ rooot at rawhide ]$ LMI_CIMOM_URL="https://localhost:5989"
LMI_CIMOM_USERNAME=root LMI_CIMOM_PASSWORD=pw
LMI_CIMOM_BROKER=tog-pegasus LMI_STORAGE_DISK=/dev/sda
LMI_STORAGE_PARTITIONS=`ls /dev/sdb?*` python test/test_create_mdraid.py


Thanks

Jan


More information about the openlmi-devel mailing list