Extra condition is required in this task: "Ensure chassis as gateway is disabled where required", ovn role.
Right now it's checking only if "inventory_hostname in groups["ovn-controller-network"]", but condition for openvswitch group should be added, otherwise it will try running this command on controllers that don't have openvswitchd containers and will result in failures:
Extra condition is required in this task: "Ensure chassis as gateway is disabled where required", ovn role.
Right now it's checking only if "inventory_hostname in groups[ "ovn-controller -network" ]", but condition for openvswitch group should be added, otherwise it will try running this command on controllers that don't have openvswitchd containers and will result in failures:
``` oscontroller- 003]: FAILED! => {"changed": true, "cmd": ["docker", "exec", "openvswitch_ vswitchd" , "ovs-vsctl", "remove", "Open_vSwitch", ".", "external-ids", "ovn-cms-options"], "delta": "0:00:00.047913", "end": "2021-04-13 14:30:42.553955", "msg": "non-zero return code", "rc": 1, "start": "2021-04-13 14:30:42.506042", "stderr": "Error: No such container: openvswitch_ vswitchd" , "stderr_lines": ["Error: No such container: openvswitch_ vswitchd" ], "stdout": "", "stdout_lines": []}
fatal: [os-lb-
```
Basically it's in this commit message:
https:/ /github. com/openstack/ kolla-ansible/ commit/ 88a840fb95ed985 40f7dec6f89f95a 7dc269545d
Possible when conditions that will prevent running this command on controllers:
1.(inventory_ hostname not in groups[ "ovn-controller -network" ]) and ('openvswitch' in group_names)
2.(inventory_ hostname not in groups[ "ovn-controller -network" ]) and (inventory_hostname in groups[ "openvswitch" ]