1038 Commits

Author SHA1 Message Date
Martin Schuppert
badf39735d Add functionality to manage KSM on compute nodes per role
Adds functionality whether to enable / disable KSM on compute nodes.
Especially in NFV use case one wants to disable the service and as there
is in general little benefit in overcloud nodes, KSM is disabled per
default, but can be enabled using the new NovaComputeEnableKsm role
parameter.

Change-Id: I1b8dba2e2a9ff4f5ad73a4fbc3251b5dc96fd38e
2019-02-25 16:25:49 +01:00
Martin Schuppert
37e1122f8c Add OvnDbInternal to EndpointMap and use it for ovn_db_host
OVN controller/metadata use ovn_dbs_vip hiera key to configure
the central ovn DB. This key is not available on split control
plane or multi cell setup and therefore installation fails.

With this change a new entry gets created in the EndpointMap
named OvnDbInternal. This can then be exported for an overcloud
stack and can be used as an input for the cell stack.

The information from the EndpointMap is used for ovn-metadata
and ovn-controller as the ovn_db_host information in puppet-tripleo

Change-Id: I0d9eb663405d1113ea84e3c12651a3f0dbdfc75d
Closes-Bug: #1817524
2019-02-25 10:14:19 +01:00
Zuul
465180b113 Merge "Add specific upgrade hiera data file." 2019-02-21 22:30:45 +00:00
Zuul
9ded745e65 Merge "Deprecate xinetd service management" 2019-02-21 18:55:15 +00:00
Emilien Macchi
26a3d4336c Deprecate Docker
Docker is deprecated in Stein and will be removed in Train.
It is being replaced by Podman and Buildah.

blueprint podman-support
Change-Id: Id9ec9cbe9f879c2f437b234742118763d6d0f535
2019-02-20 21:58:28 +00:00
Emilien Macchi
72aa2dfc0a Create deployment/deprecated directory
It's not easy to find which services are deprecated, so let's create a
directory: deployment/deprecated and put the services in there.

This patch:
- creates the directory and a README
- moves already deprecated services into that directory
- update all references to these services to point to the right files

Change-Id: Id6c927d9c0db024875032f04228047d029c0696d
2019-02-20 16:57:58 -05:00
Michele Baldessari
7133394c35 Be able to know when we are running inside a minor update workflow
With this change we add an ansible variable called
'tripleo_minor_update' set to true only during the update_steps_playbook
which get run during a minor update.
Then inside common/deploy-steps-tasks when starting containers with
paunch we export this 'tripleo_minor_update' ansible variable and
push it inside the 'TRIPLEO_MINOR_UPDATE' environment variable.

Inside change Id1d671506d3ec827bc311b47d9363952e1239ce3 we will then
use the env variable and export it to the restart_bundles in order
to detect if we're inside a minor update workflow (as opposed to
a redeploy - aka stack update). The testing that has been done is
described in the above change.

Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com>

Change-Id: Ib3562adbd83f7162c2aeb450329b7cc4ab200fc2
2019-02-20 15:49:09 +01:00
Saravanan KR
5c2e741da3 Revert "Remove host-config-and-reboot interface"
This reverts commit 2a8719960103d2619e908290d80235e6079c334d.

BootParams takes care of the kernel args configuration and
reboot via ansible. But Enabling of OVS-DPDK (EnableDpdkDeployment)
is still handled as part of the PreNetworkConfig (host_config_and_reboot).
It can be cleaned-up to remove unused bits, but not the entire stack.

Change-Id: Ifeb029ddaeb2bc60f43abdb8bdb02a4c911ace30
2019-02-20 09:59:08 +05:30
Emilien Macchi
2a87199601 Remove host-config-and-reboot interface
host-config-and-reboot interface was deprecated in Queens in favor of:
OS::TripleO::Services::BootParams: extraconfig/pre_network/boot-params-service.yaml

and doesn't work with config-download, which has been the default since
Rocky.

Let's remove these files.

Change-Id: I85a781cecb7224881b827ff442376c706f1c771b
2019-02-19 11:57:04 -05:00
Zuul
1939a3d986 Merge "Enable rabbitmq_management plugin" 2019-02-19 15:39:56 +00:00
Zuul
ea60b78f84 Merge "Move ipa enrollment to host_prep_tasks" 2019-02-18 21:10:42 +00:00
Sofer Athlan-Guyot
b99c0ce8a7 Add specific upgrade hiera data file.
During upgrade we need to provides hiera variable that will override
the cluster member definition.

Change-Id: I4272797a40ee61842fe29b2e177d432c27fb47c3
Implements: blueprint upgrades-with-os
2019-02-18 10:38:30 +01:00
Cédric Jeanneret
3d07ad4326 New parameter: ContainerLogStdoutPath
This is used in order to point where podman must push its logs.
Two scripts are using it:
- docker-puppet.py
- paunch (near future - see https://review.openstack.org/#/c/635438/)

This will allow to get the stdout for all containers, even when they
are removed before we can actually run "podman logs container_name".

Related-Bug: #1814897
Change-Id: Idc220047d56ce0eb41ac43903877177c4f7b75c2
2019-02-18 09:42:05 +01:00
Zuul
afe1cb5581 Merge "Introduce ContainerImagePrepareDebug parameter" 2019-02-16 05:27:57 +00:00
Zuul
f51ab50072 Merge "Switch Manila API to httpd and support TLS" 2019-02-15 17:41:07 +00:00
Harald Jensås
d6727aff73 Enable rabbitmq_management plugin
Enable the RabbitMQ managment plugin. RabbitMQ managment
will listen on localhost (127.0.0.1) only.

NOTE: This depend on this upstream change:
  https://github.com/voxpupuli/puppet-rabbitmq/pull/777

Also to optimize for performance:
 - Disables message rates in the management plugin.
 - Raises the collect_statistics_interval from 5000ms to
   30000ms.

Related-Bug: #1815675
Change-Id: I5e73660e23fef15d1cae4c89d8b45b2456b0a110
2019-02-15 15:57:07 +01:00
Alex Schultz
78f1901da4 Deprecate xinetd service management
We stopped managing this service with the switch containers. This change
starts the removal and deprecated the TripleO management of the service.

Change-Id: Idc35bdfad126f21280444ebffaa5017e73ba8368
2019-02-14 12:46:41 -07:00
Ade Lee
2a83856585 Move ipa enrollment to host_prep_tasks
This addresses a possible bug when using FreeIPA to do TLS
everywhere.

It is possible that the IPA server is not on the ctlplane.
In this case, when the nodes start up, the registration of the node
with IPA will fail, resulting in failed certificate issuance requests
later on.

We introduce a composable service to run in host_prep_tasks.
This will always run once the networks have been set up.  If the
instance has already been enrolled (by cloud-init or in an update),
then the script executed by the service will just exit.

In this iteration, we simply execute the code that the cloud-init
would have done.  In later releases, we will execute all the code
performed by novajoin-server here in ansible - and deprecate the
novajoin server.

Change-Id: I31f64c3cbd1d151e3c2a436cc3e2ec5316535087
Co-Authored-By: Juan Antonio Osorio Robles <jaosorior@redhat.com>
Resolves: rhbz#1661635
Closes-Bug: #1815924
2019-02-14 16:07:17 +00:00
Daniel Alvarez
6053eb1964 Switch default neutron ML2 mechanism driver to OVN
This patch switches the default mechanism driver for neutron from
openvswitch to OVN.

It will also flip scenario007 job to run with ML2/OVS.

Depends-On: I74ffb6b7f912e1fce6ce428cd23a7283c91b8b96
Depends-On: I99ba2fd6a85b4895b577719a7541b7cbf1fdb85c
Depends-On: Ib60de9b0df451273d1d81ba049b46b5214e09080
Depends-On: Iaed7304adf40a87a0f14b7a95339f8416140e947
Change-Id: Iab52cdf5d0f7a392c4f17c884493b5c5beb1d89f
Co-Authored-By: Kamil Sambor <ksambor@redhat.com>
2019-02-14 15:58:27 +01:00
Emilien Macchi
cb4ed31eaf Introduce ContainerImagePrepareDebug parameter
Set to false by default for backward compatibility, we can set it to
True and it'll add --debug when running the tripleo container image
prepare command, useful to have more verbosity.

Change-Id: I7d0b4035de748bf2453321d3ab09d09fd45abf8d
2019-02-14 09:06:33 -05:00
Goutham Pacha Ravi
1cb6886a21 Switch Manila API to httpd and support TLS
manila-api can be deployed in two ways:
- Using the service-provided eventlet based server
- Behind any popular web server as a wsgi process

[1] adds support to the kolla image to install necessary
packages and write configuration files to enable deploying
manila-api with Apache/mod-wsgi/
[2] and [3] add support to puppet-{manila,tripleo} to
honor httpd options like other API services.

So, switch the manila-api docker/service to running
httpd, and add necessary configuration options.
Honor the "EnableInternalTLS" option to allow running
manila-api with TLS.

[1] https://review.openstack.org/#/c/590061/
[2] https://review.openstack.org/#/c/591869/
[3] https://review.openstack.org/#/c/592188/

Depends-On: https://review.openstack.org/#/c/592188/
Change-Id: Ic88a2f08e013a49e3da45a2bfc82c62ba284526a
2019-02-14 06:42:32 +00:00
Zuul
23302ca1ce Merge "Fix Chinese quotes" 2019-02-11 23:36:59 +00:00
Zuul
f765c4a165 Merge "Add GlobalConfigExtraMapData" 2019-02-11 19:24:15 +00:00
Zuul
1abf7987e2 Merge "Disable stack check and cancel update for undercloud" 2019-02-08 16:11:23 +00:00
James Slagle
2634ffaa5d Add GlobalConfigExtraMapData
Adds a new GlobalConfigExtraMapData parameter that can be used to inject
global_config_settings hieradata into the deployment. Any values generated
in the stack will override those passed in by the parameter value.

This will be used for the distributed compute node when deploying with separate
stacks and data from the control plane stack needs to be injected into the
compute stack.

Change-Id: Id3e52e272bae67ee4036c81b3d7640255e0349ae
2019-02-08 10:29:04 -05:00
Zuul
3b2c7f9960 Merge "Create tripleo-admin user on the undercloud" 2019-02-05 17:18:41 +00:00
Zuul
43c2a8e8a6 Merge "Change NodeDataLookup type from string to json" 2019-02-05 16:48:29 +00:00
John Fulton
fe2fda491b Change NodeDataLookup type from string to json
The NodeDataLookup parameter should be valid JSON and we should
help the user by adding type checking for this early in the
deployment so that the user doesn't experience the related bug.

Change-Id: Id9d2208f1cbaba9234d7657420cd7efcad3507a0
Related-Bug: #1784967
Related-Bug: #1814070
2019-02-05 11:53:45 +00:00
Rabi Mishra
18f4e11773 Disable stack check and cancel update for undercloud
'overcloud update abort' command had been dropped since few
releases. However, users can still use heat commands to cancel
an update which is not recommended.

Undercloud now uses heat convergence architecture and stack check
has not been migrated to convergence yet.

let's add heat policy to disable both on undercloud.

Change-Id: Ib5e2dab1e94810ac02e5d64859d2e84f749f3994
2019-02-05 10:50:32 +05:30
Zuul
b8a5dbe071 Merge "Add support for native TLS encryption on NBD for disk migration" 2019-02-01 10:05:52 +00:00
Zuul
2e55557806 Merge "flatten haproxy service configuration" 2019-01-31 17:28:27 +00:00
Steve Baker
0d106a261d Create tripleo-admin user on the undercloud
The resulting user home directory is mounted into the mistral-executor
container. A later change in tripleo-common will populate
.ssh/authorized_users with the generated private key so that
mistral-executor can manage the undercloud host via ansible localhost ssh.

Change-Id: I4c8ee04534636622581eb386c01790d6610e7f58
Partial-Bug: #1813832
Depends-On: Id89cc920e165c2103707609fd37639c3032cc8ea
2019-01-31 11:33:32 -05:00
David J Peacock
05d77c9ed5 flatten haproxy service configuration
This change combines the previous puppet and docker files into a single
file that performs the docker service installation and configuration.

With this patch the baremetal version of haproxy services has been removed.

Change-Id: Id55ae44a7b1b5f08b40170f7406e14973fa93639
Related-Blueprint: services-yaml-flattening
2019-01-29 12:33:16 -05:00
Zuul
adff253fdd Merge "Remove external_network_bridge Neutron option" 2019-01-29 15:20:24 +00:00
Zuul
9c887d2340 Merge "Update parameters for cinder's Netapp backend" 2019-01-29 06:02:40 +00:00
Harald Jensås
b807077a21 Enable ML2 baremetal by default with Ironic service
When support for routed provider networks and Ironic was
added in tripleo the mechanism driver was only enabled
for the undercloud.

Override the NeutronMechanismDrivers parameter to add
'baremetal' mech driver in the Ironic service environment.

Closes-Bug: #1812936
Change-Id: I555684541846f325c02c0fd8cb9c82ac4b8ede5b
2019-01-26 14:32:12 +00:00
Alan Bishop
639285f091 Update parameters for cinder's Netapp backend
Update THT to align with puppet-tripleo changes made in [1]
- Add new CinderNetappPoolNameSearchPattern parameter
- Deprecate CinderNetappStoragePools parameter
- Remove previously deprecated CinderNetappEseriesHostType parameter

[1] https://review.openstack.org/570406

Fix relative path in file the sample-env-generator uses to generate
environments/storage/cinder-netapp-config.yaml.

Change-Id: I813ca60eb5ce9e008e1b72e88d83709d3125676f
2019-01-24 15:39:00 -05:00
Zuul
63a657d2f4 Merge "Remove all glance-registry related changes" 2019-01-24 00:00:44 +00:00
Zuul
ac8ebf638c Merge "Remove deprecated TLS-related environment files" 2019-01-23 22:17:10 +00:00
Pranali Deore
2dcd56041c Remove all glance-registry related changes
Removed all glance-registry related changes from THT, since
Glance Registry has become redundant & been deprecated from
glance due to support of Glance V2. The registry code base is
also going to be removed from Glance project once all the
dependencies removed from other projects.

Change-Id: I548816e3f2d8b9deed8a6f0ba3e203f84ad3d9ca
Closes-Bug: #1808911
2019-01-22 15:07:29 -07:00
Zuul
a79b7cb921 Merge "Service check in nova_cell_v2_discover_host.py to use internal API" 2019-01-22 01:43:28 +00:00
Martin Schuppert
cde4134d55 Service check in nova_cell_v2_discover_host.py to use internal API
e0e885b8ca3332e0815c537a32c564cac81f7f7e moved the cellv2 discovery from
control plane to compute services. In case the computes won't have access
to the external API the service check will fail. This switch the service
check to use the internal endpoint.

Change-Id: I234db0866fb6f1adefdcf7a2b2a82412e443b7c9
Closes-bug: 1812632
2019-01-21 18:16:54 +00:00
Zuul
9525423f7b Merge "Allow Octavia deployments for Standalone" 2019-01-21 16:10:18 +00:00
Slawek Kaplonski
397e2b4a35 Remove external_network_bridge Neutron option
Config option "external_network_bridge" in Neutron was deprecated
in Ocata cycle.
Now it is going to be removed completly with [1].
Background of the deprecation and removal is described in [2].

[1] https://review.openstack.org/#/c/567369/
[2] http://lists.openstack.org/pipermail/openstack-dev/2018-September/134859.html

Change-Id: I05522521aa4e63d6e4138cbcdb97b212664d3b81
2019-01-21 13:11:58 +01:00
Martin Schuppert
fe9372eceb Add support for native TLS encryption on NBD for disk migration
The NBD protocol previously runs in clear text, offering no security
protection for the data transferred, unless it is tunnelled over some
external transport like SSH. Such tunnelling is inefficient and
inconvenient to manage. Support for TLS to the NBD clients & servers
provided by QEMU was added. In tls-everywhere use case we want to
take advantage of this feature to create the certificates and configure
qemu to use nbd tls.

Closes-Bug: 1793093
Depends-On: Ifa5cf08d5104a62c9c094e3585de33e19e265110
Depends-On: I1db1b60be4907511f0ec0f5aa0f0a45e1c5d9b45
Depends-On: I347881cf4822583179c0c042c42fa1e33dbcedd2
Change-Id: I7d9df304d75bdbe36ecdfe50e5ce6b42a53063cc
2019-01-18 10:52:35 +00:00
Juan Antonio Osorio Robles
a72f8d4ae9 Remove deprecated TLS-related environment files
The ones in environments/ssl/ are preferred instead. These have been
available since pike.

Change-Id: I84a7b354ede46d6ec88964e5dcbd5678d89c8c0f
Depends-On: I5a905ec7499a6faa08cbcacfccb19a6e424e4a80
2019-01-18 09:57:48 +00:00
Bogdan Dobrelya
2a5baa5979 Allow Octavia deployments for Standalone
We have yet Nova for SSH keys management, when deploying a standalone
cloud. Allow Octavia deployments for such a case as well.
Jinja2 rendering of the octavia service template provides that
functionality by relying on a new role tag 'standalone'.

Change-Id: I69f3623646ec5b65109e0a4f0c16139018da9282
Closes-bug: #1806113
Co-Authored-By: Harald Jensas <hjensas@redhat.com>
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2019-01-18 10:36:06 +01:00
Zuul
733a7f4ee9 Merge "Added Barbican option BarbicanPkcs11AlwaysSetCkaSensitive" 2019-01-17 22:25:43 +00:00
Zuul
7a01baca25 Merge "flatten sahara service configuration" 2019-01-17 22:25:33 +00:00
Douglas Mendizábal
9012fff849 Added Barbican option BarbicanPkcs11AlwaysSetCkaSensitive
Added support for setting the Barbican option
always_set_cka_sensitive.  The option defaults to true as
needed by Safenet HSMs.  It is set to false in the ATOS
and Thales HSM environments.

Change-Id: If3fa975e8243dfe30ef67ec81db891943a94a9d5
Story: 2004734
2019-01-17 08:50:24 -06:00