Project

Profile

Help

Task #3684

Pulp 2 tests are failing Permission denied: '/etc/pki/pulp'

Added by daviddavis over 2 years ago. Updated over 1 year ago.

Status:
CLOSED - COMPLETE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 37
Quarter:

Description

With this change, we stopped running pulp-dev.py as root:

https://github.com/pulp/pulp-ci/pull/516

The problem is that now the tests are failing because certain directories cannot be created:

creating directory: /etc/pki/pulp
Traceback (most recent call last):
  File "./pulp-dev.py", line 483, in <module>
    sys.exit(install(opts))
  File "./pulp-dev.py", line 350, in install
    create_dirs(opts)
  File "./pulp-dev.py", line 196, in create_dirs
    os.makedirs(d, 0777)
  File "/home/jenkins/.virtualenvs/test/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/etc/pki/pulp'

See this PR's failures as an example:

https://github.com/pulp/pulp/pull/3499

Not sure how to fix this.

Associated revisions

Revision b8d9cd45 View on GitHub
Added by daviddavis over 2 years ago

Revert "Do not install packages as root"

This reverts commit 19c5a0e599d2570062bb4f09b0d93903aa0a4a92.

This fixes a permissions problem we were experiencing.

fixes #3684 https://pulp.plan.io/issues/3684

History

#1 Updated by daviddavis over 2 years ago

  • Priority changed from Normal to High
  • Sprint set to Sprint 37

#2 Updated by amacdona@redhat.com over 2 years ago

  • Subject changed from Pulp 2 tests are failing to Pulp 2 tests are failing Permission denied: '/etc/pki/pulp'

#3 Updated by daviddavis over 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis

#4 Updated by daviddavis over 2 years ago

  • Status changed from ASSIGNED to MODIFIED

#5 Updated by dkliban@redhat.com about 2 years ago

  • Tracker changed from Issue to Task
  • Status changed from MODIFIED to CLOSED - COMPLETE
  • % Done set to 0

#6 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF