OpenVSwitch playbook does not allow enough flexibility in host roles assignment

Bug #1971488 reported by Juan Pablo Suazo
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kolla-ansible
In Progress
Low
Unassigned

Bug Description

Tasks `Set system-id` an `Ensuring OVS bridge is properly setup` from the `ansible/roles/openvswitch/tasks/post-config.yml` assumes controller nodes are also network nodes.

If this is not the case, the tasks attempt to run commands against OpenVSwitch containers that are not present, stopping the deployment of openstack.

- name: Set system-id
  become: true
  command: docker exec openvswitch_vswitchd ovs-vsctl set Open_vSwitch . external_ids:system-id={{ openvswitch_system_id }}

- name: Ensuring OVS bridge is properly setup
  become: true
  command: docker exec openvswitch_db /usr/local/bin/kolla_ensure_openvswitch_configured {{ item.0 }} {{ item.1 }}
  register: status
  changed_when: status.stdout.find('changed') != -1
  when:
    - inventory_hostname in groups["network"]
      or (inventory_hostname in groups["compute"] and computes_need_external_bridge | bool )
  with_together:
    - "{{ neutron_bridge_name.split(',') }}"
    - "{{ neutron_external_interface.split(',') }}"

Found this bug in our victoria deployment when configuring some nodes to be control+loadbalancer(network) nodes. As this nodes do not have OpenVSwitch services running on them, this tasks fail when attempting to run this commands against their containers.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: New → In Progress
Changed in kolla-ansible:
status: In Progress → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :
Changed in kolla-ansible:
status: New → In Progress
Changed in kolla-ansible:
importance: Undecided → Low
summary: - OpenVSwitch playbook does not allow controllers without OVS
+ OpenVSwitch playbook does not allow enough flexibility in host roles
+ assignment
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (master)

Change abandoned by "Radosław Piliszek <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/840895
Reason: stale, not pursuing

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.