Bug 1989734
| Summary: | Whereabouts fails in 4.9 due to missing RBAC for leases | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Douglas Smith <dosmith> | |
| Component: | Networking | Assignee: | Douglas Smith <dosmith> | |
| Networking sub component: | multus | QA Contact: | Weibin Liang <weliang> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | high | |||
| Priority: | high | CC: | yingwang | |
| Version: | 4.9 | |||
| Target Milestone: | --- | |||
| Target Release: | 4.9.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1990928 (view as bug list) | Environment: | ||
| Last Closed: | 2021-10-18 17:44:27 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1990928 | |||
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 |
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)