Commit Graph

41 Commits

Author SHA1 Message Date
OpenStack Release Bot 87e601f951 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: I89224e297ba377656774b3b62a176226558b6bc7
2022-12-13 13:23:31 +00:00
Jonathan Rosser e31bee556c Use distro packages for nginx on centos.
There is no longer any need to get these from EPEL or the
nginx repos.

Change-Id: I24a031b5e14359f08a231dfc3429468561d48126
2022-05-29 17:33:00 +00:00
Zuul 8583a0b021 Merge "Use newer openstackdocstheme and reno versions" 2020-06-05 11:43:13 +00:00
Zuul 86131e9969 Merge "Update docstheme for style" 2020-06-03 18:23:00 +00:00
Andreas Jaeger e63d039255 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: I661ea2f75fdd0cac7ab57bea378a58e31e204cfe
2020-06-03 20:08:01 +02:00
OpenStack Release Bot 3304079c65 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: I0d5146868e1a45d7c1c78d0628ee9000d66f9db6
Sem-Ver: feature
2020-06-01 13:20:27 +00:00
Andreas Jaeger ac2470c4f5 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: I5fbadb836d7e1533f949601431fc5deacaec64b3
2020-05-20 18:53:04 +02:00
melissaml 1205049670 Cleanup py27 support
This repo is now testing only with Python
3, so let's make a few cleanups:
- Remove setup.* files, they are not needed for this repo
- Cleanup */source/conf.py to remove noww
  obsolete content.
- Remove install_cmd, move constraints into deps.

Change-Id: I1ae008c4a959cfd6a834ccb05353027c45e3e696
2020-04-27 20:33:48 +02:00
Dmitriy Rabotyagov 0fad87541a Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.

Change-Id: I0877731deb4816960b47a8c76eee64171dee5b44
2019-11-14 19:23:27 +02:00
OpenStack Release Bot 75e8d23116 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: I5d5168015a826d47a647810ae71359d147e0f905
Sem-Ver: feature
2019-10-22 19:04:17 +00:00
Kourosh Vivan aecff065f1 Add Centos GPG key custom url
When using a custom repo with repo_centos_epel_mirror, you maybe need to
change the gpg key url because offline env

You can use this variable: repo_centos_epel_key

Change-Id: I9bb305d866f3d65653b95a25a5b9f5ecde5af0b0
2019-10-17 20:56:01 +02:00
OpenStack Release Bot da84a5f1ce 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: I39d2d1b6471cee1a10eadcb17083c55853f155ef
Sem-Ver: feature
2019-04-08 09:23:26 +00:00
Mohammed Naser 44547c7b7b pypiserver: drop pypi server
It is no longer needed because of how we are using python_venv_build
at the moment, so let's remove it.

Depends-On: https://review.openstack.org/648477
Change-Id: I56531388fb49a8c3d098fd762392299742b0e120
2019-03-29 10:02:36 +00:00
Jesse Pretorius 6663637374 Remove apt-cacher-ng
The repo container's package cache causes quite a bit of confusion
given that it's a 'hidden' feature which catches deployers off-guard
when they already have their own cache configured. This is really
the kind of service which people should manage outside of OSA. It
also makes no sense if the deployer is using their own local mirror
which is a fairly common practise. Adding to that, it seems that it
is broken in bionic, causing massive delays in package installs.
Finally, it also adds to quite a bit of complexity due to the fact
that it's in a container - so in the playbooks prior to the container's
existence we have to detect whether it's there and add/remove the config
accordingly.

Let's just remove it and let deployers managing their own caching
infrastructure if they want it.

Change-Id: I829b9cfa16fbd1f9f4d33b5943f1e46623e1b157
2018-10-08 14:48:32 +01:00
OpenStack Release Bot fa087449d0 Update reno for stable/rocky
Change-Id: Ic8767a39e71a65d2b7ba63fa1de4240c0c99bd1d
2018-08-10 16:49:33 +00:00
Jesse Pretorius 968ea1f223 Remove repo_requires_pip_packages and pip_install meta-dep
Given that the openstack_hosts role installs pip and virtualenv,
we do not need this extra meta-dependency and extra task/var.

Change-Id: Iac9f72586f6b26bd31d59a4fa5055687ff77f78b
2018-07-31 18:16:53 +00:00
Jesse Pretorius dab934bdb9 Remove the upstream pypi reverse proxy
Trying to reverse proxy upstream pypi has not turned out to
be very stable, or very useful. We've had many, many reports
of stability issues and the additional complexity for offline
and proxy usage is just not worth it.

Given we already have a mechanism in place to handle using
upstream pypi if the repo server is not there yet, disabling
this should just result in that mechanism kicking in and all
will be well again.

Once the repo is built, the reverse proxy to pypiserver will
then be exclusively used and the upstream pypi proxy is not
necessary anyway.

Depends-On: https://review.openstack.org/584393
Change-Id: Ie407c6a346de6b46c8f4d30caea8664a7f6bd341
2018-07-20 14:25:19 +00:00
OpenStack Release Bot f93413bdfb Update reno for stable/queens
Change-Id: I82864f6391b73dce418aa2b21e812c3f5bd7eedf
2018-02-14 15:52:05 +00:00
Jean-Philippe Evrard f961a6d3c2 Revert "Remove sylinked git cache functionality"
This reverts commit 9c1859c7f9.
For deployers having symlinks in the P branch, the removal of
those tasks would be problematic when doing an upgrade to Q.

Instead, we keep those tasks, and mention their deprecation.
People wanting to use the git cache can still use it, but
as a plain folder instead of a symlink.

Change-Id: Ief7ad423b9e701c145b97de42e5165fe2f7347d7
2018-01-23 11:08:50 +00:00
Jesse Pretorius a340308444 Allow the upstream pypi mirror to be changed
Currently the upstream pypi mirror is hard set to
pypi, but sometimes it is preferred to use a different
mirror. This allows the upstream mirror to be changed.

Change-Id: Icd93c0c801bfee1b4fdc8154d078067722c0640a
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2017-12-04 11:11:10 +00:00
Jesse Pretorius 6320c00217 Implement pypiserver and pypi proxy cache
This patch implements nginx as a reverse proxy for python
packages. The initial query will be to a local deployment
of pypiserver in order to serve any locally built packages,
but if the package is not available locally it will retry
the query against pypi and cache the response.

Depends-On: Id20a43fed833d53ca0f147f517deafba6587352d
Change-Id: Ic4fd64f4dc82121a65088f3d7f4ae53f373df608
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2017-11-24 11:58:18 +00:00
Andreas Jaeger 50c1d38083 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: Ifb2e4e31a0fac0661943885b45f76374be5cca8d
2017-11-17 08:11:43 +01:00
Jesse Pretorius de82c8009d 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: Ifa650996eb87c6519ea3dfc449ebde92a8d7802d
2017-10-17 18:04:21 +01:00
OpenStack Release Bot 1f3e57e953 Update reno for stable/pike
Change-Id: I3b9fd42f66d774b10114e10ea42fa8a9cdeceb89
2017-08-21 10:35:29 +01:00
ZhongShengping d8c969cb5b 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: I18403168c19732152f9ba5bd06a64d8884ce92cd
2017-07-03 16:27:39 +08:00
ZhongShengping 9baa4e055c 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: I9e165a63b0e80a5773b3f9a3aa1d155d50070f6d
2017-06-26 14:43:57 +08:00
Ravi Gummadi 33e7ad0400 Cap the number of worker threads
Users can configure the number of worker threads 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: Idda6e476e9e9b5842c4cc03e9853ec31d123abc5
2017-02-23 05:45:07 -05:00
ji-xuepeng a2f5012b82 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I110547e7a41f7d9766f4188c08cc24ddc583ce70
2017-02-06 22:02:23 +08:00
OpenStack Release Bot dc22631923 Update reno for stable/ocata
Change-Id: Iae955fc6187ce7efda381b81de4ba60d763c59ee
2017-02-03 18:59:05 +00:00
ArchiFleKs b000586d14 Add proxy configuration for apt-cacher-ng
apt-cacher-ng does not use environment variable and proxy needs to
be set in apt-cacher-ng configuration file.

Change-Id: I0f9b7e3dc0a24a13a290d286100f9da672ca4d37
2016-12-06 19:31:39 +00:00
Andreas Jaeger 101d613b55 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: I52ecc596b750aebef1cc83acbe812a7580184cd0
2016-10-06 20:39:41 +02:00
Davanum Srinivas 5f5c369890 Update reno for stable/newton
Change-Id: Ic5d0cb2d3e8b3b762fb3ab7638303d359993012b
2016-09-29 19:12:11 +00:00
Travis Truman f223f9b180 Rename package lists (and related vars) appropriately
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.

This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.

Change-Id: I6a27bfbd0fc9bbcd341d602bab074b0ea1bdbbca
2016-08-26 14:35:50 -04:00
Jesse Pretorius 36351e9ce6 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: Iee1c61e431e93c60d9fa95e66a7fe278d0a11d3c
2016-08-02 15:43:34 +01:00
Kevin Carter 02e58dfda8 Implemented package caching on the repo server
This change implements package caching on the repo server.
To take advantage of this a deploy will need to do nothing more
than setup an apt-proxy configuration file. This will speed up
package delivery while also providing ha capabilities within the
environment.

Change-Id: I78b2fba6a1f294751bd7098513060015cb41300c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-07-22 10:17:54 +00:00
Jesse Pretorius b4e13ba16e Use plugins repo version of the human_log callback plugin
With the implementation of https://review.openstack.org/321331 the
human_log callback plugin is now part of the plugins repo.

This patch removes the retrofitted version in tox in favor of using
the version from the plugins repo instead.

Change-Id: I3c817b3019a892611d8dfbe0a1b3d3610857afdb
2016-07-15 14:04:55 +01:00
Jesse Pretorius 8686586943 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: I2ff29321fdef8e1b07c55a21f10aa4fd1047edba
2016-07-12 16:55:18 +01:00
Jimmy McCrory f59bafd778 Updated role for multi-distro support
Separate files have been created for vars and tasks related to a
specific package manager.

The 'repo_apt_packages' variable has been deprecated and renamed to
the more generalized 'repo_server_packages' to better describe its
purpose and to simplify reuse of existing install tasks between multiple
distros.

git daemon is configured to host git repositories from the repo servers
using the git protocol.

Currently, openstack-ansible uses git over http to access repositories
on servers created by this role.
fcgiwrap and its configuration within nginx should be removed in a
follow-up patch after openstack-ansible has been updated to use the git
protocol.

Change-Id: I62321a7b62dabca469eb072ddbf4e8f250ce0fb3
2016-05-13 10:48:57 +00:00
Jesse Pretorius 7cb36a3b0f Remove Liberty releasenote index
Change-Id: I4d21243ec04d0077ca3b984ec66d7fce3cca1811
2016-04-20 22:22:25 +01:00
Jesse Pretorius 9c93f70f48 Add reno scaffolding for release notes management
Change-Id: Ie9969e4633a3e713797eb4150a90dda22967029b
2016-04-09 19:22:15 +01:00
Hugh Saunders b457f3bda6 Disable slave repo servers while syncing
Currently there is a race between the repo servers syncing and the first
role that attempts to install a pip package. This change ensures that
only the primary repo server is accessible until the slaves are synced.

This is achieved by adding a hook into lsyncd that allows a command to
be run before and after each sync. This command is an ssh command to
connect to the relevant secondary container and stop/start nginx. As the
nginx user is unprivileged, a sudoers file is added to allow nginx to be
stopped and started.

Notes on adding the hook into lsyncd:
 * There is an existing script in lsyncd/examples for postcmd. This
   works at a higher level by adding an event onto the stack for executing a
   command once the sync has finished. I experimented with that but
   events dont get fired for the initial recursive sync, only on
   subsequent changes. As it is the initial sync that causes the problem
   that this patch is addressing, I had to look at a lower level.

 * The lsync lua C lib has an exec function, but it is hidden from
   config scripts except through the spawn(...) function. However spawn
   requires an event so can't be used for the initial sync.

 * I ended up going outside the lsync framework and using lua's own
   os.execute() function for pre/post cmds.

While this looks like a big patch, its actually a relatively small
change to the default rsync script. See
https://github.com/hughsaunders/lsyncd/compare/master...hughsaunders:rsync_prepost
for a comparison.

Bug: #1543146
Change-Id: I045a4a6bf722d6f1e01d21fbbec733872acb87a5
2016-03-16 07:19:20 +00:00