15 Commits

Author SHA1 Message Date
Kevin Carter
c6cd170fb7 Correct role rerun when using glance with NFS
When using glance + NFS the role deploys everything perfectly the first
time however if the role is executed again it will result in failure due
to some base directories being a mount. This change adds a new variable
which will create a list of all NFS mount points. This list is then used
in the required tasks to ensure we're not attempting to recreate
directories that should already exist and are being used as
mount-points.

Change-Id: Id28176833c0b783c20ee1d2ce71fa0654ccf683e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-28 14:47:53 +00: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
ee14464c58 Do not pip install keystoneclient on the host
The keystoneclient package is being installed on the host by PIP but
that means that a whole bunch of required dependencies are being pulled
in as well.

This brings the host to a rather messed up state when installing
keystone from distro packages, since distribution and
PIP packages are being mixed together. We only need the client to
register the service with keystone so we can simply use the distro
package for that to avoid installing lots of PIP packages on the
host.

Implements: blueprint openstack-distribution-packages
Change-Id: I90c9e6732e71e153aa37f9bf69bdda679439f8b3
2018-05-31 08:41:09 +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
Mohammed Naser
cf2472c4b1 Remove un-used packages from Glance
There are a few packages which are being installed that are not
necessary as they're not used in the role.

Change-Id: I7822498d65572993882b75ec56adf3f1a096da34
2018-02-28 18:35:49 +00:00
Jimmy McCrory
43aa00424f Fix systemd init template for program override
The systemd-init template was not looking at the program_override
variable within each service's dictionary.

This also fixes glance-api so that it's running under uWSGI when the v1
API is disabled. Creating images from a remote URL is exclusive to the
v1 API and does not work when glance-api is run under uWSGI.

The libxml2-dev package is required by uWSGI and has been added to the
distro package list.

Additional options have been added to the uWSGI configuration to better
support requests containing chunked data (image uploads).

Change-Id: I14f3162a4666d770beec9746469021466fa4d449
2017-12-06 08:56:48 -08:00
Markos Chandras
e9ae99edbf Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is
required for this except for adding the appropriate distro variables
file and also update the zypper cache before package installation.

Change-Id: Ia3fe5fedbbc2781cf2e7ae4d82c09e0960c6744b
2017-07-06 13:19:19 +01:00
Jesse Pretorius
545e362b05 Ensure that services restart in a particular order
Currently when multiple services share a host, the
restart order is random. This is due to an unordered
dict being used to facilitate the mapping of services
to their groups, names and other options.

This patch implements changes to the role to ensure
that services on the same host are restarted in the
correct order when the software/config changes.

Change-Id: I52fc66f861ce98cc8299c84edcfd5f18d74306b3
2017-06-30 13:27:56 +01:00
Marc Gariepy
c1a802cca1 Add which in CentOS package list
which is needed by virtualenv-tools.

Change-Id: Iacb454ea5d37ce1ccce909c55a979966d86dff5e
2017-01-11 13:58:10 -05:00
Andy McCrae
42838c971c Remove Trusty support from os_glance role
Change-Id: If44365b0c00588a40802afe12f937b0c5ae797f8
Implements: blueprint trusty-removal
2016-12-15 13:17:08 +00:00
Major Hayden
ffacc20cc8 Implement CentOS 7 support in os_glance
This change implements CentOS 7 support within the os_glance role.

Change-Id: I65d8e66673f5372fe880680a035842ffcd775ac2
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
Co-Authored-By: Major Hayden <major@mhtx.net>
Co-Authored-By: Marc Gariepy <gariepy.marc@gmail.com>
2016-09-19 15:47:39 +00:00
Jesse Pretorius
66e8dc3b6e 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: I29e93c889f1450c33529563687a74914d8b03006
2016-08-30 17:04:39 +01:00
Kevin Carter
24c3d7053e Implement Ubuntu 16.04 support with SystemD
This change updates the glance role to support Ubuntu 14.04 with
upstart init and 16.04 with a systemd init.

Implements: blueprint support-ubuntu-1604
Depends-On: Ib6d7e68133de8d10b81d9116b74dca1de7568897
Change-Id: I39214199e2bbc2bbc5c1b30f8a04aa4e74ed967b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-05-31 14:37:59 +00:00
Hector I Gonzalez
651a11d5a0 Updated role using Multi-Distro framework
* The default apt packages have been moved into a var file
  that is only loaded when the detected OS is matched.
* The Install task file has had the apt specific tasks moved
  into a named install task file.

Change-Id: Id352021c2c4a989eb93cdaa3804b2d363cd9f8bd
2016-03-28 13:26:48 -05:00