Commit Graph

18 Commits

Author SHA1 Message Date
Martin Schuppert
5dd4018141 Instance create fails due to wrong default secontext with NFS
With NovaNfsEnabled instance create fails due to wrong default
secontext. The default in THT is set to nova_var_lib_t in
Ie4fe217bd119b638f42c682d21572547f02f17b2 while
system_u:object_r:nfs_t:s0 should have access. The virt_use_nfs
boolean, which is turned on by openstack-selinux, should cover
this use case.

This changes the default to context=system_u:object_r:nfs_t:s0

Change-Id: I2a28462b6f6bc9f8a41a81ea8c65471f05df3b85
Closes-Bug: 1781894
2018-07-24 08:12:07 +02:00
Giulio Fidente
f96dbd0610 Remove CephAnsiblePlaybook parameter reset from ceph-ansible env files
With the changes in environments/lifecycle to set/reset the default
CephAnsiblePlaybook value, we do not need to have it in the
ceph-ansible environment files anymore.

Closes-Bug: 1772650
Change-Id: I3004feda52cd03f982c359a027e68514c25ca893
2018-05-25 08:39:51 +00:00
Rajesh Tailor
6b6ae966ba Allow configuration of NFS backend for Nova
Allow NFS configuration of storage backend for Nova.
This way the instances files will be stored on a shared
NFS storage.

Implements: bp tripleo-nova-nfs

Depends-On: Id15aec6324814a871e87f19f24999b0e3b8a8f05

Change-Id: Ie4fe217bd119b638f42c682d21572547f02f17b2
2018-05-16 11:18:48 +05:30
Marc Methot
e456e103fb Add nfs as a cinder backup driver option to CinderBackupBackend
Added nfs as an option to where CinderBackupBackend was hardcoded
as either ceph or swift. Also added some parameters for this
driver - CinderBackupNfsShare and CinderBackupNfsMountOptions

Depends-On: Ic0adb294aa2e60243f8adaf167bdd75e42c8e20e
Change-Id: I29a488374726676a28fb82f2f950db891fcf9627
Closes-Bug: #1744174
2018-04-06 15:36:08 -04:00
John Fulton
56038f39a0 Change type of CephAnsiblePlaybook from string to comma_delimited_list
Enables users to run more than one CephAnsiblePlaybook during deployment
if desired. Change is backwards compatible in case string is passed.

Depends-On: I70786ab7b81f9985ddf1148b14ef803c327752b9
Change-Id: Ie0e6e53ed08a22b1453ab1230c7c6d46104716fa
2018-01-31 17:34:54 -05:00
Giulio Fidente
e2caa40579 Migrates ceph-{radosgw,mds,rbdmirror} to ceph-ansible
Previously these environment files were pointing to a version of
the services implemented using puppet-ceph, now they are migrated
to using ceph-ansible.

Change-Id: I159e2e9408dc5749ec0c287ef06aa0b1421b7d88
Closes-Bug: 1744714
2018-01-22 14:45:03 +01:00
John Fulton
c572c9983c Fix path to ceph-mgr in storage-environment
Change-Id: If3a220b333232be7fbdcd51a6b6e73b71be1ce16
Closes-Bug: #1744124
2018-01-18 12:09:33 -05:00
Giulio Fidente
fbb3dd9f9c Set the default CephAnsiblePlaybook to use into the env files
This will make sure that any scale up attempt is executed using
the site-docker.yml playbook.

Change-Id: I54796b70d4dbb26c41651171fae937a50852ef7d
Closes-Bug: #1734114
2017-11-23 13:25:38 +01:00
Giulio Fidente
8400aef908 Migrates storage-environment.yaml to ceph-ansible
Previously storage-environment.yaml defaulted to deploying Ceph
using puppet-ceph, this change defaults it to ceph-ansible instead.
In addition it adds a new storage-environment-external.yaml file
which should be used when using an external Ceph cluster.

Change-Id: I1dea3b7665dc0da2ab30a89e077ba36cd36b05fd
Closes-Bug: #1724182
2017-11-02 11:41:24 +00:00
Jiri Stransky
b6a4bdc3e4 Re-add NFS backend for Glance
We lost ability to store Glance images in NFS mounts as we moved to NG
HA architecture. This patch re-adds that ability, but the parameter
interface changes because the semantics change as well. (Pacemaker
allowed for different mounts than just NFS so the parameters were more
generic, although we only ever tested and documented NFS usage.)

Change-Id: Ic5197e09846bbf75d780dcc74da1717dcf8301d0
Related-Bug: #1635606
2016-10-21 16:22:40 +02:00
Erno Kuvaja
75110de9dd Add cinder-backup service as role
Tempest tests for cinder contain backup tests that fail
unless cinder-backup service is started. This patch facilitates
the service start upon the overcloud deployment.

Original patch converted to composable role.

Co-Authored-By: Giulio Fidente <gfidente@redhat.com>
Depends-On: Ib1dfe52b83ab01819fc669312967950e75d8ddf1
Change-Id: I9ca97b3f1c26aac6d81b3525377e1f5fb962313f
2016-08-10 19:02:08 +00:00
Marius Cornea
0ac53f566d Missing CephClientKey parameter in puppet-ceph-devel and storage-environment
This change adds the CephClientKey parameter to puppet-ceph-devel.yaml
and storage-environment.yaml environment files. This is needed when
--ceph-storage is not passed to the openstack overcloud deploy command
as the tripleo client doesn't generate the keys.

Change-Id: Idfdce190c2ad4ae198fe17474aee19cb76dac5fb
Closes-Bug: #1601864
2016-07-11 17:53:41 +02:00
Giulio Fidente
794fece5cc Switch Ceph Monitor/OSD/Client/External to composable roles
Change-Id: I1921115cb6218c7554348636c404245c79937673
Depends-On: I7ac096feb9f5655003becd79d2eea355a047c90b
Depends-On: I871ef420700e6d0ee5c1e444e019d58b3a9a45a6
2016-07-04 16:38:40 +02:00
Ian Pilcher
80be9ef080 Document IPv6 syntax for GlanceFilePcmkDevice
Change-Id: I1734a9755c4254221033cf2245ce9da8b2eeb924
Closes-Bug: 1568995
2016-04-11 14:21:18 -05:00
Pradeep Kilambi
0970068cbb Deploy Gnocchi as a Ceilometer metrics storage backend
* Deploy Gnocchi API.
* Storage backends: swift, rbd and file.
* Indexer backend default to mysql
* Configure Ceilometer to send metrics datas to Gnocchi
* Pacemaker config

Depends-On: Ic8778a3104e0ed0460423e4bf857682220dc5802
Depends-On: I7d2eb9405e0171fc54fa0b616122f69db5f51ce2

Co-Authored-By: Pradeep Kilambi <pkilambi@redhat.com>

Change-Id: Ifde17b1ab8fa2b30544633e455e1c7eb475705aa
2016-04-11 12:27:38 -04:00
Dan Radez
a27cca0ec3 updating enable_ceph conditions for controller
- keeping enabled based on ceph node count being greater than 0
- adding enabled if ControllerEnableCephStorage is true

Intention here is to be able to run ceph without having dedicated
nodes for. Enabling Ceph alternativly from the ControllerEnableCeph
parameter allows ceph to be colocated on the controllers without
having to run any dedicated ceph nodes.

Change-Id: I71062d37226c679156380c0f4e194b51cb586bcf
Signed-off-by: Dan Radez <dradez@redhat.com>
2016-01-06 00:40:43 -05:00
Jiri Stransky
3729e63b59 Support NFS backend for Glance (via Pacemaker)
Adds support for NFS backend in Glance by allowing the storage directory
for the 'file' backend to be a mount managed by Pacemaker. Default
behavior is unchanged.

Since the Pacemaker-related parameters are not exposed on top level,
change storage-environment.yaml to use parameter_defaults instead of
parameters.

Depends on a Heat fix for environment file's parameter_defaults to
work well with JSONs and comma delimited lists (see Depends-On).

Change-Id: I6e7e2eaf6919b955650c0b32e1629a4067602c89
Depends-On: I85b13a79dbc97a77e20c0d5df8eaf05b3000815e
2015-10-19 16:48:04 +02:00
Jiri Stransky
bed3b9aeb8 Provide a sample storage environment file
Meant to help users configure their storage parameters by copying this
file out, amending it and passing it to `heat stack-create` or
`openstack overcloud deploy`.

Defaults to using Ceph as a backend for Cinder, Glance and also Nova
ephemeral storage.

Change-Id: Ia8f5ef175439394aacdea98cfd66416bcb9bfe3a
2015-07-30 15:25:25 +02:00