Ceph : Issueshttps://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2021-03-02T18:01:20ZCeph
Redmine Dashboard - Bug #49574 (Resolved): mgr/dashboard: ERROR: test_a_set_login_credentials (tasks.mgr....https://tracker.ceph.com/issues/495742021-03-02T18:01:20ZErnesto Puerta
<a name="Description-of-problem"></a>
<h3 >Description of problem<a href="#Description-of-problem" class="wiki-anchor">¶</a></h3>
<pre>
INFO:tasks.cephfs_test_runner:======================================================================
INFO:tasks.cephfs_test_runner:ERROR: test_a_set_login_credentials (tasks.mgr.dashboard.test_auth.AuthTest)
INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
INFO:tasks.cephfs_test_runner: File "/home/teuthworker/src/git.ceph.com_ceph-c_18af150d0d7db4092e9941964be7efd7560b0c4b/qa/tasks/mgr/dashboard/test_auth.py", line 44, in test_a_set_login_credentials
INFO:tasks.cephfs_test_runner: self._validate_jwt_token(data['token'], "admin2", data['permissions'])
INFO:tasks.cephfs_test_runner: File "/home/teuthworker/src/git.ceph.com_ceph-c_18af150d0d7db4092e9941964be7efd7560b0c4b/qa/tasks/mgr/dashboard/test_auth.py", line 23, in _validate_jwt_token
INFO:tasks.cephfs_test_runner: payload = jwt.decode(token, verify=False)
INFO:tasks.cephfs_test_runner: File "/home/teuthworker/src/git.ceph.com_git_teuthology_3082387bba74fcd24c9700593d10418152d53c97/virtualenv/lib/python3.6/site-packages/jwt/api_jwt.py", line 113, in decode
INFO:tasks.cephfs_test_runner: decoded = self.decode_complete(jwt, key, algorithms, options, **kwargs)
INFO:tasks.cephfs_test_runner: File "/home/teuthworker/src/git.ceph.com_git_teuthology_3082387bba74fcd24c9700593d10418152d53c97/virtualenv/lib/python3.6/site-packages/jwt/api_jwt.py", line 80, in decode_complete
INFO:tasks.cephfs_test_runner: 'It is required that you pass in a value for the "algorithms" argument when calling decode().'
INFO:tasks.cephfs_test_runner:jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().
</pre>
<a name="Environment"></a>
<h3 >Environment<a href="#Environment" class="wiki-anchor">¶</a></h3>
<p><a class="external" href="https://pulpito.ceph.com/sage-2021-03-01_20:24:37-rados-wip-sage-testing-2021-03-01-1118-distro-basic-smithi/">https://pulpito.ceph.com/sage-2021-03-01_20:24:37-rados-wip-sage-testing-2021-03-01-1118-distro-basic-smithi/</a></p>
<a name="How-reproducible"></a>
<h3 >How reproducible<a href="#How-reproducible" class="wiki-anchor">¶</a></h3>
<p>Teuthology runs or pyjwt >2.0.0</p>
<a name="Additional-info"></a>
<h3 >Additional info<a href="#Additional-info" class="wiki-anchor">¶</a></h3>
<p>The interface for the jwt.decode() has changed and the verify option is dropped (it was dropped long time ago, but now it's checked):</p>
<p><a class="external" href="https://github.com/jpadilla/pyjwt/blame/ae080f472c913ad94456fd9e10b05ec2d038b7cc/jwt/api_jwt.py#L71">https://github.com/jpadilla/pyjwt/blame/ae080f472c913ad94456fd9e10b05ec2d038b7cc/jwt/api_jwt.py#L71</a></p>
<p><a class="external" href="https://github.com/jpadilla/pyjwt/issues/594">https://github.com/jpadilla/pyjwt/issues/594</a></p>