This patch combines two fixes into one patch to fix UT failures:
* Fix MidonetInterfaceDriver.plug_new signature
Since [1], the "LinuxInterfaceDriver.plug_new" signature includes a
new kwarg, "link_up". Because "MidonetInterfaceDriver" inherits from
"LinuxInterfaceDriver" and overrides "plug_new" function, the local
implementation should include this new parameter.
* Fix Mysql db migration schema
Field "midonet_tasks.data" was defined as sa.Text() in db model but in
migration script for mysql engine it is defined as Text type with
lenght long enough to create LONGTEXT field in the DB. That caused
problem with types of field in the db model and migration script.
So this patch fixes that by using sa.Text() with LONGTEXT variant for
mysql engine in db model.
Reviewed: https:/ /review. opendev. org/726371 /git.openstack. org/cgit/ openstack/ networking- midonet/ commit/ ?id=84a3c8ff90e 8af087840b58f03 b1e3452a8c1ae0
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 84a3c8ff90e8af0 87840b58f03b1e3 452a8c1ae0
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Apr 17 17:38:39 2020 +0000
Make gate great again
This patch combines two fixes into one patch to fix UT failures:
* Fix MidonetInterfac eDriver. plug_new signature
Since [1], the "LinuxInterface Driver. plug_new" signature includes a ceDriver" inherits from LinuxInterfaceD river" and overrides "plug_new" function, the local ation should include this new parameter.
new kwarg, "link_up". Because "MidonetInterfa
"
implement
* Fix Mysql db migration schema tasks.data" was defined as sa.Text() in db model but in
Field "midonet_
migration script for mysql engine it is defined as Text type with
lenght long enough to create LONGTEXT field in the DB. That caused
problem with types of field in the db model and migration script.
So this patch fixes that by using sa.Text() with LONGTEXT variant for
mysql engine in db model.
[1]https:/ /review. opendev. org/#/c/ 707406
Co-Authored-By: Slawek Kaplonski <email address hidden>
Change-Id: Ibab90934e138f1 0e36e055c038e40 4f89d01f41e 5688bb505e7f145 69dbbcea1b)
Closes-Bug: #1871568
(cherry picked from commit 86463fe85f106e9