Project

General

Profile

Actions

Bug #51792

closed

run-tox-mgr-dashboard failed to write the /tmp/test_sanitize_password.txt when change user to run the test

Added by Kevin Zhao almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
pacific octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

234/235 Test #6: run-tox-mgr-dashboard .....................***Failed 387.04 sec

tools.py ..... [ 1%]
controllers/rgw.py .. [ 1%]
services/rgw_client.py . [ 1%]
tests/helper.py . [ 2%]
tests/test_access_control.py ........................................... [ 11%]
.....F

____ AccessControlTest.test_sanitize_password ____

self = <dashboard.tests.test_access_control.AccessControlTest testMethod=test_sanitize_password>

def test_sanitize_password(self):
self.test_create_user()
password = 'myPass\\n\\r\\n'
with open('/tmp/test_sanitize_password.txt', 'w+') as pwd_file:

E PermissionError: [Errno 13] Permission denied: '/tmp/test_sanitize_password.txt'

tests/test_access_control.py:589: PermissionError

tests/test_access_control.py .................... [ 17%]
tests/test_api_auditing.py ........ [ 19%]

The issue occurs when use one user to operate the test and then use another user to run the test too. The temp file can be re-write.


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #51825: pacific: run-tox-mgr-dashboard failed to write the /tmp/test_sanitize_password.txt when change user to run the testResolvedCory SnyderActions
Copied to Ceph - Backport #51826: octopus: run-tox-mgr-dashboard failed to write the /tmp/test_sanitize_password.txt when change user to run the testResolvedCory SnyderActions
Actions #1

Updated by Kefu Chai almost 3 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Kevin Zhao
  • Pull request ID set to 42449
Actions #2

Updated by Kefu Chai almost 3 years ago

  • Status changed from Fix Under Review to Resolved
Actions #3

Updated by Alfonso Martínez almost 3 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to pacific octopus
Actions #4

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51825: pacific: run-tox-mgr-dashboard failed to write the /tmp/test_sanitize_password.txt when change user to run the test added
Actions #5

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51826: octopus: run-tox-mgr-dashboard failed to write the /tmp/test_sanitize_password.txt when change user to run the test added
Actions #6

Updated by Ernesto Puerta over 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF