Commit Graph

40 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov ceca11a27d Adopt for usage openstack_resources role
With efforts to create a resources in same, unified way,
we convert tempest role to use openstack_resources
for creating and managing openstack resources, like projects, flavors,
networks, images, etc. This should reduce maintenance costs
in case of futher collection updates and unify approach.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/911377
Change-Id: I658e6218cf59650d0abfa491ebaa6d3c37db2993
2024-03-05 20:40:12 +00:00
OpenStack Release Bot 2d94315931 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: Ie16e753aa20b2ceeba63839f25e89ff13a571b3c
2022-12-13 13:16:18 +00:00
Dmitriy Rabotyagov 5e1780b809 Control amount of conductor workers
As of today we didn't manage amount of magnum-conductors that equal to
amount of CPU on host. So things can go off regarding CPU and memory
consumption. For better control on resources we add variable to control
conductor workers.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/846151
Change-Id: I3eedd74717b3b621b4e0b6ae4a8df4ee6f1eb739
2022-06-17 08:24:58 +00:00
Zuul 366e30a040 Merge "Use newer openstackdocstheme and reno versions" 2020-06-05 11:41:48 +00:00
Zuul 40891c2bc0 Merge "Update docstheme for style" 2020-06-03 18:24:39 +00:00
Andreas Jaeger 03abb7a616 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: I0a42848fdf8aa7ce6b6581e6663093bf4936b802
2020-06-03 19:58:23 +02:00
OpenStack Release Bot 39220bc93f 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: I528868d4944759efa53066d43fa3dd7e7ef332e1
Sem-Ver: feature
2020-06-01 13:15:32 +00:00
Andreas Jaeger b65304e672 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: I4b6d21d3f56c3af495686f548bfac6a2bac40d00
2020-05-20 18:49:28 +02:00
Dmitriy Rabotyagov 51fe8d4897 Add ability to create COE template
Creation of cluster templates is pretty routine operation wich
might be easily automated with ansible.

Depends-On: https://review.opendev.org/710245
Change-Id: Ib7f99714502ba94604b8f0bb997c77a768af6d1d
2020-02-28 10:23:44 +02:00
Dmitriy Rabotyagov 6c7bf4652a 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

Change-Id: I837aefc043d91212b21ca3cb3d9851e3a33b358e
2019-11-14 16:51:20 +02:00
ShangXiao 9a9e77a504 Fix a typo
Change-Id: Ibd3217424eda4cbc1cb25553065a0dde0d472b88
2019-11-05 16:48:11 +08:00
OpenStack Release Bot 29880c54e3 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: Ieb78db8b28acd52b687ae920fd23b392077fe6ef
Sem-Ver: feature
2019-10-22 18:59:36 +00:00
OpenStack Release Bot 346afd247a 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: Iebb287347a8cb6c3f18e477c2607b66df32463ab
Sem-Ver: feature
2019-04-08 09:19:20 +00:00
Francois Deppierraz 1021cff820 releasenotes: oslo-messaging-separate-backends add project name
Without this patch, the release notes published at
https://docs.openstack.org/releasenotes/openstack-ansible/rocky.html contains
the same line multiple times which is not very clear.

[...]
    Support separate oslo.messaging services for RPC and Notifications
    to enable operation of separate and different messaging backend servers.

    Support separate oslo.messaging services for RPC and Notifications
    to enable operation of separate and different messaging backend servers.
[...]

Change-Id: I0ed1a43670d97f2e2215d04c641f7bd4cfbe4f44
2018-10-15 16:57:00 +02:00
OpenStack Release Bot b55da4ddc4 Update reno for stable/rocky
Change-Id: I255158827c4d1e4bdb2d78f279106d22b5f2214a
2018-08-10 16:47:16 +00:00
Jesse Pretorius 5678153fa9 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/glance/cinder client libraries are 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.

Depends-On: https://review.openstack.org/582359
Depends-On: https://review.openstack.org/582579
Depends-On: https://review.openstack.org/582957
Depends-On: https://review.openstack.org/583430
Change-Id: Id3b9d57981006d3f7abbb94af5f72214db3da6cb
2018-08-08 10:36:16 +00:00
Andy Smith e587d74d29 Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters replace
the rabbitmq values and aure used to generate the messaging
transport_url for the service. The association of the messaging
backend server to the oslo.messaging services will then be transparent
to the magnum service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Add transport_url generation to conf template
* Add oslo.messaging to tests inventory
* Update tests
* Update examples
* Add release note

Change-Id: Ib44af3b1d153742975351a321d65c8812a994370
2018-07-20 11:53:00 +00:00
OpenStack Release Bot 68f599c0fd Update reno for stable/queens
Change-Id: I42f0e29bf04f245615b6b3e8dbe8a76ab95cb506
2018-02-14 15:49:06 +00:00
Andreas Jaeger 689424989d 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: Idb9388a39caff09b8a3b430e9b5d6e98ba8b2153
2017-11-17 07:59:19 +01:00
Jesse Pretorius 2cf8952d6b 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: Ib5ec32e6f746ae11e8f74453c0232b060516eafe
2017-10-17 20:24:58 +00:00
OpenStack Release Bot c47648f719 Update reno for stable/pike
Change-Id: I5394fc961b1329378a4914a38e98b4995f25e682
2017-08-18 12:37:11 +00:00
ZhongShengping 9918ef7916 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: I223acee41794a0fb05039f65c9c13acf005bbcf3
2017-07-03 16:18:19 +08:00
ZhongShengping 925f70047e 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: I509cfa6cf5ba2ed7e3274f0a2fb74e536e2b4bbc
2017-06-26 11:35:49 +08:00
ZhongShengping 38d4682754 Deprecate rpc_backend option
Option "rpc_backend" from group "DEFAULT" is deprecated for removal
(Replaced by [DEFAULT]/transport_url). Its value may be silently
ignored in the future.

Change-Id: I63c95f5e36669ffdd9eb63c8294138aea265a782
Implements: blueprint deprecate-rpc-backend
2017-06-09 08:32:18 +08:00
ArchiFleKs 4b6f0444d6 Enable custom keystone endpoint_type in templates
Allow to specify a custom AUTH_URL for the templates in case instances
cannot reach internalURL which is the case in mose deployment.

A new variable in trust section: trustee_keystone_interface which
default to public for OSA.

Also set magnum_client URL which is passed to instances to publicURL
also, this is similar to what is done with heat which default to
publicURL.

Related to this change: https://review.openstack.org/#/c/455353/

Change-Id: I51bf7615ca91f90b7d998e66327ed1bb662783b6
Partial-Bug: #1643197
2017-05-15 20:48:53 +02:00
Andy McCrae ec33ac86a2 Rename release note to prevent duplicate
Change-Id: I4b182d25988fa8d100bb4a9ea1165771c1ed242e
2017-04-28 15:04:58 +01:00
Jesse Pretorius dee3f9f2c7 Rename release note to unique hash
Change-Id: I602e856ddda7f0aa2635c38076e140cd59ac9f12
2017-04-28 11:39:19 +01:00
Jesse Pretorius 09f4810b2f 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: Iff717230b05e9dc05bcbfc7f64b8bc54662bbb4f
2017-04-26 13:07:55 +00:00
Kevin Carter 562d330484 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: I7f6d634eafeb47450127eed1e59f3e00ee3075a5
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-03-30 15:10:41 +00:00
Jenkins 1377a7371c Merge "Update reno for stable/ocata" 2017-02-06 09:18:34 +00:00
gecong1973 3056f0b2b5 Use https instead of http for git.openstack.org
TrivialFix

Change-Id: I945629b0300f8f5e4b3db5d47d4b930fb5872fdb
2017-02-06 10:42:11 +08:00
OpenStack Release Bot b60da804e4 Update reno for stable/ocata
Change-Id: I51700ad4c3340b266270b9e1eaf0bac0dfec92bb
2017-02-03 18:58:30 +00:00
Jesse Pretorius 90609aed17 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: I7693b98ddefbc3d8365581e35cddfc5d3e39f803
2016-11-02 13:27:13 +00:00
Andreas Jaeger 5142b6fd44 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: I46db41982e294b20a0814a894d4d2d7559cf6cca
2016-10-06 20:37:20 +02:00
Major Hayden 23fbe48e60 Update reno for stable/newton
Change-Id: I7b5535924bd513e232305257e2557feb12d4de43
2016-09-29 14:20:38 -05:00
Jesse Pretorius 4129ed9552 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.

Change-Id: Ie13187a41fd91390c16ab9ef39c1c1153522802a
2016-08-02 14:45:05 +01:00
Anton Khaldin e11d113c29 Implement Ubuntu 16.04 support with systemd
This change updates the magnum role to support Ubuntu 14.04 with
upstart init and 16.04 with systemd init.

Change-Id: Id3b3b9a5419c3602821e8f7b062a5958efcccb0c
Implements: blueprint support-ubuntu-1604
2016-07-25 23:58:41 -07:00
Jesse Pretorius d60e59d45d 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: Id6a0e838d52ef6ed10f1a899eb00a1e48a21c131
2016-07-12 16:53:30 +01:00
Anton Khaldin 8b0f4f97c4 Only install to virtual environment
Remove all tasks and variables related to toggling between installation
of magnum 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: Ida3320575e628076a1e9c99ba1b2bb04e7c3c4d8
Implements: blueprint only-install-venvs
2016-07-08 01:36:37 -07:00
Jesse Pretorius 14959bdac2 Add reno scaffolding for release notes management
Change-Id: I8ec5dd6fc9717bcf76af6efdcfc4b68b063cafbb
2016-04-09 19:53:15 +01:00