Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1202907

Summary: sat 6 no longer offering a suggested IP address after upgrade
Product: Red Hat Satellite Reporter: Brett Thurber <bthurber>
Component: Foreman ProxyAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.8CC: bbuckingham, bkearney, bthurber, cwelton, kbidarka, mhulan, mmccune, ohadlevy
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-15 18:19:59 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:
Attachments:
Description Flags
/var/log/foreman-proxy/proxy.log
none
foreman-debug
none
IP offered by sat6 none

Description Brett Thurber 2015-03-17 16:44:35 UTC
Created attachment 1002875 [details]
/var/log/foreman-proxy/proxy.log

Description of problem:
After upgrading Sat 6 from 6.0.6 to 6.0.8, DHCP was no longer offering IP addrsses on local configured capsule.

Version-Release number of selected component (if applicable):
6.0.8

How reproducible:
Every time

Steps to Reproduce:
1. Upgrade Sat 6 OS from RHEL 7.0 to 7.1
2. Upgrade Sat 6 from 6.0.6 to 6.0.8 
3. Attempt to create a new host and it no longer is offered an IP address; attempts to suggest new fail.

Actual results:
No IP address offered.

Expected results:
IP address offered.

Additional info:
Output of /var/log/foreman-proxy/proxy.log attached.  
Confirmed resolution is:  chmod o+x /etc/dhcp

Comment 1 RHEL Program Management 2015-03-17 16:53:14 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 Ohad Levy 2015-05-13 11:14:30 UTC
the actual error in the logs say:

`Unable to find the DHCP configuration or lease files`

did you change your dhcp configuration (or updated packages etc) at the same time as upgrading satellite?

Comment 4 Brett Thurber 2015-05-13 14:20:13 UTC
(In reply to Ohad Levy from comment #3)
> the actual error in the logs say:
> 
> `Unable to find the DHCP configuration or lease files`
> 
> did you change your dhcp configuration (or updated packages etc) at the same
> time as upgrading satellite?

No changes made to existing configuration.

Comment 5 Ohad Levy 2015-05-31 14:05:28 UTC
please paste complete configuration files etc, this seems like a misconfigured system.

Comment 9 Brett Thurber 2015-08-08 05:10:25 UTC
Created attachment 1060526 [details]
foreman-debug

Comment 10 Kedar Bidarkar 2015-08-10 09:08:36 UTC
Updating this info as this bug is being marked for Sat6.1.z

Want to confirm the below:

a) upgrading sat6.0.8[rhel7.0] to sat6.1.1[rhel7.1] has no issues.
b) Sat6.1.1 did provide DHCP IP suggestions successfully even after upgrade.

Comment 11 Marek Hulan 2015-09-03 11:06:25 UTC
Kedar, the verification steps are correct, could you verify it please? I checked the foreman-debug and the dhcpd configuration seems correct. The only change that was made by installer was in the list of name servers in dhcpd.conf. Nothing else indicates that there's a configuration issue.

Comment 12 Sachin Ghai 2015-10-06 10:39:19 UTC
Verified with latest sat6.1.3 compose.

I upgraded the sat6.0.8 -> sat6.1.3 

After upgrade, sat6 offers IP address by clicking 'suggest new'. I don't find any issue with ip address assignment while creating new host.

production.log on clicking 'suggest new':
--
2015-10-06 06:34:57 [I] Processing by SubnetsController#freeip as JSON
2015-10-06 06:34:57 [I]   Parameters: {"subnet_id"=>"1", "host_mac"=>"", "organization_id"=>"1", "location_id"=>"2"}
2015-10-06 06:34:59 [I] Completed 200 OK in 2202ms (Views: 0.2ms | ActiveRecord: 4.4ms)
--

Please note that when you create new host, auto IP suggested by sat6 server.

Comment 13 Sachin Ghai 2015-10-06 10:41:14 UTC
Created attachment 1080197 [details]
IP offered by sat6

Comment 15 errata-xmlrpc 2015-10-15 18:19:59 UTC
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, 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/RHBA-2015:1911