Commit Graph

7 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 4b2724b44b Start using uWSGI role
Move service to use uWSGI role instead of iternal task for uwsgi
deployment. This aims to ease the maintenance of uWSGI and speedup
metal deployments as the same uwsgi environment will be used
across all services.

Depends-On: https://review.opendev.org/678025/
Change-Id: I6f129940e55130c289d94138171cee54dbd28fc1
2019-09-04 15:32:08 +03:00
Kevin Carter 9748e6b154
Cleanup files and templates using smart sources
The files and templates we carry are almost always in a state of
maintenance. The upstream services are maintaining these files and
there's really no reason we need to carry duplicate copies of them. This
change removes all of the files we expect to get from the upstream
service. while the focus of this change is to remove configuration file
maintenance burdens it also allows the role to execute faster.

  * Source installs have the configuration files within the venv at
    "<<VENV_PATH>>/etc/<<SERVICE_NAME>>". The role will now link the
    default configuration path to this directory. When the service is
    upgraded the link will move to the new venv path.
  * Distro installs package all of the required configuration files.

To maintain our current capabilities to override configuration the
role will fetch files from the disk whenever an override is provided and
then push the fetched file back to the target using `config_template`.

Change-Id: I3e7283bf778a9d686f3ae500b289c1fb43b42b92
Signed-off-by: cloudnull <kevin@cloudnull.com>
2019-02-18 09:06:26 -06:00
Kevin Carter 9a006a12bc Remove infectious distro service packages on source installs
The glance distro service packages were being combined with both distro
installs and source installs. This resulted in a situation where glance
was running both the distro service units as well as the source service
units causing lots of extra over head and transient failures. This
change removes the glance distro packages from the source based install.

Change-Id: I14dc46df74e5de2600b8d35c3018cff3caf5eafd
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-03 05:38:57 +00:00
Andy Smith 910522562e Add extra distro packages for optional oslo.messaging amqp1 driver
Change-Id: Ib7541da6f50aed75b428037f43ca7d0da7c27a21
2018-09-11 10:06:29 -04:00
Markos Chandras ea75a8ea10 vars: Do not pull devel packages on distro installations
The devel packages are only needed to build the pip pacakges so we don't
need them when we install packages straight from the distro repos.

Change-Id: I97855f8ac677dc34d7e4619b4ec72aa593eca76f
Implements: blueprint openstack-distribution-packages
2018-06-04 10:36:33 +01:00
Markos Chandras 3d7cf92bda vars: Do not install build dependencies for distro installs
The glance_distro_packages contain packages which are build dependencies
to the 'PIP' ones so we don't need to install them when we are using the
Glance distribution packages. This also renames the '*glance_wsgi_bin'
to '*glance_uwsgi_bin' since it refers to the actual uwsgi package.
Finally, we add the missing 'install_method' conditional when recording
the local facts.

Implements: blueprint openstack-distribution-packages
Change-Id: I063a73ca7d50a0ad0bee57ccc42604802ab08220
2018-05-14 12:01:53 +01:00
Markos Chandras ba64ce3083 Add support for using distribution packages for OpenStack services
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.

Change-Id: I026a440b6a0fda43b613e30f359b2a23c3c1151f
Depends-On: I5a78e2120e596d36629b4ba978b2b5df76b149b0
Implements: blueprint openstack-distribution-packages
2018-05-04 15:42:26 +01:00