Commit Graph

58 Commits

Author SHA1 Message Date
silvacarloss 1fcbee9c6f Upgrade to glusterfs-8
There is no candidate for installation in Ubuntu Jammy, hence
the need for using a more recent version.

Closes-Bug: #1998493

Change-Id: I149ffa7e678a22bee4889b2cc2cef83e9523b7d7
2022-12-01 14:50:34 +00:00
Goutham Pacha Ravi c8cc1fa0ad Upgrade to glusterfs-7
- Switch from using "service" commands to systemd commands
- Fix a previously unhandled bashate error

Change-Id: Ia5907f566ebe65db083b80cedc047ba5a9031449
2020-11-14 00:35:18 +00:00
Goutham Pacha Ravi 1b849b2757 Add plugin dependencies
lvm2 is required for devstack-plugin-glusterfs
to work. On debian systems, we'll require
thin-provisioning-tools as well.

In environments where "cinder" service
is enabled, these packages are ensured by devstack
since cinder defines a dependency for them. Adding
these packages to this devstack-plugin will ensure
this plugin can be used even without cinder enabled.

Change-Id: I4990003fb603bf479326d2d7f3740eb052695f8c
2020-07-20 13:02:45 -07:00
Goutham Pacha Ravi b3136d793d Fix "plugin_requires"
This is needed to ensure:

  "enable_plugin devstack-plugin-glusterfs <source> [<ref>]"

is placed after

  "enable_plugin manila <source> [<ref>]"

in local.conf files where applicable.

This was mis-named in the previous attempt.

Change-Id: I2fa1a61400cd14f8a3c5c2f6b4b6d7bcd82d5f1a
2020-07-17 11:08:02 -07:00
Goutham Pacha Ravi b526d79392 Add "plugin_requires"
This is needed to ensure:

  "enable_plugin glusterfs <source> [<ref>]"

is placed after

  "enable_plugin manila <source> [<ref>]"

in local.conf files where applicable

Change-Id: I373f0169a595fb40f52baca69717eecfd4f3fd88
2020-07-16 21:37:50 +00:00
Woohyung Han 03d786098c Fix up glusterfs server name to 'glusterfs-server1'
Glusterfs volume has AUTH_SSL_ALLOW option to authorize
access list. Manila try to find the access list by matching
with 'glusterfs-server' or 'manila-host'.
Fix up tls name to 'glusterfs-server1'.

Change-Id: I3a0b8bc25e6ab355f3e692e1804363be2efee10f
2019-10-08 16:15:46 +09:00
whhan91 876681ca55 Fix gluster ci failure
- An 'all: commands failed' error occurs when executing tempest
with 'tox -eall' command. Change to 'tempest run' command.
- In post_test_hook.sh, $GLUSTERFS_MANILA_DRIVER_TYPE is not set
properly. To fix this, update post_test_hook to accept arguements.
- add capability_create_share_from_snapshot_support true
- add force option when start the volume

Change-Id: Idaabd5077e3c491071d5cd7b6b68d00049a174a9
2019-08-07 13:42:33 +00:00
whhan91 55ea4965ab cleanup lvm when driver_type == glusterfs or glusterfs_nfs
when doing ./unstack.sh, cleanup routine should delete volume and lvm.

Change-Id: I7c8594c0d0c85bab8758860948da10dd8ff90884
2019-07-29 08:04:34 +00:00
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
Tom Barron a48b35f0d0 Fix lvcreate failure in glusterfs with manila
When running with the manila plugin on ubuntu Xenial,
devstack fails with a message when attempting to create
a logical volume within the glusterfs VG with a message
about insufficient allocatable extents [1].

Change the hard-coded number of extents supplied to
the lvcreate command to a percentage of the VG.

Closes-bug: #165238

Change-Id: Ia53f0e1b9b80ae0012d720a3f7b3696cadbd843c
2016-12-23 22:08:55 +00:00
Csaba Henk 1d46d65cf3 clean up dispatches over GLUSTERFS_MANILA_DRIVER_TYPE and os release
Change-Id: Ib8664c5aa71ff4efb64fd95262295fcf322e5a4e
2016-09-08 15:54:28 +02:00
Csaba Henk 701ce2bb77 add a glusterfs driver + heketi layout backend variant
Change-Id: I4bd7abc83605687fc5d990b54e728a113b4f37fe
2016-03-03 12:46:26 +01:00
Csaba Henk 21d2009e02 _create_thin_lv_gluster_vol: retry mounting the lv
Also took the opportunity to move to test_with_retry
instead of using a hand-rolled retry loop.

Closes-Bug: #1524656
Change-Id: I0fff95b434a6572efd2af3ac2ec89b5772459cd5
2015-12-11 10:33:44 +01:00
Ramana Raja 28fc5d375f Restrict scope of loop control variables to local
Some of the loop control variables are global. This as expected has
lead to corruption of their values, and produced undesired results.
Fix this issue by setting the scope of these variables to local.

Closes Bug: #1523348

Change-Id: I0f5676c5a0b97d3e027a1e7677b4b5a21470913b
2015-12-07 12:15:09 +05:30
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
Csaba Henk 9110aa631b retry mkfs.xfs until subject LV becomes available (or a time bound is reached)
Closes-Bug: #1499223
Change-Id: I7ede18cadad1c7a30d740ae17cab52b3b9271ce0
2015-09-24 12:42:32 +02:00
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
Ramana Raja 830a57308b Manila-CI: increase size of backend GlusterFS vol
The glusterfs (NFS) driver CI that currently uses directly mapped
layout sometimes fails since the backend GlusterFS volume within
which the driver creates shares does not have sufficient space to
allow Tempest to create shares for testing.

Closes-Bug: #1498792
Change-Id: If9ac508834637908bb91df55e856e08bca01e88f
2015-09-23 14:03:21 +05:30
Bharat Kumar Kobagana 84f8ac4718 Manila-GlusterFS: Removing devstack/pre_, post_ test_hook scripts
As we modified Manila-GlusterFS job definition to use manila/pre_,
post_ test_hook scripts, now devstack/pre_, post_ test_hook scripts
not required.

This patch removes devstack/pre_, post_ test_hook scripts in
devstack/ directory.

Change-Id: I52d962a231c1b2bbc89a160fdc65ea218170a241
2015-08-24 09:22:46 +05:30
Ramana Raja 4467692d96 manila: add missing tempest config option
Set missing tempest config option for glusterfs_native driver.

Change-Id: I137d2a90bca3c92a57ef0cdbf3f5f8d05c12d392
2015-08-20 02:30:02 +05:30
Bharat Kumar Kobagana 9e03d4f71c Manila-GlusterFS: Fix Neutron config setting in pre_test_hook
This patch modifies the pre_test_hook.sh script to set
ENABLE_ISOLATED_METADATA in localrc for Neutron configuration.

Closes-Bug: #1486550
Change-Id: I7708c29998e5c0f46770c54e0c7d184aed388821
2015-08-19 18:17:18 +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
Ramana Raja 9868ce3fa0 Configure Manila with glusterfs_native driver
Allow the plugin to configure Manila with glusterfs_native driver as
the backend share driver.

Change-Id: I84e6978d681276a6de7b72ac29ccb7195f062bdb
2015-08-17 17:32:02 +05:30
Ramana Raja e5404555a5 manila: skip snapshot related tempest cases
Skip snapshot related tempest cases for Manila.

Change-Id: Id36a42af595803357f2fc2a255b68dd7623e13bb
2015-08-15 19:28:44 +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
Jenkins 860ee45312 Merge "devstack-plugin-glusterfs: Adding checks for error conditions" 2015-08-10 09:39:45 +00:00
Deepak C Shetty 4a012088b2 Cinder: Make the default volume prov type as thick
Patch @ https://review.openstack.org/#/c/164527/14 changed the default
prov type to thin, which causes the volume backup tests in tempest
to fail, as we don't yet support backup for thin(qcow2) files.

This patch fixes the issue by making the default prov type as thick
for the CI job

Change-Id: I9edd0e0d0a82f08305b62951a87cf45b4df8d2f7
Closes-bug: #1483126
2015-08-10 12:13:15 +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
Deepak C Shetty fb470e7c6c Skip encrypted volume tests
The encrypted Cinder volume tests in Tempest don't actually work
properly for a GlusterFS backend in cinder since the volume encryption
support is not in Nova for GlusterFS backed volumes.

Closes-Bug: 1473363
Change-Id: I286d680256b0bd26d66d14c2554854f89abac7a8
2015-07-10 15:04:13 +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
Jenkins 4b79c7da7b Merge "Enable GlusterFS plugin to use devstack's override_defaults phase" 2015-03-27 09:49:05 +00:00
Deepak C Shetty d7067001c2 Enable GlusterFS plugin to use devstack's override_defaults phase
devstack now supports override_defaults phase, which helps plugin
specify devstack variables that need to be overridden in
override-defaults file. This patch make use of this feature so that
devstack specific variables can be overridden by the end user based
on the local setup being used. This patch also extends GlusterFS
specific variables in settings file to use bash default syntax so
those can be overridden too based on the local setup being used.

Change-Id: Idddb8169ee0733f5fe27e130b6bda14619dcae7b
2015-03-27 14:18:08 +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 6781e723d8 Enable multi-backend feature for GlusterFS job
This patch enables multi-backend feature for glusterfs job. Which
configures Cinder with both GlusterFS and LVM backend.

Change-Id: I15d726d83eb65fd9a940a1502e9398113fd1b868
2015-03-12 18:34:35 +05:30
Bharat Kumar Kobagana 39525d1cc6 Providing two GlusterFS volumes as storage to Cinder
This patch configures glusterfs backend to create two glusterfs
volumes (earlier only one glusterfs volume).

Change-Id: Ia9d83489ef0a269437323fdd115b1d85922aa236
2015-03-12 14:43:38 +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 4320441df6 Enabling cinder backup feature to glusterfs gate job
This patch enables cinder-backup (c-bak) feature by removing
"disable_service c-bak" from devstack/settings file.

Change-Id: I3d79914f85d7a5cb562e516e5e86b56e1f5adecb
2015-02-26 00:10:41 +05:30
Bharat Kumar Kobagana 93d46efdcf Disabling c-bak service
This patch disables cinder-backup service for GlusterFS backend.

Change-Id: I50eee3d9c697fab9a92b29a509c85af7cd7c029e
2015-02-23 17:32:01 +05:30