Bug 1376012

Summary: Provisioning 2 hosts with same IP address at same time
Product: Red Hat Satellite 5 Reporter: Patrik Segedy <psegedy>
Component: ProvisioningAssignee: Jan Dobes <jdobes>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 570CC: ogajduse, tlestach
Target Milestone: ---   
Target Release: ---   
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: 2018-04-09 15:05:22 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:

Description Patrik Segedy 2016-09-14 12:51:25 UTC
Description of problem:
When there is running provision of system and I try to provision another system with same IP address, it will result in "IP Addresses must be unique. This IP Address has already been recorded. Please choose a different IP Address." error message.

Version-Release number of selected component (if applicable):
cobbler-2.0.7-66.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Have 2 hosts with same IP addresses
2. Register both hosts to Satellite and allow provisioning entitlement
3. Schedule provisioning of the first host
4. Schedule provisioning of the second host and we get error message "IP Addresses must be unique. This IP Address has already been recorded. Please choose a different IP Address."

From /var/log/cobbler/cobbler.log we get traceback:

Wed Sep 14 08:26:38 2016 - INFO | Exception occured: <class 'cobbler.cexceptions.CX'>
Wed Sep 14 08:26:38 2016 - INFO | Exception value: 'IP address duplicated: 192.168.122.100'
Wed Sep 14 08:26:38 2016 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1762, in _dispatch
    return method_handle(*params)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 767, in modify_system
    return self.modify_item("system",object_id,attribute,arg,token)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 760, in modify_item
    return method(arg)
   File "/usr/lib/python2.6/site-packages/cobbler/item_system.py", line 581, in modify_interface
    if field == "ipaddress"           : self.set_ip_address(value, interface)
   File "/usr/lib/python2.6/site-packages/cobbler/item_system.py", line 300, in set_ip_address
    raise CX("IP address duplicated: %s" % address)


Actual results:
Simultaneous provision of 2 hosts with same IP address doesn't work.

Expected results:
Simultaneous provisioning of 2 hosts with same IP address should work.

Comment 1 Patrik Segedy 2016-09-14 13:08:25 UTC
And I forgot to mention, that it is possible scenario when we want to provision 2 virtual guests, which are behind NAT.

Comment 2 Tomas Lestach 2018-04-09 15:05:22 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.

This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. 

Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed.