Shared filesystem management project for OpenStack.
Go to file
Mohammed Naser cf4963c591 share_networks: enable project_only API only
At the moment, the share_network database API which the web
API layer interacts with directly does not have any checking
for project_id which means that a user has the ability to run
operations against any other share_network if they have the ID.

This patch implements the usage of project_only in the database
query which ensures that administrators still have the behaviour
of getting any share network they want, but users can only pull
up those which are part of their context/authenticated project.

This patch also adjusts a few other tests due to the fact that
the existing tests would run a lot of inserts with a different
project_id than the context, which is not allowed in this new
API behaviour.  Therefore, the instances that involved projects
different than the context were converted to elevated ones.

There was also an instance where they were being created with a
project_id that did not match the fake context, therefore the
context was adjusted accordingly as well.

Closes-Bug: #1861485
Change-Id: Id67a939a475c4ac06d546b7e095bd10f1a6d2619
(cherry picked from commit 947315f090)
(cherry picked from commit 496e6e1d2a)
(cherry picked from commit 17b29e2b50)
(cherry picked from commit d16b5f0ea4)
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-03-10 18:33:42 -07:00
api-ref/source Allow setting test API microversions in gate tests 2018-07-16 22:49:59 +00:00
contrib Fix image_name retrieval in custom-image jobs 2018-12-28 17:52:18 +00:00
devstack Fix tls-proxy issues with the devstack plugin 2019-04-15 19:58:34 +00:00
doc Adding documentation for User Messages in Manila Documentation 2019-10-23 14:58:08 +00:00
etc [LVM] Run filesystem check before assigning UUID 2019-02-18 16:56:56 +00:00
manila share_networks: enable project_only API only 2020-03-10 18:33:42 -07:00
playbooks/legacy Fix manila-tempest-minimal-dsvm-lvm-centos-7 job 2019-10-10 01:07:57 +00:00
rally-jobs [Rally] fix jobs 2017-03-30 15:12:22 +03:00
releasenotes share_networks: enable project_only API only 2020-03-10 18:33:42 -07:00
tools Remove run_tests.sh 2018-10-16 14:09:38 +00:00
.coveragerc Impove coverage job accuracy 2017-10-25 11:57:46 -04:00
.gitignore Use stestr for coverage 2018-01-14 13:26:53 +08:00
.gitreview OpenDev Migration Patch 2019-04-19 19:27:41 +00:00
.stestr.conf tests: replace .testr.conf with .stestr.conf 2017-09-13 07:56:21 -04:00
.zuul.yaml [stable/queens-only][ci] Enable LVM job 2019-07-26 08:59:11 -07:00
CONTRIBUTING.rst Added CONTRIBUTING file in .rst format 2015-11-15 23:45:38 +05:30
HACKING.rst Fix the duplicate hacking check M312 and H203 2017-08-13 08:01:42 +08:00
LICENSE Initialize from cinder 2013-08-08 10:34:06 -04:00
README.rst Update links in README 2017-08-04 11:23:30 +08:00
babel.cfg Initialize from cinder 2013-08-08 10:34:06 -04:00
bindep.txt [CI] Add bindep.txt 2019-07-04 00:16:05 +00:00
requirements.txt Revert Id905d47600bda9923cebae617749c8286552ec94 2018-02-07 17:13:52 -05:00
run_tests.sh Remove --omit argument in run_tests.sh 2017-07-04 18:21:48 +07:00
setup.cfg Merge "Remove in-tree tempest plugin" 2017-12-22 13:40:44 +00:00
setup.py Updated from global requirements 2017-03-03 22:51:04 +00:00
test-requirements.txt Follow the new PTI for document build 2018-01-17 09:53:00 +00:00
tox.ini [CI] Add bindep.txt 2019-07-04 00:16:05 +00:00

README.rst

Team and repository tags

image

MANILA

You have come across an OpenStack shared file system service. It has identified itself as "Manila." It was abstracted from the Cinder project.

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://github.com/openstack/manila.git

For developer information please see HACKING.rst

You can raise bugs here https://bugs.launchpad.net/manila

Python client

https://github.com/openstack/python-manilaclient.git