Project

General

Profile

Bug #47052

mgr/dashboard: ceph api test failure: "Invalid URL 'None/api/auth'" (test_a_set_login_credentials (tasks.mgr.dashboard.test_auth.AuthTest))

Added by Alfonso Martínez 5 months ago. Updated 5 months ago.

Status:
New
Priority:
High
Category:
API Tests
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

2020-08-19 05:42:48,270.270 INFO:__main__:Running ['./bin/ceph', 'dashboard', 'ac-user-set-roles', 'admin2', 'administrator']
2020-08-19 05:42:48,862.862 INFO:tasks.mgr.dashboard.helper:command result: {"username": "admin2", "password": "$2b$12$DYOqFakLFQOVcsYy48wufuNWxm.2dEsHRlQMZcVCf0jSEB07J5EyO", "roles": ["administrator"], "name": null, "email": null, "lastUpdate": 1597815768, "enabled": true, "pwdExpirationDate": null, "pwdUpdateRequired": false}

2020-08-19 05:42:48,862.862 INFO:tasks.mgr.dashboard.helper:Request POST to None/api/auth
2020-08-19 05:42:48,864.864 INFO:__main__:Running ['./bin/ceph', 'log', 'Ended test tasks.mgr.dashboard.test_auth.AuthTest.test_a_set_login_credentials']
2020-08-19 05:42:49,750.750 INFO:__main__:Stopped test: test_a_set_login_credentials (tasks.mgr.dashboard.test_auth.AuthTest) in 4.440895s
2020-08-19 05:42:49,752.752 INFO:__main__:test_a_set_login_credentials (tasks.mgr.dashboard.test_auth.AuthTest) ... ERROR
2020-08-19 05:42:49,752.752 INFO:__main__:
2020-08-19 05:42:49,752.752 INFO:__main__:----------------------------------------------------------------------
2020-08-19 05:42:49,753.753 INFO:__main__:Traceback (most recent call last):
2020-08-19 05:42:49,753.753 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/test_auth.py", line 34, in test_a_set_login_credentials
2020-08-19 05:42:49,753.753 INFO:__main__:    self._post("/api/auth", {'username': 'admin2', 'password': 'admin2'})
2020-08-19 05:42:49,753.753 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 256, in _post
2020-08-19 05:42:49,753.753 INFO:__main__:    cls._request(url, 'POST', data, params)
2020-08-19 05:42:49,753.753 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 211, in _request
2020-08-19 05:42:49,753.753 INFO:__main__:    verify=False, headers=headers)
2020-08-19 05:42:49,753.753 INFO:__main__:  File "/tmp/tmp.EAImDJ6GWJ/venv/lib/python3.6/site-packages/requests/sessions.py", line 572, in post
2020-08-19 05:42:49,753.753 INFO:__main__:    return self.request('POST', url, data=data, json=json, **kwargs)
2020-08-19 05:42:49,754.754 INFO:__main__:  File "/tmp/tmp.EAImDJ6GWJ/venv/lib/python3.6/site-packages/requests/sessions.py", line 510, in request
2020-08-19 05:42:49,754.754 INFO:__main__:    prep = self.prepare_request(req)
2020-08-19 05:42:49,754.754 INFO:__main__:  File "/tmp/tmp.EAImDJ6GWJ/venv/lib/python3.6/site-packages/requests/sessions.py", line 453, in prepare_request
2020-08-19 05:42:49,754.754 INFO:__main__:    hooks=merge_hooks(request.hooks, self.hooks),
2020-08-19 05:42:49,754.754 INFO:__main__:  File "/tmp/tmp.EAImDJ6GWJ/venv/lib/python3.6/site-packages/requests/models.py", line 313, in prepare
2020-08-19 05:42:49,754.754 INFO:__main__:    self.prepare_url(url, params)
2020-08-19 05:42:49,754.754 INFO:__main__:  File "/tmp/tmp.EAImDJ6GWJ/venv/lib/python3.6/site-packages/requests/models.py", line 387, in prepare_url
2020-08-19 05:42:49,754.754 INFO:__main__:    raise MissingSchema(error)
2020-08-19 05:42:49,754.754 INFO:__main__:requests.exceptions.MissingSchema: Invalid URL 'None/api/auth': No schema supplied. Perhaps you meant http://None/api/auth?
2020-08-19 05:42:49,755.755 INFO:__main__:
2020-08-19 05:42:49,755.755 INFO:__main__:Running ['ip', 'netns', 'list']
2020-08-19 05:42:49,783.783 INFO:__main__:Running ['sudo', 'ip', 'link', 'delete', 'ceph-brx']
Cannot find device "ceph-brx" 
See:

Related issues

Copied from mgr - Bug #47032: mgr/dashboard: ceph api test failure: "Invalid URL 'None/api/auth'" (test_a_set_login_credentials (tasks.mgr.dashboard.test_auth.AuthTest)) Resolved

History

#1 Updated by Alfonso Martínez 5 months ago

  • Copied from Bug #47032: mgr/dashboard: ceph api test failure: "Invalid URL 'None/api/auth'" (test_a_set_login_credentials (tasks.mgr.dashboard.test_auth.AuthTest)) added

#2 Updated by Alfonso Martínez 5 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 36736

#3 Updated by Laura Paduano 5 months ago

  • Status changed from Fix Under Review to Resolved

#4 Updated by Ernesto Puerta 5 months ago

  • Status changed from Resolved to New

Re-opened (actually moved from Fixed to New) as it still happens: https://jenkins.ceph.com/job/ceph-api/2235/ (from PR https://github.com/ceph/ceph/pull/36732):

2020-09-02 08:49:52,558.558 INFO:__main__:----------------------------------------------------------------------
2020-09-02 08:49:52,558.558 INFO:__main__:Traceback (most recent call last):
2020-09-02 08:49:52,558.558 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 195, in setUp
2020-09-02 08:49:52,558.558 INFO:__main__:    self.login('admin', 'admin')
2020-09-02 08:49:52,558.558 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 101, in login
2020-09-02 08:49:52,559.559 INFO:__main__:    cls._post('/api/auth', {'username': username, 'password': password})
2020-09-02 08:49:52,559.559 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 262, in _post
2020-09-02 08:49:52,559.559 INFO:__main__:    cls._request(url, 'POST', data, params)
2020-09-02 08:49:52,559.559 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 216, in _request
2020-09-02 08:49:52,559.559 INFO:__main__:    cls._resp = cls._session.post(url, json=data, params=params,
2020-09-02 08:49:52,559.559 INFO:__main__:AttributeError: 'NoneType' object has no attribute 'post'
2020-09-02 08:49:52,559.559 INFO:__main__:
2020-09-02 08:49:52,560.560 INFO:__main__:Running ['ip', 'netns', 'list']
2020-09-02 08:49:52,565.565 INFO:__main__:Running ['sudo', 'ip', 'link', 'delete', 'ceph-brx']
Cannot find device "ceph-brx" 
2020-09-02 08:49:52,581.581 INFO:__main__:
2020-09-02 08:49:52,581.581 INFO:__main__:----------------------------------------------------------------------
2020-09-02 08:49:52,581.581 INFO:__main__:Ran 1 test in 1.562s
2020-09-02 08:49:52,582.582 INFO:__main__:
2020-09-02 08:49:52,582.582 INFO:__main__:

Also available in: Atom PDF