Open Aethylred opened 2 years ago
The bonded IB interface works as configured by the first run works BTW, it's the second run that fails. It's either because the expected type is forced in https://github.com/michaelrigart/ansible-role-interfaces/blob/master/filter_plugins/filters.py#L234
ot it's because a type is never set by the bond slave interface template: https://github.com/michaelrigart/ansible-role-interfaces/blob/master/templates/bond_slave_RedHat.j2
Changing the line https://github.com/michaelrigart/ansible-role-interfaces/blob/master/filter_plugins/filters.py#L234 to
result = _interface_check(context, slave_interface)
Resolves the issue, but I'm not sure if it's the correct thing to do.
The interface type for a bonded Infinband interface should either not be defined, ot be
InfiniBand
, but notether
as perhttps://github.com/michaelrigart/ansible-role-interfaces/blob/master/filter_plugins/filters.py#L234
The variables I'm using for this are:
I'm expectin the
type: ipoib
to do "the right thing"Error output: