Closed miminar closed 10 years ago
Happens with 'mount' as well.
$ lmi --trace -h localhost mount create /dev/mapper/vg1-lv2 /root/složka/ ERROR: failed to execute wrapped function Traceback (most recent call last): File "/home/jsynacek/openlmi-scripts-nfs/lmi/scripts/common/command/command.py", line 818, in take_action res = self.execute_on_connection(connection, _args, _kwargs) File "/home/jsynacek/openlmi-scripts-nfs/lmi/scripts/common/command/command.py", line 508, in execute_on_connection return self.execute(connection, _args, _kwargs) File "/home/jsynacek/openlmi-scripts-nfs/commands/storage/lmi/scripts/storage/mount_cmd.py", line 159, in execute return mount.mount_create(ns, device, mountpoint, fs_type, options, other_options) File "/home/jsynacek/openlmi-scripts-nfs/commands/storage/lmi/scripts/storage/mount.py", line 172, in mount_create FileSystemSpec=device) File "/home/jsynacek/openlmi-tools-nfs/cli/lmi/shell/LMIMethod.py", line 369, in call self._method.name, _method_args) File "/home/jsynacek/openlmi-tools-nfs/cli/lmi/shell/LMIBaseClient.py", line 416, in _call_method_raw (rval, rparams) = self._cliconn.InvokeMethod(method, instance.path, _params) 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 301, in methodcall for x in params.items()] File "/usr/lib/python2.7/site-packages/pywbem/cim_operations.py", line 276, in paramvalue return cim_xml.VALUE(cim_types.atomic_to_cim_xml(obj)) File "/usr/lib/python2.7/site-packages/pywbem/cim_types.py", line 261, in atomic_to_cim_xml return unicode(obj) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 9: ordinal not in range(128) WARNING: invocation failed on host "https://localhost": 'ascii' codec can't decode byte 0xc5 in position 9: ordinal not in range(128)
There were 1 errors:
Host Error
https://localhost 'ascii' codec can't decode byte 0xc5 in position 9: ordinal not in range(128)
This is already resolved with commit fdb75fe3a6cf82cca3a975b2bb5683169598e551 And it needs patched pywbem (with unicode support) - svn revision 629.
Scripts can not work with unicode arguments. I've tested only LogicalFile providers and scripts. Steps to reproduce:
openlmi-logicalfile
and related scripts (openlmi-scripts-logicalfile
)make some file or directory with non-ascii characters e.g.:
try to list /root:
try to show it:
Output of list looks like this:
Output of show looks like this: