Project

Profile

Help

Issue #8186

systemctl show-environment fails without sudo on Centos

Added by rob.wagner76 2 months ago. Updated 10 days ago.

Status:
POST
Priority:
Normal
Assignee:
Category:
Installer
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
OS:
CentOS 7
Triaged:
Yes
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 94
Quarter:

Description

roles/pulp_common/tasks/main.yml executes command systemctl show-environment, which fails on a freshly installed CentOS 7.7 or 7.9 box.

fatal: [localhost]: FAILED! => {"changed": false, "cmd": "set -o pipefail\nsystemctl show-environment | grep -E '^PATH=' | sed 's/PATH=//g'\n", "delta": "0:00:00.009917", "end": "2021-02-01 11:35:20.328111", "msg": "non-zero return code", "rc": 1, "start": "2021-02-01 11:35:20.318194", "stderr": "Failed to get environment: Operation not permitted", "stderr_lines": ["Failed to get environment: Operation not permitted"], "stdout": "", "stdout_lines": []}

Adding become: true to this step fixes the issue,

History

#1 Updated by mdepaulo@redhat.com 2 months ago

  • Assignee set to ppicka
  • Triaged changed from No to Yes
  • Groomed changed from No to Yes

We will verify that it is fixed by using Vagrant, because we believe that molecule is using the docker connection as root.

#2 Updated by pulpbot about 1 month ago

  • Status changed from NEW to POST

#3 Updated by ppicka 28 days ago

  • Sprint set to Sprint 93

#4 Updated by rchan 10 days ago

  • Sprint changed from Sprint 93 to Sprint 94

Please register to edit this issue

Also available in: Atom PDF