netplan pacemaker ip address resource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
When an IP address is managed with linux cluster software pacemaker as a ressource "netplan apply" is not working and exits with an error. This is because it detects an ip address which is not "managed" by netplan. The check would usually be correct but not in this case, because the ip address needs to be managed by the cluster software pacemaker.
Example where it happend for me
ens160 is assigned an ip address by netplan e.g. 192.168.1.2
the ip address 192.168.1.3 is set by pacemaker.
If you try to change any settings in netplan now by editing the 01-netcfg.yml and netplan apply afterwards, it will abort with errors. That is if the Resource (IP address) of pacemaker is activ.
The error messages are as follow:
:/etc/netplan# netplan apply
Traceback (most recent call last):
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
stderr=
File "/usr/lib/
raise CalledProcessEr
subprocess.
temporary solution is to end the Pacemaker Resource Manager (node standby) on the host, apply the changes of netplan, and reactivate the node.