netplan pacemaker ip address resource

Bug #1837852 reported by Mario Kothe
6
This bug affects 1 person
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", line 23, in <module>
    netplan.main()
  File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/apply.py", line 43, in run
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 130, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/apply.py", line 106, in command_apply
    stderr=subprocess.DEVNULL)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['udevadm', 'test-builtin', 'net_setup_link', '/sys/class/net/ens160:0']' returned non-zero exit status 4.

Revision history for this message
Mario Kothe (mario-kothe) wrote :

temporary solution is to end the Pacemaker Resource Manager (node standby) on the host, apply the changes of netplan, and reactivate the node.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.