58 Commits

Author SHA1 Message Date
Corey Bryant
a231100d2c Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ibf4e7a4075f7375138a59462cab132f64d874dbc
Story: #2005924
Task: #34220
2019-07-10 13:21:56 -04:00
Ghanshyam Mann
933ae44d56 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I766b626071bd122951f731ff9acf91685424a6d9
2019-04-14 23:13:06 +00:00
sunjia
4f22d0b19e Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I344871839f124239f2c7079934c5b4119609b99d
2018-12-03 21:23:31 -05:00
whoami-rajat
1f005beb58 Add manila-status upgrade check command framework
This adds basic framework for manila-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.

Change-Id: Id809535d0a01617916a8e29f151ca4e61f738fad
Story: 2003657
Task: 26139
2018-10-19 12:53:03 +05:30
junboli
faee7b50ef Update the new PTI for document build
This review already follows the new PTI
https://review.openstack.org/#/c/530866/

However, we also should remove [build_sphinx] section
as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: I86651f3311f514c5520ff878a6f6ba8f9de5c751
2018-03-22 17:09:46 +08:00
Zuul
11bf61f5ba Merge "Remove in-tree tempest plugin" 2017-12-22 13:40:44 +00:00
Raissa Sarmento
797048c5ce Remove in-tree tempest plugin
Remove in-tree tempest plugin in favor of newly
created manila-tempest-plugin repository.

Change-Id: I1fb124598f38067fee469df124ee684f748c6f57
2017-12-22 11:11:38 +00:00
zhongjun
64eaeae6bd [policy in code] Add support for AZ, scheduler and message resource [9/10]
This patch adds policy in code support for availability_zone,
scheduler_stats and message resources.

Change-Id: I9a79b5ececc583e85149cc920321e461e832b245
Partial-Implements: blueprint policy-in-code
2017-12-20 06:22:02 +00:00
zhongjun
b21c3d68a4 [policy in code] Add support for share instance export location resource
This is the basic patch which consits of the framework
code for default policy in code feature as well as
share instance export location resource.

Partial-Implements: blueprint policy-in-code
Change-Id: Iedde7a4a674a60e760b47d5eb2973f42d79226d8
2017-11-16 04:39:00 +00:00
junboli
ab8917ec9a Add default configuration files to data_files
In order to make it simpler to use the default configuration files
when deploying services from source, the files are added to pbr's
data_files section so that the files are included in the built wheels
and therefore deployed with the code. Packaging and deployment tools
can then more easily use the default files if they wish to.

This pattern is already established with similar
files for neutron and the glance metadefs as has
been mentioned in the related bug report.

Change-Id: I4c42caf57f3bb27f92e045eb63b7580789402207
Closes-Bug: #1718356
2017-09-25 07:14:39 +00:00
Luong Anh Tuan
7e49aa4690 Update URL home-page in documents according to document migration
Change-Id: I87b52e28d810939ee30f8eca52447ce3ea84f07e
2017-07-14 03:20:44 +00:00
Jenkins
acecb8b5b9 Merge "[Share groups] Add scheduler filter ConsistentSnapshotFilter" 2017-06-03 03:25:09 +00:00
Valeriy Ponomaryov
21699451f1 [Share groups] Add scheduler filter ConsistentSnapshotFilter
That will be used for scheduling share groups based on their possibility
to create consistent snapshots.

Also apply following tempest plugin changes:
- Add new 'capability_sg_consistent_snapshot_support' tempest config
option, that will be used for creation of new share group types and used
to prove that scheduling works as expected.
- Fix some share group test attributes from 'only API involved' to
  'API and Backend are involved', because it is so indeed.

Change-Id: I05553c308ae40c4ddc2c6469ff1c1a3da36a87da
Partially-Implements BP manila-share-groups
2017-06-02 17:48:05 +03:00
zhongjun
37152da0ed Remove pbr warnerrors in favor of sphinx check
This change removes the now unused "warnerrors" setting,
which is replaced by "warning-is-error" in sphinx
releases >= 1.5[0].

[0] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113085.html


Change-Id: Id02deddc52d81b9cd240364a22422a31fc02c9c4
2017-06-02 09:12:16 +00:00
Valeriy Ponomaryov
16bfc82962 Add possibility to run 'manila-api' with wsgi web servers
One of the goals for Pike [1] is to make each API service be able to
run under web servers that support WSGI applications,
such as Apache (+mod-wsgi) and Nginx (+uWSGI).

Do following to address governance requirements:
- Split existing manila/wsgi.py module into 3 modules:
  First (manila/wsgi/eventlet_server.py) is used by
  eventlet-based WSGI application approach.
  Second (manila/wsgi/wsgi.py) is used for WSGI web servers.
  And third (manila/wsgi/common.py) is common code for both.
  All three are made in cinder-like way to have alike-approach.
- Reuse common code from "oslo_service/wsgi.py" module that
  allows us to remove code duplication.
- Delete config opts that are defined by newly reused common code.
- Register new entry point that will be manila wsgi app: "manila-wsgi".
- Fix "manila/api/openstack/wsgi.py" module to be compatible
  with str/bytes handling approach used by Apache mod-wsgi plugin using
  different python versions (2/3).
- Add web server config template "devstack/apache-manila.template"
- Add devstack support where usage of this feature can be
  enabled or disabled using "MANILA_USE_MOD_WSGI" env var.
  It is set to "True" by default, because it is requirement for Pike
  release - to have it running in all CI jobs.
  Disable it only for one CI job that uses dummy driver and tests
  various manila core features that are not covered by other CI jobs.

[1] https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html

Partially-Implements BluePrint wsgi-web-servers-support
DocImpact
Change-Id: Ibdef3c6810b65a5d6f3611e2d0079c635ee523ab
2017-04-10 12:49:20 +03:00
kavithahr
0e55553b2b The python version is added
Python 3 and 3.5 version was missing.

Change-Id: Ifa2148c4cf34d52b55a762e95778a5ed3ed848b3
2017-03-07 14:49:05 +05:30
Jenkins
83b8f19851 Merge "VMAX manila plugin - Support for VMAX in Manila" 2017-01-24 18:08:38 +00:00
xing-yang
1b0042f052 VMAX manila plugin - Support for VMAX in Manila
VMAX plugin is the plugin which manages the VMAX to
provide shared filesystems using the Dell EMC manila
driver framework.

DocImpact
Change-Id: I0b69f013443217f2053bbbfdec36dff226664b34
Implements: blueprint vmax-manila-support
2017-01-24 13:34:00 +00:00
Alex Meade
d25f101ab4 Manila Share Groups
Remove the experimental consistency group APIs and
replace them with the experimental Share Group APIs.

DocImpact
APIImpact
Partially-implements-blueprint: manila-share-groups

Change-Id: I79a80a62ae4e0015d6161edc2b93fd1f9ba69537
2017-01-23 21:29:12 +02:00
xing-yang
d9be8fa62b Move EMC drivers to dell_emc folder
This patch moves EMC drivers under dell_emc folder and
changes vendor name to "Dell EMC".

The base driver remains as EMCShareDriver.

DocImpact
UpgradeImpact
Implements-blueprint: move-emc-driver-to-dell-emc-folder
Change-Id: I799c7fcb59fbe887045fe81beb1e257586ba2f0e
2016-11-14 20:34:26 -05:00
Jenkins
eb370f6715 Merge "Update the home page" 2016-10-06 02:56:39 +00:00
Jay Xu
86383ff900 Add EMC Unity Driver for Manila
EMC Unity arrays are capable of support manila.
Add a new Unity plugin in manila which allows user to create NFS/CIFS
share with a Unity backend.

The plugin should support following APIs:

* connect: Connect to the Unity Storage.
* check_for_setup_error: No implementation.
* create_share: Create a share and export it based on the protocol used
  (NFS or CIFS).
* create_share_from_snapshot: Create a share from a snapshot - clone a
  snapshot.
* delete_share: Delete a share.
* extend_share: Extend the maximum size of a share.
* create_snapshot: Create a snapshot for the specified share.
* delete_snapshot: Delete the snapshot of the share.
* allow_access: Allow access of a user/host to a share.
* deny_access: Remove the access of a user/host to the share.
* ensure_share: Check whether share exists or not.
* update_share_stats: Retrieve share related statistics from Unity.
* get_network_allocatins_number: Returns number of network allocations
  for creating VIFs.
* setup_server: Set up and configures share server with given network
  parameters.
* teardown_server: Tear down the share server.

DocImpact
Co-Authored-By: Cedric Zhuang <cedric.zhuang@emc.com>
Change-Id: Ic520539341fa19ec5c6c6b85c3c1dcecf70e5141
Implements: blueprint emc-unity-manila-support
2016-07-28 23:13:29 -07:00
tpsilva
f10776d832 Add DriverFilter and GoodnessWeigher to manila
This patch ports cinder's DriverFilter and GoodnessWeigher to manila.
These can use two new properties provided by backends,
'filter_function' and 'goodness_function', which can be used to filter
and weigh qualified backends, respectively.

Reference for cinder spec: I59b607a88953a346aa35e67e785a0417a7ce8cc9
Reference for cinder commit: I38408ab49b6ed869c1faae746ee64a3bae86be58

DocImpact
Change-Id: I873f4152e16efdeb30ceae26335a7974dc9b4b69
Implements: blueprint driver-filter-goodness-weigher
2016-07-18 17:28:40 -03:00
Doug Hellmann
04ce4a42d0 register the config generator default hook with the right name
No config generator hooks should ever be registered with a name that
belongs to another project. In this case, using oslo.middleware.cors
means that *every other project* that loads the middleware gets this
application's defaults when the generator is run on a system with
everything installed (such as a dev box with devstack). Use the name
of the app instead, to ensure that the defaults are only set when this
app's sample config and documentation are being generated.

Change-Id: I6a8c7d44b9db9325003ff2fdb667b0ced7739e96
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-03-11 16:06:50 -05:00
Tin Lam
75d85aab3c Moved CORS middleware configuration into oslo-config-generator
The default values needed for manila's implementation of cors
middleware have been moved from paste.ini into the configuration
hooks provided by oslo.config. Furthermore, these values have been
added to the default initialization procedure. This ensures
that if a value remains unset in the configuration file, it will
fallback to using sane defaults. It also ensures that an operator
modifying the configuration will be presented with that same
set of defaults.

Change-Id: Ie4adc39866a4ee6132eab6a111660218b3e6e5bd
Closes-Bug: #1551836
2016-03-03 16:13:20 +00:00
Rodrigo Barbieri
eaaa86f1f4 Introduced Data Service
Added a new service defined as data, whose purpose is to
receive requests, process data operations such as copying,
migration, backup, and send back the response after operation
has been completed.

In this patch the service has no methods, it is empty, the
operation it should perform will be added in subsequent patches.

Implements: blueprint data-copy-service
Change-Id: I31365c8ac4197541af175c82f8f18a3d11740a99
2016-03-01 17:13:51 -03:00
Goutham Pacha Ravi
68925cbac7 Scheduler enhancements for Share Replication
Backends supporting replication of shares could be
limited by vendor or storage model or software. Cloud
administrators may also need to configure backends
outside of Manila to support replication between these
backends.

Hence, Manila should allow administrators to specify
'replication_domain's. This configuration is reported to the
scheduler as a backend capability as part of the
_update_share_stats() driver call. The scheduler
should acknowledge this 'capability' when scheduling
shares supporting replication and replicas themselves.

Introduce a new scheduler filter that uses a backend
reported "capability" called 'replication_domain'.

Implements bp: manila-dr-scheduler-enhancements

DocImpact

Change-Id: I194054a9a1071c2d577a588e3299ae81490cd0f8
2016-02-24 14:05:09 -05:00
ting.wang
663c663f4b Replace deprecated oslo_messaging _impl_messaging
Use oslo_messaging.notify.messaging instead of the
deprecated oslo_messaging.notify._impl_messaging.

ref:
https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/notify/_impl_messaging.py#L20

Change-Id: I8691877d968312a0480860717b6e07c162ddd47a
2016-02-10 17:48:56 +08:00
jinxingfang
d95a125afb Update the home page
http://www.openstack.org ---> http://docs.openstack.org/developer/manila/

Change-Id: I1e00402e89ae2cd8f6514731efaad55a2f284dd0
2016-02-05 18:46:21 +08:00
Ben Swartzlander
689c7a62e0 Remove version per M-1 release instructions
http://lists.openstack.org/pipermail/openstack-dev/2015-November/080692.html

Change-Id: I2e60b0f1aab323097c80033dc18c6e71b03eaabf
Depends-On: I940523437b7de1a5c113535dfd0ecfdc2cc6bea8
2015-12-03 14:22:13 -05:00
Clinton Knight
af2e103514 Reorganize scheduler and merge code from Oslo incubator
With oslo-incubator going away, we need to pull those classes into
the Manila code base, along with their unit tests.  This presents a
good opportunity to do some long-needed housecleaning.  This commit
does the following:

1. Moves the scheduler classes from openstack.common to manila.
2. Adds the unit tests from olso-incubator into Manila.
3. Removes duplication among the combined scheduler modules.
4. Moves scheduler drivers into a sub-module.
5. Normalizes class and module naming throughout the scheduler.
6. Splits some unit test files so they match the names of the
   modules that they test.
7. Converts usage of mox & oslotest to mock & unittest.
8. Adds a few unit tests to boost coverage levels.

Implements: blueprint reorganize-manila-scheduler
Change-Id: I7aa237e17787e89a95bb198093ea9bc9498279cd
2015-12-01 20:54:17 +00:00
Dustin Schoenbrun
c1fe6c4140 Make setup.py install Manila Tempest plugin
This commit makes the install directive in setup.py install the
Manila Tempest plugin when the rest of Manila is installed.

Closes-Bug: #1513953
Co-Author: Marc Koderer <marc@koderer.com>
Change-Id: Id2d75c2901e795ad1309cde275592d89f223471d
2015-11-06 20:59:22 +00:00
Thierry Carrez
52e3fbc18a Open Mitaka development
Bump preversion to mark the start of the Mitaka development branch.
The liberty release branch will be cut from the previous commit.

Change-Id: I3dea067f7e610f551376555d54e23e4ab440c08b
2015-09-22 15:34:39 +02:00
Alex Meade
f3a761f06b Scheduler changes for consistency groups
This patch implements the scheduler changes for
scheduling the creation of consistency groups,
shares within consistency groups, and cgsnapshots.

The consistency group scheduling filter was added
to allow the filtering of hosts that are not supported
by a specified consistency group. If no CG is specified
on share create then this filter is a no-op. CGs will be
scheduled only to a backend that supports all of its
specified share types.

Partially implements bp manila-consistency-groups

Change-Id: Ia03191085cefb47a17ce99ad3f30ba70412f5802
2015-09-05 18:21:17 -04:00
Marc Koderer
09798caae1 Use Tempest plugin interface
Make use of the Tempest plugin interface instead of copying Manila
files into Tempest. This will remove the burden to port Manila
tests onto Tempest master recurrently.

This ports all existing Manila Tempest test to the new structure.

It uses manila_tempest_tests as new top folder for all Tempest
tests. It follow the model of Heat (see [1]).

[1]: https://github.com/openstack/heat/tree/master/heat_integrationtests

Change-Id: Ie5ed64a6777ed1acf8dd56522c26705ae897596d
Partly-implements: bp tempest-plugin-interface
Depends-On: I26dd32b1de8cceeaa6dc674092efec683df71889
2015-09-05 00:36:33 +00:00
Thomas Bechtold
9c679056ee Fix sample config file generation
There's a import missing and oslo-config-generator expects
"oslo.config.opts" as namespace to search for configuration options.

Change-Id: Ib1b3fef9340a8932e8a0a7aacf6dc92ad7a32ab7
Closes-bug: #1485526
2015-08-17 13:26:56 +02:00
Julia Varlamova
bec250e62f Add PoolWeigher for Manila scheduler
Add PoolWeigher which enumerate all of the pools that have existing
share_servers and give those pools a value of 1 while all the other
pools should have a value of 0.

Config option pool_weight_multiplier can be used to increase the
priority of scheduling shares on pools with existing share_servers.

Implements BP share-server-pool-mapping

Change-Id: I7e462de47d50a971237672033e956ed92ce72896
2015-06-26 08:48:13 -04:00
Doug Hellmann
bbb4130ab4 Update version for Liberty
Update the version for Liberty, switching from date-based versioning
to pre-versioning using SemVer. See
http://lists.openstack.org/pipermail/openstack-dev/2015-May/065211.html
and
http://lists.openstack.org/pipermail/openstack-dev/2015-June/067082.html
for details.

Change-Id: I6a35fa0dda798fad93b804d00a46af80f08d475c
2015-06-17 17:27:09 +00:00
Valeriy Ponomaryov
c4e055bd8f Stop using deprecated 'oslo' namespace
Replace usage of deprecated 'oslo' namespace with appropriate 'oslo_*'
namespaces in Manila setup.cfg file.

Change-Id: I3fbe75023d3dec266c0121df436639a2041eadd5
2015-06-10 09:58:00 +03:00
Julia Varlamova
b6ab3167dc Use entry_points for manila scripts
Manila scripts located in bin/* should be covered with unit tests.
In order to add unit tests for bin/* scripts:
- all
- api
- manage
- scheduler
- share
we move them into manila/cmd and use pbr to setup console scripts
which will call the respective main function of each script under manila/cmd.
It will allow us to import from manila.cmd and individually test each 'main' function.

Add unit tests for manila/cmd/* scripts.

Implements bp unit-tests-for-manila-scripts

Change-Id: I9be6b948a6de7ba76405411e98d7531cf225b57e
2015-04-14 21:04:01 +03:00
Thierry Carrez
3d75fb2294 Open Liberty development
Bump pre-version in setup.cfg to formally open Liberty development.
Kilo release branch will be cut from the previous commit.

Change-Id: I48850330d28989b08c1841934b96d748d6173ff5
2015-04-09 16:57:42 +02:00
Shaun Edwards
9cc913ed53 EMC Isilon Manila driver
The Isilon Manila driver supports the following functionalities:
* Create/delete NFS/CIFS share
* Create/delete snapshot
* Allow/deny access to share
* Create share from snapshot

implements: blueprint emc-isilon-manila-driver

Change-Id: If5f064751120890afba0571bc2b407d141ba0323
2015-03-10 15:47:21 +00:00
Valeriy Ponomaryov
bcbab9ce11 Remove Python 2.6 classifier
OpenStack projects dropped support for py26 in Kilo release. So, remove its
classifier.

Change-Id: I22f18eeb9c66837475fa46b06ca4e7b5492065ef
2015-03-01 08:13:45 +00:00
Thomas Bechtold
1d4fb90e10 Set pbr 'warnerrors' option for doc build
By setting this pbr option in setup.cfg, the doc build will fail in
case of any warnings or errors occur during the build process.

Change-Id: I5aa77eb9c45a12e7e4d467eebb90487709cbe197
2015-01-07 17:46:14 +01:00
Jay Xu
e8709c8005 Update EMC Manila driver framework using stevedore
Alternative way of registering plugins in EMC Manila driver framework
using the module *stevedore*.

Change-Id: I3c38a2dbc9575a81c83e64180cd37916abe68334
Implements: blueprint register-emc-manila-plugin-with-stevedore
2014-12-10 05:00:32 -05:00
Andreas Jaeger
883e02f219 Switch to oslo.config
The config module in oslo-incubator has been replaced by oslo.config.
Projects need to switch completely to oslo.config for kilo.

This patch does:
* Register options with oslo.config (new file manila/opts.py)
* Generate the config file using oslo-config-generator
* Remove obsoleted entries for this from openstack-common.conf
* Remove oslo-incubator config files

Change-Id: I30b594423c08782e13a1f615099ae65f997a8551
Closes-Bug: #1382183
2014-10-22 19:55:45 +02:00
Thierry Carrez
7456e27f67 Open Kilo development
Bump pre-version to 2015.1 to formally open master branch to Kilo
development.

Change-Id: Ic011bec64d120e87426076835862a2a327282854
2014-09-30 10:58:51 +02:00
Andreas Jaeger
4d7f4fc43f Fix version number to Juno
We need to update the version number in setup.cfg, otherwise pbr will
fail with:
"error in setup command: Error parsing /opt/stack/new/manila/setup.cfg:
ValueError: git history requires a target version of
pbr.version.SemanticVersion(2014.2.0.0b4), but target version is
pbr.version.SemanticVersion(2013.2.0)"

Change-Id: I608c1dce0169fe78667e5818f2abff3dc8b11447
2014-09-04 07:51:24 +02:00
Andreas Jaeger
cf9f134531 Remove bin/manila-rpc-zmq-receiver
This module is unused and not working, remove it.

Change-Id: I2133af6264e0a4a8b3c056fe4a52de7a041f8b5b
2014-08-25 08:48:22 +02:00
Andreas Jaeger
086d3bd69b Remove manila-clear-rabbit-queues
This script should be removed because it does not
appear to be widely used and there is no user documentation for
it. Also, RabbitMQ now includes a management plugin and CLI,
rabbitmqadmin, that allows you to delete queues and exchanges.

For reference, this removed in nova as part of
https://review.openstack.org/#/c/40355/.

and removed from cinder:
https://review.openstack.org/#/c/109786/

Change-Id: I32403890e190969657ae813e7d3e34a951030321
2014-08-14 13:12:47 +02:00