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 @@ -53,7 +53,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
53
53
{% if base_package_type == 'rpm' %}
54
54
55
55
{% set nova_base_packages = [
56
- 'openvswitch'
56
+ 'openvswitch' ,
57
+ 'python3-openvswitch'
57
58
] %}
58
59
{% if base_arch == 'x86_64' %}
59
60
{% set nova_base_packages = nova_base_packages + [
@@ -74,7 +75,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
74
75
'iptables' ,
75
76
'openssh-client' ,
76
77
'openvswitch-switch' ,
77
- 'python3-libvirt'
78
+ 'python3-libvirt' ,
79
+ 'python3-openvswitch'
78
80
] %}
79
81
{% if base_arch == 'x86_64' %}
80
82
{% set nova_base_packages = nova_base_packages + [
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
24
24
{{ macros.install_packages(octavia_base_packages | customizable("packages")) }}
25
25
26
26
{% elif install_type == 'source' %}
27
+ {% set octavia_base_packages = [
28
+ 'python3-openvswitch'
29
+ ] %}
30
+
31
+ {{ macros.install_packages(octavia_base_packages | customizable("packages")) }}
32
+
27
33
ADD octavia-base-archive /octavia-base-source
28
34
29
35
{% set octavia_base_pip_packages = [
Original file line number Diff line number Diff line change @@ -321,6 +321,11 @@ ENV DEBIAN_FRONTEND noninteractive
321
321
322
322
ADD openstack-base-archive /openstack-base-source
323
323
RUN ln -s openstack-base-source/* /requirements \
324
+ {# NOTE(mnasiadka): Remove ovs from upper-constraints.txt because python3-openvswitch
325
+ is usually newer than UC entry and older version would get installed
326
+ in venv (see https://launchpad.net/bugs/1961874).
327
+ #}
328
+ && sed -i /^ovs=/d /requirements/upper-constraints.txt \
324
329
&& mkdir -p /var/lib/kolla \
325
330
&& {{ macros.install_pip(['virtualenv'] )}} \
326
331
&& 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