Hello, I am currently still working on trying to get a good test around this.
## 1900617 gateway error detail is not passed along in raised exception # TEST CASE 1. use focal series lxc container 2. Enable proposed repo in /etc/apt/sources.list 3. deb http://archive.ubuntu.com/ubuntu focal-proposed main universe 4. sudo apt-get update 5. apt install etcd-client 6. apt-get install python3-etcd3gw 7. wget https://github.com/etcd-io/etcd/releases/download/v3.3.13/etcd-v3.3.13-linux-amd64.tar.gz 8. tar -xvf etcd-v3.3.13-linux-amd64.tar.gz 9. openssl req -x509 -keyout localhost.key -newkey rsa:4096 -nodes -sha256 -out localhost.crt 10. ./etcd --name infra0 --data-dir infra0 --cert-file=/root/localhost.crt --key-file=/root/localhost.key --advertise-client-urls=https://127.0.0.1:2379 --listen-client-urls=https://127.0.0.1:2379 The first test is from the code with auth enabled, and a response+status code is returned which i believe is the expected result. I am still trying to confirm this by just using the the default etcd server setup locally. The second output is from etcd server without python3-etcd3gw. root@focal:~# etcdctl --endpoints https://127.0.0.1:2379 --ca-file=localhost.crt --cert-file=localhost.crt --key-file=localhost.key --debug --output extended role list start to sync cluster using endpoints(https://127.0.0.1:2379) cURL Command: curl -X GET https://127.0.0.1:2379/v2/members got endpoints(https://127.0.0.1:2379) after sync Cluster-Endpoints: https://127.0.0.1:2379 Cluster-Endpoints: https://127.0.0.1:2379 cURL Command: curl -X GET https://127.0.0.1:2379/v2/auth/roles unexpected status code 401 heather@:~$ etcdctl --endpoints http://127.0.0.1:2379 --debug role list start to sync cluster using endpoints(http://127.0.0.1:2379) cURL Command: curl -X GET http://127.0.0.1:2379/v2/members got endpoints(http://localhost:2379) after sync Cluster-Endpoints: http://localhost:2379 Cluster-Endpoints: http://localhost:2379 cURL Command: curl -X GET http://localhost:2379/v2/auth/roles root Thanks, Heather Lemon -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1900617 Title: gateway error detail is not passed along in raised exception To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-etcd3gw/+bug/1900617/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
