Commit Graph

27 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
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
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
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 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