2575 Commits

Author SHA1 Message Date
Zuul
5f0a05c052 Merge "Allow for customization of the Manila CephFS pool name" 2019-07-31 22:51:30 +00:00
Zuul
9133971c59 Merge "Add ceph grafana dashboard endpoint to haproxy" 2019-07-31 12:11:44 +00:00
Giulio Fidente
e3b39a8d67 Allow for customization of the Manila CephFS pool name
Manila needs to know the CephFS pool name, which the deployer
might want to customize when the Ceph cluster is externally managed.

Change-Id: I3adaa442b8c53ff902761d1dba283a79494c8ae6
Partial-Bug: 1837099
2019-07-30 10:55:39 +00:00
fpantano
548b966aa0
Add ceph grafana dashboard endpoint to haproxy
This review adds the ceph grafana endpoint to
haproxy.

Depends-On: https://review.opendev.org/#/c/672536
Change-Id: If1a111662203896ee51fd61183f720a4cef18a3e
2019-07-29 18:07:53 +02:00
Zuul
b2d03fff3d Merge "Initial support for tls_priorities" 2019-07-29 08:39:40 +00:00
Zuul
9a079a3490 Merge "Remove aide puppet manifest" 2019-07-29 00:14:45 +00:00
Michele Baldessari
f1a593b642 Initial support for tls_priorities
We add initial support for being able to specify tls priorities in
pacemaker. For bundles this will happen via an env variable because
pacemaker_remote is started normally as a process and there is no
sourcing of /etc/sysconfig/pacemaker.

Tested on both queens and stein. Via a deploy and a redeploy against
existing cloud. Observed that:
A) We got PCMK_tls_priorities inside /etc/sysconfig/pacemaker with the
value that was passed in THT
B) Containers had the following env variable set:
  "PCMK_tls_priorities=normal",

The '-e' addition is a noop in case the PCMK_tls_priorities is unset
so that we do not change the signature of the resources and hence do
not needlessly restart the HA resource.

Depends-On: I1971810f6a90f244ed5ced972a5fe7fde29dde86
Change-Id: I703b5a429f48063474aace85bc45d948f5c91435
2019-07-27 07:59:45 +00:00
Martin Schuppert
f92c3c90c3 Only assign redis_vip and redis_bind_opts if enabled
https://review.opendev.org/672415 only sets redis_vip
when service is enabled. Lets also move the redis_vip
and redis_bind_opts to the redis enabled section and
create haproxy_and_redis_vip only if redis is enabled.

Change-Id: I4f575772d80bcfd12019a81dd27d83aa952ddef6
2019-07-26 15:40:56 +02:00
Zuul
7605e4e18c Merge "Add tcp-check connect port line to haproxy redis stanza" 2019-07-24 01:12:25 +00:00
Zuul
84d1cc228b Merge "Cleanup uuid == docker" 2019-07-23 20:24:22 +00:00
Emilien Macchi
5c0380e6a1 Bump metadata for Train Milestone 2
Change-Id: I9032ddde37dc0b2f2afa370ee94934ceea7f4629
2019-07-22 16:04:58 -04:00
Michele Baldessari
e1cc8d0b0b Add tcp-check connect port line to haproxy redis stanza
When https://bugzilla.redhat.com/show_bug.cgi?id=1677420 will be merged
in haproxy (via haproxy-1.5.18-9.el7.x86_64) our redis backend will stop
working because the fix around tcp-check is now more correct and
according to the haproxy doc a tcp-check sections *must* start with
tcp-check connect first. From
http://cbonte.github.io/haproxy-dconv/1.5/configuration.html#4-tcp-check%20connect
:
"""
When there are no TCP port configured on the server line neither server port
directive, then the 'tcp-check connect port <port>' must be the first step
of the sequence.
"""

Change-Id: I261eb30b52a3baee3b0e6d47e8f32f3c579930bf
Co-Authored-By: Luca Miccini <lmiccini@redhat.com>
Closes-Bug: #1837086
2019-07-19 09:53:13 +02:00
Bogdan Dobrelya
6fb9d8e6cd Allow to configure Apache MPM module
Defaults to 'prefork', which ensures there is no upgrade/update impact.

Related-bug: #1829062

Change-Id: I3deb3e944ed4911962d204357bb3134569f153f6
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2019-07-17 17:33:44 +02:00
Zuul
de91989ebc Merge "Force to use markdown to prevent pypi issue" 2019-07-15 19:47:03 +00:00
Alex Schultz
6e26715894 Cleanup uuid == docker
This was replaced with deployment_type a while back so uuid is now a
proper value based on the system id. See
https://review.opendev.org/#/c/607647/

Change-Id: Ica2f39e6bee697002984d0f28298338edf55ac4b
2019-07-15 08:02:24 -06:00
Zuul
44091d184c Merge "Replace hiera('service_names') by hiera('enabled_services')" 2019-07-12 17:36:31 +00:00
Zuul
787387a5f7 Merge "Include nova::metadata to compute profile" 2019-07-11 12:04:08 +00:00
Zuul
610691ca65 Merge "Allow custom per-service bind_options for haproxy" 2019-07-10 11:18:07 +00:00
Zuul
ec6f43499b Merge "Close OVN VIP race by adding an ordering constraint" 2019-07-09 19:15:43 +00:00
Zuul
9d16da6465 Merge "Support TLS deployments with KernelDisableIPv6 enabled" 2019-07-09 16:05:17 +00:00
Zuul
ed09c243f2 Merge "Add dateext and related parameters for logrotate" 2019-07-09 05:35:30 +00:00
Michele Baldessari
5c10f33197 Close OVN VIP race by adding an ordering constraint
Currently there is a race with the high-availability of ovn when resetting a
controller. Namely, the VIP that OVN uses (namely the internal_api VIP
by default) only has a colocation constraint with the master role of the
ovn-dbs resource. This leaves the following race open:
1) We reboot ctrl-0 hosting the master role of ovn-dbs
2) OVN becomes master on ctrl-1 from pacemaker's POV (but the
   promotion operation running in the background is not completed)
3) OVN VIP moves to ctrl-1 even though it is still in slave mode
  (there is only a colocation constraint between vip and master role for
ovn)
4) OVN controllers on the overcloud connect to the VIP but it is in
  read-only mode because it was a slave
5) OVN controllers that connected at 4) stay in read-only forever
   until they get restarted manually.

With the addition of this constraint we force the VIP move only after
the master role has been promoted. This makes it much more unlikely
for a client to connect to the VIP and get a read-only db in the
background. With only this patch applied I did not manage to reproduce
the issue (even after 7 reboots of controllers).
Note that there is still a small race window possible because the
current OVN resource agent has a bug: it promotes a resource to master
after issuing the promotion command to the DB but without waiting for
this promotion to complete. A patch for OVN-ra will also be submitted
but from initial testing this change seems to be largely sufficient.

Also note that this change introduces a small less desirable
side-effect:
A failover of the internal VIP will now take a bit longer because it
will happen only after ovn-dbs gets promoted to master.
We plan to take care of this fully by decoupling the OVN VIP from the
internal_api one. This change addresses the immediate issue related
to ovn_controllers being stuck in read-only due to premature promotion.
(OVN upstream is discussing how to make connections to read-only VIP
trigger a reconnection eventually)

Closes-Bug: #1835830

Change-Id: I3fa07e28c4e37197890664d12a265f1673c780f2
2019-07-08 22:00:48 +02:00
Grzegorz Grasza
5061ed8b7b Support TLS deployments with KernelDisableIPv6 enabled
This will listen on 127.0.0.1 in case ipv6 is disabled.
The localhost_address is set in t-h-t kernel-baremetal-puppet.yaml
in a related patch.

Change-Id: Ic77281cc69230b77224421e3d79d93803ea18bad
Needed-By: Ide761c21dc87dadc722e27c9b8a7b68194164cb2
Related: rhbz#1703460
2019-07-08 20:59:13 +02:00
Keigo Noha
1eafeb67bf Add dateext and related parameters for logrotate
logrotate.pp should support dateext and related parameters.
By this change, a filename of a rotated file can be easily distinguished
by rotated date.

Change-Id: I798304a472df41b86a88611c97c2c99131faa0ad
2019-07-08 16:58:38 +09:00
Martin Schuppert
3273d29163 Include nova::metadata to compute profile
The old DEFAULT/dhcp_domain setting was moved to api/dhcp_domain.
nova::network::neutron::dhcp_domain will be removed later in the cycle.
We need include nova::metadata which sets the new [api]/dhcp_domain
as this is used by the virt driver to generate the config drive.

Closes-Bug: 1832537

Depends-On: https://review.opendev.org/668663
Depends-On: https://review.opendev.org/668666
Depends-On: https://review.opendev.org/665131
Depends-On: https://review.opendev.org/669066
Depends-On: https://review.opendev.org/669208

Change-Id: I5da1e67684f8317eec8c499c3534977e00a63098
2019-07-07 16:43:25 +02:00
Emilien Macchi
7970733cf1 Replace hiera('service_names') by hiera('enabled_services')
In the effort of reducing the number of Hieradata files, the
service_names parameter previously consummed in puppet-tripleo can be
replaced by enabled_services which contains the same list.

It will allow us later to remove the service_names hieradata file.

Change-Id: I457f2c81a2cf6cc2f42dc4585b41b0d91dacc059
Related-Bug: #1835551
2019-07-05 13:25:34 -04:00
Martin Magr
f8eb9096de Remove unnecessary logic
THT logic which exposed fluentd logging hieradata even when the service
was not enabled was removed, so the logic in rsyslog file_input working
with such data won't ever work.

Change-Id: I58edc44f859a0b46c1b1ae82c453df9f4d2bc487
2019-07-04 09:14:24 +00:00
Martin Magr
bcb17115a3 Add TLS support for rsyslog
This patch implements creation of TLS certs and key for Elasticsearch
connection.

Change-Id: Ie97449b6f3e5d3a6481e087803d1982d7c6387f3
2019-07-03 13:24:27 +02:00
Zuul
0ad12ff23a Merge "Fix rabbitmq staged upgrade" 2019-07-02 19:28:23 +00:00
Hervé Beraud
03dd75eb17 Force to use markdown to prevent pypi issue
Recently the pypi team have reintroduce some deactivated tests
on package deployment and especially tests concerning long_description
syntaxe.

If projects don't specify that they use the markdown format the
package deployment will fail if something went wrong in the markdown format.

By example if a project use inline literal this can be an issue due to
the fact that if `long_description_content_type` is missing [1]. The
default format will be `text/x-rst` where code block is different from
markdown.

These changes force to use the markdown format to avoid this kind of issue
on project who use `README` at markdown format.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007459.html

For more details:
https://github.com/pypa/warehouse/issues/5890#issuecomment-494868157

Change-Id: If1be877b265f36078a5e66a13b7ab55db699af0f
2019-07-01 20:45:00 +02:00
Zuul
f30590e8d4 Merge "Allow enabling custom backends with manila" 2019-06-29 05:21:36 +00:00
Zuul
84792bd9ca Merge "Fix amphora provider driver description" 2019-06-28 18:34:28 +00:00
Jiri Stransky
bac59f433b Fix rabbitmq staged upgrade
Fix the short name overriding, and add long name (fqdn) overriding.

Change-Id: Ia152aed696be15119ba5b75177ef82bc786c4b05
Partial-Bug: #1832588
2019-06-28 09:06:11 +00:00
Zuul
96b69b6075 Merge "Fix bootstrap node for nova conductor" 2019-06-26 18:50:11 +00:00
Gregory Thiemonge
77ffbe059b Fix amphora provider driver description
Fixed provider driver description to match octavia and
octavia-tempest-plugin descriptions.

See: https://opendev.org/openstack/octavia/src/branch/master/octavia/common/\
config.py\#L89

Closes-Bug: #1830702
Change-Id: I04ad7b59c1cdbef61fcd6188c09525da989020c6
2019-06-26 11:21:32 +02:00
Kevin Carter
04c6f343e2 Remove tuned puppet manifest
The tuned puppet manifest is being removed because the heat template
which invoked it has been converted to ansible. This change removes
the tuned manifest and spec files accordingly.

Depends-On: I06d07f6f0949095cb716dd706e05f2e567c0d3d8

Change-Id: I1c76efb07474f8b0f5e226712aad30a75f6843af
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-06-24 13:28:59 +00:00
Luca Miccini
392eacb092 Force --hostonly when regenerating the initramfs
The dracut-config-generic package (sometimes installed by default in
the overcloud image) provides a configuration file that turns off the
host-specific initramfs generation with dracut:

$ cat /usr/lib/dracut/dracut.conf.d/02-generic-image.conf
hostonly="no"

The result is that the generated initrams does not contain:

- /etc/systemd/journald.conf
- /etc/systemd/system.conf
- /etc/hostname
- /etc/machine-id
- /etc/vconsole.conf
- /etc/locale.conf
- /etc/modules-load.d/*.conf
- /etc/sysctl.d/*.conf
- /etc/sysctl.conf

Especially problematic is the absence of sysctl.conf when ipv6 is
disabled via "KernelDisableIPv6: 1" because we end up half-disabling
ipv6 and services like rpbcind end up in failed state.

Original issue: https://bugs.launchpad.net/tripleo/+bug/1830574

This commit builds on top of https://review.opendev.org/#/c/661528/
adding the '--hostonly' option to dracut so to bypass 'hostonly="no"'
eventually contained in the default config file.

Change-Id: Ia4a39721268fe9bb0fdcc8bf4eb148263d4df46e
2019-06-21 21:38:25 +00:00
Alex Schultz
d4bd49ec7c Patch fluentd module for unit tests until code lands
The fluentd tdagent provider is currently wrapped in parser function
rather than just being defined normally. We have a proposed patch to the
main module, but until that time let's pull the fix in for the unit
testing. We don't actually consume this provider in tripleo so it
doesn't affect deployment and only shows up in unit testing.

Change-Id: I73c7e73d3c4f77fcb93bca54157031db0a548b61
Closes-Bug: #1833724
2019-06-21 09:31:08 -06:00
Emilien Macchi
31e5cc36fd Fix bootstrap node for nova conductor
The doc was updated but the actual default value still the one.
See context in I48ec4549552910f3cb8db960b0ff10a6c61b4bb9

Partial-Bug: #1792613
Change-Id: I8e0f4bd90d22617a6451fa591f9ff50821d9c33b
2019-06-20 15:24:28 -04:00
Goutham Pacha Ravi
914cf1f124 Allow enabling custom backends with manila
It is possible to provide the config settings
to add an arbitrary and unmanaged backend to Manila
at deployment time via Heat environment files. However,
puppet-tripleo doesn't support extending the
list of enabled backends. Add this capability.

Change-Id: I82f62df0a95f03afbda1b6a4ddaa67ef908030a9
Closes-Bug: #1831938
2019-06-19 14:42:21 -07:00
Zuul
1dd761e755 Merge "Do not invoke host config in agent config" 2019-06-18 20:36:53 +00:00
Zuul
e5f45f630f Merge "Allow overriding pacemaker_node_ips for staged upgrade" 2019-06-18 14:02:56 +00:00
Alex Schultz
526d040c39 Quote the hiera dot notation
With puppet 5, dots mean something special in hiera. You can still use
hiera lookups with dots but you need to quote the key part.

https://puppet.com/docs/puppet/5.4/hiera_automatic.html#hiera-dotted-notation

Change-Id: I94831c09821f519b81016f943a251a5b12d72750
2019-06-15 08:35:33 -06:00
Zuul
d3796a69dd Merge "Add region support for instance HA" 2019-06-15 05:21:32 +00:00
Zuul
94c05e9984 Merge "Base profile for rsyslogd" 2019-06-14 22:11:46 +00:00
Zuul
0af7317b57 Merge "IHA robustness improvements" 2019-06-14 22:11:43 +00:00
Zuul
1e5c120f48 Merge "RabbitMQ: always allow promotion on HA queue during failover" 2019-06-14 19:40:52 +00:00
Brent Eagles
e9484ac789 Do not invoke host config in agent config
The SR-IOV agent config was pulling in the host configuration which is
incorrect and will not work under certain conditions.

Change-Id: If5a0861441c1c33431364f2a1f3d7d1296106159
Closes-Bug: #1832335
2019-06-14 15:47:01 +00:00
Zuul
d25bea7ef5 Merge "Remove scenario008 jobs" 2019-06-14 09:04:12 +00:00
Zuul
bfb42ca78b Merge "Explicitly disable all MySQL/MariaDB query_cache use" 2019-06-14 09:04:11 +00:00