Bug 1804376 - [OVN] ML2/OVS -> ML2/OVN migration fails due to broken cirros image downloading during pre-migration resources creation
Summary: [OVN] ML2/OVS -> ML2/OVN migration fails due to broken cirros image downloadi...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z2
: 16.0 (Train on RHEL 8.1)
Assignee: Roman Safronov
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-18 18:16 UTC by Roman Safronov
Modified: 2022-10-03 14:44 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-04 09:20:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 708476 0 None MERGED Fix cirros image download during resources creation for migration 2020-11-17 14:11:22 UTC
Red Hat Issue Tracker OSP-528 0 None None None 2022-10-03 14:44:22 UTC

Description Roman Safronov 2020-02-18 18:16:09 UTC
Description of problem:

OVN migration job fails because created workload VM is not pingable.

https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/DFG/view/network/view/networking-ovn/job/DFG-network-networking-ovn-16_director-rhel-virthost-3cont_2comp-ipv4-vxlan-ml2ovs-to-ovn-migration/159/artifact/.sh/ir-tripleo-ovn-migration.log


in migration/infrared/tripleo-ovn-migration/roles/create-resources/templates/create-resources.sh.j2 curl command is running as follows:

curl -o cirros-0.4.0-x86_64-disk.img http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img

This does not work, see below:


(overcloud) [stack@undercloud-0 ~]$ curl -o cirros-0.4.0-x86_64-disk.img http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   273  100   273    0     0    440      0 --:--:-- --:--:-- --:--:--   439

(overcloud) [stack@undercloud-0 ~]$ ls -l cirros-0.4.0-x86_64-disk.img
-rw-rw-r--. 1 stack stack 273 Feb 18 18:10 cirros-0.4.0-x86_64-disk.img

(overcloud) [stack@undercloud-0 ~]$ cat  cirros-0.4.0-x86_64-disk.img
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://github.com/cirros-dev/cirros/releases/download/0.4.0/cirros-0.4.0-x86_64-disk.img">here</a>.</p>
</body></html>



curl -L should be used, see below:

(overcloud) [stack@undercloud-0 ~]$ curl -Lo cirros-0.4.0-x86_64-disk.img http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   273  100   273    0     0    436      0 --:--:-- --:--:-- --:--:--   436
100   619  100   619    0     0    582      0  0:00:01  0:00:01 --:--:--  2091
100 12.1M  100 12.1M    0     0  2744k      0  0:00:04  0:00:04 --:--:-- 4616k

(overcloud) [stack@undercloud-0 ~]$ ls -l cirros-0.4.0-x86_64-disk.img
-rw-rw-r--. 1 stack stack 12716032 Feb 18 18:11 cirros-0.4.0-x86_64-disk.img






Version-Release number of selected component (if applicable):
RHOS_TRUNK-16.0-RHEL-8-20200213.n.1
python3-networking-ovn-7.1.0-0.20200204065607.57ac389.el8ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Run the CI job:  https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/DFG/view/network/view/networking-ovn/job/DFG-network-networking-ovn-16_director-rhel-virthost-3cont_2comp-ipv4-vxlan-ml2ovs-to-ovn-migration/

Actual results:
Migration fails on resources creation.

Expected results:
Resources created properly. Migration completed. Job succeeded. 

Additional info:


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