Some overcloud nodes are missing in the ansible inventory file generated for migration to ML2OVN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Oliver Walsh |
Bug Description
When trying to perform a migration from ml2ovs to ml2ovn using migration tool, ovn_migration.sh script creates a file hosts_for_migration which includes only single controller and single compute node even on environments with more than 1 compute and controller nodes.
The problem started to happen because output of "/usr/bin/
When running get_role_hosts function from tools/ovn_
jq: error (at /tmp/ansible-
controller-0
in the past the output was correct:
controller-0 controller-1 controller-2
similar for tools/ovn_
get_role_hosts /tmp/ansible-
jq: error (at ansible-
compute-0 controller-0
while correct output should be:
controller-0 controller-1 controller-2 compute-0 compute-1
Possible solution is to replace L93 in tools/ovn_
from
roles=`jq -r \.$role_
to
roles=`roles=`jq -r \.overcloud_
In this case the function returns proper lists of nodes for old and new ansible-inventory file format.
Some details:
output of jq command from tools/ovn_
old inventory format
[stack@undercloud-0 ~]$ jq -r \.neutron_
Controller
new inventory format
(overcloud) [stack@undercloud-0 ~]$ jq -r \.neutron_
overcloud_
related snippet from old tripleo-
...
"neutron_api": {
"children": [
],
"vars": {
}
},
...
related snippet from new tripleo-
...
"neutron_api": {
"children": [
]
},
"overcloud_
"children": [
]
},
Changed in neutron: | |
assignee: | nobody → Roman Safronov (rsafrono) |
status: | New → In Progress |
tags: | added: ovn |
Changed in neutron: | |
importance: | Undecided → Medium |
Changed in neutron: | |
assignee: | Jakub Libosvar (libosvar) → Oliver Walsh (owalsh) |
Change abandoned by Roman Safronov (<email address hidden>) on branch: master /review. opendev. org/737546
Review: https:/
Reason: No capacity