Bug 742302 - crm configure python traceback (UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0...)
Summary: crm configure python traceback (UnicodeDecodeError: 'ascii' codec can't decod...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pacemaker
Version: 6.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Andrew Beekhof
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-29 16:06 UTC by Jaroslav Kortus
Modified: 2011-10-19 00:43 UTC (History)
1 user (show)

Fixed In Version: pacemaker-1.1.6-2.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-19 00:43:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jaroslav Kortus 2011-09-29 16:06:54 UTC
Description of problem:
error printed while executing cut&paste command from documentation (http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html-single/Clusters_from_Scratch/#id826888)

$ crm configure primitive myfs ocf:heartbeat:Filesystem params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”
Traceback (most recent call last):
  File "/usr/sbin/crm", line 45, in <module>
    main.run()
  File "/usr/lib64/python2.6/site-packages/crm/main.py", line 268, in run
    if parse_line(levels,shlex.split(' '.join(args))):
  File "/usr/lib64/python2.6/site-packages/crm/main.py", line 153, in parse_line
    lvl.release()
  File "/usr/lib64/python2.6/site-packages/crm/levels.py", line 65, in release
    self.droplevel()
  File "/usr/lib64/python2.6/site-packages/crm/levels.py", line 84, in droplevel
    self.current_level.end_game(self._in_transit)
  File "/usr/lib64/python2.6/site-packages/crm/ui.py", line 1661, in end_game
    self.commit("commit")
  File "/usr/lib64/python2.6/site-packages/crm/ui.py", line 1531, in commit
    self._verify(mkset_obj("xml","changed"),mkset_obj("xml"))
  File "/usr/lib64/python2.6/site-packages/crm/ui.py", line 1436, in _verify
    rc1 = set_obj_all.verify()
  File "/usr/lib64/python2.6/site-packages/crm/cibconfig.py", line 467, in verify
    rc = pipe_string(cib_verify,self.repr(format = -1))
  File "/usr/lib64/python2.6/site-packages/crm/cibconfig.py", line 414, in repr
    s = doc.toprettyxml(user_prefs.xmlindent)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/minidom.py", line 62, in toprettyxml
    return writer.getvalue()
  File "/usr/lib64/python2.6/StringIO.py", line 270, in getvalue
    self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)


Version-Release number of selected component (if applicable):
pacemaker-libs-1.1.5-8.el6.x86_64
pacemaker-1.1.5-8.el6.x86_64
pacemaker-cli-1.1.5-8.el6.x86_64
pacemaker-doc-1.1.5-8.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. issue the command as above
2.
3.
  
Actual results:
python traceback
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

Expected results:
no traceback, possibly error message (syntax error or similar)

Additional info:
(11:03:19) [root@marathon-02:/dev/marathon]$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

issued from ssh session in gnome-terminal.

Comment 2 Andrew Beekhof 2011-09-30 00:38:39 UTC
Notice the difference between the quote mark after: html" and the one after: fstype=”  in your original text.  I don't think we support the fancy kind.

Comment 3 Jaroslav Kortus 2011-09-30 10:17:41 UTC
ha, you are right! They all looked the same to me but it's different char indeed. It's not a bug then, but I'd still ask you to fix that in the docs :).

Thank you,
J.

Comment 5 Andrew Beekhof 2011-10-05 04:16:23 UTC
A related patch has been committed upstream: https://github.com/ClusterLabs/pacemaker/commit/591b00a

Comment 6 Andrew Beekhof 2011-10-19 00:43:59 UTC
Docs have been updated. Closing.


Note You need to log in before you can comment on or make changes to this bug.