Comment 0 for bug 1923634

Revision history for this message
Michael Salo (michael-salo) wrote :

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:

```
fatal: [os-lb-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": []}
```

Basically it's in this commit message:

https://github.com/openstack/kolla-ansible/commit/88a840fb95ed98540f7dec6f89f95a7dc269545d

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"]