Bug 1994060 - API response for host routes includes misleading family number when IPv6 is enabled
Summary: API response for host routes includes misleading family number when IPv6 is e...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.9.0
Assignee: Ori Amizur
QA Contact: Yuri Obshansky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-16 15:34 UTC by Constantin Vultur
Modified: 2021-10-18 17:47 UTC (History)
3 users (show)

Fixed In Version: OCP-Metal-V1.0.25.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:46:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-installer-agent pull 222 0 None None None 2021-08-16 20:02:40 UTC
Github openshift assisted-service pull 2358 0 None None None 2021-08-16 15:38:13 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:47:00 UTC

Description Constantin Vultur 2021-08-16 15:34:19 UTC
Description of problem:
API response for host routes shows family 4/6 with combined IPv4/IPv6 addresses

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


How reproducible:


Steps to Reproduce:
1. Create cluster and download iso
2. On one VM add 2 nics, one with IPv4 , one with IPv6 
3. Boot ISO and register with service
4. Check the API response for cluster and pipe it with:  | jq -r .hosts[].inventory | jq .routes

Actual results:
Reported routes include combination of family: 6 with IPv4 addresses like:
  {
    "destination": "52.44.175.248",
    "family": 6,
    "gateway": "192.168.123.1",
    "interface": "enp0s3"
  },
  {
    "destination": "192.168.123.0",
    "family": 6,
    "interface": "enp0s3"
  },


Or "family": 4 with IPv6 addresses:
  {
    "destination": "fe80::",
    "family": 4,
    "interface": "cni-podman0"
  },
  {
    "destination": "0.0.0.0",
    "family": 4,
    "gateway": "fe80::5054:ff:febf:4214",
    "interface": "enp0s4"
  },



Expected results:
The ipv4/ipv6 routes should not be with mixed information. 


Additional info:

Comment 3 Constantin Vultur 2021-09-07 14:03:20 UTC
Verified with OCP-Metal-V1.0.25.2

Comment 5 errata-xmlrpc 2021-10-18 17:46:44 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: OpenShift Container Platform 4.9.0 bug fix and security update), 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-2021:3759


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