-
Bug
-
Resolution: Done-Errata
-
Normal
-
None
-
4.14
-
Quality / Stability / Reliability
-
False
-
-
None
-
Low
-
No
-
None
-
Rejected
-
Hypershift Sprint 244
-
1
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
Once a dual stack deployment finishes, if you check the "oc get nodes -o wide" or "oc get node -o jsonpath='{.status.addresses}'" it only reports the primary IP when under the hood if has both, IPv4 and IPv6:
oc get node hosted-worker0 -o jsonpath='{.status.addresses}' | jq
[
{
"address": "192.168.126.30",
"type": "InternalIP"
},
{
"address": "hosted-worker0",
"type": "Hostname"
}
]
Meanwhile the node OVN annotations shows the truth:
apiVersion: v1
kind: Node
metadata:
annotations:
capacity.topolvm.io/00default: "0"
capacity.topolvm.io/vg1: "1930763960320"
cluster.x-k8s.io/cluster-name: hosted-gv9rt
cluster.x-k8s.io/cluster-namespace: clusters-hosted
cluster.x-k8s.io/machine: hosted-84f6f6c874-98fkq
cluster.x-k8s.io/owner-kind: MachineSet
cluster.x-k8s.io/owner-name: hosted-84f6f6c874
csi.volume.kubernetes.io/nodeid: '{"topolvm.io":"hosted-worker0"}'
hypershift.openshift.io/labelsSynced: "true"
k8s.ovn.org/host-addresses: '["172.20.0.1","192.168.126.30","2620:52:0:1306::17"]'
k8s.ovn.org/l3-gateway-config: '{"default":{"mode":"shared","interface-id":"br-ex_hosted-worker0","mac-address":"aa:aa:aa:aa:11:01","ip-addresses":["192.168.126.30/24","2620:52:0:1306::17/64"],"next-hops":["192.168.126.1","fe80::5054:ff:fe23:feb2"],"node-port-enable":"true","vlan-id":"0"}}'
k8s.ovn.org/node-chassis-id: 13fe1058-d10c-4a12-9472-2896d736b273
k8s.ovn.org/node-gateway-router-lrp-ifaddr: '{"ipv4":"100.64.0.4/16","ipv6":"fd98::4/64"}'
k8s.ovn.org/node-mgmt-port-mac-address: 86:a6:df:01:6a:1b
k8s.ovn.org/node-primary-ifaddr: '{"ipv4":"192.168.126.30/24","ipv6":"2620:52:0:1306::17/64"}'
k8s.ovn.org/node-subnets: '{"default":["10.132.0.0/23","fd01:0:0:1::/64"]}'
volumes.kubernetes.io/controller-managed-attach-detach: "true"
Version-Release number of selected component (if applicable):
$ oc version Client Version: 4.13.3 Kustomize Version: v4.5.7 Server Version: 4.13.4 Kubernetes Version: v1.26.5+7d22122
How reproducible:
100%
Steps to Reproduce:
1. Install 4.13 OCP dual-stuck BM hub cluster 2. Install MCE 2.3 and Hypershift operator 3. Render the files using the CLI and modify them to be dual stack and other needed details 4. Apply the manifests 5. Create the VMs and BMHs 6. Wait for the deployment to finish
Actual results:
oc get node hosted-worker0 -o jsonpath='{.status.addresses}' | jq
[
{
"address": "192.168.126.30",
"type": "InternalIP"
},
{
"address": "hosted-worker0",
"type": "Hostname"
}
]
Expected results:
oc get node hub-ctlplane-0.dual.lab -o jsonpath='{.status.addresses}' | jq
[
{
"address": "192.168.126.20",
"type": "InternalIP"
},
{
"address": "2620:52:0:1306::5",
"type": "InternalIP"
},
{
"address": "hub-ctlplane-0.dual.lab",
"type": "Hostname"
}
]
- links to
-
RHBA-2023:6837
OpenShift Container Platform 4.14.z bug fix update