Also took the opportunity to move to test_with_retry
instead of using a hand-rolled retry loop.
Closes-Bug: #1524656
Change-Id: I0fff95b434a6572efd2af3ac2ec89b5772459cd5
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
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
This patch modifies devstack-plugin-glusterfs code to install
glusterfs 3.7 for manila specific jobs.
Change-Id: Ica4a44cd8dfe65a2330f65a1dcbb69a24fb2c805
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
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
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
This patch avoids creation of zero sized glusterfs log files by
changing the file permissions from 600 to 755.
Change-Id: I2c88781052f5cb334de21ffe1f98f13240820fa5
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
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
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
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
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
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
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
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
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
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
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
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
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
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
This patch enables multi-backend feature for glusterfs job. Which
configures Cinder with both GlusterFS and LVM backend.
Change-Id: I15d726d83eb65fd9a940a1502e9398113fd1b868
This patch configures glusterfs backend to create two glusterfs
volumes (earlier only one glusterfs volume).
Change-Id: Ia9d83489ef0a269437323fdd115b1d85922aa236
This patch configures cinder to use privileged user credentials
while creating/deleting nova assisted snapshots.
Change-Id: I324b1f7f6009793fdd68a6a9a0ef656c9f677233
This patch enables cinder-backup (c-bak) feature by removing
"disable_service c-bak" from devstack/settings file.
Change-Id: I3d79914f85d7a5cb562e516e5e86b56e1f5adecb
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
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
This patch modifies the TEMPEST_STORAGE_PROTOCOL value from gluster
to glusterfs, to avoid tempest failures related to volume_type.
Change-Id: Icda56e49ccc9599d26018c7bbc2edd811d9d30f4
This patch adds the configure_cinder_backend_glusterfs method
to devstack external glusterfs plugin repository, which configures
cinder with glusterfs backend.
Change-Id: I171253d186dcaa297c30397825af3b41573c28a0
This patch adds GlusterFS specific settings to
devstack-plugin-glusterfs repository.
Also addes some files related to tox testing.
Change-Id: I497be1907f77e1e28b9054cd515fb9192c521bcb