metal3-static-ip-set init container fails when there are two interfaces with same MAC and provisioningInterface is not set #530
Labels
needs-triage
Indicates an issue lacks a `triage/foo` label and requires one.
triage/needs-information
Indicates an issue needs more information in order to work on it.
When
metal3-static-ip-set
init container is executed on env where there two interface with same MAC address following script:metal3-static-ip-set init container
interface="$(ip -br link show up | grep -i "$mac" | cut -f 1 -d ' ' | cut -f 1 -d '@')"
fails, as it returns both interfaces delimited by new line and so the init container fails, because later such interface name don't exist. Here is example of failed script execution:
As you can see it tries to find interface:
Workaround is edit
provisioning
resourceprovisioning-configuration
with following configuration:Is there a way to specify such configuration in openshift install config?
The text was updated successfully, but these errors were encountered: