Bug 2129033

Summary: Re-building a host with a lease will lead to a DHCP IP conflict error
Product: Red Hat Satellite Reporter: Erik Skultety <eskultet>
Component: ProvisioningAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.7CC: gtalreja, inecas, rlavi, sshtein
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-02 17:22:44 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
smart-proxy debug log none

Description Erik Skultety 2022-09-22 11:01:13 UTC
Created attachment 1913480 [details]
smart-proxy debug log

Description of problem:
Host with network interface information fails to re-provision with a DHCP conflict which has to be manually resolved in dhcpd.conf by deleting the conflicting entries.  

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

How reproducible:


Steps to Reproduce:
1. Add a new host using "Create Host" in the web UI
2. Fill in the interface details, including MAC addresses
3. Provision your host with Build
4. Once the host is provisioned and reporting to Satellite change something with Edit, e.g. the provisioned OS and the corresponding Content View, but leave the network interfaces' data unchanged.
5. Save the configuration.
6. Click Build

Actual results:

Fails with:

Failed to enable myhost.lan for installation: ["Create DHCP Settings for myhost.lan task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for Capsule https://satellite.lan:9090/dhcp", "Failed to perform rollback on Remove DHCP Settings for myhost.lan - ERF12-6899 [ProxyAPI::ProxyException]:Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for Capsule https://satellite.lan:9090/dhcp"]

Expected results:
Host re-provisions just fine.

Additional info:
See the attached debug log snippet (MAC addresses have been sanitized).
See also: bug #1554597

Comment 2 Brad Buckingham 2023-10-04 21:43:14 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 3 Brad Buckingham 2023-11-02 17:22:44 UTC
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.