### VERIFICATION DONE FOCAL ### # Previous package package name: python-etcd3gw package version: python-etcd3gw focal-updates series: Focal
# Before enabling proposed pull-lp-source python-etcd3gw focal-updates python2 -c "print(b'hello_world'.decode().decode('utf-8'))" hello_world python3 -c "print(b'hello_world'.decode().decode('utf-8'))" Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'? apt build-dep . debuild -us -uc All unit tests passed. #start etcd server in new shell etcd # open new shell, add a watch on foo etcdctl watch foo -f # run etcdctl commands etcdctl set foo bar etcdctl update foo foodbarbar etcdctl rm foo etcdctl mk foo foobarbar The watch is working and responsive to etcdctl commands the etcdctl watch command is working as intended shown in seperate terminal root@etcdfocal:~# etcdctl watch foo -f bar bar foodbarbar PrevNode.Value: foodbarbar foobarbar upgrade to proposed ----- ubuntu-focal-proposed.list # enable proposed deb http://archive.ubuntu.com/ubuntu/ focal-proposed restricted main multiverse universe sudo apt-get update output: Hit:3 http://archive.ubuntu.com/ubuntu focal-proposed InRelease apt-get install python3-etcd3gw/focal-proposed # Proposed package Info package name: python-etcd3gw package version: python-etcd3gw_0.2.1-3ubuntu1.20.04.2 series: focal pull-lp-source python3-etcd3gw focal debuild -us -uc All unit tests pass. Building from source passes. #start etcd server etcd # open new shell, add a watch on foo etcdctl watch foo -f # run etcdctl commands etcdctl set foo bar etcdctl update foo foodbarbar etcdctl rm foo etcdctl mk foo foobarbar the etcdctl watch command is working as intended shown in seperate terminal etcdctl --debug cluster-health Cluster-Endpoints: http://127.0.0.1:2379, http://127.0.0.1:4001 cURL Command: curl -X GET http://127.0.0.1:2379/v2/members member 8e9e05c52164694d is healthy: got healthy result from http://localhost:2379 cluster is healthy * Note should you run with etcd enabled and run debuild -us -uc for any python-etcd3gw package from source There will be failing unit tests etcd3gw.tests.test_etcd3gw.TestEtcd3Gateway.test_watch_prefix ... Exception in thread update_key_prefix: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/root/new/python-etcd3gw-0.2.1/etcd3gw/tests/test_etcd3gw.py", line 266, in update_key update_etcd('0') File "/root/new/python-etcd3gw-0.2.1/etcd3gw/tests/test_etcd3gw.py", line 261, in update_etcd self.assertEqual([v], out) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 415, in assertEqual self.assertThat(observed, matcher, message) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 502, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: ['0'] != [b'0'] FAIL ### VERIFICATION DONE FOCAL ### ** Tags removed: verification-done-impish verification-needed-focal ** Tags added: verification-done-focal verification-needed-impish ** Tags removed: verification-needed-impish ** Tags added: verification-done-impish -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1965325 Title: upstream patch from opendev - double encoding-decoding To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-etcd3gw/+bug/1965325/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs