ovn migration: Fix neutron server container name

Previously docker command used grep to search for neutron server
container. It used image name instead of container name. With the switch
to podman, it stopped working. This patch fixes the container name.

Change-Id: Id650c2e7ac427dd53ebaab4e6d95d54efc657e3f
Closes-bug: #1895108
Signed-off-by: Jakub Libosvar <libosvar@redhat.com>
(cherry picked from commit 4b30dc2330423fd9fe68a70f7b2e0c6f925ecda4)
changes/11/754011/1
Jakub Libosvar 2 years ago
parent 51e4351309
commit 7d39e618b0
  1. 2
      migration/tripleo_environment/playbooks/roles/migration/tasks/sync-dbs.yml

@ -1,7 +1,7 @@
---
- name: Get the neutron container ID
shell:
podman ps --filter "name=neutron-server-ovn" --format {% raw %}"{{.ID}}"{% endraw %}
podman ps --filter "name=neutron_api" --format {% raw %}"{{.ID}}"{% endraw %}
register: neutron_id
- name: Sync neutron db with OVN db (container) - Run 1

Loading…
Cancel
Save