<div dir="ltr">Thanks Along, finally I figure out that this is a bug  and fixed by this commit<div><br></div><div><div>commit e749b60f49a4a3b48cc5da67a797f717dd8cd01d</div><div>Author: Julien Danjou <<a href="mailto:julien@danjou.info">julien@danjou.info</a>></div><div>Date:   Tue Jun 20 16:36:14 2017 +0200</div><div><br></div><div>    utils: use ASCII bytes as member id</div><div><br></div><div>    Tooz actually wants ASCII bytes and not random bytes.</div><div><br></div><div>    Fixes #130</div><div><br></div><div>diff --git a/gnocchi/utils.py b/gnocchi/utils.py</div><div>index f81d93e..7666711 100644</div><div>--- a/gnocchi/utils.py</div><div>+++ b/gnocchi/utils.py</div><div>@@ -90,7 +90,7 @@ def _enable_coordination(coord):</div><div><br></div><div><br></div><div> def get_coordinator_and_start(url):</div><div>-    my_id = uuid.uuid4().bytes</div><div>+    my_id = str(uuid.uuid4()).encode()</div><div>     coord = coordination.get_coordinator(url, my_id)</div><div>     _enable_coordination(coord)</div><div>     return coord, my_id</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 7, 2017 at 10:10 PM, Along Meng <span dir="ltr"><<a href="mailto:alongmeng@gmail.com" target="_blank">alongmeng@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div style="font-size:12.8px">From the log info,It shows that your 'node' maybe is not the valid str.</div><div style="font-size:12.8px">You can show the node name via 'print node' and try to call <span style="font-size:12.8px">str(node).encode('utf-8') , identify does it can goes well.</span></div><span class=""><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     key = str(node).encode('utf-8')</div><div style="font-size:12.8px">2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils<font color="#cc0000"> UnicodeDecodeError: 'ascii' codec can't decode byte 0xde in position 4: ordinal not in range(128)</font></div><div style="font-size:12.8px">2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils</div></span></div><div><br></div><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Aug 5, 2017 at 7:16 PM, Yaguang Tang <span dir="ltr"><<a href="mailto:heut2008@gmail.com" target="_blank">heut2008@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi gnocchi devs,</div><div><br></div><div>I have an issue when using gnocchi 4.0, the storage backend is ceph, and tooz coordination is redis. currently  gnocchi api in apache wsgi mode, only one controller node running gnocchi-metricd & gnocchi-statsd daemon. the error log of gnocchi-metricd is as follow. </div><div> </div><div><br></div><div><br></div><div>2017-08-05 18:14:18.643 1329257 INFO gnocchi.storage.common.ceph [-] Ceph storage backend use 'cradox' python library</div><div>2017-08-05 18:14:18.654 1329257 INFO gnocchi.storage.common.ceph [-] Ceph storage backend use 'cradox' python library</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils [-] Unhandled exception</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils Traceback (most recent call last):</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/cotyledon/_utils.py", line 84, in exit_on_exception</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     yield</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/cotyledon/_service.py", line 139, in _run</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     self.run()</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/gnocchi/cli.py", line 120, in run</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     self._configure()</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/tenacity/__init__.py", line 87, in wrapped_f</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     return r.call(f, *args, **kw)</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/tenacity/__init__.py", line 177, in call</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     return fut.result()</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/concurrent/futures/_base.<wbr>py", line 396, in result</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     return self.__get_result()</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/tenacity/__init__.py", line 159, in call</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     result = fn(*args, **kwargs)</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/gnocchi/cli.py", line 193, in _configure</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     self.GROUP_ID, partitions=200)</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/tooz/coordination.py", line 284, in join_partitioned_group</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     return partitioner.Partitioner(self, group_id)</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/tooz/partitioner.py", line 45, in __init__</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     partitions=self.partitions)</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/tooz/hashring.py", line 47, in __init__</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     self.add_nodes(set(nodes))</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils   File "/usr/lib/python2.7/site-packa<wbr>ges/tooz/hashring.py", line 71, in add_nodes</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils     key = str(node).encode('utf-8')</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils UnicodeDecodeError: 'ascii' codec can't decode byte 0xde in position 4: ordinal not in range(128)</div><div>2017-08-05 18:14:19.100 1329257 ERROR cotyledon._utils</div><div><br></div><div>Is this a config issue or bug ? any tips or help is much appreciated :-)</div><span class="m_3242550679485058139gmail-HOEnZb"><font color="#888888"><div><br></div><div><br></div>-- <br><div class="m_3242550679485058139gmail-m_3856941641913026540gmail_signature"><div dir="ltr"><div>Tang Yaguang</div><div><br></div><br><div> </div></div></div>
</font></span></div>
<br></div></div>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Tang Yaguang</div><div><br></div><br><div> </div></div></div>
</div>