Retire repository

Fuel repositories are all retired in openstack namespace, retire
remaining fuel repos in x namespace since they are unused now.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011675.html

A related change is: https://review.opendev.org/699752 .

Change-Id: I8537c50c55b5303474fbdf70a43d459f87b02e9d
This commit is contained in:
Andreas Jaeger 2019-12-18 19:40:07 +01:00
parent e2e50fc0a2
commit ebe42c6e20
112 changed files with 10 additions and 8482 deletions

8
.gitignore vendored
View File

@ -1,8 +0,0 @@
.tox
.build
*.pyc
*.rpm
*.deb
.#*
\#*
*~

20
.gitmodules vendored
View File

@ -1,20 +0,0 @@
[submodule "deployment_scripts/puppet/modules/manila"]
path = deployment_scripts/puppet/modules/manila
url = http://git.openstack.org/openstack/puppet-manila.git
branch = stable/mitaka
[submodule "repositories/python/manila-ui"]
path = repositories/python/manila-ui
url = http://git.openstack.org/openstack/manila-ui.git
branch = stable/mitaka
[submodule "repositories/python/python-manilaclient"]
path = repositories/python/python-manilaclient
url = http://git.openstack.org/openstack/python-manilaclient.git
branch = stable/mitaka
[submodule "repositories/python/manila"]
path = repositories/python/manila
url = http://git.openstack.org/openstack/manila.git
branch = stable/mitaka
[submodule "plugin_test/fuel-qa"]
path = plugin_test/fuel-qa
url = http://git.openstack.org/openstack/fuel-qa.git
branch = stable/mitaka

202
LICENSE
View File

@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,14 +0,0 @@
fuel-plugin-manila
==================
It is the plugin for Fuel that provide using Manila (File Share as a Service)
project whithin a Mirantis OpenStack's environment.
Installation
============
The Fuel Plugin Manila uses special service images from
https://github.com/openstack/manila-image-elements
Before installation that image should be placed on a Fuel master node and
environment variable MANILA_IMAGE should contain the path to that image.

10
README.rst Normal file
View File

@ -0,0 +1,10 @@
This project is no longer maintained.
The contents of this repository are still available in the Git
source code management system. To see the contents of this
repository before it reached its end of life, please check out the
previous commit with "git checkout HEAD^1".
For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-dev on
Freenode.

View File

@ -1,21 +0,0 @@
# This file contains wizard components descriptions that are pretty similar to
# the `environment_config.yaml`.
# Please, take a look at following link for the details:
# - https://blueprints.launchpad.net/fuel/+spec/component-registry
# - https://specs.openstack.org/openstack/fuel-specs/specs/8.0/component-registry.html
- name: additional_service:fuel-plugin-manila
compatible:
- name: "hypervisor:qemu"
- name: "storage:block:ceph"
- name: "storage:ephemeral:ceph"
- name: "storage:block:lvm"
- name: "storage:image:ceph"
- name: "storage:object:ceph"
- name: "additional_service:ceilometer"
- name: "additional_service:sahara"
- name: "additional_service:murano"
requires: []
incompatible: []
label: "Install Manila"
description: "Manila is the Shared Network As A Service project"

View File

@ -1,27 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/db-sync': }
$manila = hiera_hash('manila', {})
$db_pass = $manila['db_password']
$db_host = hiera('database_vip')
$req = 'select name from availability_zones\G'
exec { 'manual_db_sync':
command => 'manila-manage db sync',
path => '/usr/bin:/bin',
user => 'manila',
unless => "mysql -u manila -p${db_pass} -h ${db_host} -e \"${req}\" manila | grep nova"
}

View File

@ -1,53 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/db': }
$mysql = hiera_hash('mysql', {})
$manila = hiera_hash('manila', {})
$db_host = hiera('database_vip')
$db_root_user = pick($mysql['root_user'], 'root')
$db_root_password = $mysql['root_password']
$db_user = 'manila'
$db_password = $manila['db_password']
$db_name = 'manila'
$allowed_hosts = [ 'localhost', '127.0.0.1', '%' ]
class { '::openstack::galera::client':
custom_setup_class => hiera('mysql_custom_setup_class', 'galera'),
}
class { '::osnailyfacter::mysql_access':
db_host => $db_host,
db_user => $db_root_user,
db_password => $db_root_password,
}
class { '::manila::db::mysql':
user => $db_user,
password => $db_password,
dbname => $db_name,
allowed_hosts => $allowed_hosts,
}
class mysql::config {}
include mysql::config
class mysql::server {}
include mysql::server
Class['::openstack::galera::client'] ->
Class['::osnailyfacter::mysql_access']
-> Class['::manila::db::mysql']

View File

@ -1,33 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/generic': }
$manila = hiera_hash('manila', {})
$image = $manila['service_vm_image']['img_name']
$share_driver = 'manila.share.drivers.generic.GenericShareDriver'
$backends = {'generic' =>
{'share_backend_name' => 'generic',
'driver_handles_share_servers' => 'true',
'share_driver' => $share_driver,
'service_instance_user' => 'manila',
'service_instance_password' => 'manila',
'service_image_name' => $image,
'path_to_private_key' => '/var/lib/astute/manila/manila',
'path_to_public_key' => '/var/lib/astute/manila/manila.pub',
}
}
create_resources('::manila_auxiliary::backend::generic', $backends)

View File

@ -1,30 +0,0 @@
notify {'MODULAR: fuel-plugin-manila/haproxy': }
$internal_virtual_ip = hiera('management_vip')
$ns = hiera_hash('network_scheme', {})
$br_mgmt = split($ns['endpoints']['br-mgmt']['IP'][0], '/')
$ipaddresses = $br_mgmt[0]
$public_virtual_ip = hiera('public_vip')
# dirty hack.
$cinder_address_map = get_node_to_ipaddr_map_by_network_role(hiera_hash('cinder_nodes'), 'cinder/api')
$server_names = hiera_array('cinder_names', keys($cinder_address_map))
#
$ssl_hash = hiera_hash('use_ssl', {})
$public_ssl_hash = hiera_hash('public_ssl', {})
$public_ssl = get_ssl_property($ssl_hash, $public_ssl_hash, 'manila', 'public', 'usage', false)
$public_ssl_path = get_ssl_property($ssl_hash, $public_ssl_hash, 'manila', 'public', 'path', [''])
$internal_ssl = get_ssl_property($ssl_hash, {}, 'manila', 'internal', 'usage', false)
$internal_ssl_path = get_ssl_property($ssl_hash, {}, 'manila', 'internal', 'path', [''])
class { '::manila_auxiliary::haproxy':
internal_virtual_ip => $internal_virtual_ip,
ipaddresses => $ipaddresses,
public_virtual_ip => $public_virtual_ip,
server_names => $server_names,
public_ssl => $public_ssl,
public_ssl_path => $public_ssl_path,
internal_ssl => $internal_ssl,
internal_ssl_path => $internal_ssl_path,
}

View File

@ -1,13 +0,0 @@
notify {'MODULAR: fuel-plugin-manila/image_upload': }
$manila = hiera_hash('fuel-plugin-manila', {})
$image = $manila['fuel-plugin-manila_image']
$master_ip = hiera('master_ip')
$src_image = "http://${master_ip}:8080/plugins/fuel-plugin-manila-1.0/repositories/ubuntu/${image}"
class {'::manila_auxiliary::image':
src_image => $src_image,
image => $image,
}

View File

@ -1,12 +0,0 @@
notify {'MODULAR: fuel-plugin-manila/init_controller': }
$inits = {
'manila-api' => {
desc => 'manila-api init',
srv => 'manila-api',},
'manila-scheduler' => {
desc => 'manila-scheduler init',
srv => 'manila-scheduler',},
}
create_resources('::manila_auxiliary::initd', $inits)

View File

@ -1,9 +0,0 @@
notify {'MODULAR: fuel-plugin-manila/init_data': }
$inits = {
'manila-data' =>{
desc => 'manila-data init',
srv => 'manila-data',},
}
create_resources('::manila_auxiliary::initd', $inits)

View File

@ -1,9 +0,0 @@
notify {'MODULAR: fuel-plugin-manila/init_share': }
$inits = {
'manila-share' => {
desc => 'manila-share init',
srv => 'manila-share',},
}
create_resources('::manila_auxiliary::initd', $inits)

View File

@ -1,60 +0,0 @@
notify {'MODULAR: fuel-plugin-manila/install': }
package {'python-pip':
ensure => 'installed'
}
package {'python-pymysql':
ensure => 'installed'
}
package {'python-dev':
ensure => 'installed'
}
package {'pycrypto':
ensure => 'installed',
provider => 'pip',
}
package {'python-manilaclient':
ensure => '1.11.0',
provider => 'pip',
}
package {'python-manila':
ensure => 'absent'
}
package {'manila-api':
ensure => 'absent'
}
package {'manila-common':
ensure => 'absent'
}
package {'manila-scheduler':
ensure => 'absent'
}
package {'fuel-plugin-manila-manila-core':
ensure => 'installed'
}
package {'fuel-plugin-manila-manila-ui':
ensure => 'installed'
}
class {'::manila_auxiliary::fs': }
Package['python-pip']->
Package['python-dev']->
Package['python-pymysql']->
Package['pycrypto']->
Package['python-manilaclient']->
Package['python-manila']->
Package['manila-api']->
Package['manila-common']->
Package['manila-scheduler']->
Package['fuel-plugin-manila-manila-core']->
Package['fuel-plugin-manila-manila-ui']

View File

@ -1,31 +0,0 @@
notify {'MODULAR fuel-plugin-manila/keystone': }
$manila = hiera_hash('manila', {})
$pass = $manila['user_password']
$public_ssl_hash = hiera_hash('public_ssl')
$ssl_hash = hiera_hash('use_ssl', {})
$public_vip = hiera('public_vip')
$management_vip = hiera('management_vip')
$public_protocol = get_ssl_property($ssl_hash, $public_ssl_hash, 'manila', 'public', 'protocol', 'http')
$public_address = get_ssl_property($ssl_hash, $public_ssl_hash, 'manila', 'public', 'hostname', [$public_vip])
$internal_protocol = get_ssl_property($ssl_hash, {}, 'manila', 'internal', 'protocol', 'http')
$internal_address = get_ssl_property($ssl_hash, {}, 'manila', 'internal', 'hostname', [$management_vip])
$admin_protocol = get_ssl_property($ssl_hash, {}, 'manila', 'admin', 'protocol', 'http')
$admin_address = get_ssl_property($ssl_hash, {}, 'manila', 'admin', 'hostname', [$management_vip])
$port = '8786'
$public_base_url = "${public_protocol}://${public_address}:${port}"
$internal_base_url = "${internal_protocol}://${internal_address}:${port}"
$admin_base_url = "${admin_protocol}://${admin_address}:${port}"
class {'::manila::keystone::auth':
password => $pass,
public_url => "${public_base_url}/v1/%(tenant_id)s",
public_url_v2 => "${public_base_url}/v2/%(tenant_id)s",
admin_url => "${admin_base_url}/v1/%(tenant_id)s",
admin_url_v2 => "${admin_base_url}/v2/%(tenant_id)s",
internal_url => "${internal_base_url}/v1/%(tenant_id)s",
internal_url_v2 => "${internal_base_url}/v2/%(tenant_id)s",
}

View File

@ -1,6 +0,0 @@
notify {'MODULAR: fuel-plugin-manila/master': }
file {'/tmp/manila_master':
ensure => file,
content => 'I am the file',
}

View File

@ -1,17 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/meta': }
class {'::manila_auxiliary::meta': }

View File

@ -1 +0,0 @@
notify {'MODULAR: fuel-plugin-manila': }

View File

@ -1,85 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/main': }
$manila = hiera_hash('manila', {})
$db_user = 'manila'
$db_pass = $manila['db_password']
$manila_pass = $manila['user_password']
$db_host = hiera('database_vip')
$sql_conn = "mysql+pymysql://${db_user}:${db_pass}@${db_host}/manila?charset=utf8"
$rabbit_hash = hiera_hash('rabbit', {})
$amqp_user = $rabbit_hash['user']
$amqp_password = $rabbit_hash['password']
$amqp_hosts = hiera('amqp_hosts', '')
$network_metadata = hiera_hash('network_metadata', {})
$ns = hiera_hash('network_scheme', {})
$mgmt_ip = $network_metadata['vips']['management']['ipaddr']
$br_mgmt = split($ns['endpoints']['br-mgmt']['IP'][0], '/')
$br_mgmt_ip = $br_mgmt[0]
$neutron = hiera_hash('quantum_settings', {})
$neutron_pass = $neutron['keystone']['admin_password']
$auth_url = "http://${mgmt_ip}:35357/"
$auth_uri = "http://${mgmt_ip}:5000/"
$cinder = hiera_hash('cinder', {})
$cinder_pass = $cinder['user_password']
$nova = hiera_hash('nova', {})
$nova_pass = $nova['user_password']
$verbose = hiera('verbose')
$debug = hiera('debug')
$use_syslog = hiera('use_syslog')
$public_ssl = hiera_hash('public_ssl', {})
$fuel_manila_hash = hiera_hash('fuel-plugin-manila', {})
$use_generic = $fuel_manila_hash['use-generic-driver']
$use_netapp = $fuel_manila_hash['use-netapp-driver']
if $use_netapp and $use_generic {
$shared_backends = 'generic,cdotMultipleSVM'
}
elsif $use_netapp {
$shared_backends = 'cdotMultipleSVM'
}
else {
$shared_backends = 'generic'
}
class {'::manila_auxiliary':
sql_connection => $sql_conn,
shared_backends => $shared_backends,
amqp_durable_queues => 'False',
rabbit_userid => $amqp_user,
rabbit_hosts => $amqp_hosts,
rabbit_use_ssl => 'False',
rabbit_password => $amqp_password,
ssl_cert_source => $public_ssl['cert_source'],
auth_url => $auth_url,
auth_uri => $auth_uri,
br_mgmt_ip => $br_mgmt_ip,
cinder_pass => $cinder_pass,
manila_pass => $manila_pass,
neutron_pass => $neutron_pass,
nova_pass => $nova_pass,
verbose => $verbose,
debug => $debug,
}

View File

@ -1,43 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/start_controller': }
$inits = {
'manila-api' => {
desc => 'manila-api init script',
srv => 'manila-api',},
'manila-scheduler' => {
desc => 'manila-scheduler init script',
srv => 'manila-scheduler',},
}
create_resources('::manila_auxiliary::initd', $inits)
notify {'Restart manila-api':
}~>
service { 'manila-api':
ensure => 'running',
name => 'manila-api',
enable => true,
hasstatus => true,
}->
notify {' Restart manila-scheduler':
}~>
service { 'manila-scheduler':
ensure => 'running',
name => 'manila-scheduler',
enable => true,
hasstatus => true,
}

View File

@ -1,33 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/start_data': }
$inits = {
'manila-data' => {
desc => 'manila-data init script',
srv => 'manila-data',},
}
create_resources('::manila_auxiliary::initd', $inits)
notify {'Restart manila-data':
}~>
service { 'manila-data':
ensure => 'running',
name => 'manila-data',
enable => true,
hasstatus => true,
}

View File

@ -1,71 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/start_share': }
$srv = 'manila-share'
$desc = 'manila-share service'
$fuel_manila_hash = hiera_hash('fuel-plugin-manila', {})
$manila = hiera_hash('manila', {})
$image = $manila['service_vm_image']['img_name']
if $fuel_manila_hash['use-generic-driver'] {
$generic_share_driver = 'manila.share.drivers.generic.GenericShareDriver'
$generic_backends = {'generic' =>
{'share_backend_name' => 'generic',
'driver_handles_share_servers' => 'true',
'share_driver' => $generic_share_driver,
'service_instance_user' => 'manila',
'service_instance_password' => 'manila',
'service_image_name' => $image,
'path_to_private_key' => '/var/lib/astute/manila/manila',
'path_to_public_key' => '/var/lib/astute/manila/manila.pub',
}
}
create_resources('::manila_auxiliary::backend::generic', $generic_backends)
}
if $fuel_manila_hash['use-netapp-driver'] {
$netapp_backends = {'cdotMultipleSVM' =>
{'netapp_transport_type' => $fuel_manila_hash['netapp-proto'],
'netapp_server_hostname' => $fuel_manila_hash['netapp-host'],
'netapp_server_port' => $fuel_manila_hash['netapp-port'],
'netapp_login' => $fuel_manila_hash['netapp-user'],
'netapp_password' => $fuel_manila_hash['netapp-pass'],
'netapp_root_volume_aggregate' => $fuel_manila_hash['netapp-root_volume_aggregate'],
'netapp_port_name_search_pattern' => $fuel_manila_hash['netapp-port_name_search_pattern'],
'netapp_aggregate_name_search_pattern' => $fuel_manila_hash['netapp_aggregate_name_search_pattern'],
}
}
create_resources('::manila_auxiliary::backend::netapp', $netapp_backends)
}
$inits = {
'manila-share' => {
desc => 'manila-share init script',
srv => 'manila-share',},
}
create_resources('::manila_auxiliary::initd', $inits)
notify {'Restart manila-share':
}~>
service { 'manila-share':
ensure => 'running',
name => 'manila-share',
enable => true,
hasstatus => true,
}

View File

@ -1,28 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
notify {'MODULAR: fuel-plugin-manila/ui': }
include ::apache::params
include ::apache::service
$adm_shares = '/usr/lib/python2.7/dist-packages/manila_ui/enabled'
$hor_enabled = '/usr/share/openstack-dashboard/openstack_dashboard/enabled/'
exec {'add_share_panel':
command => "cp ${adm_shares}/_90*.py ${hor_enabled}",
path => '/bin:/usr/bin',
}
Exec['add_share_panel'] ~> Service['httpd']

@ -1 +0,0 @@
Subproject commit 110a0b4d02d7038ec2ed1fecc635543b42d7f0bd

View File

@ -1,7 +0,0 @@
source 'https://rubygems.org'
puppetversion = ENV.key?('PUPPET_VERSION') ? "#{ENV['PUPPET_VERSION']}" : ['>= 3.3']
gem 'puppet', puppetversion
gem 'puppetlabs_spec_helper', '>= 0.8.2'
gem 'puppet-lint', '>= 1.0.0'
gem 'facter', '>= 1.7.0'

View File

@ -1,83 +0,0 @@
# manila_auxiliary
#### Table of Contents
1. [Description](#description)
1. [Setup - The basics of getting started with manila_auxiliary](#setup)
* [What manila_auxiliary affects](#what-manila_auxiliary-affects)
* [Setup requirements](#setup-requirements)
* [Beginning with manila_auxiliary](#beginning-with-manila_auxiliary)
1. [Usage - Configuration options and additional functionality](#usage)
1. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
1. [Limitations - OS compatibility, etc.](#limitations)
1. [Development - Guide for contributing to the module](#development)
## Description
Start with a one- or two-sentence summary of what the module does and/or what
problem it solves. This is your 30-second elevator pitch for your module.
Consider including OS/Puppet version it works with.
You can give more descriptive information in a second paragraph. This paragraph
should answer the questions: "What does this module *do*?" and "Why would I use
it?" If your module has a range of functionality (installation, configuration,
management, etc.), this is the time to mention it.
## Setup
### What manila_auxiliary affects **OPTIONAL**
If it's obvious what your module touches, you can skip this section. For
example, folks can probably figure out that your mysql_instance module affects
their MySQL instances.
If there's more that they should know about, though, this is the place to mention:
* A list of files, packages, services, or operations that the module will alter,
impact, or execute.
* Dependencies that your module automatically installs.
* Warnings or other important notices.
### Setup Requirements **OPTIONAL**
If your module requires anything extra before setting up (pluginsync enabled,
etc.), mention it here.
If your most recent release breaks compatibility or requires particular steps
for upgrading, you might want to include an additional "Upgrading" section
here.
### Beginning with manila_auxiliary
The very basic steps needed for a user to get the module up and running. This
can include setup steps, if necessary, or it can be an example of the most
basic use of the module.
## Usage
This section is where you describe how to customize, configure, and do the
fancy stuff with your module here. It's especially helpful if you include usage
examples and code samples for doing things with your module.
## Reference
Here, include a complete list of your module's classes, types, providers,
facts, along with the parameters for each. Users refer to this section (thus
the name "Reference") to find specific details; most users don't read it per
se.
## Limitations
This is where you list OS compatibility, version compatibility, etc. If there
are Known Issues, you might want to include them under their own heading here.
## Development
Since your module is awesome, other users will want to play with it. Let them
know what the ground rules for contributing are.
## Release Notes/Contributors/Etc. **Optional**
If you aren't using changelog, put your release notes here (though you should
consider using changelog). You can also add any additional sections you feel
are necessary or important to include here. Please use the `## ` header.

View File

@ -1,17 +0,0 @@
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
desc "Validate manifests, templates, and ruby files"
task :validate do
Dir['manifests/**/*.pp'].each do |manifest|
sh "puppet parser validate --noop #{manifest}"
end
Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file|
sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
end
Dir['templates/**/*.erb'].each do |template|
sh "erb -P -x -T '-' #{template} | ruby -c"
end
end

View File

@ -1,59 +0,0 @@
#############
# OpenStack #
#############
[composite:osapi_share]
use = call:manila.api:root_app_factory
/: apiversions
/v1: openstack_share_api
/v2: openstack_share_api_v2
[composite:openstack_share_api]
use = call:manila.api.middleware.auth:pipeline_factory
noauth = cors faultwrap ssl sizelimit noauth api
keystone = cors faultwrap ssl sizelimit authtoken keystonecontext api
keystone_nolimit = cors faultwrap ssl sizelimit authtoken keystonecontext api
[composite:openstack_share_api_v2]
use = call:manila.api.middleware.auth:pipeline_factory
noauth = cors faultwrap ssl sizelimit noauth apiv2
keystone = cors faultwrap ssl sizelimit authtoken keystonecontext apiv2
keystone_nolimit = cors faultwrap ssl sizelimit authtoken keystonecontext apiv2
[filter:faultwrap]
paste.filter_factory = manila.api.middleware.fault:FaultWrapper.factory
[filter:noauth]
paste.filter_factory = manila.api.middleware.auth:NoAuthMiddleware.factory
[filter:sizelimit]
paste.filter_factory = oslo_middleware.sizelimit:RequestBodySizeLimiter.factory
[filter:ssl]
paste.filter_factory = oslo_middleware.ssl:SSLMiddleware.factory
[app:api]
paste.app_factory = manila.api.v1.router:APIRouter.factory
[app:apiv2]
paste.app_factory = manila.api.v2.router:APIRouter.factory
[pipeline:apiversions]
pipeline = cors faultwrap osshareversionapp
[app:osshareversionapp]
paste.app_factory = manila.api.versions:VersionsRouter.factory
##########
# Shared #
##########
[filter:keystonecontext]
paste.filter_factory = manila.api.middleware.auth:ManilaKeystoneContext.factory
[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = manila

View File

@ -1,73 +0,0 @@
[loggers]
keys = root, manila
[handlers]
keys = stderr, stdout, watchedfile, syslog, null
[formatters]
keys = default
[logger_root]
level = WARNING
handlers = null
[logger_manila]
level = INFO
handlers = stderr
qualname = manila
[logger_amqplib]
level = WARNING
handlers = stderr
qualname = amqplib
[logger_sqlalchemy]
level = WARNING
handlers = stderr
qualname = sqlalchemy
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARNING" logs neither. (Recommended for production systems.)
[logger_boto]
level = WARNING
handlers = stderr
qualname = boto
[logger_suds]
level = INFO
handlers = stderr
qualname = suds
[logger_eventletwsgi]
level = WARNING
handlers = stderr
qualname = eventlet.wsgi.server
[handler_stderr]
class = StreamHandler
args = (sys.stderr,)
formatter = default
[handler_stdout]
class = StreamHandler
args = (sys.stdout,)
formatter = default
[handler_watchedfile]
class = handlers.WatchedFileHandler
args = ('manila.log',)
formatter = default
[handler_syslog]
class = handlers.SysLogHandler
args = ('/dev/log', handlers.SysLogHandler.LOG_USER)
formatter = default
[handler_null]
class = manila.common.openstack.NullHandler
formatter = default
args = ()
[formatter_default]
format = %(message)s

View File

@ -1,3 +0,0 @@
Defaults:manila !requiretty
manila ALL = (root) NOPASSWD: /usr/bin/manila-rootwrap /etc/manila/rootwrap.conf *

View File

@ -1,17 +0,0 @@
#!/bin/bash
. /root/openrc
if ! openstack --insecure flavor list | grep -q 'manila-service-flavor'; then
echo 'add manila-service-flavor'
openstack --insecure flavor create manila-service-flavor \
--id 100 \
--ram 256 \
--disk 0 \
--vcpus 1
fi
if ! manila --insecure type-list | grep -q 'default_share_type'; then
echo 'add default_share_type'
manila --insecure type-create default_share_type True
fi

View File

@ -1,130 +0,0 @@
{
"context_is_admin": "role:admin",
"admin_or_owner": "is_admin:True or project_id:%(project_id)s",
"default": "rule:admin_or_owner",
"admin_api": "is_admin:True",
"availability_zone:index": "rule:default",
"quota_set:update": "rule:admin_api",
"quota_set:show": "rule:default",
"quota_set:delete": "rule:admin_api",
"quota_class_set:show": "rule:default",
"quota_class_set:update": "rule:admin_api",
"service:index": "rule:admin_api",
"service:update": "rule:admin_api",
"share:create": "",
"share:delete": "rule:default",
"share:get": "rule:default",
"share:get_all": "rule:default",
"share:list_by_share_server_id": "rule:admin_api",
"share:update": "rule:default",
"share:access_get": "rule:default",
"share:access_get_all": "rule:default",
"share:allow_access": "rule:default",
"share:deny_access": "rule:default",
"share:extend": "rule:default",
"share:shrink": "rule:default",
"share:get_share_metadata": "rule:default",
"share:delete_share_metadata": "rule:default",
"share:update_share_metadata": "rule:default",
"share:migration_start": "rule:admin_api",
"share:migration_complete": "rule:admin_api",
"share:migration_cancel": "rule:admin_api",
"share:migration_get_progress": "rule:admin_api",
"share:reset_task_state": "rule:admin_api",
"share:manage": "rule:admin_api",
"share:unmanage": "rule:admin_api",
"share:force_delete": "rule:admin_api",
"share:reset_status": "rule:admin_api",
"share_export_location:index": "rule:default",
"share_export_location:show": "rule:default",
"share_instance:index": "rule:admin_api",
"share_instance:show": "rule:admin_api",
"share_instance:force_delete": "rule:admin_api",
"share_instance:reset_status": "rule:admin_api",
"share_instance_export_location:index": "rule:admin_api",
"share_instance_export_location:show": "rule:admin_api",
"share_snapshot:create_snapshot": "rule:default",
"share_snapshot:delete_snapshot": "rule:default",
"share_snapshot:get_snapshot": "rule:default",
"share_snapshot:get_all_snapshots": "rule:default",
"share_snapshot:snapshot_update": "rule:default",
"share_snapshot:manage_snapshot": "rule:admin_api",
"share_snapshot:unmanage_snapshot": "rule:admin_api",
"share_snapshot:force_delete": "rule:admin_api",
"share_snapshot:reset_status": "rule:admin_api",
"share_type:index": "rule:default",
"share_type:show": "rule:default",
"share_type:default": "rule:default",
"share_type:create": "rule:admin_api",
"share_type:delete": "rule:admin_api",
"share_type:add_project_access": "rule:admin_api",
"share_type:list_project_access": "rule:admin_api",
"share_type:remove_project_access": "rule:admin_api",
"share_types_extra_spec:create": "rule:admin_api",
"share_types_extra_spec:update": "rule:admin_api",
"share_types_extra_spec:show": "rule:admin_api",
"share_types_extra_spec:index": "rule:admin_api",
"share_types_extra_spec:delete": "rule:admin_api",
"security_service:create": "rule:default",
"security_service:delete": "rule:default",
"security_service:update": "rule:default",
"security_service:show": "rule:default",
"security_service:index": "rule:default",
"security_service:detail": "rule:default",
"security_service:get_all_security_services": "rule:admin_api",
"share_server:index": "rule:admin_api",
"share_server:show": "rule:admin_api",
"share_server:details": "rule:admin_api",
"share_server:delete": "rule:admin_api",
"share_network:create": "rule:default",
"share_network:delete": "rule:default",
"share_network:update": "rule:default",
"share_network:index": "rule:default",
"share_network:detail": "rule:default",
"share_network:show": "rule:default",
"share_network:add_security_service": "rule:default",
"share_network:remove_security_service": "rule:default",
"share_network:get_all_share_networks": "rule:admin_api",
"scheduler_stats:pools:index": "rule:admin_api",
"scheduler_stats:pools:detail": "rule:admin_api",
"consistency_group:create" : "rule:default",
"consistency_group:delete": "rule:default",
"consistency_group:update": "rule:default",
"consistency_group:get": "rule:default",
"consistency_group:get_all": "rule:default",
"consistency_group:force_delete": "rule:admin_api",
"consistency_group:reset_status": "rule:admin_api",
"cgsnapshot:force_delete": "rule:admin_api",
"cgsnapshot:reset_status": "rule:admin_api",
"cgsnapshot:create" : "rule:default",
"cgsnapshot:update" : "rule:default",
"cgsnapshot:delete": "rule:default",
"cgsnapshot:get_cgsnapshot": "rule:default",
"cgsnapshot:get_all": "rule:default",
"share_replica:get_all": "rule:default",
"share_replica:show": "rule:default",
"share_replica:create" : "rule:default",
"share_replica:delete": "rule:default",
"share_replica:promote": "rule:default",
"share_replica:resync": "rule:admin_api",
"share_replica:reset_status": "rule:admin_api",
"share_replica:force_delete": "rule:admin_api",
"share_replica:reset_replica_state": "rule:admin_api"
}

View File

@ -1,27 +0,0 @@
# Configuration for manila-rootwrap
# This file should be owned by (and only-writeable by) the root user
[DEFAULT]
# List of directories to load filter definitions from (separated by ',').
# These directories MUST all be only writeable by root !
filters_path=/etc/manila/rootwrap.d,/usr/share/manila/rootwrap
# List of directories to search executables in, in case filters do not
# explicitely specify a full path (separated by ',')
# If not specified, defaults to system PATH environment variable.
# These directories MUST all be only writeable by root !
exec_dirs=/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/sbin,/usr/local/bin,/usr/lpp/mmfs/bin
# Enable logging to syslog
# Default value is False
use_syslog=False
# Which syslog facility to use.
# Valid values include auth, authpriv, syslog, user0, user1...
# Default value is 'syslog'
syslog_log_facility=syslog
# Which messages to log.
# INFO means log all usage
# ERROR means only log unsuccessful attempts
syslog_log_level=ERROR

View File

@ -1,153 +0,0 @@
# manila-rootwrap command filters for share nodes
# This file should be owned by (and only-writeable by) the root user
[Filters]
# manila/utils.py : 'chown', '%s', '%s'
chown: CommandFilter, chown, root
# manila/utils.py : 'cat', '%s'
cat: CommandFilter, cat, root
# manila/share/drivers/lvm.py: 'mkfs.ext4', '/dev/mapper/%s'
mkfs.ext4: CommandFilter, mkfs.ext4, root
# manila/share/drivers/lvm.py: 'mkfs.ext3', '/dev/mapper/%s'
mkfs.ext3: CommandFilter, mkfs.ext3, root
# manila/share/drivers/lvm.py: 'smbd', '-s', '%s', '-D'
smbd: CommandFilter, smbd, root
smb: CommandFilter, smb, root
# manila/share/drivers/lvm.py: 'rmdir', '%s'
rmdir: CommandFilter, rmdir, root
# manila/share/drivers/lvm.py: 'dd' 'count=0', 'if=%s' % srcstr, 'of=%s'
dd: CommandFilter, dd, root
# manila/share/drivers/lvm.py: 'fsck', '-pf', %s
fsck: CommandFilter, fsck, root
# manila/share/drivers/lvm.py: 'resize2fs', %s
resize2fs: CommandFilter, resize2fs, root
# manila/share/drivers/helpers.py: 'smbcontrol', 'all', 'close-share', '%s'
smbcontrol: CommandFilter, smbcontrol, root
# manila/share/drivers/helpers.py: 'net', 'conf', 'addshare', '%s', '%s', 'writeable=y', 'guest_ok=y
# manila/share/drivers/helpers.py: 'net', 'conf', 'delshare', '%s'
# manila/share/drivers/helpers.py: 'net', 'conf', 'setparm', '%s', '%s', '%s'
# manila/share/drivers/helpers.py: 'net', 'conf', 'getparm', '%s', 'hosts allow'
net: CommandFilter, net, root
# manila/share/drivers/lvm.py: 'lvremove', '-f', "%s/%s
lvremove: CommandFilter, lvremove, root
# manila/share/drivers/lvm.py: 'lvextend', '-L', '%sG''-n', %s
lvextend: CommandFilter, lvextend, root
# manila/share/drivers/lvm.py: 'lvcreate', '-L', %s, '-n', %s
lvcreate: CommandFilter, lvcreate, root
# manila/share/drivers/lvm.py: 'vgs', '--noheadings', '-o', 'name'
# manila/share/drivers/lvm.py: 'vgs', %s, '--rows', '--units', 'g'
vgs: CommandFilter, vgs, root
# manila/share/drivers/glusterfs.py: 'mkdir', '%s'
# manila/share/drivers/ganesha/manager.py: 'mkdir', '-p', '%s'
mkdir: CommandFilter, mkdir, root
# manila/share/drivers/glusterfs.py: 'rm', '-rf', '%s'
rm: CommandFilter, rm, root
# manila/share/drivers/glusterfs.py: 'mount', '-t', 'glusterfs', '%s', '%s'
# manila/share/drivers/glusterfs/glusterfs_native.py: 'mount', '-t', 'glusterfs', '%s', '%s'
mount: CommandFilter, mount, root
# manila/share/drivers/glusterfs.py: 'gluster', '--xml', 'volume', 'info', '%s'
# manila/share/drivers/glusterfs.py: 'gluster', 'volume', 'set', '%s', 'nfs.export-dir', '%s'
gluster: CommandFilter, gluster, root
# manila/network/linux/ip_lib.py: 'ip', 'netns', 'exec', '%s', '%s'
ip: CommandFilter, ip, root
# manila/network/linux/interface.py: 'ovs-vsctl', 'add-port', '%s', '%s'
ovs-vsctl: CommandFilter, ovs-vsctl, root
# manila/share/drivers/glusterfs/glusterfs_native.py: 'find', '%s', '-mindepth', '1', '!', '-path', '%s', '!', '-path', '%s', '-delete'
# manila/share/drivers/glusterfs/glusterfs_native.py: 'find', '%s', '-mindepth', '1', '-delete'
find: CommandFilter, find, root
# manila/share/drivers/glusterfs/glusterfs_native.py: 'umount', '%s'
umount: CommandFilter, umount, root
# GPFS commands
# manila/share/drivers/ibm/gpfs.py: 'mmgetstate', '-Y'
mmgetstate: CommandFilter, mmgetstate, root
# manila/share/drivers/ibm/gpfs.py: 'mmlsattr', '%s'
mmlsattr: CommandFilter, mmlsattr, root
# manila/share/drivers/ibm/gpfs.py: 'mmcrfileset', '%s', '%s', '--inode-space', 'new'
mmcrfileset: CommandFilter, mmcrfileset, root
# manila/share/drivers/ibm/gpfs.py: 'mmlinkfileset', '%s', '%s', '-J', '%s'
mmlinkfileset: CommandFilter, mmlinkfileset, root
# manila/share/drivers/ibm/gpfs.py: 'mmsetquota', '-j', '%s', '-h', '%s', '%s'
mmsetquota: CommandFilter, mmsetquota, root
# manila/share/drivers/ibm/gpfs.py: 'mmunlinkfileset', '%s', '%s', '-f'
mmunlinkfileset: CommandFilter, mmunlinkfileset, root
# manila/share/drivers/ibm/gpfs.py: 'mmdelfileset', '%s', '%s', '-f'
mmdelfileset: CommandFilter, mmdelfileset, root
# manila/share/drivers/ibm/gpfs.py: 'mmcrsnapshot', '%s', '%s', '-j', '%s'
mmcrsnapshot: CommandFilter, mmcrsnapshot, root
# manila/share/drivers/ibm/gpfs.py: 'mmdelsnapshot', '%s', '%s', '-j', '%s'
mmdelsnapshot: CommandFilter, mmdelsnapshot, root
# manila/share/drivers/ibm/gpfs.py: 'rsync', '-rp', '%s', '%s'
rsync: CommandFilter, rsync, root
# manila/share/drivers/ibm/gpfs.py: 'exportfs'
exportfs: CommandFilter, exportfs, root
# manila/share/drivers/ibm/gpfs.py: 'stat', '--format=%F', '%s'
stat: CommandFilter, stat, root
# manila/share/drivers/ibm/gpfs.py: 'df', '-P', '-B', '1', '%s'
df: CommandFilter, df, root
# Ganesha commands
# manila/share/drivers/ibm/ganesha_utils.py: 'mv', '%s', '%s'
# manila/share/drivers/ganesha/manager.py: 'mv', '%s', '%s'
mv: CommandFilter, mv, root
# manila/share/drivers/ibm/ganesha_utils.py: 'cp', '%s', '%s'
cp: CommandFilter, cp, root
# manila/share/drivers/ibm/ganesha_utils.py: 'scp', '-i', '%s', '%s', '%s'
scp: CommandFilter, scp, root
# manila/share/drivers/ibm/ganesha_utils.py: 'ssh', '%s', '%s'
ssh: CommandFilter, ssh, root
# manila/share/drivers/ibm/ganesha_utils.py: 'chmod', '%s', '%s'
chmod: CommandFilter, chmod, root
# manila/share/drivers/ibm/ganesha_utils.py: 'service', '%s', 'restart'
service: CommandFilter, service, root
# manila/share/drivers/ganesha/manager.py: 'mktemp', '-p', '%s', '-t', '%s'
mktemp: CommandFilter, mktemp, root
# manila/share/drivers/ganesha/manager.py:
shcat: RegExpFilter, sh, root, sh, -c, echo '((.|\n)*)' > /.*
# manila/share/drivers/ganesha/manager.py:
dbus-addexport: RegExpFilter, dbus-send, root, dbus-send, --print-reply, --system, --dest=org\.ganesha\.nfsd, /org/ganesha/nfsd/ExportMgr, org\.ganesha\.nfsd\.exportmgr\.(Add|Remove)Export, .*, .*
# manila/share/drivers/ganesha/manager.py:
dbus-removeexport: RegExpFilter, dbus-send, root, dbus-send, --print-reply, --system, --dest=org\.ganesha\.nfsd, /org/ganesha/nfsd/ExportMgr, org\.ganesha\.nfsd\.exportmgr\.(Add|Remove)Export, .*
# manila/share/drivers/ganesha/manager.py:
rmconf: RegExpFilter, sh, root, sh, -c, rm -f /.*/\*\.conf$
# ZFS commands
# manila/share/drivers/zfsonlinux/driver.py
# manila/share/drivers/zfsonlinux/utils.py
zpool: CommandFilter, zpool, root
# manila/share/drivers/zfsonlinux/driver.py
# manila/share/drivers/zfsonlinux/utils.py
zfs: CommandFilter, zfs, root
# manila/data/utils.py: 'ls', '-pA1', '--group-directories-first', '%s'
ls: CommandFilter, ls, root
# manila/data/utils.py: 'touch', '--reference=%s', '%s'
touch: CommandFilter, touch, root

View File

@ -1,186 +0,0 @@
#!/usr/bin/env ruby
require 'hiera'
ENV['LANG'] = 'C'
hiera = Hiera.new(:config => '/etc/hiera.yaml')
manila = hiera.lookup 'manila', {}, {}
service_vm_images = manila['service_vm_image']
glanced = hiera.lookup 'glance', {} , {}, nil, :hash
management_vip = hiera.lookup 'management_vip', nil, {}
auth_addr = hiera.lookup 'service_endpoint', "#{management_vip}", {}
tenant_name = glanced['tenant'].nil? ? "services" : glanced['tenant']
user_name = glanced['user'].nil? ? "glance" : glanced['user']
endpoint_type = glanced['endpoint_type'].nil? ? "internalURL" : glanced['endpoint_type']
region_name = hiera.lookup 'region', 'RegionOne', {}
ssl_hash = hiera.lookup 'use_ssl', {}, {}
if ssl_hash['keystone_internal']
auth_proto = 'https'
auth_addr = ssl_hash['keystone_internal_hostname'] || auth_addr
else
auth_proto = 'http'
end
puts "Auth URL is #{auth_proto}://#{auth_addr}:5000/v2.0"
ENV['OS_TENANT_NAME']="#{tenant_name}"
ENV['OS_USERNAME']="#{user_name}"
ENV['OS_PASSWORD']="#{glanced['user_password']}"
ENV['OS_AUTH_URL']="#{auth_proto}://#{auth_addr}:5000/v2.0"
ENV['OS_ENDPOINT_TYPE'] = "#{endpoint_type}"
ENV['OS_REGION_NAME']="#{region_name}"
raise 'Not service_vm_image data!' unless [Array, Hash].include?(service_vm_images.class) && service_vm_images.any?
service_vm_images = [service_vm_images] unless service_vm_images.is_a? Array
service_vm_images.each do |image|
%w(
disk_format
img_path
img_name
os_name
public
container_format
min_ram
).each do |f|
raise "Data field '#{f}' is missing!" unless image[f]
end
end
def image_list
stdout = `glance --verbose image-list`
return_code = $?.exitstatus
images = []
stdout.split("\n").each do |line|
fields = line.split('|').map { |f| f.chomp.strip }
next if fields[1] == 'ID'
next unless fields[2]
images << {fields[2] => fields[6]}
end
{:images => images, :exit_code => return_code}
end
def image_create(image_hash)
command = <<-EOF
/usr/bin/glance image-create \
--name '#{image_hash['img_name']}' \
--visibility '#{image_hash['visibility']}' \
--container-format='#{image_hash['container_format']}' \
--disk-format='#{image_hash['disk_format']}' \
--min-ram='#{image_hash['min_ram']}' \
#{image_hash['glance_properties']} \
--file '#{image_hash['img_path']}'
EOF
puts command
stdout = `#{command}`
return_code = $?.exitstatus
[ stdout, return_code ]
end
# check if Glance is online
# waited until the glance is started because when vCenter used as a glance
# backend launch may takes up to 1 minute.
def wait_for_glance
5.times.each do |retries|
sleep 10 if retries > 0
return if image_list[:exit_code] == 0
end
raise 'Could not get a list of glance images!'
end
# upload image to Glance
# if it have not been already uploaded
def upload_image(image)
if check_image(image)
puts "Image '#{image['img_name']}' is already present and active!"
return 0
else
cleanup_image(image)
end
# convert old API v1 'public' property to API v2 'visibility' property
if image['public'] == 'true'
image['visibility'] = 'public'
else
image['visibility'] = 'private'
end
stdout, return_code = image_create(image)
puts stdout
# check to make sure the image is uploaded and active
if return_code == 0
image_ok = check_image(image)
# retry over ~50 seconds to wait to see if it becomes active
5.times.each do |retries|
break if image_ok
sleep 10
image_ok = check_image(image)
end
end
# if the image upload was successful and it's reporting active then success!
upload_result = (return_code == 0 and image_ok)
if upload_result
puts "Image '#{image['img_name']}' was uploaded from '#{image['img_path']}'"
else
puts "Image '#{image['img_name']}' upload from '#{image['img_path']}' FAILED!"
end
return upload_result
end
# return true if image has been uploaded and active
def check_image(image)
list_of_images = image_list
if list_of_images[:exit_code] == 0 && list_of_images[:images].include?(image['img_name'] => "active")
return true
end
return false
end
# remove the image by name if it is in the list of images
# TODO(aschultz): if the image exists by name multiple times we only remove
# the first one
def cleanup_image(image)
list_of_images = image_list
unless list_of_images[:images].select { |img_hash| img_hash.key?(image['img_name']) }.empty?
delete_image(image['img_name'])
end
end
def delete_image(image_name)
command = "/usr/bin/openstack image delete '#{image_name}'"
puts command
stdout = `#{command}`
return_code = $?.exitstatus
[ stdout, return_code ]
end
########################
wait_for_glance
errors = 0
service_vm_images.each do |image|
success = false
# retry upload 5 times with a 1 minute sleep between tries
5.times.each do |retries|
if upload_image(image)
success = true
break
end
sleep 60
end
errors += 1 unless success
end
if errors > 0
service_vm_images.each do |image|
cleanup_image(image)
end
exit 1
end
exit 0

View File

@ -1,21 +0,0 @@
module Puppet::Parser::Functions
newfunction(:populate_hiera,
:doc => <<-EOS
Add plugin specific data to hiera.
EOS
) do |args|
raise(Puppet::ParseError, 'No file name provided!') if args.size < 3 or args[0] == ""
require 'yaml'
require 'fileutils'
file=args[0]
key=args[1]
value=args[2]
begin
data = YAML::load_file(file)
rescue
data = {"manila" => {}}
end
data["manila"][key] = value
File.open(file, 'w') {|f| f.write data.to_yaml}
end
end

View File

@ -1,22 +0,0 @@
define manila_auxiliary::backend::generic (
$share_driver = 'manila.share.drivers.generic.GenericShareDriver',
$driver_handles_share_servers = 'True',
$service_instance_user = 'manila',
$service_instance_password = 'manila',
$service_image_name = 'manila-service-image',
$path_to_private_key = '/root/.ssh/id_rsa',
$path_to_public_key = '/root/.ssh/id_rsa.pub',
$share_backend_name = $name,
) {
manila_config {
"${name}/share_driver": value => $share_driver;
"${name}/driver_handles_share_servers": value => $driver_handles_share_servers;
"${name}/service_instance_user": value => $service_instance_user;
"${name}/service_instance_password": value => $service_instance_password;
"${name}/service_image_name": value => $service_image_name;
"${name}/path_to_private_key": value => $path_to_private_key;
"${name}/path_to_public_key": value => $path_to_public_key;
"${name}/share_backend_name": value => $share_backend_name;
}~>Service['manila-share']
}

View File

@ -1,29 +0,0 @@
define manila_auxiliary::backend::netapp (
$share_driver = 'manila.share.drivers.netapp.common.NetAppDriver',
$driver_handles_share_servers = 'True',
$netapp_storage_family = 'ontap_cluster',
$netapp_server_hostname = undef,
$netapp_server_port = '80',
$netapp_login = undef,
$netapp_password = undef,
$netapp_transport_type = 'https',
$netapp_root_volume_aggregate = 'aggr1',
$netapp_aggregate_name_search_pattern = '^((?!aggr0).)*$',
$netapp_port_name_search_pattern = '^(e0a)$',
) {
manila_config {
"${name}/share_backend_name": value => $name;
"${name}/share_driver": value => $share_driver;
"${name}/driver_handles_share_servers": value => $driver_handles_share_servers;
"${name}/netapp_storage_family": value => $netapp_storage_family;
"${name}/netapp_server_hostname": value => $netapp_server_hostname;
"${name}/netapp_server_port": value => $netapp_server_port;
"${name}/netapp_login": value => $netapp_login;
"${name}/netapp_password": value => $netapp_password;
"${name}/netapp_transport_type": value => $netapp_transport_type;
"${name}/netapp_root_volume_aggregate": value => $netapp_root_volume_aggregate;
"${name}/netapp_aggregate_name_search_pattern": value => $netapp_aggregate_name_search_pattern;
"${name}/netapp_port_name_search_pattern": value => $netapp_port_name_search_pattern;
}~>Service['manila-share']
}

View File

@ -1,10 +0,0 @@
class manila_auxiliary::conf (
$default_share_type = 'default_share_type',
) {
manila_config {
'DEFAULT/default_share_type': value => $default_share_type;
'DEFAULT/osapi_share_extension': value => 'manila.api.contrib.standard_extensions';
'DEFAULT/enabled_share_protocols': value => 'NFS,CIFS';
'DEFAULT/share_name_template': value => 'share-%s';
}
}

View File

@ -1,64 +0,0 @@
class manila_auxiliary::fs () {
user {'manila':
ensure => 'present',
home => '/var/lib/manila',
shell => '/bin/bash',
system => true,
}->
file {'/etc/manila':
ensure => 'directory',
owner => 'manila',
group => 'manila',
}->
file {'/etc/manila/rootwrap.d':
ensure => 'directory',
owner => 'manila',
group => 'manila',
}
file {'/var/log/manila':
ensure => 'directory',
owner => 'manila',
group => 'manila',
}
file {'/var/lib/manila':
ensure => 'directory',
owner => 'manila',
group => 'manila',
}->
file {'/var/lib/manila/tmp':
ensure => 'directory',
owner => 'manila',
group => 'manila',
}
file {'/etc/manila/api-paste.ini':
source => 'puppet:///modules/manila_auxiliary/api-paste.ini',
owner => 'manila',
group => 'manila',
}
file {'/etc/manila/logging_sample.conf':
source => 'puppet:///modules/manila_auxiliary/logging_sample.conf',
owner => 'manila',
group => 'manila',
}
file {'/etc/manila/policy.json':
source => 'puppet:///modules/manila_auxiliary/policy.json',
owner => 'manila',
group => 'manila',
}
file {'/etc/manila/rootwrap.conf':
source => 'puppet:///modules/manila_auxiliary/rootwrap.conf',
owner => 'root',
group => 'root',
}
file {'/etc/manila/rootwrap.d/share.filters':
source => 'puppet:///modules/manila_auxiliary/share.filters',
owner => 'root',
group => 'root',
}
file {'/etc/sudoers.d/manila-common':
source => 'puppet:///modules/manila_auxiliary/manila-common',
owner => 'root',
group => 'root',
}
}

View File

@ -1,79 +0,0 @@
# == Class: manila_auxiliary::haproxy
#
# HA configuration for OpenStack Manila
#
# === Parameters
#
# [*internal_virtual_ip*]
# (required) String. This is the ipaddress to be used for the internal facing
# vip
#
# [*ipaddresses*]
# (required) Array. This is an array of ipaddresses for the backend services
# to be loadbalanced
#
# [*public_ssl*]
# (optional) Boolean. If true, enables SSL for $public_virtual_ip
# Defaults to false.
#
# [*public_ssl_path*]
# (optional) String. Filesystem path to the file with public certificate
# content
# Defaults to undef
#
# [*internal_ssl*]
# (optional) Boolean. If true, enables SSL for $internal_virtual_ip
# Defaults to false.
#
# [*internal_ssl_path*]
# (optional) String. Filesystem path to the file with internal certificate
# content
# Defaults to undef
#
# [*public_virtual_ip*]
# (required) String. This is the ipaddress to be used for the external facing
# vip
#
# [*server_names*]
# (required) Array. This is an array of server names for the haproxy service
#
class manila_auxiliary::haproxy (
$internal_virtual_ip,
$ipaddresses,
$public_virtual_ip,
$server_names,
$public_ssl = false,
$public_ssl_path = undef,
$internal_ssl = false,
$internal_ssl_path = under,
) {
Openstack::Ha::Haproxy_service {
internal_virtual_ip => $internal_virtual_ip,
ipaddresses => $ipaddresses,
public_virtual_ip => $public_virtual_ip,
server_names => $server_names,
}
openstack::ha::haproxy_service { 'manila-api':
order => '070',
listen_port => 8786,
public => true,
public_ssl => $public_ssl,
public_ssl_path => $public_ssl_path,
internal_ssl => $internal_ssl,
internal_ssl_path => $internal_ssl_path,
require_service => 'manila-api',
server_names => $server_names,
ipaddresses => $ipaddresses,
define_backups => true,
haproxy_config_options => {
option => ['httpchk', 'httplog', 'httpclose'],
'http-request' => 'set-header X-Forwarded-Proto https if { ssl_fc }',
},
balancermember_options => 'check inter 10s fastinter 2s downinter 3s rise 3 fall 3',
}
firewall {'8786 manila-api':
port => [8786],
proto => 'tcp',
action => 'accept',
}
}

View File

@ -1,20 +0,0 @@
class manila_auxiliary::image (
$src_image = 'http://host/manila-service-image.qcow2',
$image = 'manila-service-image.qcow2',
){
file {'/tmp/upload_cirros.rb':
source => 'puppet:///modules/manila_auxiliary/upload_cirros.rb',
}->
exec {'wget_service_image':
command => "wget ${src_image} -O /tmp/${image}",
path => '/usr/bin',
}->
exec {'upload-service-image':
command => 'ruby /tmp/upload_cirros.rb',
path => '/usr/bin',
}->
exec {'del_service_image':
command => "/bin/rm /tmp/${image}",
path => '/usr/bin',
}
}

View File

@ -1,159 +0,0 @@
# Class: manila_auxiliary
# ===========================
#
# Full description of class manila_auxiliary here.
#
# Parameters
# ----------
#
# Document parameters here.
#
# * `sample parameter`
# Explanation of what this parameter affects and what it defaults to.
# e.g. "Specify one or more upstream ntp servers as an array."
#
# Variables
# ----------
#
# Here you should define a list of variables that this module would require.
#
# * `sample variable`
# Explanation of how this variable affects the function of this class and if
# it has a default. e.g. "The parameter enc_ntp_servers must be set by the
# External Node Classifier as a comma separated list of hostnames." (Note,
# global variables should be avoided in favor of class parameters as
# of Puppet 2.6.)
#
# Examples
# --------
#
# @example
# class { 'manila_auxiliary':
# servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
# }
#
# Authors
# -------
#
# Author Name <author@domain.com>
#
# Copyright
# ---------
#
# Copyright 2016 Your name here, unless otherwise noted.
#
class manila_auxiliary (
$sql_connection = $sql_conn,
$shared_backends = undef,
$amqp_durable_queues = 'False',
$rabbit_userid = 'nova',
$rabbit_hosts = undef,
$rabbit_use_ssl = 'False',
$rabbit_password = undef,
$ssl_cert_source = undef,
$auth_url = undef,
$auth_uri = undef,
$cinder_pass = undef,
$br_mgmt_ip = undef,
$manila_pass = undef,
$neutron_pass = undef,
$nova_pass = undef,
$project_domain_id = 'default',
$project_name = 'services',
$user_domain_id = 'default',
$project_domain_name = 'Default',
$verbose = $verbose,
$debug = $debug,
) {
$lcfs = '%(asctime)s.%(msecs)d %(color)s%(levelname)s %(name)s %(request_id)s %(user_id)s %(project_id)s%(color)s] %(instance)s%(color)s%(message)s'
$ldfs = '%(asctime)s.%(msecs)d %(color)s%(levelname)s %(name)s -%(color)s %(instance)s%(color)s%(message)s'
$ldeb = 'from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d'
$lep = '%(color)s%(asctime)s.%(msecs)d TRACE %(name)s %(instance)s'
$scheduler_driver = 'manila.scheduler.drivers.filter.FilterScheduler'
manila_config {
'DEFAULT/api_paste_config': value => '/etc/manila/api-paste.ini';
'DEFAULT/state_path': value => '/var/lib/manila';
'DEFAULT/osapi_share_extension': value => 'manila.api.contrib.standard_extensions';
'DEFAULT/default_share_type': value => 'default_share_type';
'DEFAULT/rootwrap_config': value => '/etc/manila/rootwrap.conf';
'DEFAULT/auth_strategy': value => 'keystone';
'DEFAULT/enabled_share_backends': value => $shared_backends;
'DEFAULT/enabled_share_protocols': value => 'NFS,CIFS';
'DEFAULT/share_name_template': value => 'share-%s';
'DEFAULT/scheduler_driver': value => $scheduler_driver;
'DEFAULT/debug': value => $debug;
'DEFAULT/logging_context_format_string': value => $lcfs;
'DEFAULT/logging_default_format_string': value => $ldfs;
'DEFAULT/logging_debug_format_suffix': value => $ldeb;
'DEFAULT/logging_exception_prefix': value => $lep;
'DEFAULT/rpc_backend': value => 'rabbit';
}
manila_config {
'oslo_messaging_rabbit/amqp_durable_queues': value => $amqp_durable_queues;
'oslo_messaging_rabbit/rabbit_hosts': value => $rabbit_hosts;
'oslo_messaging_rabbit/rabbit_use_ssl': value => $rabbit_use_ssl;
'oslo_messaging_rabbit/rabbit_userid': value => $rabbit_userid;
'oslo_messaging_rabbit/rabbit_password': value => $rabbit_password;
'oslo_messaging_rabbit/rabbit_virtual_host': value => '/';
'oslo_messaging_rabbit/rabbit_ha_queues': value => 'True';
'oslo_messaging_rabbit/heartbeat_rate': value => '2';
}
manila_config {
'oslo_concurrency/lock_path': value => '/var/lib/manila/tmp';
}
manila_config {
'database/connection': value => $sql_connection;
}
manila_config {
'cinder/auth_url': value => $auth_url;
'cinder/auth_type': value => 'password';
'cinder/password': value => $cinder_pass;
'cinder/project_domain_id': value => $project_domain_id;
'cinder/project_name': value => $project_name;
'cinder/user_domain_id': value => $user_domain_id;
'cinder/username': value => 'cinder';
}
manila_config {
'keystone_authtoken/auth_uri': value => $auth_uri;
'keystone_authtoken/signing_dir': value => '/tmp/keystone-signing-manila';
'keystone_authtoken/memcached_servers': value => "${br_mgmt_ip}:11211";
'keystone_authtoken/admin_password': value => $manila_pass;
'keystone_authtoken/admin_tenant_name': value => $project_name;
'keystone_authtoken/identity_uri': value => $auth_uri;
'keystone_authtoken/admin_user': value => 'manila';
'keystone_authtoken/signing_dirname': value => '/tmp/keystone-signing-manila';
}
manila_config {
'neutron/auth_url': value => $auth_url;
'neutron/auth_type': value => 'password';
'neutron/password': value => $neutron_pass;
'neutron/project_domain_id': value => $project_domain_id;
'neutron/project_domain_name': value => $project_domain_name;
'neutron/project_name': value => $project_name;
'neutron/user_domain_id': value => $user_domain_id;
'neutron/username': value => 'neutron';
}
manila_config {
'nova/auth_url': value => $auth_url;
'nova/auth_type': value => 'password';
'nova/password': value => $nova_pass;
'nova/project_domain_id': value => $project_domain_id;
'nova/project_name': value => $project_name;
'nova/user_domain_id': value => $user_domain_id;
'nova/username': value => 'nova';
}
if $ssl_cert_source in 'self_signed' {
manila_config {
'nova/api_insecure': value => True;
'nova/insecure': value => True;
'neutron/insecure': value => True;
'cinder/api_insecure': value => True;
'cinder/insecure': value => True;
}
}
}

View File

@ -1,24 +0,0 @@
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
define manila_auxiliary::initd(
$desc = 'some manila init script',
$srv = 'manila-something',
){
file {"/etc/init/${srv}.conf":
ensure => present,
content => template('manila_auxiliary/init.erb'),
notify => Service[$srv],
}
}

View File

@ -1,11 +0,0 @@
class manila_auxiliary::meta (
) {
file {'/tmp/meta.sh':
source => 'puppet:///modules/manila_auxiliary/meta.sh',
mode => 0755,
}->
exec {'manila_meta':
command => '/tmp/meta.sh',
path => '/bin:/usr/bin',
}
}

View File

@ -1,38 +0,0 @@
class manila_auxiliary::services (
) {
if roles_include(['controller', 'primary-controller']) {
exec { 'manual_db_sync':
command => 'manila-manage db sync',
path => '/usr/bin',
user => 'manila',
}->
service { 'manila-api':
ensure => 'running',
name => 'manila-api',
enable => true,
hasstatus => true,
}->
service { 'manila-scheduler':
ensure => 'running',
name => 'manila-scheduler',
enable => true,
hasstatus => true,
}
} elsif roles_include(['manila-share']) {
service { 'manila-share':
ensure => 'running',
name => 'manila-share',
enable => true,
hasstatus => true,
}
} elsif roles_include(['manila-data']) {
service {'manila-data':
ensure => 'running',
name => 'manila-data',
enable => true,
hasstatus => true,
}
}
}

View File

@ -1,15 +0,0 @@
{
"name": "mirantis-manila_auxiliary",
"version": "0.1.0",
"author": "mirantis",
"summary": "Auxilary things for manila installation and configuration",
"license": "Apache-2.0",
"source": "",
"project_page": null,
"issues_url": null,
"dependencies": [
{"name":"puppetlabs-stdlib","version_requirement":">= 1.0.0"}
],
"data_provider": null
}

View File

@ -1,7 +0,0 @@
require 'spec_helper'
describe 'manila_auxiliary' do
context 'with defaults for all parameters' do
it { should contain_class('manila_auxiliary') }
end
end

View File

@ -1 +0,0 @@
require 'puppetlabs_spec_helper/module_spec_helper'

View File

@ -1,22 +0,0 @@
description "<%= @desc %>"
author "Igor Gajsin <igajsin@mirantis.com>"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 20 5
limit nofile 65535 65535
chdir /var/run
pre-start script
mkdir -p /var/run/manila
chown manila:manila /var/run/manila
mkdir -p /var/lock/manila
chown manila:root /var/lock/manila
end script
exec start-stop-daemon --start --chuid manila --exec /usr/bin/<%= @srv %> \
-- --config-file=/etc/manila/manila.conf --log-file=/var/log/manila/<%= @srv %>.log

View File

@ -1,12 +0,0 @@
# The baseline for module testing used by Puppet Labs is that each manifest
# should have a corresponding test manifest that declares that class or defined
# type.
#
# Tests are then run by using puppet apply --noop (to check for compilation
# errors and view a log of events) or by fully applying the test in a virtual
# environment (to compare the resulting system state to the desired state).
#
# Learn more about module testing here:
# http://docs.puppetlabs.com/guides/tests_smoke.html
#
include manila_auxiliary

View File

@ -1,267 +0,0 @@
# Groups
# Manila - Share
- id: manila-share
type: group
version: 2.1.0
role: [manila-share]
tasks: [hiera, globals, setup_repositories, tools, logging, netconfig, firewall, hosts, ntp-client, dns-client, cgroups, manila-hiera, deploy_start]
required_for: [deploy_end]
requires: [deploy_start, primary-controller]
parameters:
strategy:
type: one_by_one
# Manila - Data
- id: manila-data
type: group
version: 2.1.0
role: [manila-data]
tasks: [hiera, globals, setup_repositories, tools, logging, netconfig, firewall, hosts, ntp-client, dns-client, cgroups, manila-hiera, deploy_start]
required_for: [deploy_end]
requires: [deploy_start, primary-controller]
parameters:
strategy:
type: one_by_one
# Tasks
- id: manila-generate_keys
type: shell
groups: [master]
version: 2.1.0
requires: [pre_deployment_start]
required_for: [manila-copy_keys]
parameters:
cmd: sh /var/www/nailgun/plugins/fuel-plugin-manila-1.0/gen_keys.sh {CLUSTER_ID}
timeout: 180
- id: manila-copy_keys
type: copy_files
version: 2.1.0
role: ['/.*/']
required_for: [pre_deployment_end]
requires: [manila-generate_keys]
cross-depends:
- name: manila-generate_keys
role: master
parameters:
files:
- src: /var/lib/fuel/keys/{CLUSTER_ID}/manila/manila.pub
dst: /var/lib/astute/manila/manila.pub
- src: /var/lib/fuel/keys/{CLUSTER_ID}/manila/manila
dst: /var/lib/astute/manila/manila
permissions: '0600'
dir_permissions: '0700'
- id: manila-gen_password
type: shell
groups: [master]
version: 2.1.0
requires: [pre_deployment_start]
required_for: [manila-hiera]
parameters:
cmd: sh /var/www/nailgun/plugins/fuel-plugin-manila-1.0/gen_password.sh {CLUSTER_ID}
timeout: 180
- id: manila-hiera
type: copy_files
version: 2.1.0
role: ['/.*/']
required_for: [manila-keystone]
requires: [manila-gen_password]
cross_depends:
- name: manila-gen_password
role: master
parameters:
files:
- src: /etc/fuel/cluster/{CLUSTER_ID}/fuel-plugin-manila.yaml
dst: /etc/hiera/plugins/fuel-plugin-manila.yaml
permissions: '0600'
dir_permissions: '0700'
- id: manila-keystone
type: puppet
groups: [primary-controller]
version: 2.1.0
requires: [manila-hiera, primary-openstack-controller]
required_for: [manila-db]
cross-depends:
- name: keystone-db
cross-depended-by:
- name: deploy_end
parameters:
puppet_manifest: "puppet/manifests/keystone.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-db
type: puppet
groups: [primary-controller]
version: 2.1.0
required_for: [manila-main]
requires: [primary-database, database, manila-hiera]
condition:
yaql_exp: >
changedAny($.mysql, $.network_metadata.vips, $.get('database_vip'))
cross-depends:
- name: /^(primary-)?database$/
cross-depended-by:
- name: deploy_end
parameters:
puppet_manifest: "puppet/manifests/db.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-share-network-common-config
type: puppet
version: 2.1.0
groups: [manila-share]
required_for: [openstack-network-end]
requires: [hosts, firewall]
condition:
yaql_exp: >
changedAny($.get('openstack_network'), $.get('verbose'), $.debug,
$.quantum_settings, $.neutron_advanced_configuration, $.rabbit,
$.ceilometer, $.network_scheme, $.get('use_syslog'),
$.get('use_stderr'), $.get('syslog_log_facility_neutron'),
$.network_metadata.nodes.values().where(
$.node_roles.any($.matches('controller'))).network_roles.select(
$.get('mgmt/messaging')),
$.get('amqp_hosts'), $.get('kombu_compression'))
cross-depends:
- name: /^openstack-network-common-config$/
role: primary-controller
parameters:
puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/openstack-network/common-config.pp
puppet_modules: /etc/puppet/modules
timeout: 1800
- id: manila-share-network-plugins-l2
type: puppet
version: 2.1.0
groups: [manila-share]
required_for: [manila-install]
requires: [manila-share-network-common-config]
refresh_on: [neutron_agent_ovs]
cross-depends:
- name: primary-openstack-network-plugins-l2
role: primary-controller
parameters:
puppet_manifest: /etc/puppet/modules/openstack_tasks/examples/openstack-network/plugins/ml2.pp
puppet_modules: /etc/puppet/modules
timeout: 1800
- id: manila-install
type: puppet
groups: [primary-controller, controller, manila-share, manila-data]
version: 2.1.0
required_for: [manila-main]
requires: [manila-db]
cross-depends:
- name: manila-db
parameters:
puppet_manifest: "puppet/manifests/install.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-image_upload
type: puppet
groups: [primary-controller]
version: 2.1.0
required_for: [manila-main]
requires: [manila-install]
parameters:
puppet_manifest: "puppet/manifests/image_upload.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-haproxy
type: puppet
groups: [primary-controller, controller]
version: 2.1.0
requires: [manila-install]
required_for: [manila-main]
parameters:
puppet_manifest: "puppet/manifests/haproxy.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-main
type: puppet
groups: [primary-controller, controller, manila-share, manila-data]
version: 2.1.0
cross-depends:
- name: manila-db
cross-depended-by:
- name: deploy_end
requires: [manila-install, manila-haproxy, manila-hiera]
parameters:
puppet_manifest: "puppet/manifests/site.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-db-sync
type: puppet
groups: [primary-controller]
version: 2.1.0
requires: [manila-main, manila-db]
required_for: [manila-controller-start]
parameters:
puppet_manifest: "puppet/manifests/db-sync.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-controller-start
type: puppet
groups: [primary-controller, controller]
version: 2.1.0
requires: [manila-main]
cross-depends:
- name: manila-db-sync
parameters:
puppet_manifest: "puppet/manifests/start_controller.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-data-start
type: puppet
groups: [manila-data]
version: 2.1.0
requires: [manila-main]
parameters:
puppet_manifest: "puppet/manifests/start_data.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-share-start
type: puppet
groups: [manila-share]
version: 2.1.0
requires: [manila-main]
parameters:
puppet_manifest: "puppet/manifests/start_share.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-ui
type: puppet
groups: [primary-controller, controller]
version: 2.1.0
requires: [manila-main]
parameters:
puppet_manifest: "puppet/manifests/ui.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600
- id: manila-meta
type: puppet
groups: [primary-controller]
version: 2.1.0
requires: [manila-controller-start]
parameters:
puppet_manifest: "puppet/manifests/meta.pp"
puppet_modules: "puppet/modules:/etc/puppet/modules"
timeout: 3600

View File

@ -1,212 +0,0 @@
================================
Test Plan for Manila Fuel plugin
================================
Table of contents
-----------------
1. `Introduction`_
2. `Governing Evaluation Mission`_
3. `Test Approach`_
4. `Deliverables`_
5. `Test Cycle Structure`_
6. Test lists:
a) `Smoke and BVT tests`_
b) `Integration tests`_
c) `Functional tests`_
d) `Failover tests`_
e) `System tests`_
f) `Graphical UI tests`_
.. _Introduction:
Introduction
------------
1.1.Purpose
-----------
This document describes Master Test Plan for Manila Fuel Plugin. The scope of
this plan defines the following objectives:
* describe testing activities;
* outline testing approach, test types, test cycles that will be used;
* test mission;
* deliverables;
1.2.Intended Audience
---------------------
This document is intended for Manila project team staff (QA and Dev engineers
and managers) all other persons who are interested in testing results.
.. _Governing Evaluation Mission:
Governing Evaluation Mission
----------------------------
There is the Manila project that provides a shared file system service for
OpenStack. It's the new OpenStack project that provides coordinated access to
shared or distributed file systems. The Manila has multiple storage backends (
to support vendor or file system specific nuances/capabilities) that could
work simultaneously on one environment.
The Fuel Manila plugin adds utilization the corresponding OpenStack service in
an Fuel environment.
2.1. Evaluation Test Mission
----------------------------
* Lab environment deployment.
* Deploy MOS with developed plugin installed.
* Create and run specific tests for plugin/deployment.
* Documentation
2.2. Test items
---------------
* Manila UI;
* Fuel CLI;
* Fuel API;
* Fuel UI;
* MOS UI;
* MOS API.
.. _Test Approach:
Test Approach
-------------
The project test approach consists of BVT, Acceptance Integration/System and
Regression test levels.
3.1 Criteria for test process starting
--------------------------------------
Before test process can be started it is needed to make some preparation
actions - to execute important preconditions.The following steps must be
executed successfully for starting test phase:
* all project requirements are reviewed and confirmed;
* implementation of features has finished (a new build is ready for testing);
* implementation code is stored in GIT;
* bvt-tests are executed successfully (100% success);
* test environment is prepared with correct configuration;
* test environment contains the last delivered build for testing;
* test plan is ready and confirmed internally;
* implementation of manual tests and necessary autotests has finished.
3.2. Suspension Criteria
------------------------
Testing of a particular feature is suspended if there is a blocking issue
which prevents tests execution. Blocking issue can be one of the following:
* Feature has a blocking defect, which prevents further usage of this feature
and there is no workaround available;
* CI test automation scripts failure.
3.3. Feature Testing Exit Criteria
----------------------------------
Testing of a feature can be finished when:
* all planned tests (prepared before) for the feature are executed;
* no defects are found during this run;
* all planned tests for the feature are executed;
* defects found during this run are verified or confirmed to be acceptable
(known issues);
The time for testing of that feature according to the project plan has run out
and Project Manager confirms that no changes to the schedule are possible.
.. _Deliverables:
Deliverables
------------
4.1 List of deliverables
------------------------
Project testing activities are to be resulted in the following reporting
documents:
* Test plan;
* Test run report from TestRail;
4.2. Acceptance criteria
------------------------
90% of tests cases should be with status - passed. Critical and high issues
are fixed.
Manual tests should be executed and pass:
**Steps:**
1. Deploy cluster with Manila plugin enabled.
2. TBD
.. _Test Cycle Structure:
Test Cycle Structure
--------------------
An ordinary test cycle for each iteration consists of the following steps:
* Smoke testing of each build ready for testing;
* Verification testing of each build ready for testing;
* Regression testing cycles in the end of iteration;
* Creation of a new test case for covering of a new found bug (if such test
does not exist).
5.1.1 Smoke Testing
-------------------
Smoke testing is intended to check a correct work of a system after new build
delivery. Smoke tests allow to be sure that all main system functions/features
work correctly according to customer requirements.
5.1.2 Verification testing
--------------------------
Verification testing includes functional testing covering the following:
new functionality (implemented in the current build);
critical and major defect fixes (introduced in the current build).
Some iteration test cycles also include non-functional testing types described
in Overview of Planned Tests.
5.1.3 Regression testing
------------------------
Regression testing includes execution of a set of test cases for features
implemented before current iteration to ensure that following modifications of
the system haven't introduced or uncovered software defects. It also includes
verification of minor defect fixes introduced in the current iteration.
5.1.4 Bug coverage by new test case
-----------------------------------
Bug detection starts after all manual and automated tests are prepared and
test process initiated. Ideally, each bug must be clearly documented and
covered by test case. If a bug without a test coverage was found it must be
clearly documented and covered by custom test case to prevent occurrence of
this bug in future deployments/releases etc. All custom manual test cases
suppose to be added into TestRail and automated tests suppose to be pushed to
Git/Gerrit repo.
5.2 Metrics
-----------
Test case metrics are aimed to estimate a quality of bug fixing;detect not
executed tests and schedule their execution.
* passed / Failed test cases - this metric shows results of test cases
execution, especially, a ratio between test cases passed successfully and
failed ones. Such statistics must be gathered after each delivered build
test. This will help to identify a progress in successful bugs fixing.
Ideally, a count of failed test cases should aim to a zero.
* Not Run test cases - this metric shows a count of test cases which should
be run within a current test phase (have not run yet). Having such
statistics, there is an opportunity to detect and analyze a scope of not run
test cases, causes of their non execution and planning of their further
execution (detect time frames, responsible QA)
.. _Smoke and bvt tests:
.. include:: test_suite_smoke_bvt.rst
.. _Integration tests:
.. include:: test_suite_integration.rst
.. _Functional tests:
.. include:: test_suite_functional.rst
.. _Failover tests:
.. include:: test_suite_failover.rst
.. _System tests:
.. include:: test_suite_system.rst
.. _Graphical UI tests:
.. include:: test_suite_gui.rst

View File

@ -1,260 +0,0 @@
Failover
========
Check cluster and manila functionality after controller shutdown/reboot
-----------------------------------------------------------------------
ID
##
manila_shut_reb_controller
Description
###########
Verify that manila-service works after controllers shutdown/reboot.
Complexity
##########
core
Steps
#####
1. Install Manila plugin on master node.
2. Create a new ha environment.
3. Add at least 3 nodes controller, 1 with manila-data and 1 with
manila-share and 1 compute node roles.
4. Deploy cluster.
5. Shutdown primary controller node.
6. Run OSTF.
7. Verify Manila service basic functionality (share add/mount).
8. Reboot controller node which becomes primary.
9. Run OSTF.
10. Verify Manila service basic functionality (share add/mount).
Expected result
###############
All steps must be completed successfully, without any errors.
Check cluster and manila functionality after compute shutdown/reboot
--------------------------------------------------------------------
ID
##
manila_shut_reb_compute
Description
###########
Verify that manila-service works after compute shutdown/reboot.
Complexity
##########
core
Steps
#####
1. Install Manila plugin on master node.
2. Create a new environment.
3. Add at least 2 nodes compute role, 1 with manila-data and 1 with
manila-share roles.
4. Deploy cluster.
5. Reboot first and shutdown second compute node.
6. Run OSTF.
7. Verify Manila service basic functionality (share add/mount).
8. Bring up compute second node, and shutdown first compute node.
9. Verify Manila service basic functionality (share add/mount).
10. Run OSTF.
Expected result
###############
All steps must be completed successfully, without any errors.
Check cluster and manila functionality after manila-share shutdown/reboot
-------------------------------------------------------------------------
ID
##
manila_shut_reb_share
Description
###########
Verify that manila-service works after manila-share shutdown/reboot.
Complexity
##########
core
Steps
#####
1. Install Manila plugin on master node.
2. Create a new environment.
3. Add at least 2 nodes manila-share role, 1 with manila-data role.
4. Deploy cluster.
5. Shutdown first manila-share and reboot second manila-share node.
6. Run OSTF.
7. Verify Manila service basic functionality (share add/mount).
8. Bring up first manila-share node, and shutdown second manila-share node.
9. Verify Manila service basic functionality (share add/mount).
10. Run OSTF.
Expected result
###############
All steps must be completed successfully, without any errors.
Check cluster and manila functionality after manila-data shutdown/reboot
-------------------------------------------------------------------------
ID
##
manila_shut_reb_data
Description
###########
Verify that manila-service works after manila-data shutdown/reboot.
Complexity
##########
core
Steps
#####
1. Install Manila plugin on master node.
2. Create a new environment.
3. Add at least 2 nodes manila-data role, 1 with manila-share role.
4. Deploy cluster.
5. Shutdown first manila-data and reboot second manila-data node.
6. Run OSTF.
7. Verify Manila service basic functionality (share add/mount).
8. Bring up first manila-data node, and shutdown second manila-data node.
9. Verify Manila service basic functionality (share add/mount).
10. Run OSTF.
Expected result
###############
All steps must be completed successfully, without any errors.
Check cluster and manila functionality after cinder shutdown/reboot
-------------------------------------------------------------------
ID
##
manila_shut_reb_cinder
Description
###########
Verify that manila-service works after cinder shutdown/reboot.
Complexity
##########
core
Steps
#####
1. Install Manila plugin on master node.
2. Create a new environment.
3. Add at least 2 nodes cinder roles, 1 with manila-share and 1 with
manila-share role.
4. Deploy cluster.
5. Run OSTF.
6. Shutdown first and reboot second cinder node.
7. Verify Manila service basic functionality (share add/mount).
8. Run OSTF.
9. Bring up first cinder node, and shutdown second cinder node.
10. Verify Manila service basic functionality (share add/mount).
11. Run OSTF.
Expected result
###############
All steps must be completed successfully, without any errors.
Check cluster and manila functionality after ceph-osd reboot
------------------------------------------------------------
ID
##
manila_shut_reb_ceph-osd
Description
###########
Verify that manila-service works after ceph-osd shutdown/reboot.
Complexity
##########
core
Steps
#####
1. Install Manila plugin on master node.
2. Create a new environment.
3. Add at least 3 nodes ceph-osd roles, 1 with manila-share and 1 with
manila-share role.
4. Deploy cluster.
5. Shutdown first ceph-osd node.
6. Verify Manila service basic functionality (share add/mount).
7. Run OSTF.
8. Bring up first ceph-osd node and reboot second
9. Verify Manila service basic functionality (share add/mount).
10. Run OSTF.
Expected result
###############
All steps must be completed successfully, without any errors.

View File

@ -1,274 +0,0 @@
================
Functional tests
================
Controller delete/add test
--------------------------
ID
##
manila_del_add_controllers
Description
###########
Verify that node with controller role can be deleted and added after deploying.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment.
3. Add at least 3 nodes with controller role.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
7. Delete a Controller node and deploy changes.
8. Deploy cluster with plugin.
9. Run OSTF.
10. Verify Manila service basic functionality (share create/mount).
11. Add a Controller node and deploy changes.
12. Deploy cluster with plugin.
13. Run OSTF.
14. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Compute delete/add test
-----------------------
ID
##
manila_del_add_compute
Description
###########
Verify that node with compute role can be deleted and added after deploying.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment.
3. Add at least 2 nodes with compute role.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
7. Delete a compute node and deploy changes.
8. Deploy cluster with plugin.
9. Run OSTF.
10. Verify Manila service basic functionality (share create/mount).
11. Add a compute node and deploy changes.
12. Deploy cluster with plugin.
13. Run OSTF.
14. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Cinder delete/add test
----------------------
ID
##
manila_del_add_cinder
Description
###########
Verify that node with cinder role can be deleted and added after deploying.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment.
3. Add at least 2 nodes with cinder role.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
7. Delete a cinder node and deploy changes.
8. Deploy cluster with plugin.
9. Run OSTF.
10. Verify Manila service basic functionality (share create/mount).
11. Add a cinder node and deploy changes.
12. Deploy cluster with plugin.
13. Run OSTF.
14. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Manila-share delete/add test
----------------------------
ID
##
manila_del_add_share
Description
###########
Verify that node with manila-share role can be deleted and added after deploying.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment.
3. Add at least 2 nodes with manila-share role.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
7. Delete a manila-share node and deploy changes.
8. Deploy cluster with plugin.
9. Run OSTF.
10. Verify Manila service basic functionality (share create/mount).
11. Add a manila-share node and deploy changes.
12. Deploy cluster with plugin.
13. Run OSTF.
14. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Manila-data delete/add test
---------------------------
ID
##
manila_del_add_data
Description
###########
Verify that node with manila-data role can be deleted and added after deploying.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment.
3. Add at least 2 nodes with manila-data role.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
7. Delete a manila-data node and deploy changes.
8. Deploy cluster with plugin.
9. Run OSTF.
10. Verify Manila service basic functionality (share create/mount).
11. Add a manila-data node and deploy changes.
12. Deploy cluster with plugin.
13. Run OSTF.
14. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Ceph add test
-------------
ID
##
manila_add_ceph
Description
###########
Verify that node with ceph-osd role can added after deploying.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment.
3. Add at least 3 nodes with ceph-osd role.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
7. Add another ceph-osd node and deploy changes.
8. Deploy cluster with plugin.
9. Run OSTF.
10. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.

View File

@ -1,85 +0,0 @@
=========
GUI tests
=========
GUI defaults test
-----------------
ID
##
manila_gui_defalts
Description
###########
Check default settings for Manila Plugin via GUI.
Complexity
##########
core
Steps
#####
1. Upload plugins to the master node and install.
2. Create a new environment.
3. Verify default settings for Plugin:
Plugin is enabled, generic driver is enabled, default values for the
rest fields are present.
Expected results
################
All steps must be completed successfully, without any errors.
GUI field validation test
-------------------------
ID
##
manila_gui_validation
Description
###########
Check validation messages for Manila Plugin settings via GUI.
Complexity
##########
core
Steps
#####
1. Upload plugins to the master node and install.
2. Create a new environment.
3. Check validation for setting Image name.
4. Check validation for setting NetApp server Hostname.
5. Check validation for setting NetApp transport type.
6. Check validation for setting NetApp server port.
7. Check validation for setting NetApp username.
8. Check validation for setting NetApp password.
9. Check validation for setting NetApp volume aggregate.
10. Check validation for setting NetApp pattern for aggregation names.
11. Check validation for setting NetApp pattern for storage port names.
Expected results
################
All steps must be completed successfully, without any errors.

View File

@ -1,266 +0,0 @@
=================
Integration tests
=================
Multiple manila share nodes test
--------------------------------
ID
##
manila_share_ha
Description
###########
Deploy a cluster with at least two nodes with Manila-share role.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with at least 2 Manila-share and 1 Manila-data roles.
3. Deploy cluster with plugin.
4. Run OSTF.
5. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Multiple manila data nodes test
--------------------------------
ID
##
manila_data_ha
Description
###########
Deploy a cluster with two nodes with Manila-data role.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with at least 2 Manila-data and 1 Manila-share roles.
3. Deploy cluster with plugin.
4. Run OSTF.
5. Verify Manila service basic functionality (share create/mount)
Expected results
################
All steps must be completed successfully, without any errors.
Both Cinder and Ceph test
-------------------------
ID
##
manila_both_cinder_ceph
Description
###########
Deploy a cluster using Ceph as a backend for block storage and cinder for other (image, object and
ephemeral).
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Set Ceph as a backend for block storage.
3. Create environment with at least 1 Manila-data 1 Manila-share 1 Cinder
and 3 Ceph-OSD.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Ceilometer enabled test
-----------------------
ID
##
manila_with_ceilometer
Description
###########
Deploy a cluster with additional component Ceilometer.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with enabled component Ceilometer.
3. Configure nodes with at least 3 Mongo-DB 1 Manila-data and
1 Manila-share roles.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Murano enabled test
-------------------
ID
##
manila_with_murano
Description
###########
Deploy a cluster with additional component Murano.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with enabled component Murano.
3. Configure nodes with at least 1 Manila-data and 1 Manila-share.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Sahara enabled test
-------------------
ID
##
manila_with_sahara
Description
###########
Deploy a cluster with additional component Sahara.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with enabled component Sahara.
3. Configure nodes: at least 1 Manila-data 1 Manila-share.
4. Deploy cluster with plugin.
5. Run OSTF.
6. Verify Manila service basic functionality (share create/mount).
Expected results
################
All steps must be completed successfully, without any errors.
Enabled driver and redeploy
---------------------------
ID
##
manila_enable_after_deploy
Description
###########
Verify redeploy of cluster with enabled driver
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with disabled manila plugin.
3. Deploy cluster.
4. Run OSTF.
5. Enable and configure plugin for deployed environment.
6. Configure nodes: at least 1 Manila-data 1 Manila-share.
7. Re-deploy cluster.
8. Verify Manila service basic functionality (share create/mount).
9. Run OSTF.
Expected results
################
All steps must be completed successfully, without any errors.

View File

@ -1,129 +0,0 @@
===============
Smoke/BVT tests
===============
Instalation test
----------------
ID
##
manila_install
Description
###########
Check install/uninstall Manila Plugin functionality.
Complexity
##########
core
Steps
#####
1. Upload plugins to the master node and install.
2. Create a new environment
3. Enable Manila plugin for new environment.
4. Attempt to remove enabled plugin.
5. Disable plugin
6. Remove Plugin Manila
Expected results
################
All steps must be completed successfully, without any errors.
Smoke test
----------
ID
##
manila_smoke
Description
###########
Deploy a cluster with Manila Plugin.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with "Neutron with VLAN segmentation" as
a network configuration.
3. Enable plugin.
4. Configure environment:
* Add a node with Controller + role.
* Add a node with Compute + Cinder + Manila-share + Manila-data roles.
* Add a node with Compute + Cinder roles.
5. Run network check
6. Deploy cluster with plugin.
7. Verify Manila service basic functionality (share add/mount)
Expected results
################
All steps must be completed successfully, without any errors.
BVT test
----------
ID
##
manila_bvt
Description
###########
BVT test for manila plugin. Deploy cluster with 3 controller and install Manila plugin.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with "Neutron with tunneling segmentation" as
a network configuration.
3. Enable plugin.
4. Configure environment:
* Add a node with Controller + Ceph-OSD roles.
* Add a node with Controller + Ceph-OSD roles.
* Add a node with Controller + Ceph-OSD roles.
* Add a node with Compute + Ceph-OSD roles.
* Add a node with Ceph-osd + Manila-share + Manila-data roles.
5. Deploy cluster with plugin.
6. Run OSTF.
7. Verify Manila service basic functionality (share add/mount)
Expected results
################
All steps must be completed successfully, without any errors.

View File

@ -1,237 +0,0 @@
============
System tests
============
NFS share with generic driver
-----------------------------
ID
##
manila_nfs_generic
Description
###########
Verify generic driver functionality with NFS share type.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment with manila plugin and configured generic driver.
3. Add at least 1 manila-share 1 manila-data 1 compute nodes role.
4. Deploy cluster with plugin.
5. Create configure and mount NFS share.
6. Verify I/O to share according to configured ACL(IP).
Expected results
################
All steps must be completed successfully, without any errors.
CIFS share with generic driver
------------------------------
ID
##
manila_cifs_generic
Description
###########
Verify generic driver functionality with CIFS share type.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment with manila plugin and configured generic driver.
3. Add at least 1 manila-share 1 manila-data 1 compute nodes role.
4. Deploy cluster with plugin.
5. Create configure and mount CIFS share.
6. Verify I/O to share according to configured ACL(IP).
Expected results
################
All steps must be completed successfully, without any errors.
NFS share with netapp driver
----------------------------
ID
##
manila_nfs_netapp
Description
###########
Verify netapp driver functionality with NFS share type.
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment with manila plugin and configured netapp driver.
3. Add at least 1 manila-share 1 manila-data 1 compute nodes role.
4. Deploy cluster with plugin.
5. Create configure and mount NFS share.
6. Verify I/O to share according to configured ACL(IP).
Expected results
################
All steps must be completed successfully, without any errors.
ID
##
manila_cifs_netapp
Description
###########
Verify netapp driver functionality with CIFS and NFS share types
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create an environment with manila plugin and configured netapp driver.
3. Add at least 1 manila-share 1 manila-data 1 compute nodes role.
4. Deploy cluster with plugin.
5. Create configure and mount CIFS share.
6. Verify I/O to NFS share according to configured ACL(IP).
Expected results
################
All steps must be completed successfully, without any errors.
NFS CIFS share with both drivers
--------------------------------
ID
##
manila_nfs_cifs_both
Description
###########
Verify manila functionaity with and both generic and netapp drivers enabled
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with both Generic and NetApp drivers enabled.
3. Add at least 1 manila-share 1 manila-data 1 compute nodes role.
4. Deploy cluster with plugin.
5. Create configure and mount NFS share using generic driver.
6. Verify I/O to NFS share according to configured ACL(IP).
7. Create configure and mount CIFS using NetApp driver.
8. Verify I/O to NFS share according to configured ACL(IP).
Expected results
################
All steps must be completed successfully, without any errors.
Instance live migration
-----------------------
ID
##
manila_live_migration
Description
###########
Verify manila functionaity after instance live migration
Complexity
##########
core
Steps
#####
1. Upload plugins and install.
2. Create environment with both Generic.
3. Add at least 2 nodes with compute role 1 node with manila-share and
1 with manila-data role
4. Deploy cluster with plugin.
5. Create configure and mount NFS share using generic driver.
6. Verify I/O to NFS share.
7. Execute live migration for instance to other compute.
8. Verify I/O to NFS share after migration.
Expected results
################
All steps must be completed successfully, without any errors.

View File

@ -1,224 +0,0 @@
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
endif
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " applehelp to make an Apple Help Book"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " pdf to make pdf with rst2pdf"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " xml to make Docutils-native XML files"
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo " coverage to run coverage check of the documentation (if enabled)"
.PHONY: clean
clean:
rm -rf $(BUILDDIR)/*
.PHONY: html
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
.PHONY: dirhtml
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
.PHONY: singlehtml
singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
.PHONY: pickle
pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."
.PHONY: json
json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."
.PHONY: htmlhelp
htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."
.PHONY: qthelp
qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/DetachRabbitMQpluginforFuel.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/DetachRabbitMQpluginforFuel.qhc"
.PHONY: applehelp
applehelp:
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
@echo
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
@echo "N.B. You won't be able to view it unless you put it in" \
"~/Library/Documentation/Help or install it in your application" \
"bundle."
.PHONY: devhelp
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/DetachRabbitMQpluginforFuel"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/DetachRabbitMQpluginforFuel"
@echo "# devhelp"
.PHONY: epub
epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
.PHONY: latex
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
.PHONY: pdf
pdf:
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
@echo
@echo "Build finished. The PDFs are in $(BUILDDIR)/pdf."
.PHONY: latexpdf
latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
.PHONY: latexpdfja
latexpdfja:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through platex and dvipdfmx..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
.PHONY: text
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."
.PHONY: man
man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
.PHONY: texinfo
texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."
.PHONY: info
info:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
.PHONY: gettext
gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
.PHONY: changes
changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
.PHONY: linkcheck
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
.PHONY: doctest
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
.PHONY: coverage
coverage:
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
@echo "Testing of coverage in the sources finished, look at the " \
"results in $(BUILDDIR)/coverage/python.txt."
.PHONY: xml
xml:
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
@echo
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
.PHONY: pseudoxml
pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."

View File

@ -1,10 +0,0 @@
.. _links:
Links
~~~~~
For more information about the software discussed in this document, see the following links:
* The Manila wiki `page <https://wiki.openstack.org/wiki/Manila>`__.
* The Manila plugin for Fuel `repository <https://github.com/openstack/fuel-plugin-manila>`__.
* The LaunchPad project `URL <https://bugs.launchpad.net/fuel-plugin-manila>`__ used to report bugs found in the plugin.

View File

@ -1,340 +0,0 @@
# -*- coding: utf-8 -*-
#
# plugin name documentation build configuration file, created by
# sphinx-quickstart on Wed Oct 7 12:48:35 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys
import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
# 'sphinx.ext.todo',
# 'sphinx.ext.coverage',
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
# The encoding of source files.
#source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'Fuel Manila plugin'
copyright = u'2016, Mirantis Inc.'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.0.0'
# The full version, including alpha/beta/rc tags.
release = '1.0-1.0.0-1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = []
# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
#add_module_names = True
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
#show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
#html_extra_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to
# template names.
#html_additional_pages = {}
# If false, no module index is generated.
#html_domain_indices = True
# If false, no index is generated.
#html_use_index = True
# If true, the index is split into individual pages for each letter.
#html_split_index = False
# If true, links to the reST sources are added to the pages.
#html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename = 'NAME-doc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'FuelManilaUserGuide.tex', u'Manila plugin for Fuel User Guide',
u'Mirantis Inc.', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#latex_use_parts = False
# If true, show page references after internal links.
#latex_show_pagerefs = False
# If true, show URL addresses after external links.
#latex_show_urls = False
# Documents to append as an appendix to all manuals.
#latex_appendices = []
# If false, no module index is generated.
#latex_domain_indices = True
# make latex stop printing blank pages between sections
# http://stackoverflow.com/questions/5422997/sphinx-docs-remove-blank-pages-from-generated-pdfs
latex_elements = { 'classoptions': ',openany,oneside', 'babel' : '\\usepackage[english]{babel}' }
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'fuel-plugin-manila', u'Guide to the Manila Plugin ver. 1.0-1.0.0-1 for Fuel',
[u'Mirantis Inc.'], 1)
]
# If true, show URL addresses after external links.
#man_show_urls = False
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'FuelManilaUserGuide', u'Manila Plugin for Fuel User Guide',
u'Mirantis Inc.', 'FuelManilaUserGuide', 'Manila Plugin for Fuel User Guide',
'Miscellaneous'),
]
# Documents to append as an appendix to all manuals.
#texinfo_appendices = []
# If false, no module index is generated.
#texinfo_domain_indices = True
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
# Insert footnotes where they are defined instead of
# at the end.
pdf_inline_footnotes = True
# -- Options for Epub output ----------------------------------------------
# Bibliographic Dublin Core info.
epub_title = u'Manila Plugin for Fuel'
epub_author = u'Mirantis Inc.'
epub_publisher = u'Mirantis Inc.'
epub_copyright = u'2016, Mirantis Inc.'
# The basename for the epub file. It defaults to the project name.
#epub_basename = u'fuel-plugin-openbook'
# The HTML theme for the epub output. Since the default themes are not optimized
# for small screen space, using the same theme for HTML and epub output is
# usually not wise. This defaults to 'epub', a theme designed to save visual
# space.
#epub_theme = 'epub'
# The language of the text. It defaults to the language option
# or en if the language is not set.
#epub_language = ''
# The scheme of the identifier. Typical schemes are ISBN or URL.
#epub_scheme = ''
# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
#epub_identifier = ''
# A unique identification for the text.
#epub_uid = ''
# A tuple containing the cover image and cover page html template filenames.
#epub_cover = ()
# A sequence of (type, uri, title) tuples for the guide element of content.opf.
#epub_guide = ()
# HTML files that should be inserted before the pages created by sphinx.
# The format is a list of tuples containing the path and title.
#epub_pre_files = []
# HTML files shat should be inserted after the pages created by sphinx.
# The format is a list of tuples containing the path and title.
#epub_post_files = []
# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']
# The depth of the table of contents in toc.ncx.
#epub_tocdepth = 3
# Allow duplicate toc entries.
#epub_tocdup = True
# Choose between 'default' and 'includehidden'.
#epub_tocscope = 'default'
# Fix unsupported image types using the PIL.
#epub_fix_images = False
# Scale large images.
#epub_max_image_width = 0
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#epub_show_urls = 'inline'
# If false, no index is generated.
#epub_use_index = True

View File

@ -1,52 +0,0 @@
.. _pg-configure:
Configure Manila plugin for Fuel
--------------------------------
Configuring and deploying an environment with Manila plugin for Fuel involves
creating an environment in Fuel and modifying the environment settings.
**To configure OpenStack environment with Manila plugin:**
#. Create an OpenStack environment as described in the `Fuel User Guide <http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-user-guide/create-environment.html>`_:
#. In the :guilabel:`Additional services` menu, select :guilabel:`Install Manila`:
.. figure:: static/additional.png
:width: 90%
.. raw:: latex
\pagebreak
#. Follow next steps of the `Create a new OpenStack
environment <http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-user-guide/create-environment/start-create-env.html>`_
instruction.
#. In the :guilabel:`Nodes` tab of the Fuel web UI `add
<http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-user-guide/configure-environment/add-nodes.html>`_
at least one node with roles manila-share and manila-data:
.. figure:: static/nodes.png
:width: 90%
.. raw:: latex
\pagebreak
#. In the :guilabel:`Settings` tab, click :guilabel:`OpenStack Serivces`:
#. Check that :guilabel:`Enable Manila service` is enabled.
#. Set the choosend backend for Manila.
#. For generic driver specify the :guilabel:`Image name` exactly same as
you set on the plugin installation stage.
#. For NetApp driver specify hostname, credential and parameters related
to your environment.
.. figure:: static/config.png
:width: 90%
.. raw:: latex
\pagebreak

View File

@ -1,69 +0,0 @@
.. _overview:
Overview of the Manila plugin for Fuel
--------------------------------------
The purpose of this document is to describe how to install, configure and use
the Manila plugin 1.0.0 for Fuel 9.1
The Manila is the OpenStack project that provides "File Sharing as a Service".
Main goal of the project is providing coordinated access to shared or
distributed file systems to OpenStack Compute instances. But as a many other
OpenStack services it can be used independently according to modular design
established by OpenStack.
The Manila based on that principes:
* Component based architecture: Quickly add new behaviors
* Highly available: Scale to very serious workloads
* Fault-Tolerant: Isolated processes avoid cascading failures
* Recoverable: Failures should be easy to diagnose, debug, and rectify
* Open Standards: Be a reference implementation for a community-driven api
* API Compatibility: Manila strives to provide API-compatible with popular
systems like Amazon EC2
This plugin brings features of Manila into Mirantis OpenStack.
.. _pg-requirements:
Software prerequisites
----------------------
To use the Manila plugin for Fuel 9.1, verify that your environment meets
the following prerequisites:
======================= =================================
Prerequisites Version/Comment
======================= =================================
Fuel 9.1
manila-service-image last
NetApp® ONTAP® 8 or later
======================= =================================
The manila-service image is the service image for generic driver. It should be
build from https://github.com/openstack/manila-image-elements.
.. raw:: latex
\pagebreak
Limitations
-----------
The Manila plugin for Fuel 9.1 has some known issues/limitations of usage:
* Manila CLI response with warnings if specific configuration
https://bugs.launchpad.net/fuel-plugin-manila/+bug/1633018
* Manila services uses publicURL instead of internalURL
https://bugs.launchpad.net/fuel-plugin-manila/+bug/1633456
* Manila share created from snapshot has error status (Generic)
https://bugs.launchpad.net/fuel-plugin-manila/+bug/1634818

View File

@ -1,31 +0,0 @@
===============================================
Guide to the Manila plugin for Fuel 1.0-1.0.0-1
===============================================
Overview
~~~~~~~~
.. toctree::
:maxdepth: 1
description
licenses
Install and configure Manila plugin for Fuel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. toctree::
:maxdepth: 1
installation
configure
Use Manila plugin for Fuel
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. toctree::
:maxdepth: 1
using_manila
troubleshooting
appendix

View File

@ -1,98 +0,0 @@
.. _pg-install:
Install Manila plugin for Fuel
------------------------------
Before you install Manila plugin for Fuel 9.1, verify that your environment
meets the requirements described in :ref:`pg-requirements`. You must have
the Fuel Master node installed and configured before you can install
the plugin. This plugin is hotpluggable, so you can install the Manila plugin
for Fuel after you deploy an OpenStack environment.
**To install Manila plugin for Fuel:**
#. Download Manila plugin for Fuel from the `Fuel Plugins Catalog`_.
#. Copy the plugin ``.rpm`` package to the Fuel Master node:
**Example:**
.. code-block:: console
# scp fuel-plugin-manila-1.0-1.0.0-1.noarch.rpm root@fuel-master:/tmp
#. Copy the manila-service-vm iso to the Fuel Master node:
**Example:**
.. code-block:: console
# scp manila-service-image.qcow2 root@fuel-master:/tmp
#. Log into Fuel Master node CLI as root.
#. Set path to manila service image into environment variable MANILA_IMAGE
**Example:**
.. code-block:: console
# export MANILA_IMAGE=/tmp/manila-service-image.qcow2
#. Install the plugin by typing:
.. code-block:: console
# fuel plugins --install fuel-plugin-manila-1.0-1.0.0-1.noarch.rpm
#. Verify that the plugin is installed correctly:
.. code-block:: console
# fuel plugins
id | name | version | package_version
---|------------ ---|---------|----------------
1 | fuel-plugin-manila | 1.0.0 | 4.0.0
.. raw:: latex
\pagebreak
Uninstall Manila plugin for Fuel
--------------------------------
To uninstall Manila plugin for fuel, follow the steps below:
#. Log in to the Fuel Master node CLI
#. Delete all environments in which Manila plugin for Fuel is enabled:
**Example:**
.. code-block:: console
# fuel --env <ENV_ID> env delete
3. Uninstall the plugin:
.. code-block:: console
# fuel --plugins --remove fuel-plugin-manila==1.0.0
4. Verify wheter the Manila plugin for Fuel was uninstalled successfully:
.. code-block:: console
# fuel plugins
Proceed to :ref:`pg-configure`.
.. _Fuel Plugins Catalog: https://www.mirantis.com/products/openstack-drivers-and-plugins/fuel-plugins/
.. raw:: latex
\pagebreak

View File

@ -1,10 +0,0 @@
.. _pg-license:
Licenses
========
====================== =============
**Component** **License**
====================== =============
Manila plugin for Fuel Apache 2.0
====================== =============

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

View File

@ -1,51 +0,0 @@
Troubleshooting
---------------
This section contains a guidance on how to ensure that the Manila plugin is up
and running on your deployed environment.
**To find logs**
The Manila places its log by convinient path. On controller:
* ``/var/log/manila/manila-api.log``
* ``/var/log/manila/manila-scheduler.log``
On a manila-share node:
* ``/var/log/manila/manila-share.log``
On a manilsa-data node
* ``/var/log/manila/manila-data.log``
**To verify Manila configuragion files**
Check that ``/etc/manila`` directory contains following files:
* ``-rw-r--r-- 1 manila manila 1.8K Oct 19 02:35 api-paste.ini``
* ``-rw-r--r-- 1 manila manila 1.3K Oct 19 02:35 logging_sample.conf``
* ``-rw-r--r-- 1 root root 2.6K Oct 19 03:44 manila.conf``
* ``-rw-r--r-- 1 manila manila 5.2K Oct 19 02:35 policy.json``
* ``-rw-r--r-- 1 root root 989 Oct 19 02:35 rootwrap.conf``
* ``drwxr-xr-x 2 manila manila 4.0K Oct 19 02:35 rootwrap.d``
**To verify Manila services**
Check output of the commands on any controller node:
.. code-block:: console
# . /root/openrc
# manila service-list
All services should be in the *up* stage.
**In case of using self signed certificates**
Use the ``--insecure`` option for all console commands. For example:
.. code-block:: console
# manila --insecure list
# manila --insecure type-create some_share_type True

View File

@ -1,59 +0,0 @@
Using File Share as a Service possibility with Manila plugin for Fuel
---------------------------------------------------------------------
Once you deploy an OpenStack environment with Manila plugin for Fuel, you can
start using it both from CLI and Horizon. The topic of CLI usage is too big to
put it into this User Guide and it well described `here
<http://docs.openstack.org/cli-reference/manila.html>`_.
The Horizon usage is very obvious. You can notice that two new tabs appears
on the Admin and Project/Compute sections:
.. figure:: static/admin.png
:width: 90%
.. raw:: latex
\pagebreak
.. figure:: static/project.png
:width: 90%
.. raw:: latex
\pagebreak
Let's go over the basic usage of Manila:
#. Firstly we have to create a share network for access to new share:
.. figure:: static/create_network.png
:width: 75%
.. raw:: latex
\pagebreak
#. After that we can create new share:
.. figure:: static/create_share.png
:width: 75%
.. raw:: latex
\pagebreak
3. When the share becomes available it should be configured for future usage.
At least necessary to add new rule in order to allow mounting new share.
.. figure:: static/edit_share.png
:width: 90%
.. figure:: static/add_rule.png
:width: 90%
After that new share could be consumed in your environment.
.. raw:: latex
\pagebreak

View File

@ -1,130 +0,0 @@
attributes:
metadata:
# Settings group can be one of "general", "security", "compute", "network",
# "storage", "logging", "openstack_services" and "other".
group: 'openstack_services'
use-generic-driver:
type: 'checkbox'
weight: 10
value: true
label: 'Use the Generic driver'
description: 'Use the cinder volumes as a backend for manila shares'
fuel-plugin-manila_image:
value: 'manila-service-image.qcow2'
label: 'Image name'
description: 'Name of the service image for generic driver'
weight: 25
type: 'text'
restrictions:
- condition: "settings:fuel-plugin-manila.use-generic-driver.value != true"
action: hide
regex:
source: &non_empty_image_name '\S'
error: "Empty image name"
use-netapp-driver:
type: 'checkbox'
weight: 30
value: false
label: 'Use the NetApp driver'
description: 'Use the NetApp ONTAP storage as a backend for manila shares'
netapp-proto:
type: 'radio'
weight: 31
value: 'https'
values:
- data: 'https'
label: 'https'
description: 'Choose this protocol for encrypted connection'
- data: 'http'
label: 'http'
description: 'Choose this protocol for not encrypted connection'
label: 'NetApp transport type'
description: 'Transport protocol for communicating with the storage system'
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
netapp-host:
type: 'text'
weight: 32
label: 'NetApp server hostname'
description: 'Set the address, port and protocol for to the server access'
value: ""
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
regex:
source: &non_empty_netapp_host '\S'
error: "Empty hostname of NetApp server"
netapp-port:
type: 'text'
weight: 33
value: '443'
label: 'NetApp server port'
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
regex:
source: '^[0-9]*$'
error: "Network port should be a number"
netapp-user:
type: 'text'
weight: 34
label: 'NetApp server username'
description: 'Set the username for to the server access'
value: ""
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
regex:
source: &non_empty_netapp_user '\S'
error: "Empty username"
netapp-pass:
type: 'text'
weight: 35
label: 'NetApp server password'
description: 'Set the password for to the server access'
value: ""
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
regex:
source: &non_empty_netapp_pass '\S'
error: "Empty password"
netapp-root_volume_aggregate:
type: 'text'
weight: 36
label: 'NetApp root volume aggregate'
description: 'Set the parameter netapp_root_volume_aggregate'
value: 'aggr1'
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
netapp-aggregate_name_search_pattern:
type: 'text'
weight: 37
label: 'NetApp search pattern for aggregation names'
description: 'Set the parameter netapp_aggregate_name_search_pattern'
value: '^((?!aggr0).)*$'
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide
netapp-port_name_search_pattern:
type: 'text'
weight: 38
label: 'NetApp search pattern for storage port names'
description: 'Set the parameter netapp_port_name_search_pattern'
value: '^(e0a)$'
restrictions:
- condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true"
action: hide

View File

@ -1,7 +0,0 @@
#!/bin/sh
CLUSTER_ID=$1
if [ ! -d /var/lib/fuel/keys/$CLUSTER_ID/manila ]; then
sh /etc/puppet/modules/osnailyfacter/modular/astute/generate_keys.sh -p /var/lib/fuel/keys/ -i $CLUSTER_ID -s 'manila'
fi

View File

@ -1,30 +0,0 @@
#!/bin/sh
CLUSTER_ID=$1
PLUGIN_YAML=/etc/fuel/cluster/$CLUSTER_ID/fuel-plugin-manila.yaml
if [ ! -f $PLUGIN_YAML ]; then
gen_pass() {
openssl rand -base64 32|tr -d '='
}
user_pass=$(gen_pass)
maniladb_pass=$(gen_pass)
echo "
---
manila:
user_password: $user_pass
db_password: $maniladb_pass
service_vm_image:
container_format: bare
disk_format: qcow2
glance_properties: \"\"
img_name: manila-service-image
img_path: /tmp/manila-service-image.qcow2
min_ram: \"256\"
os_name: ubuntu
public: \"true\"
" > $PLUGIN_YAML
fi

View File

@ -1,34 +0,0 @@
# Plugin name
name: fuel-plugin-manila
# Human-readable name for your plugin
title: enable Manila service
# Plugin version
version: '1.0.0'
# Description
description: Manila is the File Storage as a Service OpenStack project
# Required fuel version
fuel_version: ['9.0']
# Specify license of your plugin
licenses: ['Apache License Version 2.0']
# Specify author or company name
authors: ['Mirantis']
# A link to the plugin's page
homepage: 'https://github.com/openstack/fuel-plugin-manila'
# Specify a group which your plugin implements, possible options:
# network, storage, storage::cinder, storage::glance, hypervisor,
# equipment
groups: ['storage']
# Change `false` to `true` if the plugin can be installed in the environment
# after the deployment.
is_hotpluggable: true
# The plugin is compatible with releases in the list
releases:
- os: ubuntu
version: mitaka-9.0
mode: ['ha']
deployment_scripts_path: deployment_scripts/
repository_path: repositories/ubuntu
# Version of plugin package
package_version: '4.0.0'

View File

@ -1,15 +0,0 @@
# Unique network role name
- id: "example_net_role"
# Role mapping to network
default_mapping: "public"
properties:
# Should be true if network role requires subnet being set
subnet: true
# Should be true if network role requires gateway being set
gateway: false
# List of VIPs to be allocated
vip:
# Unique VIP name
- name: "vip_name"
# Optional linux namespace for VIP
namespace: "haproxy"

View File

@ -1,27 +0,0 @@
manila-share:
# Role name
name: "Manila share"
# Role description
description: "The node that contains manila-share process"
# If primary then during orchestration this role will be
# separated into primary-role and role
has_primary: false
# Assign public IP to node if true
public_ip_required: false
# Weight that will be used to sort out the
# roles on the Fuel web UI
weight: 1000
manila-data:
# Role name
name: "Manila data"
# Role description
description: "The node that contains manila-data process"
# If primary then during orchestration this role will be
# separated into primary-role and role
has_primary: false
# Assign public IP to node if true
public_ip_required: false
# Weight that will be used to sort out the
# roles on the Fuel web UI
weight: 1001

View File

@ -1,13 +0,0 @@
# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

@ -1 +0,0 @@
Subproject commit 3d542cf9353da9bed9f31e06b9083958587065c3

View File

@ -1,14 +0,0 @@
"""Copyright 2016 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""

View File

@ -1,159 +0,0 @@
# Copyright 2014 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from fuelweb_test.helpers import os_actions
from fuelweb_test import logger
from fuelweb_test.settings import SERVTEST_PASSWORD
from fuelweb_test.settings import SERVTEST_TENANT
from fuelweb_test.settings import SERVTEST_USERNAME
from helpers import openstack
from helpers import os_manila_actions
from proboscis import asserts
class TestPluginCheck(object):
"""Test suite for GCS plugin check."""
def __init__(self, obj):
# type: (object) -> object
"""Create Test client for run tests.
:param obj: Test case object
"""
self.obj = obj
cluster_id = self.obj.fuel_web.get_last_created_cluster()
logger.info('#' * 10 + "Cluster ID: " + str(cluster_id))
ip = self.obj.fuel_web.get_public_vip(cluster_id)
logger.info('#' * 10 + "IP : " + str(ip))
self.os_conn = os_actions.OpenStackActions(
ip, SERVTEST_USERNAME, SERVTEST_PASSWORD, SERVTEST_TENANT)
self.manila_conn = os_manila_actions.ManilaActions(
ip, SERVTEST_USERNAME, SERVTEST_PASSWORD, SERVTEST_TENANT)
def verify_share_mount(self, ssh_client, test_share, share_prot):
# create mounting point
logger.info('#' * 10 + "Testing share protocol is : " + share_prot)
mounting_point = '/mnt/share1'
cmd = "sudo mkdir {0}".format(mounting_point)
logger.info('#' * 10 + "Executing :" + cmd)
openstack.execute(ssh_client, cmd)
# mounting share
cmd2 = "sudo mount -t " + share_prot + ' {1} {0}'.format(mounting_point,
test_share.export_location)
logger.info('#' * 10 + "Executing :" + cmd2)
output_1 = openstack.execute(ssh_client, cmd2)
asserts.assert_true(output_1['exit_code'] == 0,
message="Failed to mount network share")
# create file on share
cmd3 = "echo Share is created|sudo tee --append {0}/file.txt".\
format(mounting_point)
logger.info('#' * 10 + "Executing :" + cmd3)
output_1 = openstack.execute(ssh_client, cmd3)
asserts.assert_true(output_1['exit_code'] == 0,
message="Failed to create file on network share")
# read created file
cmd4 = "cat /mnt/share1/file.txt ".format(mounting_point)
logger.info('#' * 10 + "Executing :" + cmd4)
output_2 = openstack.execute(ssh_client, cmd4)
asserts.assert_true(
'Share is created' in output_2['stdout'],
"R/W access for {0} verified".format(test_share.export_location))
logger.info('#' * 10 + "Network share mounted and work as expected")
def verify_manila_functionality(self, share_prot='nfs', clean_up=True,
backend='generic'):
"""This method do basic functionality check :
* creates share-type, share network, share, access_rule ;
* start instance using configuration from server-conf.yaml;
* mount share verify R/W to mounted share;
"""
# create default share type
# cli:manila type-create default_share_type True
logger.info('#'*10 + "Create manila default share type" + '#'*10)
share_type = self.manila_conn.create_share_type(
type_name='default_share_type')
asserts.assert_equal(share_type.name, 'default_share_type',
message="Failed to create default share type")
self.manila_conn.set_share_type_extrascpecs(
share_type.name,
{'share_backend_name': backend}
)
logger.info('#'*10 + "share type id : " + str(share_type.id))
# get internal id of admin_internal_net network and subnet id
# neutron net-list | grep 'admin_internal_net'
network = self.os_conn.get_network('admin_internal_net')
logger.debug('admin_internal_net id is :{}'.format(network))
# create share network (share network = internal_admin_network)
logger.info('#'*10 + "Create manila share network" + '#' * 10)
s_net = self.manila_conn.create_share_network(
net_id=network.get('id'), subnet_id=network.get('subnets'))
logger.info('#' * 10 + "share type id : " + str(s_net.name))
asserts.assert_equal(s_net.name, 'test_share_network',
message="Failed to create manila share network")
share_network_id = s_net.id
logger.info('#'*10 + "Manila share network ID :{0}".format(s_net.id))
# create share and wait until it will becomes available
logger.info('#'*10 + "Create manila share" + '#' * 10)
test_share = self.manila_conn.create_basic_share(
protocol=share_prot,
share_name='test_share', network=share_network_id)
asserts.assert_equal(test_share.name, 'test_share',
message="Failed to create manila share")
self.manila_conn.wait_for_share_status(
share_name='test_share', status='available')
logger.info('#'*10 + "Share created and become available")
logger.info('#'*10 + "add access rule allow any ip for created share")
self.manila_conn.add_acc_rule(share_id=test_share, rule='0.0.0.0/0')
logger.info('#'*10 + "Create and configure instance to verify share")
test_instance, sec_group = openstack.create_instance(self.os_conn)
openstack.verify_instance_state(self.os_conn, 'test_share_server')
logger.info('#'*10 + "Assign floating ip for server")
fl_ip = openstack.create_and_assign_floating_ips(
self.os_conn, test_instance)
logger.info("IP: {0} user: {1} pass:{1}".format(fl_ip, 'manila'))
logger.info('#'*10 + "Connect via ssh to server")
ssh_client = openstack.get_ssh_connection(fl_ip)
msg = 'New instance started floating ip is: {0}'.format(fl_ip)
logger.info(msg)
self.verify_share_mount(ssh_client, test_share, share_prot)
if clean_up:
logger.info('#'*10 + "Cleanup test objects" + '#'*10)
logger.info('#' * 10 + "Delete test instance")
openstack.delete_instance(self.os_conn, test_instance)
logger.info('#' * 10 + "Delete test security group")
openstack.delete_sec_group(self.os_conn, sec_group.id)
logger.info('#' * 10 + "Delete test share")
self.manila_conn.delete_all_shares()
logger.info('#' * 10 + "Delete test share network")
self.manila_conn.delete_all_share_networks()
logger.info('#' * 10 + "Delete test share type ")
self.manila_conn.delete_all_share_types()

View File

@ -1,163 +0,0 @@
"""Copyright 2016 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""
from devops.error import TimeoutError
from devops.helpers.helpers import icmp_ping
from devops.helpers.helpers import wait
from fuelweb_test import logger
import paramiko
from proboscis.asserts import assert_true
import socket
# timeouts
BOOT_TIMEOUT = 300
def create_instance(os_conn,
server_name='test_share_server',
network='admin_internal_net',
image='manila-service-image',
flavor='manila-service-flavor',
):
"""Create instances with nova """
# load server configuration from yaml
net = os_conn.get_network(network)
for fl in os_conn.nova.flavors.list():
if fl.name == flavor:
flavor_id = fl.id
for im in os_conn.glance.images.list():
if im.name == image:
image_id = im.id
sec_group = os_conn.create_sec_group_for_ssh()
# create instance
server = os_conn.create_server(
name=server_name,
security_groups=[sec_group],
flavor_id=flavor_id,
net_id=net['id'],
availability_zone='nova',
timeout=200,
image=image_id
)
return server, sec_group
def verify_instance_state(os_conn, inst_name, expected_state='ACTIVE'):
"""Verify that current state of each instance/s is expected.
:param os_conn: type object, openstack
:param inst_name: type string, name of created instance
:param expected_state: type string, expected state of instance
"""
instances = os_conn.nova.servers.list()
for instance in instances:
if instance.name == inst_name:
try:
wait(
lambda:
os_conn.get_instance_detail(instance).status ==
expected_state, timeout=BOOT_TIMEOUT)
except TimeoutError:
current_state = os_conn.get_instance_detail(instance).status
assert_true(
current_state == expected_state,
"Timeout is reached.Current state of Vm {0} is {1}".format(
instance.name, current_state)
)
return instance
def create_and_assign_floating_ips(os_conn, instance):
"""Create Vms on available hypervisors.
:param os_conn: type object, openstack
:param instance: type string, name of instance
"""
ip = os_conn.assign_floating_ip(instance).ip
wait(lambda: icmp_ping(ip), timeout=60 * 5, interval=5)
return ip
def get_ssh_connection(ip, username='manila', user_password='manila',
timeout=30,
port=22):
"""Get ssh to host.
:param ip: string, host ip to connect to
:param username: string, a username to use for authentication
:param user_password: string, a password to use for authentication
:param timeout: timeout (in seconds) for the TCP connection
:param port: host port to connect to
"""
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
wait(lambda: sock.connect_ex((ip, port)) == 0, timeout=60 * 5, interval=5)
logger.info('#' * 10 + "ssh is avaliable on server")
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(
ip, port=port,
username=username,
password=user_password,
timeout=timeout
)
return ssh
def execute(ssh_client, command):
"""Execute command on remote host.
:param ssh_client: SSHClient to instance
:param command: type string, command to execute
"""
channel = ssh_client.get_transport().open_session()
channel.exec_command(command)
result = {'stdout': [],
'stderr': [],
'exit_code': 0
}
result['exit_code'] = channel.recv_exit_status()
result['stdout'] = channel.recv(1024)
result['stderr'] = channel.recv_stderr(1024)
return result
def delete_instance(os_conn, test_instance):
"""Delete Instance"""
os_conn.delete_instance(test_instance)
wait(lambda: os_conn.is_srv_deleted(test_instance), timeout=200,
timeout_msg='Instance was not deleted.')
def delete_sec_group(os_conn, sec_group):
"""Delete security group"""
try:
os_conn.nova.security_groups.delete(sec_group)
except Exception as exc:
logger.info(
'Security group {0} was not deleted. {1}'.format(
sec_group, exc))
def delete_float_ip(os_conn, ip):
"""Delete Floating IP"""
os_conn.delete_instance(ip)
wait(lambda: os_conn.is_srv_deleted(ip), timeout=200,
timeout_msg='Floating IP was not deleted.')

View File

@ -1,214 +0,0 @@
# Copyright 2014 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from devops.helpers.helpers import wait
from fuelweb_test.helpers import common
from fuelweb_test.settings import DISABLE_SSL
from fuelweb_test.settings import PATH_TO_CERT
from fuelweb_test.settings import VERIFY_SSL
from keystoneauth1.session import Session as KeystoneSession
from keystoneclient.auth.identity import v2
from manilaclient.v2 import client
from time import sleep
class ManilaActions(common.Common):
"""Manila client class to operate with Manila API"""
def __make_auth_url(self, controller_ip):
if DISABLE_SSL:
auth_url = 'http://{0}:5000/v2.0'.format(controller_ip)
path_to_cert = None
return auth_url, path_to_cert
else:
auth_url = 'https://{0}:5000/v2.0'.format(controller_ip)
path_to_cert = PATH_TO_CERT
return auth_url, path_to_cert
def __init__(self, controller_ip, user='admin', passwd='admin',
tenant='admin'):
"""Create API client for manila service"""
super(ManilaActions, self).__init__(controller_ip,
user, passwd,
tenant)
auth_url, cert_path = self.__make_auth_url(controller_ip)
auth = v2.Password(auth_url=auth_url, username=user,
password=passwd, tenant_name=tenant)
if not DISABLE_SSL:
if VERIFY_SSL:
self.__keystone_ses = KeystoneSession(
auth=auth, ca_cert=cert_path)
else:
self.__keystone_ses = KeystoneSession(
auth=auth, verify=False)
else:
self.__keystone_ses = KeystoneSession(
auth=auth)
def create_share_network(self,
net_id=None,
subnet_id=None,
name='test_share_network',
description='For testing purpose'
):
"""Create share network"""
sleep(10)
if self.get_share_network(name) is None:
manila_client = client.Client('2', session=self.__keystone_ses)
share_network = manila_client.share_networks.create(
neutron_net_id=net_id,
neutron_subnet_id=subnet_id,
nova_net_id=None,
name=name,
description=description
)
return share_network
else:
return self.get_share_network(name)
def get_share_network(self, net_name):
"""Get share network by name"""
manila_client = client.Client('2', session=self.__keystone_ses)
for network in manila_client.share_networks.list():
if network.name == net_name:
return network
def get_share_type(self, name=None):
"""Get a list of all share types"""
manila_client = client.Client('2', session=self.__keystone_ses)
if name is None:
for share_type in manila_client.share_types.list():
return share_type
else:
for share_type in manila_client.share_types.list():
if share_type.name == name:
return share_type
def create_share_type(self, type_name='Test_share_type',
handle_serv=True,
snap_sup=True,
public_share=True
):
"""Create share type"""
sleep(10)
if self.get_share_type(type_name) is None:
manila_client = client.Client('2', session=self.__keystone_ses)
manila_client.share_types.create(
name=type_name,
spec_driver_handles_share_servers=handle_serv,
spec_snapshot_support=snap_sup,
is_public=public_share
)
return self.get_share_type(type_name)
def get_share(self, share_name):
"""Return object share with specified name"""
manila_client = client.Client('2', session=self.__keystone_ses)
for share in manila_client.shares.list():
if share.name == share_name:
return share
return None
def set_share_type_extrascpecs(self, share_type, extra_specs):
"""set extra specs for share type"""
share_type = self.get_share_type(share_type)
share_type.set_keys(extra_specs)
def create_basic_share(self, protocol='nfs',
size=1,
share_name='Default_test_share',
share_type='default_share_type',
network=None,
public_share=True):
"""Create share"""
sleep(10)
manila_client = client.Client('2', session=self.__keystone_ses)
share = manila_client.shares.create(
share_proto=protocol,
size=size,
name=share_name,
share_type=share_type,
share_network=network,
is_public=public_share
)
return share
def get_shares_list(self):
"""Get a list of all shares."""
manila_client = client.Client('2', session=self.__keystone_ses)
for share in manila_client.shares.list():
return share.name
def wait_for_share_status(self, share_name, status):
"""Waits for a share to reach a given status."""
wait(lambda: self.get_share(share_name).status == status,
interval=5, timeout=60 * 10,
timeout_msg="Share didn't get status:{0}.Status is {1}".format(
status, self.get_share(share_name).status))
def add_acc_rule(self, share_id, acc_type='ip', rule=None, acc_level='rw'):
"""Add access rule for specific share"""
manila_client = client.Client('2', session=self.__keystone_ses)
manila_client.shares.allow(share=share_id, access_type=acc_type,
access=rule, access_level=acc_level)
return manila_client.shares.access_list(share_id)
def delete_share(self, share):
manila_client = client.Client('2', session=self.__keystone_ses)
s = self.get_share(share)
print(s)
manila_client.shares.delete(share)
wait(lambda: self.get_shares_list() is None,
timeout=60, interval=5,
timeout_msg="Shares didn't deleted")
def delete_share_network(self, net_id):
manila_client = client.Client('2', session=self.__keystone_ses)
manila_client.share_networks.delete(net_id)
def delete_share_type(self, type_id):
manila_client = client.Client('2', session=self.__keystone_ses)
manila_client.share_types.delete(type_id)
def delete_all_shares(self):
manila_client = client.Client('2', session=self.__keystone_ses)
for shares in manila_client.shares.list():
manila_client.shares.delete(shares.id)
wait(lambda: manila_client.shares.list() == [],
timeout=120, interval=5,
timeout_msg="all shares didn't deleted {0}".format(
manila_client.share_networks.list()))
def delete_all_share_networks(self):
manila_client = client.Client('2', session=self.__keystone_ses)
for network in manila_client.share_networks.list():
manila_client.share_networks.delete(network.id)
wait(lambda: manila_client.share_networks.list() == [],
timeout=120, interval=5,
timeout_msg="all networks didn't deleted")
def delete_all_share_types(self):
manila_client = client.Client('2', session=self.__keystone_ses)
for type in manila_client.share_types.list():
manila_client.share_types.delete(type.id)
wait(lambda: manila_client.share_types.list() == [],
timeout=120, interval=5,
timeout_msg="All share types didn't deleted")

View File

@ -1,85 +0,0 @@
"""Copyright 2016 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""
import os
import traceback
from fuelweb_test.helpers.ssh_manager import SSHManager
from fuelweb_test.helpers import utils
from fuelweb_test import logger
from proboscis.asserts import assert_true
from settings import MANILA_IMAGE_PATH
from settings import MANILA_IMAGE_DEST_PATH
from settings import MANILA_PLUGIN_PATH
from settings import plugin_name
def install_manila_plugin(master_node_ip):
"""Install plugin packages to the master node."""
utils.upload_tarball(
master_node_ip,
MANILA_PLUGIN_PATH, "/var")
utils.install_plugin_check_code(
master_node_ip,
os.path.basename(MANILA_PLUGIN_PATH))
def upload_manila_image(master_node_ip, image_dest_path=MANILA_IMAGE_DEST_PATH):
"""Copy Manila qcow2 image to the master node.
:type master_node_ip: string master-node ip
:type image_dest_path: string destination path
"""
logger.info(image_dest_path)
try:
logger.info("Start to upload manila image file")
SSHManager().upload_to_remote(
ip=master_node_ip,
source=MANILA_IMAGE_PATH,
target=image_dest_path
)
manila_image_name = MANILA_IMAGE_PATH.split('/')
dest_path = '{0}/{1}'.format(
image_dest_path, manila_image_name[-1])
logger.info('File {} was uploaded on master'.format(dest_path))
return dest_path
except Exception:
logger.error('Failed to upload file')
logger.error(traceback.format_exc())
return False
def enable_plugin_manila(cluster_id, fuel_web_client):
"""Enable Manila plugin on cluster."""
assert_true(
fuel_web_client.check_plugin_exists(cluster_id, plugin_name),
"Plugin couldn't be enabled. Check plugin version.")
options = {'metadata/enabled': True}
fuel_web_client.update_plugin_data(cluster_id, plugin_name, options)
def disable_plugin_manila(cluster_id, fuel_web_client):
"""Disable Manila plugin on cluster."""
assert_true(
fuel_web_client.check_plugin_exists(cluster_id, plugin_name),
"Plugin couldn't be enabled. Check plugin version.")
options = {'metadata/enabled': False}
fuel_web_client.update_plugin_data(cluster_id, plugin_name, options)

View File

@ -1,23 +0,0 @@
"""Copyright 2016 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""
import os
MANILA_PLUGIN_VERSION = os.environ.get('MANILA_PLUGIN_VERSION', '1.0.1')
MANILA_PLUGIN_PATH = os.environ.get('MANILA_PLUGIN_PATH')
MANILA_IMAGE_PATH = os.environ.get('MANILA_IMAGE_PATH')
MANILA_IMAGE_DEST_PATH = '/var/www/nailgun/plugins/fuel-plugin-manila-' \
+ MANILA_PLUGIN_VERSION[0:3] \
+ '/repositories/ubuntu'
plugin_name = 'fuel-plugin-manila'

View File

@ -1 +0,0 @@
python-manilaclient==1.11.0

View File

@ -1,78 +0,0 @@
"""Copyright 2015 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""
import sys
import os
import re
from nose.plugins import Plugin
from paramiko.transport import _join_lingering_threads
class CloseSSHConnectionsPlugin(Plugin):
"""Closes all paramiko's ssh connections after each test case.
Plugin fixes proboscis disability to run cleanup of any kind.
'afterTest' calls _join_lingering_threads function from paramiko,
which stops all threads (set the state to inactive and joins for 10s)
"""
name = 'closesshconnections'
def options(self, parser, env=os.environ):
"""Options."""
super(CloseSSHConnectionsPlugin, self).options(parser, env=env)
def configure(self, options, conf):
"""Configure env."""
super(CloseSSHConnectionsPlugin, self).configure(options, conf)
self.enabled = True
def afterTest(self, *args, **kwargs):
"""After_Test.
After_Test calls _join_lingering_threads function from paramiko,
which stops all threads (set the state to inactive and joins for 10s).
"""
_join_lingering_threads()
def import_tests():
"""Import test suite of project."""
from tests import test_smoke_bvt # noqa
from tests import test_integration # noqa
from tests import test_functional # noqa
from tests import test_failover # noqa
def run_tests():
"""Run test cases."""
from proboscis import TestProgram # noqa
import_tests()
# Run Proboscis and exit.
TestProgram(
addplugins=[CloseSSHConnectionsPlugin()]
).run_and_exit()
if __name__ == '__main__':
sys.path.append(sys.path[0] + "/fuel-qa")
import_tests()
from fuelweb_test.helpers.patching import map_test
if any(re.search(r'--group=patching_master_tests', arg)
for arg in sys.argv):
map_test('master')
elif any(re.search(r'--group=patching.*', arg) for arg in sys.argv):
map_test('environment')
run_tests()

View File

@ -1,14 +0,0 @@
"""Copyright 2016 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""

View File

@ -1,530 +0,0 @@
"""Copyright 2016 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""
from fuelweb_test.helpers.decorators import log_snapshot_after_test
from fuelweb_test.tests.base_test_case import SetupEnvironment
from fuelweb_test.tests.base_test_case import TestBasic
from helpers.manila_service_verify import TestPluginCheck
from helpers import plugin
from proboscis import test
@test(groups=['manila_failover'])
class TestManilaIntegration(TestBasic):
"""Failover test suite.
The goal of failover testing is to ensure that Fuel Manila plugin work
on cluster after node with duplicated role unexpected shutdown or reboot
"""
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_shut_reb_controller"])
@log_snapshot_after_test
def manila_shut_reb_controller(self):
"""Check that manila-service works after controllers shutdown/reboot.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller
* Controller
* Controller
* Compute + Manila-data
* Cinder + Manila-share
4. Deploy cluster with plugin.
5. Shutdown primary controller node.
6. Run OSTF
7. Verify Manila service basic functionality (share create/mount).
8. Reboot other controller node.
9. Run OSTF.
10. Verify Manila service basic functionality (share add/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller'],
'slave-02': ['controller'],
'slave-03': ['controller'],
'slave-04': ['compute', 'manila-share'],
'slave-05': ['cinder', 'manila-data']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id)
cluster_id = self.fuel_web.get_last_created_cluster()
primary_controller_node = self.fuel_web.get_nailgun_primary_node(
self.env.d_env.nodes().slaves[0])
self.show_step(5)
self.fuel_web.warm_shutdown_nodes([primary_controller_node])
self.show_step(6)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(7)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(8)
d_contr_2 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-02'))
self.fuel_web.cold_restart_nodes([d_contr_2])
self.show_step(9)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_3],
groups=["manila_shut_reb_compute"])
@log_snapshot_after_test
def manila_shut_reb_compute(self):
"""Check that manila-service works after compute shutdown/reboot.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Cinder + Manila-share + Manila-data
* Compute
* Compute
4. Deploy cluster with plugin.
5. Shutdown first and reboot second compute node.
6. Run OSTF
7. Verify Manila service basic functionality (share create/mount).
8. Shutdown second and turn on first compute node
9. Run OSTF.
10. Verify Manila service basic functionality (share add/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'cinder', 'manila-share',
'manila-data'],
'slave-02': ['compute'],
'slave-03': ['compute']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id)
self.show_step(5)
d_comp_1 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-02'))
d_comp_2 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-03'))
self.fuel_web.warm_shutdown_nodes([d_comp_1])
self.fuel_web.cold_restart_nodes([d_comp_2], wait_online=True)
self.show_step(6)
cluster_id = self.fuel_web.get_last_created_cluster()
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(7)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(8)
self.fuel_web.warm_start_nodes([d_comp_1])
self.fuel_web.warm_shutdown_nodes([d_comp_2])
self.show_step(9)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_shut_reb_share"])
@log_snapshot_after_test
def manila_shut_reb_share(self):
"""Check that manila-service works after manila-share shutdown/reboot.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Cinder + Manila-data
* Compute
* Manila-share
* Manila-share
4. Deploy cluster with plugin.
5. Shutdown first and reboot second Manila-Share node.
6. Run OSTF
7. Verify Manila service basic functionality (share create/mount).
8. Shutdown second and turn on first Manila-Share node.
9. Run OSTF.
10. Verify Manila service basic functionality (share add/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'cinder', 'manila-data'],
'slave-02': ['compute'],
'slave-03': ['manila-share'],
'slave-04': ['manila-share'],
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id)
self.show_step(5)
d_share_1 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-03'))
d_share_2 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-04'))
self.fuel_web.warm_shutdown_nodes([d_share_1])
self.fuel_web.cold_restart_nodes([d_share_2], wait_online=True)
self.show_step(6)
cluster_id = self.fuel_web.get_last_created_cluster()
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(7)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(8)
self.fuel_web.warm_start_nodes([d_share_1])
self.fuel_web.warm_shutdown_nodes([d_share_2])
self.show_step(9)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_shut_reb_data"])
@log_snapshot_after_test
def manila_shut_reb_data(self):
"""Check that manila-service works after manila-data shutdown/reboot.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Cinder + Manila-share
* Compute
* Manila-data
* Manila-data
4. Deploy cluster with plugin.
5. Shutdown first and reboot second Manila-data node.
6. Run OSTF
7. Verify Manila service basic functionality (share create/mount).
8. Shutdown second and turn on first Manila-data node
9. Run OSTF.
10. Verify Manila service basic functionality (share add/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={'net_provider': 'neutron'}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'cinder', 'manila-share'],
'slave-02': ['compute'],
'slave-03': ['manila-data'],
'slave-04': ['manila-data'],
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id)
self.show_step(5)
d_data_1 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-03'))
d_data_2 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-04'))
self.fuel_web.warm_shutdown_nodes([d_data_1])
self.fuel_web.cold_restart_nodes([d_data_2], wait_online=True)
self.show_step(6)
cluster_id = self.fuel_web.get_last_created_cluster()
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(7)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(8)
self.fuel_web.warm_start_nodes([d_data_1])
self.fuel_web.warm_shutdown_nodes([d_data_2])
self.show_step(9)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_shut_reb_cinder"])
@log_snapshot_after_test
def manila_shut_reb_cinder(self):
"""Check that manila-service works after cinder shutdown/reboot.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Manila-share + Manila-data
* Compute
* Cinder
* Cinder
4. Deploy cluster with plugin.
5. Shutdown first and reboot second compute node.
6. Run OSTF
7. Verify Manila service basic functionality (share create/mount).
8. Shutdown second and turn on first compute node
9. Run OSTF.
10. Verify Manila service basic functionality (share add/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'manila-share', 'manila-data'],
'slave-02': ['compute'],
'slave-03': ['cinder'],
'slave-04': ['cinder']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id)
self.show_step(5)
d_cinder_1 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-03'))
d_cinder_2 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-04'))
self.fuel_web.warm_shutdown_nodes([d_cinder_1])
self.fuel_web.cold_restart_nodes([d_cinder_2], wait_online=True)
self.show_step(6)
cluster_id = self.fuel_web.get_last_created_cluster()
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(7)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(8)
self.fuel_web.warm_start_nodes([d_cinder_1])
self.fuel_web.warm_shutdown_nodes([d_cinder_2])
self.show_step(9)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_shut_ceph"])
@log_snapshot_after_test
def manila_shut_reb_ceph(self):
"""Check that manila-service works after ceph-osd node shutdown.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Ceph-OSD + Manila-share + Manila-data
* Compute
* Ceph-OSD
* Ceph-OSD
* Ceph-OSD
4. Deploy cluster with plugin.
5. Shutdown first ceph-osd node.
6. Run OSTF
7. Verify Manila service basic functionality (share create/mount).
8. Shutdown second and turn on first ceph-osd node
9. Run OSTF.
10. Verify Manila service basic functionality (share add/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'volumes_ceph': True,
'volumes_lvm': False,
'ephemeral_ceph': True,
'objects_ceph': True,
'images_ceph': True
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'ceph-osd', 'manila-data',
'manila-share'],
'slave-02': ['compute'],
'slave-03': ['ceph-osd'],
'slave-04': ['ceph-osd'],
'slave-05': ['ceph-osd'],
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id)
self.show_step(5)
d_ceph_1 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-03'))
self.fuel_web.warm_shutdown_nodes([d_ceph_1])
self.show_step(6)
cluster_id = self.fuel_web.get_last_created_cluster()
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(7)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(8)
d_ceph_2 = self.fuel_web.get_devops_node_by_nailgun_node(
self.fuel_web.get_nailgun_node_by_base_name(
base_node_name='slave-04'))
self.fuel_web.warm_start_nodes([d_ceph_1])
self.fuel_web.warm_shutdown_nodes([d_ceph_2])
self.show_step(9)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()

View File

@ -1,657 +0,0 @@
# coding=utf-8
"""Copyright 2016 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""
from fuelweb_test.helpers.decorators import log_snapshot_after_test
from fuelweb_test.settings import DEPLOYMENT_MODE
from fuelweb_test.tests.base_test_case import SetupEnvironment
from fuelweb_test.tests.base_test_case import TestBasic
from helpers.manila_service_verify import TestPluginCheck
from helpers import plugin
from proboscis import test
@test(groups=['manila_functional'])
class TestManilaFunctional(TestBasic):
"""Functional test suite.
The goal of functional testing is to ensure that Fuel Manila plugin work
after reconfiguring cluster and redeploy (adding and removing nodes with
core roles (controller, compute, cinder, ceph-osd, manila-data,
manila-share)
"""
@test(depends_on=[SetupEnvironment.prepare_slaves_3],
groups=["manila_del_add_data"])
@log_snapshot_after_test
def manila_del_add_data(self):
"""Check deploy after manila-data node remove and add.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with tunneling segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Manila-data
* Compute + Cinder + Manila-share
* Manila-data
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
7. Delete node with Manila-share role
8. Deploy changes
9. Run OSTF
10. Verify Manila service basic functionality (share create/mount).
11. Add a node with Manila-data role
12. Deploy changes
13. Run OSTF
14. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'net_provider': 'neutron',
'net_segment_type': 'tun'
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'manila-data'],
'slave-02': ['compute', 'cinder', 'manila-share'],
'slave-03': ['manila-data']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(7)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['manila-data']},
pending_addition=False, pending_deletion=True)
self.show_step(8)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(9)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(11)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['manila-data']})
self.show_step(12)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(13)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(14)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_3],
groups=["manila_del_add_share"])
@log_snapshot_after_test
def manila_del_add_share(self):
"""Check deploy after manila-share node remove and add.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with tunneling segmentation
* Block Storage: VLAN
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Manila-data
* Compute + Cinder + Manila-share
* Manila-share
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
7. Delete node with Manila-share role
8. Deploy changes
9. Run OSTF
10. Verify Manila service basic functionality (share create/mount).
11. Add a node with Manila-share role
12. Deploy changes
13. Run OSTF
14. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'net_provider': 'neutron',
'net_segment_type': 'tun'
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'manila-data'],
'slave-02': ['compute', 'cinder', 'manila-share'],
'slave-03': ['manila-share']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(7)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['manila-share']},
pending_addition=False, pending_deletion=True)
self.show_step(8)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(9)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(11)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['manila-share']})
self.show_step(12)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(13)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(14)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_del_add_cinder"])
@log_snapshot_after_test
def manila_del_add_cinder(self):
"""Check deploy after cinder node remove and add.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller
* Cinder
* Cinder
* Compute
* Base-OS + Manila-data + Manila-share
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
7. Delete node with cinder role
8. Deploy changes
9. Run OSTF
10. Verify Manila service basic functionality (share create/mount).
11. Add a node with cinder role
12. Deploy changes
13. Run OSTF
14. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
"net_provider": 'neutron'
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller'],
'slave-02': ['cinder'],
'slave-03': ['cinder'],
'slave-04': ['compute'],
'slave-05': ['base-os', 'manila-data', 'manila-share']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(7)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['cinder']},
pending_addition=False, pending_deletion=True)
self.show_step(8)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(9)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(11)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['cinder']})
self.show_step(12)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(13)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(14)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_del_add_compute"])
@log_snapshot_after_test
def manila_del_add_comp(self):
"""Check deploy after compute node remove and add.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with tunneling segmentation
* Block Storage: Ceph
* Other Storages: all Ceph
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Cinder
* Compute + Manila-data + Manila-share
* Compute
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
7. Delete node with compute role
8. Deploy changes
9. Run OSTF
10. Verify Manila service basic functionality (share create/mount).
11. Add a node with compute role
12. Deploy changes
13. Run OSTF
14. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'net_provider': 'neutron',
'net_segment_type': 'tun'
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'cinder'],
'slave-02': ['compute', 'manila-data', 'manila-share'],
'slave-03': ['compute']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(7)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['compute']},
pending_addition=False, pending_deletion=True)
self.show_step(8)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(9)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(11)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['compute']})
self.show_step(12)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(13)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(14)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_add_ceph"])
@log_snapshot_after_test
def manila_add_ceph(self):
"""Check deploy after manila-data node remove and add.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: Ceph
* Other Storages: Ceph
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Ceph-OSD
* Compute
* Ceph-osd
* Ceph-osd
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
7. Add a node with Ceph-OSD role
8. Deploy changes
9. Run OSTF
10. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'images_ceph': True,
'volumes_ceph': True,
'ephemeral_ceph': True,
'objects_ceph': True,
'volumes_lvm': False,
'net_provider': 'neutron',
'net_segment_type': 'tun',
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'ceph-osd'],
'slave-02': ['controller', 'ceph-osd'],
'slave-03': ['controller', 'ceph-osd'],
'slave-04': ['ceph-osd', 'compute', 'manila-data', 'manila-share'],
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(7)
self.fuel_web.update_nodes(
cluster_id, {'slave-05': ['ceph-osd']})
self.show_step(8)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(9)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_del_add_controller"])
@log_snapshot_after_test
def manila_del_add_controller(self):
"""Check deploy after controller node remove and add.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Manila-share
* Controller + Manila-data
* Controller
* Cinder
* Compute
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
7. Delete node with controller role
8. Deploy changes
9. Run OSTF
10. Verify Manila service basic functionality (share create/mount).
11. Add a node with controller role
12. Deploy changes
13. Run OSTF
14. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'manila-share'],
'slave-02': ['controller', 'manila-data'],
'slave-03': ['controller'],
'slave-04': ['cinder'],
'slave-05': ['compute']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity', 'ha'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(7)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['controller']},
pending_addition=False, pending_deletion=True)
self.show_step(8)
self.fuel_web.deploy_cluster_wait(
cluster_id,
check_services=False
)
self.show_step(9)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity'])
self.show_step(10)
TestPluginCheck(self).verify_manila_functionality()
self.show_step(11)
self.fuel_web.update_nodes(
cluster_id, {'slave-03': ['controller']})
self.show_step(12)
self.fuel_web.deploy_cluster_wait(cluster_id)
self.show_step(13)
self.fuel_web.run_ostf(
cluster_id=cluster_id,
should_fail=0,
test_sets=['smoke', 'sanity', 'ha'])
self.show_step(14)
TestPluginCheck(self).verify_manila_functionality()

View File

@ -1,439 +0,0 @@
"""Copyright 2016 Mirantis, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
"""
from fuelweb_test.helpers.decorators import log_snapshot_after_test
from fuelweb_test.tests.base_test_case import SetupEnvironment
from fuelweb_test.tests.base_test_case import TestBasic
from helpers.manila_service_verify import TestPluginCheck
from helpers import plugin
from proboscis import test
@test(groups=['manila_plugin', 'manila_integration'])
class TestManilaIntegration(TestBasic):
"""Integration test suite.
The goal of integration testing is to ensure that Fuel Manila plugin work
on cluster with different sets of roles, nodes, storage backends types
will be used by QA to accept software builds from Development team.
"""
@test(depends_on=[SetupEnvironment.prepare_slaves_3],
groups=["manila_share_ha"])
@log_snapshot_after_test
def manila_share_ha(self):
"""Check cluster deploy with Manila Plugin and two Manila-share roles.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Manila-share
* Compute + Manila-share
* Cinder + Manila-data
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={"net_provider": 'neutron'}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'manila-share'],
'slave-02': ['compute', 'manila-share'],
'slave-03': ['cinder', 'manila-data']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id,check_services=False)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_3],
groups=["manila_data_ha"])
@log_snapshot_after_test
def manila_data_ha(self):
"""Check cluster deploy with Manila Plugin and two Manila-data roles.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with tunneling segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Manila-data
* Compute + Manila-data
* Cinder + Manila-share
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
"net_provider": 'neutron',
"net_segment_type": 'tun'
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'manila-data'],
'slave-02': ['compute', 'manila-data'],
'slave-03': ['cinder', 'manila-share']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id,check_services=False)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_with_ceilometer"])
@log_snapshot_after_test
def manila_with_ceilometer(self):
"""Deploy a cluster with additional component Ceilometer
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with tunneling segmentation
* Additional services: Ceilometer
3. Enable plugin and add nodes with following roles:
* Controller + Mongo-DB
* Mongo-DB + Manila-data + Manila-share
* Cinder + Mongo-DB
* Compute
* Compute
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'ceilometer': True
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller', 'mongo'],
'slave-02': ['mongo', 'manila-data', 'manila-share'],
'slave-03': ['cinder', 'mongo'],
'slave-04': ['compute'],
'slave-05': ['compute']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id,check_services=False)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
timeout=60*60,
test_sets=['smoke', 'sanity','tests_platform'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_3],
groups=["manila_with_murano"])
@log_snapshot_after_test
def manila_with_murano(self):
"""Deploy a cluster with additional component Murano
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Additional services: Murano
3. Enable plugin and add nodes with following roles:
* Controller
* Compute + Manila-share
* Cinder + Manila-data
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'murano': True
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller'],
'slave-02': ['compute', 'manila-share'],
'slave-03': ['cinder', 'manila-data']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id, check_services=False)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_3],
groups=["manila_with_sahara"])
@log_snapshot_after_test
def manila_with_sahara(self):
"""Deploy a cluster with additional component Sahara
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with tunneling segmentation
* Additional services: Sahara
3. Enable plugin and add nodes with following roles:
* Controller
* Compute + Manila-share
* Cinder + Manila-data
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'net_provider': 'neutron',
'net_segment_type': 'tun',
'sahara': True
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{
'slave-01': ['controller'],
'slave-02': ['compute', 'manila-data'],
'slave-03': ['cinder', 'manila-share']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id, check_services=False)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
groups=["manila_cinder_ceph"])
@log_snapshot_after_test
def manila_cinder_ceph(self):
"""Deploy a cluster using both Ceph and Cinder backends.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with tunneling segmentation
* Block Storage: LVM
* Image Storage: Ceph
* Additional services: disabled
3. Enable plugin and add nodes with following roles:
* Controller + Cinder + Ceph-OSD
* Controller + Cinder + Manila-data
* Controller + Ceph-OSD
* Compute + Cinder
* Ceph-OSD + Cinder + Compute + Manila-share
4. Deploy cluster with plugin.
5. Run OSTF
6. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_5_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={
'net_provider': 'neutron',
'net_segment_type': 'tun',
'images_ceph': True
}
)
self.show_step(3)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{
'slave-01': ['controller', 'cinder', 'ceph-osd'],
'slave-02': ['controller', 'cinder', 'manila-data'],
'slave-03': ['controller', 'ceph-osd'],
'slave-04': ['compute', 'cinder'],
'slave-05': ['ceph-osd', 'cinder', 'compute', 'manila-share'],
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity', 'ha'])
self.show_step(6)
TestPluginCheck(self).verify_manila_functionality()
@test(depends_on=[SetupEnvironment.prepare_slaves_3],
groups=["manila_enable_after_deploy"])
@log_snapshot_after_test
def manila_enable_after_deploy(self):
"""Check cluster deploy with Manila Plugin added after deploy.
Scenario:
1. Upload plugins and install.
2. Create environment :
* Networking: Neutron with VLAN segmentation
* Block Storage: LVM
* Other Storages: default
* Additional services: disabled
3. Disable plugin and add nodes with following roles:
* Controller
* Compute + Cinder
4. Deploy cluster without plugin.
5. Run OSTF
6. Enable plugin and add one more node
* Manila-share + Manila-data
7. Deploy cluster with plugin.
8. Run OSTF
9. Verify Manila service basic functionality (share create/mount).
"""
self.env.revert_snapshot("ready_with_3_slaves")
self.show_step(1)
plugin.install_manila_plugin(self.ssh_manager.admin_ip)
plugin.upload_manila_image(self.ssh_manager.admin_ip)
self.show_step(2)
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
settings={}
)
self.show_step(3)
plugin.disable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-01': ['controller'],
'slave-02': ['compute', 'cinder']
}
)
self.show_step(4)
self.fuel_web.deploy_cluster_wait(cluster_id, check_services=False)
self.show_step(5)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(6)
plugin.enable_plugin_manila(cluster_id, self.fuel_web)
self.fuel_web.update_nodes(
cluster_id,
{'slave-03': ['manila-share', 'manila-data']}
)
self.show_step(7)
self.fuel_web.deploy_cluster_wait(cluster_id, check_services=False)
self.show_step(8)
self.fuel_web.run_ostf(cluster_id=cluster_id,
test_sets=['smoke', 'sanity'])
self.show_step(9)
TestPluginCheck(self).verify_manila_functionality()

Some files were not shown because too many files have changed in this diff Show More