Bug 1934736 - ovn_migration.sh script doesn't detect neutron_dhcp agents when they run on a different node than neutron_api
Summary: ovn_migration.sh script doesn't detect neutron_dhcp agents when they run on a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.1 (Train)
Hardware: Unspecified
OS: Linux
high
medium
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: Jakub Libosvar
QA Contact: Roman Safronov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-03 18:22 UTC by Ladislav Jozsa
Modified: 2023-01-20 10:13 UTC (History)
11 users (show)

Fixed In Version: python-networking-ovn-7.3.1-1.20210713093309.4e24f4c.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 20:18:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 781627 0 None MERGED ovn-migration: Use DHCP nodes to configure dnsmasq 2021-05-14 09:14:35 UTC
Red Hat Issue Tracker OSP-144 0 None None None 2021-11-18 11:29:55 UTC
Red Hat Product Errata RHBA-2021:3762 0 None None None 2021-12-09 20:18:26 UTC

Description Ladislav Jozsa 2021-03-03 18:22:21 UTC
Description of problem:
hosts_for_migration/[ovn-dbs] host group is populated wrongly and doesn't consider neutron_dhcp containers running elsewhere than neutron_server. 

Version-Release number of selected component (if applicable):
python3-networking-ovn-migration-tool-7.3.1-1.20200902233413.el8ost.noarch (RHOS 16.1.3)

How reproducible:
always

Steps to Reproduce:
1. Install overcloud with split control plane having neutron_dhcp and neutron_api running on distinct nodes
2.
3.

Actual results:
[ovn-dbs]
ctrl-net-c-01 ansible_host=10.0.37.45 ovn_central=true ansible_ssh_user=stack ansible_become=true
ctrl-net-c-02 ansible_host=10.0.37.21 ansible_ssh_user=stack ansible_become=true
ctrl-net-c-03 ansible_host=10.0.36.66 ansible_ssh_user=stack ansible_become=true
ctrl-net-c-04 ansible_host=10.0.37.139 ansible_ssh_user=stack ansible_become=true

[ovn-controllers]
compute-net-c-001 ansible_host=10.0.36.225 ansible_ssh_user=stack ansible_become=true ovn_controller=true
compute-net-c-002 ansible_host=10.0.36.152 ansible_ssh_user=stack ansible_become=true ovn_controller=true
ctrl-nova-c-01 ansible_host=10.0.37.104 ansible_ssh_user=stack ansible_become=true ovn_controller=true
ctrl-nova-c-02 ansible_host=10.0.37.15 ansible_ssh_user=stack ansible_become=true ovn_controller=true
ctrl-nova-c-03 ansible_host=10.0.37.8 ansible_ssh_user=stack ansible_become=true ovn_controller=true


Expected results:
[ovn-dbs]
compute-net-c-001 ansible_host=10.0.36.225 ansible_ssh_user=stack ansible_become=true
compute-net-c-002 ansible_host=10.0.36.152 ansible_ssh_user=stack ansible_become=true


[ovn-controllers]
compute-net-c-001 ansible_host=10.0.36.225 ansible_ssh_user=stack ansible_become=true ovn_controller=true
compute-net-c-002 ansible_host=10.0.36.152 ansible_ssh_user=stack ansible_become=true ovn_controller=true
ctrl-nova-c-01 ansible_host=10.0.37.104 ansible_ssh_user=stack ansible_become=true ovn_controller=true
ctrl-nova-c-02 ansible_host=10.0.37.15 ansible_ssh_user=stack ansible_become=true ovn_controller=true
ctrl-nova-c-03 ansible_host=10.0.37.8 ansible_ssh_user=stack ansible_become=true ovn_controller=true


Additional info:
Reproducible in PSI

Comment 4 Yaniv Kaul 2021-07-28 14:02:59 UTC
I assume this is also fixed in 16.2? ( thought there'd be a clone BZ)

Comment 5 Jakub Libosvar 2021-07-28 15:21:49 UTC
(In reply to Yaniv Kaul from comment #4)
> I assume this is also fixed in 16.2? ( thought there'd be a clone BZ)

It is fixed in 16.2, it got there from upstream stable Train release import. There is no BZ for 16.2 because of the upstream fix.

Comment 10 Roman Safronov 2021-08-16 08:34:18 UTC
Was verified on RHOS-16.1-RHEL-8-20210804.n.0 with python3-networking-ovn-7.3.1-1.20210714143305.4e24f4c.el8ost.noarch and  python3-networking-ovn-migration-tool-7.3.1-1.20210714143305.4e24f4c.el8ost.noarch.
Tested on a composable roles environment where neutron_dhcp and neutron_api were running on distinct nodes (networkers and controllers respectively).
Checked that ovn_migration.sh script was able to detect neutron_dhcp agents when they run on a different node than neutron_api. Ansible inventory file was created properly.

Comment 22 errata-xmlrpc 2021-12-09 20:18:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3762


Note You need to log in before you can comment on or make changes to this bug.