File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
56
56
{% if base_package_type == 'rpm' %}
57
57
58
58
{% set nova_base_packages = [
59
- 'openvswitch'
59
+ 'openvswitch' ,
60
+ 'python3-openvswitch'
60
61
] %}
61
62
{% if base_arch == 'x86_64' %}
62
63
{% set nova_base_packages = nova_base_packages + [
@@ -79,7 +80,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
79
80
'iptables' ,
80
81
'openssh-client' ,
81
82
'openvswitch-switch' ,
82
- 'python3-libvirt'
83
+ 'python3-libvirt' ,
84
+ 'python3-openvswitch'
83
85
] %}
84
86
{% if base_arch == 'x86_64' %}
85
87
{% set nova_base_packages = nova_base_packages + [
Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
23
23
{{ macros.install_packages(octavia_base_packages | customizable("packages")) }}
24
24
25
25
{% elif install_type == 'source' %}
26
+ {% set octavia_base_packages = [
27
+ 'python3-openvswitch'
28
+ ] %}
29
+
30
+ {{ macros.install_packages(octavia_base_packages | customizable("packages")) }}
31
+
26
32
ADD octavia-base-archive /octavia-base-source
27
33
28
34
{% set octavia_base_pip_packages = [
Original file line number Diff line number Diff line change @@ -312,6 +312,11 @@ ENV DEBIAN_FRONTEND noninteractive
312
312
313
313
ADD openstack-base-archive /openstack-base-source
314
314
RUN ln -s openstack-base-source/* /requirements \
315
+ {# NOTE(mnasiadka): Remove ovs from upper-constraints.txt because python3-openvswitch
316
+ is usually newer than UC entry and older version would get installed
317
+ in venv (see https://launchpad.net/bugs/1961874).
318
+ #}
319
+ && sed -i /^ovs=/d /requirements/upper-constraints.txt \
315
320
&& mkdir -p /var/lib/kolla \
316
321
&& {{ macros.install_pip(['virtualenv'] )}} \
317
322
&& virtualenv --system-site-packages /var/lib/kolla/venv
Original file line number Diff line number Diff line change
1
+ ---
2
+ fixes :
3
+ - |
4
+ Fixes an issue when older version of Python OpenvSwitch bindings package
5
+ was used, than the running OpenvSwitch code.
6
+ `LP#1961874 <https://launchpad.net/bugs/1961874>`__
You can’t perform that action at this time.
0 commit comments