Remove networking-odl from g-r in the requirements-integration job

This is a terrible idea!

Since networking-odl 13.0.0 hit pypi which includes I955c9d737864b8a2557366be518922e192f4be91
the integration gate fails because ceilometer isn't on pypi[1].  There
aren't any good fixes but this *should* at least unblock the,
requirements, gate and buy us time to fix it correctly.

Note:
 * We can't just install ceilometer from git as we'll just fail when we
   try to generate a constraints list anyway.
 * We can't blacklist networking-odl as the backlist isn't used for
   generating a freeze only for filtering the output constraints
 * We can't stop building the constratints as that introduces a new
   failure path in the gate.

So with those options ruled out lets just pretend that networking-odl
isn't in global-requirements.  This will still fail if something
(directly or not) installs it from pypi.

[1] http://logs.openstack.org/96/594496/2/check/requirements-integration/8378cd8/job-output.txt.gz#_2018-08-31_22_54_49_357505

Change-Id: I1f117f9f4d8f49b5c4ef0cb74d98560c9a551999
This commit is contained in:
Tony Breeds 2018-09-03 13:10:43 +10:00
parent 504efbae68
commit 3fe4d09d8f

View File

@ -16,6 +16,18 @@ function mkvenv {
function install_all_of_gr { function install_all_of_gr {
mkvenv $tmpdir/all_requirements mkvenv $tmpdir/all_requirements
if grep -q ^networking-odl $REPODIR/requirements/global-requirements.txt ; then
cat <<EO_FIGLET
_ _ _ ____ _ __ _
| | | | / \ / ___|| |/ /| |
| |_| | / _ \ | | | ' / | |
| _ | / ___ \| |___ | . \ |_|
|_| |_|/_/ \_\\____||_|\_\(_)
EO_FIGLET
sed -i~ -e '/^networking-odl/d' $REPODIR/requirements/global-requirements.txt
diff -U0 $REPODIR/requirements/global-requirements.txt{~,} || true
fi
$tmpdir/all_requirements/bin/pip install -r $REPODIR/requirements/global-requirements.txt $tmpdir/all_requirements/bin/pip install -r $REPODIR/requirements/global-requirements.txt
} }