Commit Graph

281 Commits

Author SHA1 Message Date
Michal Nasiadka 66e27b3b0a Remove calls to libvirt repo
It does not exist in repos.yaml since [1].

[1]: Id585c7744ba130ad1dfc28138fb0f9e6eeae771d

Change-Id: Ic74eba44fc6e5508976de24cf20a5039f3292731
2024-02-26 13:04:19 +01:00
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
Marcin Juszkiewicz 9abe6d7997 Revert "neutron-mlnx-agent: pin pyzmq at 21.*"
This reverts commit b2d5307a44.

Reason for revert: Bobcat uses 25+ version

Change-Id: I589a5ae43ccf52104b8cbce327ab13248d3bbde0
2023-06-22 11:49:50 +02:00
Marcin Juszkiewicz 19e40f1608 docker: implement macros to alter upper-constraints.txt
upper_constraints_remove() macro allows to remove line
upper_constraints_version_change() allows to change versions

This way we have cleaner way to alter u-c in those images which need it.

Change-Id: I8fc354b8aa4d03fcd3ecfb9cbfe75de67492a0e3
2023-04-21 14:13:24 +02:00
Zuul be0e89d600 Merge "neutron-mlnx-agent: pin pyzmq at 21.*" 2023-03-27 14:23:40 +00:00
Michal Nasiadka d7d43bed84 neutron: Add iproute-tc
Closes-Bug: #2000782
Change-Id: I5cf944c509f23d430665de458cbbdb2fd31db7bb
2023-03-22 10:59:34 +00:00
Marcin Juszkiewicz b2d5307a44 neutron-mlnx-agent: pin pyzmq at 21.*
20.* fails to build so let us try version where upstream fixed packaging
issues.

Change-Id: I099b21872a12c2dccaba4065965d9227ee2e87bc
2023-03-20 21:11:18 +01:00
Rodolfo Alonso Hernandez aa9d3b8e58 Add Dockerfile for neutron-ovn-agent
This patch adds support for the new OVN Neutron Agent [1]. This
new agent will include any needed OVN functionality not implemented
in ovn-controller. This agent will, in a future, include the
metadata service, superseding the OVN Metadata Agent.

[1]https://review.opendev.org/c/openstack/neutron-specs/+/868076

Related-Bug: #2000385
Related-Bug: #1998608
Change-Id: Ib15a89ce9ba7b1c5121a627da9d130dc5bf5a044
2023-03-20 19:09:47 +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
Michal Nasiadka 0883532434 Add RockyLinux 9 support
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/859570

Change-Id: I7af51d07b8a939c908aa072294061def57dd67de
2022-09-30 14:17:34 +00:00
Marcin Juszkiewicz 878b00013b Move to CentOS Stream 9
OpenStack 'zed' requires Python 3.8+ so RHEL 8 family has to go.

This changeset moves to CentOS Stream 9 while move to RockyLinux 9 is
planned as final solution.

CI moved to CentOS Stream 9 nodes.

Depends-on: https://review.opendev.org/c/openstack/kolla-ansible/+/839715

Change-Id: I113b9984294cf8663d3fc0c8840320e1d40ea731
2022-09-27 07:40:06 +00:00
Marcin Juszkiewicz 016c5ed30c adjust permissions on _extend_start files (part II)
Tim Shearer started it in 1d96a2bbe1.

Since all extend_start files are sourced rather than executed, the executable
bits are now cleared throughout the project.

Change-Id: Ia1797c32fc6a35f9f077c673abf4d8e16e51a760
2022-04-22 11:34:55 +02: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
Zuul b8d1a62df6 Merge "neutron-openvswitch-agent: openvswitch is already installed" 2021-11-02 12:33:53 +00:00
Marcin Juszkiewicz eff681063a neutron-openvswitch-agent: openvswitch is already installed
We install openvswitch package in neutron-base image already so there is
no need of repeating it.

Change-Id: Id578cbc49c9a432414e5c758e0c853e59f79b039
2021-11-01 15:16:51 +01:00
Michal Nasiadka 2d1bbe7257 neutron: Use update-alternatives --display instead of --query
--query is not supported before update-alternatives 1.15
and CentOS uses 1.13

Closes-Bug: #1936947
Change-Id: I78da7eb2b6b5eae2b04fd95b24615bd4a572a1d6
2021-10-29 09:59:51 +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
Zuul d2f9101b31 Merge "ironic-neutron-agent: enable for Debuntu binary" 2021-08-23 14:22:11 +00: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
Mark Goddard 928c4648a4 ironic-neutron-agent: enable for Debuntu binary
Packages are available for focal and bullseye.

Change-Id: I61623748d1149adb1b096adf2fffb5a902df3181
2021-08-12 09:00:52 +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
Marcin Juszkiewicz fb61ba7dac enable 'libvirt' repo for images with python*-libvirt
There are several images installing 'python3-libvirt' package. Which for
Debian reside in 'libvirt' repo. So let's enable it where needed.

Change-Id: I1c91d27f2578f5ca7c83c4747725b1d9371880b0
2021-03-23 22:08:11 +01:00
Marcin Juszkiewicz 8d70e3f0cc neutron-server: make it build again
1. stop pinning networking-hyperv

Pike release was long time ago so maybe it is time to unpin it?

commit 6dc8e97846
Author: Dan Ardelean <dardelean@cloudbasesolutions.com>
Date:   Mon Aug 28 12:56:25 2017 +0300

    Change networking-hyperv version for Pike

2. stop install vmware-nsxlib as a plugin

vmware-nsx is a plugin and we install it already
vmware-nsxlib can be fetched from Pypi

Solves:

INFO:kolla.common.utils.neutron-server:The conflict is caused by:
INFO:kolla.common.utils.neutron-server:    The user requested vmware-nsxlib 15.0.8.dev129 (from /plugins/vmware-nsxlib-15.0.8.dev129)
INFO:kolla.common.utils.neutron-server:    vmware-nsx 15.0.1.dev424 depends on vmware-nsxlib>=17.0.0

Change-Id: I6ef344d463333e5cdc3a0850c8e068218779fdbd
2021-03-01 14:30:59 +01:00
Mark Goddard 4b792b9a43 Remove footer block from intermediate images
Only the final image in a hierarchy should have the footer block.

neutron-infoblox-ipam-agent image still has two footers because it
inherits from the neutron-server image. We set the user to root at the
beginning of that Dockerfile, so that headers and footers have the right
context.

Change-Id: I95e5bb5583be2a76e289749e8adfc303a4e7197a
2020-11-20 12:20:21 +00:00
Michal Nasiadka 7a4ba91fa6 neutron: Fix update-alternatives on CentOS
Change-Id: I151420d3036410dd5ce6d90907d72dd3c20643b5
Closes-Bug: #1884778
2020-11-04 16:29:59 +00:00
Radosław Piliszek 032804e5a0 Be strict about errors in start
Make start.sh run with pipefail and nounset to avoid common errors
in the start scripts and detect them early.

Httpd code had to be patched to allow it to pass on Debuntu.

Also fix the two missed applications of httpd to make sure all
its path are covered.

And also fix Horizon's ENABLE_ZAQAR - K-A does not use Zaqar.
Yet another - Horizon's settings_bundle. :-)

Finally, fix Neutron for Debuntu (KOLLA_LEGACY_IPTABLES).

Change-Id: I39b8d78f6758df1f92b8b0d2c06ea99b038b843b
Depends-On: https://review.opendev.org/711923
2020-10-05 13:03:39 +02:00
Radosław Piliszek faaa38f9c4 Fix Neutron migrations order
It seems I mixed up the order when commenting/uncommenting.
Neutron base has to go first.

Change-Id: Ib2bf51d4c6e2a574b98671a699777cd8a9a22768
2020-09-30 18:45:03 +02:00
Radosław Piliszek 7261c3b170 Restore Neutron migrations
For details see [1].

Note this will also be amended on the Kolla-Ansible side to squash
[2] as well.

[1] https://review.opendev.org/750075
[2] https://bugs.launchpad.net/kolla-ansible/+bug/1894380

Change-Id: Id47ea8a5ea5318a69cf6814162db2115b40c7e6f
2020-09-23 10:24:29 +02:00
Radosław Piliszek 2725ed9d84 Emergency fixes to pass CI
1) makes bifrost unbuildable as it evolves rapidly at the moment
2) makes neutron bootstrap/upgrade only the core service [1]

1) will be reverted
2) will be made more flexible

[1] https://bugs.launchpad.net/bgpvpn/+bug/1894056

Change-Id: I1eefcfceded985b5f61ee8d796f9d8994c9ee97c
2020-09-05 17:42:22 +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
Zuul ed07d72778 Merge "Remove neutron-server-ovn and neutron-ovn-metadata-agent images" 2020-07-27 10:54:52 +00:00
Michal Nasiadka a7f92df4eb Remove neutron-server-ovn and neutron-ovn-metadata-agent images
Those have been deprecated in previous cycle - see [1].

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

Change-Id: Ifde221e807df75d884a3f8cc4fc29eb0cb303472
2020-07-23 13:16:49 +02:00
Michal Nasiadka 1781af8b46 Remove neutron-server-opendaylight image
In [1] we have removed opendaylight image, but left neutron-server-opendaylight
image.

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

Change-Id: Iae312e24a4ff9ab79979328abac3410fbb1a3cc2
2020-07-23 09:26:15 +00: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
Zuul c07409bfab Merge "Revert "[to-revert] Pin ovsdbapp in neutron to 1.1.0"" 2020-06-13 18:02:19 +00:00
wuchunyang 6d71ac843e add libibverbs package for openvswitch
ovs images which based on centos miss libibverbs package.
this ps add the package to neutron-ovs-agent and ovs-base
images.
Closes-Bug: 1882863

Change-Id: I3e307efc43f934a944a91d5d131a11f607411df2
2020-06-10 14:56:41 +08: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
Michal Nasiadka aec0b95fa7 neutron: Remove networking-ovn - part 2
A followup to change [1].
Remove networking-ovn sources from kolla/common/config.py and
neutron-db-manage call in neutron-server/extend_start.sh

[1]: https://review.opendev.org/712762/

Change-Id: I976d60e5f2bf3e8a55b90485a77584d9e7579d62
2020-03-18 08:31:31 +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