Merge ~paelzer/ubuntu/+source/openvswitch:fix-autopkgtest-hirsute into ~ubuntu-server-dev/ubuntu/+source/openvswitch:master

Proposed by Christian Ehrhardt 
Status: Merged
Merged at revision: 3ec46da091c557929dc57d5c7a86c25dd05a8272
Proposed branch: ~paelzer/ubuntu/+source/openvswitch:fix-autopkgtest-hirsute
Merge into: ~ubuntu-server-dev/ubuntu/+source/openvswitch:master
Diff against target: 50 lines (+20/-2)
3 files modified
debian/changelog (+6/-0)
debian/tests/dpdk (+7/-1)
debian/tests/vanilla (+7/-1)
Reviewer Review Type Date Requested Status
Ubuntu Server Developers Pending
Review via email: mp+399771@code.launchpad.net

Commit message

https://launchpad.net/ubuntu/+source/mininet/2.3.0-1build1
is finally python3 (only).
That means we have to modify our dependencies and our python calls.
With this fix applied autopkgtest of OVS vs mininet 2.3 succeed and would let the latter pass into Hirsute.

I had a simpler version before (just the dep and the call bumped to py3) which worked fine.
But I remembered that OVS is backported in multiple cases, which then would make the tests there fail.
So I made a switch based on the mininet version, that works out of the box in backports.

Old:
$ sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest --no-built-binaries --apt-upgrade --shell-fail openvswitch_2.15.0-0ubuntu3~ppa3.dsc -- qemu --ram-size=1536 --cpus 2 ~/work/autopkgtest-hirsute-amd64.img
I'd wish to say it worked, but python2 mininet in hirsute fails on something else nowadays.
"RTNETLINK answers: File existsrface pair (s1-eth1,h1-eth0):"
But it got the python2 mininet that is 2.2.2-5ubuntu1 started.

New:
$ sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest --no-built-binaries --apt-pocket=proposed=src:mininet --apt-upgrade --shell-fail openvswitch_2.15.0-0ubuntu3~ppa3.dsc -- qemu --ram-size=1536 --cpus 2 ~/work/autopkgtest-hirsute-amd64.img
....
autopkgtest [09:57:37]: @@@@@@@@@@@@@@@@@@@@ summary
vanilla PASS
dpdk PASS

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Unrelated to this change, but also worth to be aware about
=> https://github.com/mininet/mininet/issues/1060 "iperf fails (hangs) in TCP tests"

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 5461673..7e1f1f1 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,9 @@
6+openvswitch (2.15.0-0ubuntu3) hirsute; urgency=medium
7+
8+ * d/t/{vanilla,dpdk}: mininet >=2.3 is python3
9+
10+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 17 Mar 2021 08:02:10 +0100
11+
12 openvswitch (2.15.0-0ubuntu2) hirsute; urgency=medium
13
14 * Fix recording of FQDN/hostname on startup (LP: #1915829):
15diff --git a/debian/tests/dpdk b/debian/tests/dpdk
16index ff408ad..23cdd8b 100755
17--- a/debian/tests/dpdk
18+++ b/debian/tests/dpdk
19@@ -34,6 +34,12 @@ echo "OK"
20 echo "stop conflicting openvswitch testcontroller"
21 systemctl stop openvswitch-testcontroller || true
22
23+if dpkg --compare-versions "$(dpkg-query --showformat '${Version}\n' --show mininet)" ge "2.3.0-1"; then
24+ PYCMD="python3"
25+else
26+ PYCMD="python2"
27+fi
28+
29 echo -n "running openflow tests using mininet"
30-python2 `dirname $0`/openflow.py 2>&1
31+${PYCMD} `dirname $0`/openflow.py 2>&1
32 echo "OK"
33diff --git a/debian/tests/vanilla b/debian/tests/vanilla
34index 85943aa..a79c067 100755
35--- a/debian/tests/vanilla
36+++ b/debian/tests/vanilla
37@@ -17,6 +17,12 @@ echo "OK"
38 echo "stop conflicting openvswitch testcontroller"
39 systemctl stop openvswitch-testcontroller || true
40
41+if dpkg --compare-versions "$(dpkg-query --showformat '${Version}\n' --show mininet)" ge "2.3.0-1"; then
42+ PYCMD="python3"
43+else
44+ PYCMD="python2"
45+fi
46+
47 echo -n "running openflow tests using mininet"
48-python2 `dirname $0`/openflow.py 2>&1
49+${PYCMD} `dirname $0`/openflow.py 2>&1
50 echo "OK"

Subscribers

People subscribed via source and target branches