bug in ovn role bootstrap.yml, ansible-kolla version: 10.2.0

Bug #1923634 reported by Michael Salo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Committed
Medium
Unassigned

Bug Description

Extra condition is required in this task: "Ensure chassis as gateway is disabled where required", ovn role, kolla-ansible version 10.2.0

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

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

seems like it's fixed in: stable/ussuri branch but not in ansible-kolla: 10.2.0. If 10.2.1 is coming out, I assume it would be built from stable/ussuri and it won't be there anymore ) if so ,you can mark it resolved.

Mark Goddard (mgoddard)
Changed in kolla-ansible:
status: New → Fix Committed
importance: Undecided → Medium
Changed in kolla-ansible:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
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.