+++ This bug was initially created as a clone of Bug #1868771 +++
It was reported that a user specified the "kubeconfig" (which is not required in OpenShift) option for whereabouts, using upstream instructions, and the error message was not informative.
The error message as reported:
Multus: [some-component/something-0]: error adding container to network "something-0": delegateAdd: error invoking confAdd - "macvlan": error in getting result from AddNetwork: Error assigning IP: Unauthorized
The phrasing "unauthorized" doesn't produce any actionable output for the user.
To verify this bug, create a net-attach-def for whereabouts, and add the "kubeconfig" parameter and specify any invalid filepath.
Tested and verified in 4.5.0-0.nightly-2020-09-20-185910
Warning FailedCreatePodSandBox 6s kubelet, weliang-32-4s4dv-compute-1 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_whereabouts-pod-1_test_3500ba57-3328-46c1-9ecb-f5f6f703c2ab_0(b17ddb41c33f5c3310a03eea98d7cbc77d975d9e61a54512354a600230033587): Multus: [test/whereabouts-pod-1]: error adding container to network "whereabouts": delegateAdd: error invoking confAdd - "macvlan": error in getting result from AddNetwork: Error at storage engine: IPAM kubernetes client initialization error: stat /invalid/path: no such file or directory
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 (OpenShift Container Platform 4.5.13 bug fix 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.