Bug 2178734
Summary: | sudo should not be needed when migrating the pulp database script migrate.rb | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Ganesh Payelkar <gpayelka> |
Component: | Satellite Maintain | Assignee: | Sayan Das <saydas> |
Status: | CLOSED ERRATA | QA Contact: | Jameer Pathan <jpathan> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.10.7 | CC: | ajambhul, bdm, ehelms, jpasqual, jpathan, pcreech, saydas |
Target Milestone: | 6.14.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | foreman-maintain-1.3.2 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-08 14:18:58 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ganesh Payelkar
2023-03-15 17:23:18 UTC
The request remains the same for the trim-changelogs action in the post-upgrade Failed executing sudo PULP_SETTINGS=/etc/pulp/settings.py DJANGO_SETTINGS_MODULE=pulpcore.app.settings pulpcore-manager rpm-trim-changelogs, exit status 1: Sorry, user root is not allowed to execute '/usr/bin/pulpcore-manager rpm-trim-changelogs' as root on satellite.example.com The only way to get past it would be: * Complete the upgrade using --whitelist="pulpcore-trim-rpm-changelogs" * Run the command in one of the following ways: # sudo -u pulp PULP_SETTINGS='/etc/pulp/settings.py' /usr/bin/pulpcore-manager rpm-trim-changelogs or # PULP_SETTINGS='/etc/pulp/settings.py' /usr/bin/pulpcore-manager rpm-trim-changelogs I don't know why we call the commands with sudo here but without specifying any users, But it should be fixed Created Bug #36365: Drop the usage of sudo during any pulpcore-manager command executions - Foreman Maintain - Foreman https://projects.theforeman.org/issues/36365 Fixes #36365 - Drop usage of sudo for any pulpcore-manager commands by sayan3296 · Pull Request #727 · theforeman/foreman_maintain https://github.com/theforeman/foreman_maintain/pull/727 Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36365 has been resolved. need this fix released in an upstream version of foreman_maintain Verified Verified with: - Satellite 6.14.0 snap 10 - rubygem-foreman_maintain-1.3.3-1.el8sat.noarch Test steps: - Remove the root from /etc/sudoers - Perform Satellite upgrade observations: - No error, upgrade completed successfully. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:6818 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |