Goutham Pacha Ravi 6ace54c260 Fix with_entities usage in db queries
In order to retrieve shares with filters
pertaining to separate tables (shares, instances, metadata,
etc), we need to perform joined loads of those
respective database tables as necessary. After the
join, the query cannot select entities due to
Github issue #6253 - The following is an error when
the pattern is used:

sqlalchemy.exc.ArgumentError: Query has only expression-based entities - can't find property named "share_metadata".

sqlalchemy 1.4 has a performance improvement that
delays query processing [2] and disallows this
pattern of usage; we can use a query.count() instead.

In another instance, we can perform joins selectively
only if asked for.

[1] https://github.com/sqlalchemy/sqlalchemy/issues/625
[2] https://docs.sqlalchemy.org/en/14/changelog/migration_14.html#many-core-and-orm-statement-objects-now-perform-much-of-their-construction-and-validation-in-the-compile-phase

Change-Id: I8aa196c171bbc224cec06f517ea22c4e91cbc06a
Closes-Bug: #1926399
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-05-20 10:32:21 +00:00
2021-04-28 11:46:16 +00:00
2021-02-25 04:59:19 +01:00
2020-08-11 21:00:54 +00:00
2017-03-30 15:12:22 +03:00
2021-03-26 18:56:33 +00:00
2017-10-25 11:57:46 -04:00
2019-04-19 19:27:35 +00:00
2019-06-24 15:03:51 -07:00
2020-10-14 14:05:30 +08:00
2013-08-08 10:34:06 -04:00
2020-03-18 18:59:27 -07:00
2020-03-27 16:55:52 +01:00
2020-12-10 19:48:15 -08:00
2021-02-11 17:18:20 +00:00

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://opendev.org/openstack/manila

For developer information please see HACKING.rst

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

Python client

https://opendev.org/openstack/python-manilaclient

  • Documentation for the project can be found at:

https://docs.openstack.org/manila/latest/

  • Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/manila/

  • Source for the project:

https://opendev.org/openstack/manila

  • Bugs:

https://bugs.launchpad.net/manila

  • Blueprints:

https://blueprints.launchpad.net/manila

  • Design specifications are tracked at:

https://specs.openstack.org/openstack/manila-specs/

Description
Shared filesystem management project for OpenStack.
Readme 180 MiB
Languages
Python 99.3%
Shell 0.7%