Commit Graph

27 Commits

Author SHA1 Message Date
whhan91 0654aaff47 Update glusterfs version 3.7 to 6
Update old gluster version to latest (3.7 to 6)

Change-Id: I70dec3fdfdecec6a4ce476676057eb5efdea39d4
2019-07-28 03:56:23 +00:00
Bharat Kumar Kobagana f53859f89e Refactoring devstack-plugin-glusterfs code
This patch does the following:

* Moved variable setting part from plugin.sh to settings file.

* By default all Gluster-[Glance|Nova|Cinder|Manila] integrations
disabled. Look at README file to know how to enable.

* Keeping CINDER_ENABLED_BACKENDS intact when
CONFIGURE_GLUSTERFS_CINDER=False (Bug #1500381)

* Renamed CONFIGURE_GLUSTERFS_BACKUP to
CONFIGURE_GLUSTERFS_CINDER_BACKUP

* Avoid setting unnecessary variable when speicific configuraiton
is disabled.

* Documented the steps to enable in README.md file of this project.

Closes-Bug: #1500381
Depends-On: Id6967499729dfaa12d8a338d8f72471ebc90fb0d
Change-Id: I36f35f8af8e3491c8b0cffb40ba3980b7beab5df
2015-10-21 15:04:48 +05:30
Bharat Kumar Kobagana daeb29f125 Install glusterfs 3.7 for manila jobs
This patch modifies devstack-plugin-glusterfs code to install
glusterfs 3.7 for manila specific jobs.

Change-Id: Ica4a44cd8dfe65a2330f65a1dcbb69a24fb2c805
2015-09-23 17:20:34 +05:30
Jenkins d223cc154b Merge "Changing file permissions of glusterfs log files" 2015-08-19 12:22:12 +00:00
Bharat Kumar Kobagana a80ea210db Changing file permissions of glusterfs log files
This patch avoids creation of zero sized glusterfs log files by
changing the file permissions from 600 to 755.

Change-Id: I2c88781052f5cb334de21ffe1f98f13240820fa5
2015-08-19 16:29:10 +05:30
Bharat Kumar Kobagana a8f8ba0a6e devstack-plugin-glusterfs: GlusterFS as a backup driver for Cinder
This patch allows devstack-plugin-glusterfs to configure GlusterFS
as Cinder backup target. Below are the new configuration options
added:
* CONFIGURE_GLUSTERFS_BACKUP (Set it to True to enable glusterfs backup)
* CINDER_GLUSTERFS_BACKUP_SHARE (ex: 127.0.0.1:/backup_vol)

Depends-On: I4f0c36cdaa7cc417cb26bc1e908c6d107a71da35
Change-Id: I03f1daa0c32fda20dc1900ed73e6ad586aee37a7
2015-08-19 15:29:33 +05:30
Bharat Kumar Kobagana f0ce598c9b Configure Manila with glusterfs.py share driver
This patch configures Manila with glusterfs.py share driver.

Change-Id: I53c51dd213bd64c35fec54c45db92d22139d0e0e
2015-08-15 17:43:43 +05:30
Bharat Kumar Kobagana b3c21638ac devstack-plugin-glusterfs: GlusterFS as a backend for Manila
This patch enables GlusterFS as a backend for Manila. This
patch also introduces two new configuration parameters:
 * CONFIGURE_GLUSTERFS_MANILA - set to 'True', to enable GlusterFS
as a backend for Manila.
 * GLUSTERFS_MANILA_DRIVER_TYPE - set Manila GlusterFS backend type
to either 'glusterfs' or 'glusterfs-native'.

Change-Id: I53e5b9e88b6ebc131c64dabc421875c06a3fafd4
2015-08-15 14:13:45 +05:30
Bharat Kumar Kobagana 7e7f058d84 devstack-plugin-glusterfs: GlusterFS as a backend for nova
This patch enables GlusterFS as a backend for Nova. This
patch also introduces two new configuration parameters
 * CONFIGURE_GLUSTERFS_NOVA - set to 'True', to enable GlusterFS
as a backend for Nova.
 * NOVA_GLUSTERFS_SHARE - which specifies the GlusterFS share
to store compute instances.

Change-Id: Iaebc0aff704d1203b91967af06b06bb08fde51bd
2015-08-10 15:19:23 +05:30
Bharat Kumar Kobagana 51d7091ed6 devstack-plugin-glusterfs: GlusterFS as a backend for glance
This patch enables GlusterFS as a backend for Glance. This
patch introduces two new configuration parameters:
 * CONFIGURE_GLUSTERFS_GLANCE - set to 'True', to enable GlusterFS
as a backend for Glance. By default set to True.
 * GLANCE_GLUSTERFS_SHARE - which specifies the GlusterFS share
to store glance images.

Change-Id: I613e4c7a3e359235f5d54abc820df95b521b8697
2015-08-10 15:13:18 +05:30
Bharat Kumar Kobagana 995c1ee62f devstack-plugin-glusterfs: Adding checks for error conditions
This patch introduces a new configuration parameter (knob)
CONFIGURE_GLUSTERFS_CINDER to enable/disable glusterfs as a
backend for Cinder. And added below error conditions:

* glusterfs plugin enabled but CONFIGURE_GLUSTERFS_CINDER set to
False
* CONFIGURE_GLUSTERFS_CINDER set to True, but CINDER_ENABLED_BACKENDS
doesn't have at least one backend of type glusterfs.

Change-Id: Ic802a2f2bbbdc1af04fd1220d2055be1e853fef8
2015-08-06 13:14:14 +05:30
Bharat Kumar Kobagana f0e403da25 devstack-plugin-glusterfs: Changing gluster volume names
This patch changes the name(s) of gluster volume(s), required for
cinder to store cinder volumes.

Change-Id: I95ac68a1bba53d1831903596c43650a8b4b045bc
2015-07-21 17:02:08 +05:30
Bharat Kumar Kobagana d4bf5d44e3 devstack-plugin-glusterfs: Refactoring plugin code
This patch modifies the plugin code into more reusable manner.
Also adds a new file "devstack/gluster-functions.sh", which
contains gluster specific functions.

Change-Id: Ibe1231d5f2244ea7e9b7e7a5e1b138192e372206
2015-07-20 14:42:28 +05:30
Bharat Kumar Kobagana 0a91c141f7 Devstack-GlusterFS-Plugin: Unsetting volume_prov_type in cinder.conf
As the patch "Using 'fallocate' instead of 'dd' to create raw
volumes" [1] still in WIP, setting 'volume_prov_type' doesn't make
any sense and creates confusion too.

This patch modifies plugin code to not set 'volume_prov_type'.

[1] https://review.openstack.org/#/c/164527/

Change-Id: I5938d5ac833f0b18e41a8d4f9ad35860eaec8abd
2015-07-09 15:16:14 +05:30
root a9596a5625 devstack-plugin-glusterfs: Changing 'volume_prov_type' parameter name
As per the patch https://review.openstack.org/#/c/164527/ we are
introducing new configuration parameter 'volume_prov_type' instead
of 'glusterfs_volume_prov_type'.

So this patch modifies plugin code to configure 'volume_prov_type'
instead of 'glusterfs_volume_prov_type'.

Change-Id: If7670fd6e88637d1cc25137e1fd9a4b162dd6273
2015-06-11 06:48:48 +05:30
Bharat Kumar Kobagana 3a9360c3f5 Changing file permissions of glusterfs log files
This patch avoids creation of zero sized glusterfs log files by
changing the file permissions from 600 to 755.

Closes-Bug: #1455951
Change-Id: I2adfcab9c4a7ae0953dce93dc21821b571c9a04e
2015-05-20 15:42:31 +05:30
Deepak C Shetty 92458fa50d plugin.sh: Remove setting of os_privileged_user_* params
devstack with commit 38bee18a2c440b01bd1c2187cb2a62a841e3b7ae
added support for configuring os_privileged_user_* params so
we don't need to do it in our plugin code.

Change-Id: I4827d92acba4f4e960177bc76524d94ce0b58095
2015-05-18 17:18:54 +05:30
Bharat Kumar Kobagana a07f16d664 Configure glusterfs_volume_prov_type
This patch enables devstack-plugin-glusterfs to configure
glusterfs_volume_prov_type parameter.

Change-Id: I8eeb5df288b927a04102331f5373134a82d67778
2015-05-13 14:42:56 +05:30
Bharat Kumar Kobagana 0ce13823ef Installing glusterfs 3.6 on ubuntu
This patch adds gluster 3.6 repository, to install latest
glusterfs as part of devstack setup.

Change-Id: Ie979523350a321411f630cde4833ca6bc4f5e49c
2015-03-26 14:28:15 +05:30
Bharat Kumar Kobagana 18f16f1b6f glusterfs RPMS should not cleanup if OFFLINE=True
In localrc file, when OFFLINE set to true, cleanup process should
not uninstall glusterfs packages.

Closes-Bug: 1435303
Reported-By: Deepak C Shetty <deepakcs@redhat.com>
Change-Id: Iecbea7ed8d79fc4c30fcc7af952f1d755b52f101
2015-03-23 18:58:45 +05:30
Bharat Kumar Kobagana e9efc0fc9b Configure privileged user to create/delete online snapshots
This patch configures cinder to use privileged user credentials
while creating/deleting nova assisted snapshots.

Change-Id: I324b1f7f6009793fdd68a6a9a0ef656c9f677233
2015-03-03 13:48:22 +05:30
Bharat Kumar Kobagana cc2b85fdda Create only one glusterfs volume
This patch creats only one gluster volume to store cinder
volumes.

Change-Id: Ib39af190fafc3c636dc867413ae127b74564d2e5
2015-02-23 09:02:09 +05:30
Bharat Kumar Kobagana 605b64f2ee Small change related to documentation
Change-Id: Iafc568dce521e9377aec70e5a69319c991e949f3
2015-02-20 19:52:07 +05:30
Bharat Kumar Kobagana bcae3107d0 Keep nova policy rules intact
This patch removes the code, that changes the nova policy rules.
As this might be the reason for glusterfs experimental job failure.

Change-Id: I9b01e7292184d236091d17d606cc69d5ca3943c2
2015-02-20 15:47:36 +05:30
Bharat Kumar Kobagana dff2ec7bfd Removing assisted snapshots policy rules in nova
This patch removes the "rule:admin_api" in nova policy.json file
to allow user(admin or demo) to create/delete assisted snapshots.

Change-Id: I717dbdd8a2a2feb57c4ff983ecaea45395504339
2015-02-18 09:16:17 +05:30
Bharat Kumar Kobagana e265c004a3 Fixing GlusterFS configuration issue through devstack
This patch adds the configure_cinder_backend_glusterfs method
to devstack external glusterfs plugin repository, which configures
cinder with glusterfs backend.

Change-Id: I171253d186dcaa297c30397825af3b41573c28a0
2015-02-10 17:55:15 +05:30
Bharat Kumar Kobagana 0034cb44f4 Moved plugin code from glusterfs branch to master. 2015-01-19 12:43:15 +05:30