Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1156371 - Reinstallation or update of dhcp package breaks proxy access to /etc/dhcp
Summary: Reinstallation or update of dhcp package breaks proxy access to /etc/dhcp
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: DHCP & DNS
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact:
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1394843 (view as bug list)
Depends On:
Blocks: 1139277
TreeView+ depends on / blocked
 
Reported: 2014-10-24 10:09 UTC by Lukas Zapletal
Modified: 2021-09-09 11:35 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-06 19:12:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 8151 0 None None None 2016-04-22 16:54:34 UTC

Description Lukas Zapletal 2014-10-24 10:09:29 UTC
[root@nightly ~]# ll /etc/dhcp -d
drwxr-xr-x. 3 root root 4096 Oct 22 08:02 /etc/dhcp

[root@nightly ~]# yum reinstall dhcp
...
Complete!

[root@nightly ~]# ll /etc/dhcp -d 
drwxr-x---. 3 root root 4096 Oct 24 05:16 /etc/dhcp 

[root@nightly ~]# service foreman-proxy restart
Stopping foreman-proxy:                                    [  OK  ]
Starting foreman-proxy:                                    [  OK  ]

[root@nightly ~]# curl -H "Accept:application/json" -k --cert /var/lib/puppet/ssl/certs/nightly.zzz.lan.pem --key /var/lib/puppet/ssl/private_keys/nightly.zzz.lan.pem https://nightly.zzz.lan:8443/dhcp/192.168.222.0
Unable to find the DHCP configuration or lease files

[root@nightly ~]# chmod o+x /etc/dhcp

[root@nightly ~]# curl -H "Accept:application/json" -k --cert /var/lib/puppet/ssl/certs/nightly.zzz.lan.pem --key /var/lib/puppet/ssl/private_keys/nightly.zzz.lan.pem https://nightly.zzz.lan:8443/dhcp/192.168.222.0
{"leases":[],"reservations":[]}

Therefore the workaround is to do chmod o+x /etc/dhcp in the sysvinit/systemd startup script of the proxy.

QA: To verify the bug, use the scenario above, plus make sure the foreman installer in dry run (-n) does not print any other planned changes:

[root@nightly ~]# foreman-installer -v -n
...
[ WARN 2014-10-24 06:07:35 verbose]  /File[/etc/dhcp]/mode: current_value 0751, should be 0755 (noop)
...

Also try to reinstall other software to verify similar scenarios: dhcp, bind, tftp, puppet, bmc/ipmi, facter.

Comment 1 RHEL Program Management 2014-10-24 10:23:08 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Lukas Zapletal 2014-10-24 13:32:38 UTC
For the record, there are more of these:

yum reinstall dhcp bind tftp-server puppet facter

Then:

[ WARN 2014-10-24 08:58:18 verbose]  /File[/var/named/dynamic]/mode: current_value 0770, should be 0750 (noop)
[ WARN 2014-10-24 08:58:19 verbose]  /File[/etc/dhcp]/mode: current_value 0750, should be 0755 (noop)

Comment 4 Dominic Cleal 2014-10-29 10:38:56 UTC
Created redmine issue http://projects.theforeman.org/issues/8151 from this bug

Comment 5 Bryan Kearney 2015-08-25 18:32:20 UTC
Upstream bug component is Capsule

Comment 6 Bryan Kearney 2016-07-08 20:29:15 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 8 Bryan Kearney 2016-10-18 16:21:03 UTC
Upstream bug component is Uncategorized

Comment 9 Stephen Benjamin 2016-12-13 15:25:02 UTC
*** Bug 1394843 has been marked as a duplicate of this bug. ***

Comment 10 Bryan Kearney 2016-12-13 17:18:13 UTC
Upstream bug component is Uncategorized

Comment 11 Ivan Necas 2016-12-14 21:06:21 UTC
Upstream bug component is DHCP & DNS

Comment 12 Bryan Kearney 2016-12-14 21:18:26 UTC
Upstream bug component is Uncategorized

Comment 14 Bryan Kearney 2016-12-15 15:20:26 UTC
Upstream bug component is Capsule

Comment 16 Bryan Kearney 2016-12-15 17:18:55 UTC
Upstream bug component is DHCP & DNS

Comment 17 Bryan Kearney 2017-01-06 19:12:06 UTC
This is an older bug which has been reported upstream. We are not going to track this bug downstream. When the upstream issue is resolved, the next build will contain the fix. Thank you.


Note You need to log in before you can comment on or make changes to this bug.