Commit Graph

103 Commits

Author SHA1 Message Date
Michal Arbet 7f5a904e98 Fix openstack CADF audit maps and installation
This patch fixes missing pycadf's audit maps
for services and change the way how pycadf
is installed.

Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/905858

Closes-Bug: #2047941
Change-Id: I9b43d1a9990ad8aa7381ea81b0f2d692967be949
2024-01-17 11:52:20 +00:00
FelipeAFV 5f35e578d8 Adds TAAS Neutron plugin to support OVS port mirrors
Related-Bug: #2022375
Depends-On: I7b48770709bd0fb9ea5072ce6c8673074c39ab2b
Change-Id: I8afb1ccddaa527378b7fd833bd51fb9bb9c4c58c
Signed-off-by: FelipeAFV <ffigueroa@whitestack.com>
2023-10-18 13:02:56 +00:00
Michal Nasiadka d7d43bed84 neutron: Add iproute-tc
Closes-Bug: #2000782
Change-Id: I5cf944c509f23d430665de458cbbdb2fd31db7bb
2023-03-22 10:59:34 +00:00
Radosław Piliszek 2daf4331a6 Fix writable rootwrap/privsep config
Fixes a hypothetical security issue related to privilege escalation via
rootwrap/privsep. A potential vulnerable service could previously allow
writes to its rootwrap/privsep config and thus allow for more commands
to be run with root privileges via rootwrap/privsep. For a succesful
attack, this would also require the service to allow to run arbitrary
commands via rootwrap/privsep. Thus far, no such vulnerabilities have
been reported and thus this fix is simply strengthening the container
images against such an issue in the future.

Change-Id: I92c81c77e6a16570a108cde8031f7977930fb02a
Closes-Bug: #1874298
2022-10-10 15:06:05 +00:00
Marcin Juszkiewicz e21aeb5ae9 flatten images a bit
As we have one type of images now some RUN calls could be merged so we
will have less layers in resulting images.

Change-Id: I5178c58fbd8c65efe825dc249c0f1368ef0fe8e0
2022-04-21 18:53:14 +00:00
Tim Shearer 1d96a2bbe1 Adjust permissions on _extend_start files.
Explicitly set the permissions on the kolla-toolbox kolla_extend_start
file. Also, since all extend_start files are sourced rather than
executed, the executable bits are now cleared throughout the project.

Change-Id: I5c2deb4a2e33575d57c852089f856a9acc6818d0
2022-04-11 17:22:24 +02:00
Marcin Juszkiewicz 1749da2fbf docker: drop binary parts
Big patch drops all mentions of binary images support. Suggestions are
welcome how to split it into parts or handle better.

Change-Id: I5d5a46c6ce7734ceb8b844e17b43e359d7cac6e3
2022-04-09 17:44:26 +02:00
Michal Nasiadka 1ed3a28974 Revert "neutron: fix build in stable branches"
This reverts commit 360d335e94.

Reason for revert: I don't think that's still needed.

Change-Id: I67adef1762d36f23b84ab8a2297e1f3385082b8a
2022-03-01 17:00:20 +00:00
Pierre Riteau 5a85059202 Remove neutron api-paste.ini from old location
We have been configuring neutron to use /etc/neutron/api-paste.ini for
more than a month now. Remove this file from its old location before
Xena is released. Stop creating /usr/share/neutron which is now unused.

Change-Id: Ic90cd8e3065fa629d5ad67abaf7c193fd845259a
2021-10-04 11:12:24 +02:00
Pierre Riteau 22def6336d [release] Use RDO master Delorean packages
CentOS binary packages for Xena have moved Neutron's api-paste.ini file
to /etc/neutron [1]. Make this file available at the old location [2]
for compatiblity with kolla-ansible, until the configuration is modified
to use the new location.

[1] https://review.rdoproject.org/r/c/openstack/neutron-distgit/+/34845
[2] /usr/share/neutron/api-paste.ini

Change-Id: I2295884ef3b4c3bf4b087599322b0c5761e7b775
2021-08-12 10:05:50 +02:00
Michał Nasiadka a4f6a8f05b neutron: Remove vmware-nsx and networking-mlx from binary
Those plugins have been already removed from source images, this
change removes them from binary.

Change-Id: If21a21296489c1f243bb46f2595ff94d999bd686
2021-04-27 17:26:18 +02:00
Marcin Juszkiewicz 38fcd184e8 centos: enable repos where needed
With RDO use we did not disabled some repositories. This patch disable
them and enable where needed.

Change-Id: Ia9d537fe9c1ad54789d2bfb4027254fbb3defe7e
2021-04-13 11:21:39 +00:00
zhoulinhui e1fcd6cd0e Clean up the stale FIXED message
python-vmware-nsx is not installed anywhere, we don't need the FIXED message
thi PS to clean it up

Change-Id: I1b05c03002e142c7b0f26808ad423b569140a7bc
2020-08-25 09:17:18 +08:00
Alfredo Moralejo d3742fb9d8 Remove deployment of FWaaS
FWaaS is being retired upstream [1][2] in V cycle.

[1] https://review.opendev.org/#/c/735838/

Change-Id: I45679c8596844780565644e52034bd3de0915ff4
2020-06-18 22:12:05 +00:00
Radosław Piliszek 70fea6dfca Revert "[to-revert] Pin ovsdbapp in neutron to 1.1.0"
This reverts commit 83ef520d64.

As planned.

Change-Id: I75a17bab92c9c43c4429fe4283cc63d530c99bef
2020-06-01 14:30:55 +00:00
Radosław Piliszek 83ef520d64 [to-revert] Pin ovsdbapp in neutron to 1.1.0
This fixes the related bug for us while we wait for common
release.

Change-Id: I93276b2dc53e729f918fb3e680dd78a6013c109e
Related-Bug: #1881424
2020-06-01 12:39:24 +02:00
Marcin Juszkiewicz 53443c5c71 Remove support for CentOS 7
With the move to RHEL/CentOS 8 we no longer have Python 2 in our images
so there is no need for checking which Python version (2.x or 3.x) is
used inside of containers.

We also no longer have to support yum as a value for
distro_package_manager.

Partially-Implements: blueprint centos-rhel-8

Change-Id: Ie45cf3465fedddbde7856961527421883ba3d5c9
2020-04-15 09:32:06 +00:00
Marcin Juszkiewicz 7f0baa6e2c neutron-base: drop python3-networking-ovn
This code is now part of neutron, as part of ML2/OVS convergence
with OVN work [1].

[1]: https://blueprints.launchpad.net/neutron/+spec/neutron-ovn-merge

Change-Id: I704d231ead35cf94a712a5bccdd7a427c46077c7
2020-03-13 12:31:49 +01:00
Christian Berendt 861f55fbfd Add block labels to all Dockerfiles
Change-Id: I9692dda817ef134d647247431565e1b58cf9da41
2020-03-01 17:25:58 +00:00
Zuul e97239f03e Merge "CentOS 8: Update packages in images" 2020-01-30 20:13:03 +00:00
Mark Goddard 4b4e26262b CentOS 8: Update packages in images
* Some further changes for python2 vs python3 packages
* Allow rabbitmq 3.7.*, since a newer erlang is available
* Switch from qemu-img-ev to qemu-img on CentOS 8
* bridge-utils no longer available on CentOS 8
* libvirt-daemon-driver-lxc no longer available on CentOS 8
* Mark some more images buildable for CentOS 8

Change-Id: Iaf5b68ff6d944ae730ca0b1d5832172c106a6c08
Partially-Implements: blueprint centos-rhel-8
Partially-Implements: blueprint centos-rhel-python-3
2020-01-29 11:41:38 +00:00
Marcin Juszkiewicz 360d335e94 neutron: fix build in stable branches
When [1] was committed, neutron stopped building for Train.
Analogous patch is proposed to other stable branches.

This patch removes neutron from upper-constraints.

Kolla master is affected directly because we build Train
for CentOS 7 atm.

1. https://review.opendev.org/#/c/697370/

Change-Id: I944e8e42fef1d359d767cbc6e1c13371ed753f31
2020-01-10 06:18:39 +01:00
Michal Nasiadka 17982e5817 Add OVN bits to neutron-base
Currently neutron-server-ovn container does not run db setup for networking-ovn
subproject when bootstrapping - since it uses extend_start from
neutron-server (where networking-ovn is not installed).

Since OVN is being added as in-tree driver to Neutron and there is no
rationale behind supporting separate container images for neutron-server-ovn
and neutron-metadata-agent-ovn, hile networking-ovn driver uses around 1-2MB
of space - this change adds networking-ovn installation to neutron-base image
and deprecates neutron-server-ovn and neutron-metadata-agent-ovn images.

Change-Id: Ib2dbdd7e7d34f56985b7a5b2494c3b89034688cb
2020-01-08 09:37:35 +01:00
Hamdy Khader 0ca16fcea6 Add Networking-MLNX to Neutron-Base packages
The package is required for infiniband deployment to be installed
on containers: neutron-server, neutron-dhcp-agent and neutron-l3-agent.

Change-Id: I017b65c2032648fa0ac7126d4a06cd98cb7c33a0
2019-12-12 09:50:32 +00:00
Marcin Juszkiewicz 70ef9a4fee drop *_existing_user_fix macros
Commit 109706aa8b bumped 'system' users
beyond range used by Kolla. So Debian/Ubuntu does not complain that
system users created by packages exist already on package install.

Change-Id: I9bf4b240839d46088ac668f26cf065dd5e3775c2
2019-11-29 17:20:14 +01:00
Viktor Michalek baf9a10da0 Neutron: fwaas should be installed also in Debian
Change-Id: I3cbb64bc13bca6508dbc334fcec9214ca4c32185
2019-09-29 13:24:37 +00:00
Zuul df47c06388 Merge "Remove Neutron LBaaS support" 2019-06-15 21:05:20 +00:00
Carlos Goncalves 43ecacaffb Remove Neutron LBaaS support
The project has been retired and there will be no Train release [1].
This patch removes Neutron LBaaS support in Kolla.

[1] https://review.opendev.org/#/c/658494/

Depends-On: https://review.opendev.org/#/c/663875/
Change-Id: I99484c48ed09f7e015e134bdff1f298c359c6905
2019-06-07 09:56:44 +00:00
Zuul 17ce7d4de6 Merge "Debian/Ubuntu: more python3 packages for binary" 2019-06-07 08:29:09 +00:00
Mark Goddard aa59f0db6f Debian/Ubuntu: more python3 packages for binary
backport: Stein

During the switch to Stein UCA, we did not switch all packages to python
3 for Debian/Ubuntu binary images. This change switches some more of
those packages.

Change-Id: I0bff21384d88ea678608392de2db1ba418c96665
Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2019-06-06 11:06:58 +00:00
Marcin Juszkiewicz d436001b43 Debian/Ubuntu: move to Python 3 for source images
Commit 43b74ccc15 enabled use of Python 3
based packages but not switched to use Python 3.

Some of images still contain Python 2. There are two reasons:

- Ceph (ceph-common depends on Py2)
- python3-ldappool on Ubuntu 18.04

In Ceph situation Py3 packages were added. For second one we can not do
anything - Py2 dependency got dropped in Ubuntu 18.10 version.

Removed neutron-server-plugin-networking-infoblox due to being not
maintained. Once https://review.opendev.org/#/c/657578/ get merged
someone may revert that part.

Implements: blueprint debian-ubuntu-python3

Depends-on: Ie2a1077f7def0743f1403341985e2109aa490026

Change-Id: Ibfe0c2b8be98db56c61f74fb0247488ab3749ef4
2019-06-06 11:59:03 +01:00
Slawek Kaplonski 68b998f27e Install iputils package in neutron containers
This package provides e.g. arping tool which is used by Neutron
services.
On e.g. RHEL7 it was probably installed as some dependency to other
package but on RHEL8 it's missing which cause some errors e.g.
in neutron_l3_agent container.

Change-Id: I9c087164f32cb8a69d2155bc68b6f62233ad58c6
Related-Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1713321
2019-05-24 12:14:46 +02:00
Alex Schultz 3e5d8e2653 Add python3 packages for RHEL systems
RDO is currently working on python3 support for the next version of
CentOS/RHEL based systems.  This package uses the distro_python3 flag
that was added as part of I4028991bad92c0e8e21066cc4173c06ce5eba393 to
use the python3 specific package names.  This change only adds python3
package names for RHEL systems.

Conflicts-With: https://review.openstack.org/#/c/636457/
Change-Id: Iad6b70b433a0dd1b0f8ae6790fd280594517661a
Related-Blueprint: python3-support
2019-03-12 17:48:18 +00:00
Marcin Juszkiewicz 43b74ccc15 debian/ubuntu: make use of Python3 based packages
Both Ubuntu Stein UCA and Debian 'buster' migrated their OpenStack
packages to Python 3.

Note that Debian 'buster' is not released yet and contains Rocky
packages. Stein ones will be available later.

Co-Authored-By: Lee Yarwood <lyarwood@redhat.com>
Co-Authored-By: Eduardo Gonzalez <dabarren@gmail.com>

Change-Id: I160f79cc57f54ec3eac857c5babd1a6e2656d228
2019-02-28 13:06:24 +01:00
Alex Schultz ae1322ec10 Use base_package_type
This change updates the docker files to use base_package_type instead
of doing specific distro checks for the rhel/deb generic cases. The
base_distro is still available and is used when a specific distro needs
a customization but if the differences are purely rpm vs deb, then the
base_package_type can be used.

Change-Id: I8d720bb185df65a0178061ccf20b1ab2265da2c5
2019-01-17 08:23:41 -07:00
Zuul 401f7fd234 Merge "neutron-base: unify Debian/Ubuntu part" 2018-11-06 08:38:56 +00:00
Christian Berendt 441064147a neutron-base: remove bashisms
Use [ instead of [[.

This will solve the following issue:

Change-Id: I1153a5146ca8b08dd1ad732b60d8d4bce8e060ab
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:
2018-10-12 11:36:10 +00:00
Marcin Juszkiewicz 232cc372c3 neutron-base: unify Debian/Ubuntu part
Change-Id: I13d75c3fafd2f1e26da6e85cacb7b84601096d8d
2018-10-10 10:06:11 +00:00
Jeffrey Zhang 1cde66e4d7 Fix the ubuntu binary gate
1. openstack-dashboard package already configured the folders as
   expected.
2. UCA is not include python-vmware-nsx 13.0.0 package now.

Change-Id: I7cb0c4d3d872333dadd2eecd7071e8f08c21a44d
2018-08-21 00:01:39 +08:00
Will Miller 8752e3028c Add networking-baremetal package to neutron-base
Change-Id: I032bfdbbb4890594a9ef43f9a5807a76ecd5d3ab
2018-07-20 15:10:37 +01:00
Martin André 5951977eab Stop using deprecated rpm package names
These packages produce a warning during the installation, we should
switch to their new names, usually to be specific about their use of
python2.

Change-Id: I0a80e822f64222d9a32aabd1fd834bcf794d6320
2018-07-10 16:32:18 +02:00
Zuul e9a68b5fc0 Merge "Create radvd container" 2018-05-04 06:19:25 +00:00
Brian Haley 58fdba3610 Create radvd container
Also added radvd to neutron-base container since it's
needed for IPv6.

Change-Id: I27e2316b419f48dfb90b536a0835f00b39b28444
2018-04-20 13:26:59 -04:00
chenxing 1ca33914f8 Migrate neutron-vpnaas-agent to neutron-l3-agent
Depends-On: I880ef5dad6723de06da5dd8a424f7158d65b5a35
Depends-On: I52efd29791a230df1ce7e3acde4b7184aec34150
Change-Id: I47cd8ba5a14da3c76d5b1eb0b4c0cf0c729eb2ff
Partially-Implements: blueprint restructure-neutron-vpnaas
2018-03-08 07:50:55 +00:00
Pierre Hanselmann 5899b67bde Add missing vmware libs
Neutron and Cinder base images doesn't include the necessary
vmware libs. If we enable vmware nsx (nsxv or dvs) we need those
libraries to be available.

Closes-Bug: #1730662
Change-Id: I94005728fbce8320d7cf9d3b746978d8c7634ed5
2017-11-09 11:07:52 +01:00
Jeffrey Zhang e945011ce8 Upgrade neutron-fwaas db during bootstrap
Closes-Bug: #1719775
Change-Id: I76803f0f81260129a242e31e81f4f956c5a44ef9
2017-10-13 11:02:45 +08:00
Jenkins 8cfdd01ec2 Merge "Add sfc plugin into neutron-base image" 2017-07-21 10:21:18 +00:00
Jeffrey Zhang 985255acfe Install net-tools for neutron-base container
neutron-netns-cleanup script requires netstat command which is provided
by net-tools package.

Change-Id: Ic9417d2eb03e0dd93f7c668b189b4ad9c72eae0f
Closes-Bug: #1703078
2017-07-12 07:50:55 +08:00
Eduardo Gonzalez fb003d66ce Add sfc plugin into neutron-base image
Neutron-server and openvswitch-agent images consume sfc plugin
code to run sfc services.

This change adds db sync for sfc plugin.
Also move sfc code into neutron-base so other services
can make use of the plugin.

Change-Id: I60ba1333231a4ae38a041d41e551f7d74fe15e3b
Closes-Bug: #1664493
2017-06-28 13:10:55 +01:00
Jenkins 4c22fa52c8 Merge "Support VMware DVS" 2017-06-27 10:05:48 +00:00