Description of problem: Whereabouts fails Version-Release number of selected component (if applicable): 4.9 How reproducible: Always. Steps to Reproduce: 1. Create net-attach-def using whereabouts, such as: ``` apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition metadata: name: macvlan-conf spec: config: '{ "cniVersion": "0.3.0", "type": "macvlan", "master": "ens4", "mode": "bridge", "ipam": { "type": "whereabouts", "range": "198.18.0.0/15" } }' ``` 2. Create some pods that reference it: ``` ``` 3. If the pods do not come up, you've encountered it. If the pods come up, it's working. Actual results: Pods don't come up. Expected results: Pods come up (with properly assigned IPs)
Missing from step #2 above: ``` apiVersion: apps/v1 kind: ReplicaSet metadata: name: whereabouts-test labels: app: whereabouts-test tier: whereabouts-test spec: # modify replicas according to your case replicas: 3 selector: matchLabels: tier: whereabouts-test template: metadata: labels: tier: whereabouts-test annotations: k8s.v1.cni.cncf.io/networks: macvlan-conf spec: containers: - name: samplepod command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"] image: quay.io/dougbtv/alpine:latest ```
Testing failed. Seems the PR is not landed in 4.9.0-0.nightly-2021-08-14-065522 yet. Will try again tomorrow.
On version below, tested dynamic IP address assignment with Whereabouts, Pods can come up. Executed case OCP-28633(Scenario: Dynamic IP address assignment with Whereabouts) and passed. lilia@liliadeMacBook-Pro verification-tests % lilia@liliadeMacBook-Pro verification-tests % oc version Client Version: 4.7.5 Server Version: 4.9.0-0.nightly-2021-08-17-122812 Kubernetes Version: v1.22.0-rc.0+3dfed96 lilia@liliadeMacBook-Pro verification-tests %
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