Bug 1804376

Summary: [OVN] ML2/OVS -> ML2/OVN migration fails due to broken cirros image downloading during pre-migration resources creation
Product: Red Hat OpenStack Reporter: Roman Safronov <rsafrono>
Component: python-networking-ovnAssignee: Roman Safronov <rsafrono>
Status: CLOSED EOL QA Contact: Eran Kuris <ekuris>
Severity: high Docs Contact:
Priority: high    
Version: 16.0 (Train)CC: apevec, bhaley, jlibosva, lhh, majopela, nlevinki, scohen
Target Milestone: z2Keywords: Triaged
Target Release: 16.0 (Train on RHEL 8.1)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-04 09:20:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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: