Hi Pradeep,

In the current version of cloudmonkey, unicode chars are not supported
(also it's tricky to do it with Python2x).

I'm working on a golang based port [1] in my free time to solve some of
these issues which will have support for unicode encoded strings. We'll
also have to test if CloudStack management server would work fine with
Unicode chars (in field names such as dns, vm names etc.)

[1] https://github.com/apache/cloudstack-cloudmonkey/tree/goport (created
branch, will push changes as soon as I've something interesting to share)

Regards.


On Tue, May 27, 2014 at 4:13 PM, pradeep s <[email protected]> wrote:

> Hi,
>
> I am trying to create a zone with unicode chars in its name using
> cloudmonkey.
>
> # cloudmonkey create zone dns1=<IP> dns2=<IP> internaldns1=<IP>
> name=monkeyÀçîô
>
> Following error is throw:.
> Traceback (most recent call last):
>   File "/usr/bin/cloudmonkey", line 9, in <module>
>     load_entry_point('cloudmonkey==5.1.0', 'console_scripts',
> 'cloudmonkey')()
>   File
>
> "/usr/lib/python2.6/site-packages/cloudmonkey-5.1.0-py2.6.egg/cloudmonkey/cloudmonkey.py",
> line 560, in main
>     shell.onecmd(' '.join(args))
>   File "/usr/lib64/python2.6/cmd.py", line 219, in onecmd
>     return func(arg)
>   File
>
> "/usr/lib/python2.6/site-packages/cloudmonkey-5.1.0-py2.6.egg/cloudmonkey/cloudmonkey.py",
> line 126, in grammar_closure
>     if self.pipe_runner("%s %s" % (verb, args)):
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 79:
> ordinal not in range(128)
>
> However i can create a zone with unicode chars through UI.
> Does cloudmonkey support parameter values with unicode chars??
>
>
> Regards,
> Pradeep
>

Reply via email to