Commit Graph

47 Commits

Author SHA1 Message Date
OpenStack Release Bot f8d185d58a Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I524a83e7153aebb990f0621bc7ff54c04788bc69
2022-12-13 13:14:21 +00:00
Marc Gariepy af3c87535d Control amount of metricd workers
As of today we didn't manage amount of gnocchi-metricd that equal to
amount of CPU on host. So things can go off regarding CPU and memory
consumption. For better control of ressources we add a variable to
control the number of workers.

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

Change-Id: Idcaec649a4de03f5714c61fda694ada45da41dbc
2022-06-17 08:36:01 -04:00
Dmitriy Rabotyagov 1483fcbc28 Add variables to manage redis url
To provide more convenience in configuring redis as Gnocchi driver,
we add 2 variables that can be used to control
URL to Redis when it's used for storage or incoming data.

Related-Bug: #1955676
Change-Id: Iba5186df3656c116cba48c3be0e39e87ddcb727f
2022-05-13 11:20:04 +02:00
Dmitriy Rabotyagov 84150e8fb1 Add availability to define gnocchi_incoming_driver
Gnocchi supports having different storage and incoming drivers [1] which
has been never implemented in role.

We add `gnocchi_incoming_driver` variable and do incoming configuration only
when it's not same as gnocchi_storage_driver.

[1] https://gnocchi.osci.io/install.html#configuration-file

Depends-On: https://review.opendev.org/c/openstack/ansible-role-python_venv_build/+/822901
Change-Id: If1442abd7978d44def2a4386f9d159b42c4939e3
Related-Bug: #1955676
2021-12-24 13:39:33 +02:00
Dmitriy Rabotyagov a6a25bf3cd Switch gnocchi service name to service
Previously we used different from other services project name to protect
swift from looping. However nowadays ceilometer middleware does
exclude service project by default. So no futher actions needed
unless deployer want to measure service project excluding gnocchi
In this scenario, deployer still can define custom
`gnocchi_service_project_name` in their user_variables.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/791107
Change-Id: Ic0ffa6908bfc55ffdb41ea9b8e7435e4dc88ddca
Related-Bug: #1879192
2021-05-14 04:22:38 +00:00
Andreas Jaeger 35f9499ac2 Use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ic9f09ebc84263685f6c0ac63eda363499087f046
2020-06-03 19:13:27 +02:00
OpenStack Release Bot eeb92fbbd0 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I8bc8890f9f5fba1d4fb4bd9a26e582072db7a088
Sem-Ver: feature
2020-06-01 13:14:07 +00:00
Andreas Jaeger 40bc881a31 Update docstheme for style
New version of openstackdocstheme (Victoria+) respects pygments_style.
Since this repo is using now Victoria (master) requirements but has
not branched for Ussuri yet, it uses the new version.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Change-Id: Ib4a46e868b498f24967a8ddf9e877de8fa44cac1
2020-05-20 18:48:28 +02:00
Dmitriy Rabotyagov a5ee15d973 Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.
Also we change upper constraints url due to [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Depends-On: https://review.opendev.org/693841/
Change-Id: I215d5b5f97a9b6d2a22b698b1c63c78a63672938
2019-11-14 17:39:00 +00:00
OpenStack Release Bot 7ee68f3917 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: Icb34ec08175adfb09982b9000cd1c216a9ad82bb
Sem-Ver: feature
2019-10-22 18:58:23 +00:00
Dmitriy Rabotyagov 57b88ebc65 Migrate gnocchi to use uWSGI
This patch moves gnocchi-api from usage of apache with mod_wsgi
to uWSGI, which means unification across another roles and
reduced maintenance costs

During migration period tasks that ensures apache won't listen
on gnocchi_service_port are present, but they are supposed to be removed
after train release.

Depends-On: https://review.opendev.org/671988
Change-Id: I06bbcb2f15108fc517742208ac5291719627ffe2
2019-07-25 22:47:29 +03:00
OpenStack Release Bot cd744a423e Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I032137dcd261477a384aaefe200734ec761732f5
Sem-Ver: feature
2019-04-08 09:18:25 +00:00
Matthew Thode 21e4fdfd0c
Force force-tlsv12 only
Secure by default

Change-Id: Id8262de092f0f2820a4cedab6f9d0e48a0c06f3a
2018-12-17 09:50:11 -06:00
OpenStack Release Bot 9cc69790d4 Update reno for stable/rocky
Change-Id: I5df296cc5504373d08af101f62db99e833cb3a81
2018-08-10 16:46:45 +00:00
Jesse Pretorius a8a34fe719 Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

With the dependent patches, the openstack_openrc role is now executed once
on the designated host, so it is no longer required as a meta-dependency for
the role.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Change-Id: I4131312eea8c743e7803ccc622b7642c6082a4c8
2018-07-06 13:48:11 +00:00
OpenStack Release Bot 14eee05010 Update reno for stable/queens
Change-Id: I251d43485ba4e166feef593350f7dfb4f307d98d
2018-02-14 15:48:17 +00:00
Andreas Jaeger b1f7574dc5 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: Ie3dd23c605765755990d7a8dcbf9e52cc1b5adb3
2017-11-17 07:57:12 +01:00
Jesse Pretorius beaf7cdff0 Initial OSA zuul v3 role jobs
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

Change-Id: Ifdcbee946cdc838b4b24304dacb1c98c8d78d500
2017-10-17 18:11:13 +01:00
OpenStack Release Bot 8436e1e6be Update reno for stable/pike
Change-Id: I2074850114461c4b5a001a7788d96edde0fff705
2017-08-18 12:35:45 +00:00
ZhongShengping 55ec0690e0 Fix openstackdocstheme settings
To use openstackdocstheme 1.11.0 properly, this patch fixes
some settings according to follow[0].

[0]https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: Ic13ea49c9bb460d6d03f8920cd12041fb473d8da
2017-07-03 16:15:29 +08:00
ZhongShengping 4281a2c4e8 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use the
openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: I024366e1a7c8d8bf25a3b64e1d2f3f24992164f4
2017-06-26 11:33:39 +08:00
Jesse Pretorius 09b17c05d3 Rename release note to unique hash
Change-Id: Ic3bbfd5a0ba554ad52109632222290eb3dcb20cf
2017-04-28 11:38:40 +01:00
Jesse Pretorius e62702e3be Reduce init restart/kill times
The systemd unit 'TimeoutSec' value which controls the time
between sending a SIGTERM signal and a SIGKILL signal when
stopping or restarting the service has been reduced from 300
seconds to 120 seconds. This provides 2 minutes for long-lived
sessions to drain while preventing new ones from starting
before a restart or a stop.

The 'RestartSec' value which controls the time between the
service stop and start when restarting has been reduced from
150 seconds to 2 seconds to make the restart happen faster.

These values can be adjusted by using the *_init_config_overrides
variables which use the config_template task to change template
defaults.

Change-Id: I61bf0fea745be12a636448abeeb62dc88370d22f
2017-04-26 13:01:46 +00:00
Andy McCrae b82421cba2 Rename reno to avoid conflict on integrated repo
Change-Id: I96e11c6c4fd3d2bf77d462ff948de2e661e5c27a
2017-04-11 12:04:36 +01:00
Jenkins 39d0d7c2d8 Merge "Deprecate auth_plugin option" 2017-04-05 03:13:07 +00:00
Kevin Carter 318bd76e5e Ensure the components are isolated from the system
This creates a specific slice which all OpenStack services will operate
from. By creating an independent slice these components will be governed
away from the system slice allowing us to better optimise resource
consumption.

See the following for more information on slices:

* https://www.freedesktop.org/software/systemd/man/systemd.slice.html

See for following for more information on resource controls:

* https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html

Tools like ``systemd-cgtop`` and ``systemd-cgls`` will now give us
insight into specific processes, process groups, and resouce consumption
in ways that we've not had access to before. To enable some of this reporting
the accounting options have been added to the [Service] section of the unit
file.

Change-Id: Ife7d6e3c0c11818d80484cf67a887026aaedb92c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-04-01 14:42:07 +00:00
ZhongShengping 712400f066 Deprecate auth_plugin option
Option "auth_plugin" is deprecated, use option "auth_type" instead.

Change-Id: I672f1a40231378db596a418b68ff288bf5c562d9
Implements: blueprint deprecate-auth-plugin
2017-03-25 12:27:24 +08:00
Ravi Gummadi 3bf7677617 Cap the number of worker processes
Users can configure the number of worker processes. However when
it's not specified the calculated number of workers can get too
large on hosts with a large number of CPUs.

Change-Id: Iaa0cd5eba460d50cae18ba25f88a2d2c57a5cc85
2017-03-02 08:25:50 -05:00
Jenkins 9cfa395160 Merge "Provide facility for a complete file override" 2017-02-24 18:22:12 +00:00
Jesse Pretorius 8aa6fcd121 Provide facility for a complete file override
Instead of forcing the use of config_override, this patch
provides a facility where the deployer can place a file
in /etc/openstack_deploy on the deployment host. The file
will be interpreted through the template engine (allowing
jinja to be used in the file) and placed on the target host.

If the file is not found, the fallback will be the default
file in the git source.

The patch also ensures that the curl is silent and therefore
does not show the download progress bar on the deployment
host when it executes.

Change-Id: Ieab7eab7f902741e62e1d2a49191010f8fd38442
2017-02-23 16:11:42 -05:00
Ravi Kumar Boyapati 236c943d4c Fix gnocchi endpoint variable names
Fixed the gnocchi endpoint variable names to be consistent with other roles.

Change-Id: Ib98fbb7362d6f24db523432cbaca421d8ecaf5bc
2017-02-22 22:31:28 -05:00
Jenkins 7f1fa9da4d Merge "Set the git location url to be the base gnocchi repo" 2017-02-08 14:57:09 +00:00
Andy McCrae abf9ef4ade Set the git location url to be the base gnocchi repo
In the future, if more files are added in different paths, this will
allow us to use an item "path" variable rather than forcing the
"gnocchi/rest" path.

This will help when implementing the solution to use a local repo server
for the conf files in the integrated build.

Additionally, a release note for the upstream repo change has been
added.

Change-Id: I86389c1f7643a0634a85f165f62f089a316f040c
2017-02-07 15:13:00 +00:00
ji-xuepeng 2e99c5d88f Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I4e1094e7cef87c3cb094b2447c0bec1cb61ad9bf
2017-02-06 23:15:15 +08:00
OpenStack Release Bot 3865eb4cc3 Update reno for stable/ocata
Change-Id: Id52fe9e9ac8413034f7443d8d895d63237f8960d
2017-02-03 18:58:17 +00:00
Jenkins 219889c69d Merge "Remove overriding behavior for policies" 2017-01-26 10:58:25 +00:00
Steve Lewis 86608d12c9 Remove overriding behavior for policies
The default policies changed upstream[1], and the role support for
managing policies is weak (creates the rule if it doesn't exist but
does not modify a rule matching the name to reflect the values given
and cannot remove a rule). Managing the policies is best done by an
operator separately using the Shade module or a CLI.

The gnocchi library is removed and the gnocchiclient is no longer
installed outside the virtual environment.

[1] Iaba3b2ef88858ad777147d2859180d9a27658f1c

Change-Id: I2d890744bd2dfb1b650dcafae65d3757243730d3
2017-01-26 08:28:40 +00:00
Andy McCrae 78e6f5ab0c Add api.auth_mode setting, and update api-paste.ini
Gnocchi moved their api-paste file out of /etc/, but in order to benefit
from template overrides, whilst keeping the default gnocchi
api-paste.ini, we can use it as a source, but use config overrides.

Additionally, we need to specify auth_mode in the gnocchi.conf file,
which should default to "basic" if keystone is not used, although can be
set to "noauth" if needed. "basic" is the new upstream default.

The gnocchi_keystone_auth var is deprecated and scheduled for removal
in the Queen release.

Change-Id: I4e1a28a96f3b6870d9c9e100308aba1bbf294aa0
2017-01-23 11:19:18 +00:00
Marc Gariepy 259cf1e634 Add CentOS support for os_gnocchi role
Depends-on: Id31fb15b352a160c8f5139ae70966055d93f7ce6
Change-Id: I540e8f08f3a8935b6a5af5a73f0a896ec8ec7a98
2016-12-07 14:27:36 +00:00
Jesse Pretorius b1f6e79ca3 Fix the required package variable name
The variable 'gnocchi_required_pip_packages' is incorrectly named,
resulting in the potential for the packages in the list not being
built in the repo build and causing other issues with anything
that uses that pattern to find the package list.

This patch corrects the variable name to match the pattern across
all other roles.

Change-Id: Ie636dfeb4497c8d3703977bd55d53d1efba7d539
2016-11-21 14:47:14 +00:00
Jesse Pretorius 63287ad692 Simplify pip options/constraints mechanism
The current constraints generation for the
installation involves multiple tasks and multiple
variables.

Using multiple tasks extends the installation time
unnecessarily and the additional variables are
unnecessary.

This patch aims to simplify the mechanism and
hopes to speed it up a little.

Change-Id: I4ae42c242d618c10828f998722f021ca1b9410eb
2016-11-02 16:47:59 +00:00
Andreas Jaeger 488cffd88b Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: I5d38cefcaad43bf55cfaee2f3cf5c7508f518bb6
2016-10-06 20:36:43 +02:00
Major Hayden a4a71f7111 Update reno for stable/newton
Change-Id: Idd6e8f32a7864a2f345439f663ce36b3e614ffed
2016-09-29 14:17:40 -05:00
Jesse Pretorius 9116aa05c0 Add ability to change apt/yum package state
The current method of installing the distribution packages required is
set in the tasks and cannot be changed by a deployer.

Currently the apt task always installs the latest package. This results
in unexpected binary changes when a deployer may simply be trying to
execute a configuration change.

This patch adds the ability for a deployer to change the desired state
so that the results are predictable.

This patch also remove duplicated apt install tasks and the is_metal
variable which is not used anywhere.

Change-Id: I0368cb090b37bf92b0ffce3cee8d7f4c4f61135b
2016-08-02 13:57:42 +01:00
Jesse Pretorius 3ad51493c5 Update sphinx configuration
This patch updates the sphinx configuration for docs and releasenotes
to make it easier to replicate across repositories and to comply with
pep8 testing without exceptions.

Change-Id: I77ff3c12f6636ecfa646d82a756a2d62fd20057c
2016-07-12 16:52:47 +01:00
Jimmy McCrory 78350d1518 Only install to virtual environment
Remove all tasks and variables related to toggling between installation
of gnocchi inside or outside of a Python virtual environment.
Installing within a venv is now the only supported deployment.

Additionally, a few changes have been made to make the creation of the
venv more resistant to interruptions during a run of the role.
* unarchiving a pre-built venv will now also occur when the venv
  directory is created, not only after being downloaded
* virtualenv-tools is run against both pre-built and non pre-built venvs
  to account for interruptions during or prior to unarchiving

Change-Id: I7a75e87d4451d62ee4587654cf5dbfb3789991c8
Implements: blueprint only-install-venvs
2016-07-08 02:54:25 -07:00
Jesse Pretorius e2252e347a Add reno scaffolding for release notes management
Change-Id: I386072a86e60eb7e7e1b3c92b26cd3fa05af5f90
2016-04-14 11:40:45 +00:00