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 1862140

Summary: ipv4/6 auto-suggested address should be removed when the different domain and subnet with ipv6/4 are selected
Product: Red Hat Satellite Reporter: tstrych
Component: Host FormAssignee: aabramov
Status: CLOSED ERRATA QA Contact: tstrych
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: mhulan, pcreech, rabajaj, rlavi
Target Milestone: 6.11.0Keywords: 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: 2022-07-05 14:28:21 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 tstrych 2020-07-30 14:34:21 UTC
Description of problem:
In host form -> inteface
Auto-suggested address stays in formular after the different version of domain and subnet is chose. (By different version is meant ipv4 subnet changed to ipv6 subnet and ipv6 subnet changed to ipv4, these subnets have each their own domains)


Version-Release number of selected component (if applicable):
sat 6.8 snap 10

How reproducible:
Always

Steps to Reproduce:
1. Create domain and associate the domain with ipv4 subnet. Do the same for ipv6. During Ipv4 subnet creation set IPAM field set to Random DB and and during ipv6 subnet creation set IPAM to EUI-64. 
2. Create host -> navigate directly into interfaces -> edit interface
3. Fill in mac address, 
4. Then for example select that domain with ipv4 subnet and select that ipv4 subnet and auto-suggested ip address is shown
5. After that swap domain which is associated to ipv6 subnet to this ipv6 subnet. The ipv-6 address is auto-suggested by ipv4 address is still shown. 

Point 4 and 5 can be applied firstly on ipv6 and then to ipv4 with the same result. The first auto-suggested ip address is not removed.

Actual results:
The first auto-suggested ip address is not removed.

Expected results:
The first auto-suggested ip address should be removed when the different ip version is chose. 

Additional info:

Comment 1 Tomer Brisker 2021-10-27 12:43:28 UTC
Created redmine issue https://projects.theforeman.org/issues/33794 from this bug

Comment 2 Bryan Kearney 2021-11-04 13:48:35 UTC
Upstream bug assigned to aabramov

Comment 3 Bryan Kearney 2021-11-10 16:02:44 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33794 has been resolved.

Comment 4 tstrych 2022-02-02 19:55:16 UTC
Verified with sat 7 snap 7 rhel 8.

auto-suggested address is removed when subnet or domain is changed as expected, 
points up for keeping the auto-suggested address if it fits for the other subnet

Comment 7 errata-xmlrpc 2022-07-05 14:28:21 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 (Moderate: Satellite 6.11 Release), 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-2022:5498