Project

General

Profile

Actions

Bug #47032

closed

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

Added by Laura Paduano over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
High
Category:
Testing - API
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 (v1):
Crash signature (v2):

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 2 (0 open2 closed)

Related to CephFS - Feature #46059: vstart_runner.py: optionally rotate logs between testsResolvedRishabh Dave

Actions
Copied to Dashboard - Bug #47052: mgr/dashboard: ceph api test failure: "Invalid URL 'None/api/auth'" (test_a_set_login_credentials (tasks.mgr.dashboard.test_auth.AuthTest))ResolvedAlfonso Martínez

Actions
Actions #1

Updated by Laura Paduano over 3 years ago

Alfonso found

2020-08-19 03:51:00,109.109 INFO:tasks.mgr.mgr_test_case:Found dashboard at https://slave-centos05.front.sepia.ceph.com:7789/ (daemon x/4680)
2020-08-19 03:51:00,110.110 INFO:tasks.mgr.test_dashboard:Originally running manager 'x' at https://slave-centos05.front.sepia.ceph.com:7789/
2020-08-19 03:51:00,110.110 INFO:__main__:Running ['./bin/ceph', 'mgr', 'fail', 'x']
2020-08-19 03:51:01,315.315 INFO:__main__:Running ['./bin/ceph', 'mgr', 'dump', '--format=json-pretty']
2020-08-19 03:51:06,966.966 INFO:__main__:Running ['./bin/ceph', 'mgr', 'dump', '--format=json-pretty']
2020-08-19 03:51:12,607.607 INFO:__main__:Running ['./bin/ceph', 'mgr', 'dump', '--format=json-pretty']
2020-08-19 03:51:17,443.443 INFO:__main__:Running ['./bin/ceph', 'mgr', 'dump', '--format=json-pretty']
2020-08-19 03:51:18,076.076 INFO:tasks.mgr.mgr_test_case:Found dashboard at https://slave-centos05.front.sepia.ceph.com:7790/ (daemon y/4678)
2020-08-19 03:51:18,076.076 INFO:tasks.mgr.test_dashboard:After failover running manager 'y' at https://slave-centos05.front.sepia.ceph.com:7790/

in the Jenkins logs, so we are wondering if the failure is related to a Jenkins env issue..?
(Since the ceph api jobs are configured to only run on ubuntu bionic nodes)

Actions #2

Updated by Ernesto Puerta over 3 years ago

  • Status changed from New to In Progress
  • Pull request ID set to 36711
Actions #3

Updated by Ernesto Puerta over 3 years ago

This might somehow be caused by https://github.com/ceph/ceph/pull/35824. Currently it's only a correlation finding (no previous PR failed with that error, and the referred PR and subsequent ones in master are 100% failing with this error).

Actions #4

Updated by Ernesto Puerta over 3 years ago

Simply disabling log rotation doesn't fix the issue: https://github.com/ceph/ceph/pull/36724

Actions #5

Updated by Patrick Donnelly over 3 years ago

  • Status changed from In Progress to Resolved
  • Assignee changed from Laura Paduano to Ernesto Puerta
  • Target version set to v16.0.0
Actions #6

Updated by Patrick Donnelly over 3 years ago

  • Related to Feature #46059: vstart_runner.py: optionally rotate logs between tests added
Actions #7

Updated by Alfonso Martínez over 3 years ago

  • Copied to 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
Actions #8

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from API Tests to Testing - API
Actions

Also available in: Atom PDF