15 Commits

Author SHA1 Message Date
Sagi Shnaidman
016f7c6002 Remove unnecessary slash volume maps
When podman parses such volume map it removes the slash
automatically and shows in inspection volumes w/o slash.
When comparing configurations it turns to be a difference and
it breaks idempotency of containers, causing them to be recreated.

Change-Id: Ifdebecc8c7975b6f5cfefb14b0133be247b7abf0
2019-12-04 20:32:14 +02:00
Jaganathan Palanisamy
227c516aa2 Derive Pci passthrough whitelist disable option
This change is to add the option to disable the derive
pci passthrough whitelist automation logic in sriov
deployments if required.

Change-Id: Ib2d5b019e3064acf50c06da071d9eb77fe0d10dd
Closes-Bug: #1841041
2019-11-21 16:53:18 +05:30
Jose Luis Franco Arza
4cbae84c75 Get rid of docker removing in post_upgrade tasks.
When upgrading from Rocky to Stein we moved also from using the docker
container engine into Podman. To ensure that every single docker container
was removed after the upgrade a post_upgrade task was added which made
use of the tripleo-docker-rm role that removed the container. In this cycle,
from Stein to Train both the Undercloud and Overcloud work with Podman, so
there is no need to remove any docker container anymore.

This patch removes all the tripleo-docker-rm post-upgrade task and in those
services which only included a single task, the post-upgrade-tasks section
is also erased.

Change-Id: I5c9ab55ec6ff332056a426a76e150ea3c9063c6e
2019-11-12 16:33:38 +01:00
Zuul
f662fd17d9 Merge "Derives NovaPCIPassthrough per SR-IOV node" 2019-10-23 04:02:34 +00:00
Jaganathan Palanisamy
a7ed27c30d Derives NovaPCIPassthrough per SR-IOV node
This change is used to derive the pci_passthrough_whitelist parameters
automatically for all the SR-IOV nodes.

Change-Id: I3bd57d10580fc303201dc7516480ecf237bc98a5
Closes-Bug: #1841041
2019-10-22 16:40:07 +05:30
Emilien Macchi
81258ae551 Convert container environment from a list to a dict
Moving all the container environments from lists to dicts, so they can
be consumed later by the podman_container ansible module which uses
dict.

Using a dict is also easier to parse, since it doesn't involve "=" for
each item in the environment to export.

Change-Id: I894f339cdf03bc2a93c588f826f738b0b851a3ad
Depends-On: I98c75e03d78885173d829fa850f35c52c625e6bb
2019-10-16 01:29:31 +00:00
Karthik S
ddd486fb63 Deprecate NeutronSriovNumVFs and neutron-sriov-host-config
Deprecating the parameter NeutronSriovNumVFs and the service
neutron-sriov-host-config. The numvfs shall be configured
using the sriov_pf type in nic configs.

Depends-On: I2923e046727c901219be693f248b7c0078331b83
Change-Id: I977a69add983cfe59f2dd82f05ebf7e11a85c25e
2019-08-08 08:58:30 +00:00
Jose Luis Franco Arza
d1035703b7 Force removal of docker container in tripleo-docker-rm.
The tripleo-docker-rm role has been replaced by tripleo-container-rm [0].
This role will identify the docker engine via the container_cli variable
and perform a deletion of that container. However, these tasks inside the
post_upgrade_tasks section were thought to remove the old docker containers
after upgrading from rocky to stein, in which podman starts to be the
container engine by default.

For that reason, we need to ensure that the container engine in which the
containers are removed is docker, as otherwise we will be removing the
podman container and the deployment steps will fail.

Closes-Bug: #1836531
[0] - 2135446a35

Depends-On: https://review.opendev.org/#/c/671698/
Change-Id: Ib139a1d77f71fc32a49c9878d1b4a6d07564e9dc
2019-07-19 12:37:35 +00:00
Dan Prince
a68151d02a Convert Docker*Image parameters
This converts all Docker*Image parameter varients into
Container*Image varients.

The commit was autogenerated with the following shell commands:

for file in $(grep -lr Docker.*Image --include \*.yaml --exclude-dir releasenotes); do
  sed -e "s|Docker\([^ ]*Image\)|Container\1|g" -i $file
done

Change-Id: Iab06efa5616975b99aa5772a65b415629f8d7882
Depends-On: I7d62a3424ccb7b01dc101329018ebda896ea8ff3
Depends-On: Ib1dc0c08ce7971a03639acc42b1e738d93a52f98
2019-06-05 14:33:44 -06:00
Zuul
2f43d4b967 Merge "Consolidate RpcPort healthchecks" 2019-05-31 14:58:21 +00:00
Alan Bishop
e9c26b6d32 Consolidate RpcPort healthchecks
Update the templates with RpcPort healthchecks to use the resource in
containers-common.yaml.

Change-Id: Ic1cc0f59d812ddf0a6a1ce9bf852c22089fd19a4
2019-05-15 14:37:58 -04:00
Dan Prince
18bae394a3 Move neutron base, plugins to deployment
Depends-On: Ic7c1817671467f4ec2ef823f52e165c2c1f230ca
Change-Id: I94998e5885fae927a5637ef67a7930e2dd19a8ee
Related-Blueprint: services-yaml-flattening
2019-05-13 10:05:46 -04:00
Dan Prince
a52498ab4d Move containers-common.yaml into deployment
Change-Id: I8cc27cd8ed76a1e124cbb54c938bb86332956ac2
Related-Blueprint: services-yaml-flattening
2019-04-14 18:15:12 -04:00
Rodolfo Alonso Hernandez
b01a57491e Set ulimit 16384 for Neutron SR-IOV container
Same a in [1], rootwrap takes too much time if ulimit is the
default value. In the related bug, the execution time drops
from 800ms to 30ms if ulimit is set to 16384.

[1] https://review.openstack.org/#/c/559268/

Change-Id: I18de5b733066853a8c057596e85299048cee8604
Closes-Bug: #1823385
2019-04-10 07:53:51 +00:00
Dan Prince
7d957ff262 step5: flatten the neutron service configurations
This change combines the previous puppet and docker files into a single
file that performs the docker service installation and configuration
for the neutron-sriov-agent, neutron-plugin-nsx, and neutron-sfc-api
services.

Change-Id: I3403575928df245798468b2d17f4a620bbf209e5
Related-Blueprint: services-yaml-flattening
2019-02-28 10:24:51 -05:00