Pacemaker controlled network interface reports label error exceeding 15 characters

  • 7023808
  • 05-Apr-2019
  • 06-Apr-2019

Environment

SUSE Linux Enterprise High Availability Extension 12

Situation

A cluster managed network interface controlled by the IPaddr2 resource agent reports the specified interface label would exceed the allowed limit of 15 characters:

2019-04-05T13:48:10.596570+02:00 sles12cluster1 IPaddr2(admin_addr)[5003]: ERROR: Interface label [eth0:testtesttest] exceeds maximum character limit of 15
2019-04-05T13:48:10.602892+02:00 sles12cluster1 lrmd[1281]:   notice: admin_addr_monitor_10000:5003:stderr [ ocf-exit-reason:Interface label [eth0:testtesttest] exceeds maximum character limit of 15 ]
2019-04-05T13:48:10.633053+02:00 sles12cluster1 crmd[1284]:   notice: sles12cluster1-admin_addr_monitor_10000:149 [ ocf-exit-reason:Interface label [eth0:testtesttest] exceeds maximum character limit of 15\n ]


Resolution

From /usr/lib/ocf/resource.d/heartbeat/IPaddr2:

[...]
The kernel allows alphanumeric labels up to a maximum length of 15
characters including the interface name and colon (e.g. eth0:foobar1234)
[...]

Hence the total number of characters must not exceed 15 characters.

Cause

The total number of characters for devicename, colon and iflabel (e.g. vlanXXXX:somelabel) was exceeded.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.