When user create a docker volume with a pre-created cinder volume,
user can't see the docker volume if the pre-created cinder volume's
tenant is diffent to the tenant Fuxi use.
This patch adds 'all_tenants' option configurable.
With this, user can search cinder volumes over all tenant.
Change-Id: I0519f54c07e7ac84f53b580a34b3b4064183d8a6
Closes-Bug: #1656960
The 'message' attribute has been deprecated. A prefered way is to
call str(e), and this patch will replace e.message with str(e).
For more information, please see:
https://www.python.org/dev/peps/pep-0352/
Change-Id: I96cbd859b172291564188a0a9fbc5372d2bf4bae
neutron library has a good hacking rules set, we can use these rules
instead of reinvent the wheel. These such rules are:
- [N521] Validate that jsonutils module is used instead of json
- [N532] Validate that LOG.warning is used instead of LOG.warn. The
latter is deprecated.
- [N537] Don't translate logs.
- [N534] Exception messages should be translated
It also enables H904, which allows the logging package to skip
creating the formatted log message if the message is not going
to be emitted because of the current log level.
Change-Id: I3b3649bbe8a7a3ae69d3ea1553923567b5a350d7
Closes-Bug: #1704691
The pypi package 'docker-py' [1] has been renamed to 'docker' [2].
We need to move to the new 'docker' package in order to leverage
the up-to-date features.
[1] https://pypi.python.org/pypi/docker-py
[2] https://pypi.python.org/pypi/docker
Change-Id: I72951c2d3a19b0bcfc185d0cd7b9e30ba5d40b25
Imports are always put at the top of the file,
just after any module comments and docstrings,
and before module globals and constants.
Change-Id: I2ebb8dc93cb7a18585a700764ebfd23510b12568
Some configuration options were accepting both IP addresses
and hostnames. Since there was no specific OSLO opt type to
support this, we were using ``StrOpt``. The change [1] that
added support for ``HostAddressOpt`` type was merged in Ocata
and became available for use with oslo version 3.22.
This patch changes the opt type of configuration options to use
this more relevant opt type - HostAddressOpt.
[1] I77bdb64b7e6e56ce761d76696bc4448a9bd325eb
Change-Id: I66fb2097a4b6908fc6ee9f41ff141d3067a18a31
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
In addition, this patch disable multiattach in fullstack tests
since this option was disabled in Cinder [1]
NOTE: This commit actually contains two fixes: one is for fixing
the test requirement and the other is for fixing the fullstack
tests. Ideally, we should split it into two commits but we are not
able to do it because we need both fixes in one patch to unblock
the gate.
[1] https://review.openstack.org/#/c/428365/
Closes-Bug: #1669494
Partial-Bug: #1668848
Change-Id: I6770eda1cf232aa8528190c82f1868a82372b159
In
https://review.openstack.org/#/c/419224/
the parameter 'region_name' for novaclient was removed.
Here add it back.
Change-Id: Ib0423a7b1d564504c31eecdd6ea3c569431c2d6b
While using osbrick to attach a RBD volume, it should do a local attach
rather than getting a rbd handle.
Change-Id: I3e1fe004d349b5154325f81d6a89b39769cede12
Closes-Bug: #1656173
Support Docker use Manila share as a shared persistent volume.
For Manila, it supports many driver backends and share_proto,
in this bp, NFS, GLUSTERFS share_proto will be supported while other
share_proto are not supported temporarily
Change-Id: Id987c252ad78e37fae07cb1b1ec3e413de962572
blueprint: enable-fuxi-to-use-manila-share