Hide Forgot
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.
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.
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.
A related patch has been committed upstream: https://github.com/ClusterLabs/pacemaker/commit/591b00a
Docs have been updated. Closing.