Commit Graph

76 Commits

Author SHA1 Message Date
Andreas Jaeger 0f5bfeb879 Retire fuxi
This repo is not used anymore, retire it following
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

Depends-On: https://review.openstack.org/602574
Change-Id: I4f7c5a189d894270c7cdd76d62b060169031a35a
2018-09-22 15:54:55 +02:00
Kiseok Kim e7740fb3a7 Adds 'all_tenants' search option in volumeprovider/cinder.py
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
2017-08-30 00:58:10 +00:00
Jenkins f0e4a3f82c Merge "Replace e.message with str(e)" 2017-08-14 14:50:17 +00:00
Jenkins 5531b53b8b Merge "Reuse neutron-lib for pep8 hacking checks" 2017-08-14 14:50:11 +00:00
Jenkins 75600a63ad Merge "Deploy fuxi-server via uwsgi" 2017-08-11 21:09:39 +00:00
Hongbin Lu 441b779289 Get py35 fullstack tests to work
Disable Swift since Swift is not ready for python3 yet

Implements: blueprint goal-python35
Change-Id: Ie99e1d0200584ae0e94b9ae90739d11edc302696
2017-08-04 03:07:21 +00:00
Hongbin Lu 8d759150e3 Deploy fuxi-server via uwsgi
Implements: blueprint goal-deploy-api-in-wsgi
Change-Id: Ie601c8a02c0ce7e87254cf6546ff40ae673abae9
2017-08-02 23:00:27 +00:00
howardlee 9734e4dac5 Replace e.message with str(e)
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
2017-07-20 16:48:19 +08:00
Ngo Quoc Cuong 17a3b25921 Reuse neutron-lib for pep8 hacking checks
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
2017-07-17 03:49:30 -04:00
Jenkins c7108a8405 Merge "Move the imports to the top of the file" 2017-07-17 07:08:28 +00:00
Ngo Quoc Cuong f4fbbc1770 Fix N529 Method's default argument should not be mutable
See:
[1] http://python-guide-pt-br.readthedocs.io/en/latest/writing/gotchas/#mutable-default-arguments

Partial-Bug: #1704691

Change-Id: Ibd202f1970a6138299648040f635278ba9d9d71b
2017-07-17 02:20:51 +00:00
Hongbin Lu 9c5e45fa56 Upgrade from docker-py to docker
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
2017-07-03 01:59:22 +00:00
liuxiaoyang 27b7a347ed Move the imports to the top of the file
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
2017-06-20 05:49:55 +00:00
Hongbin Lu 9250eceb7d Move to devstack-plugin-container
Change-Id: I39f7dec7e0b2ba93d0a0e9666c98cf9eb09bcfe1
2017-06-03 11:31:09 -04:00
Jenkins aebd31d7eb Merge "Make volume providers configurable in devstack" 2017-04-24 19:57:36 +00:00
Hongbin Lu 989dd9e495 Make volume providers configurable in devstack
Change-Id: I29d358ce96e64bb98a7a656975c3b7b1aa523202
2017-04-24 11:00:08 -04:00
lihaijing c09006bc42 Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html
https://review.openstack.org/#/c/446762/

Change-Id: I8eb62d63dab12693534c802623a9a4c406fef46e
2017-04-06 10:21:52 +08:00
Jenkins 976b301db8 Merge "Add fullstack test for manila provider" 2017-04-04 09:21:15 +00:00
Hongbin Lu 45390d6ebd Add fullstack test for manila provider
Change-Id: I0723e4e000c66b4f2f719f50d11e0e198b870a57
2017-03-30 21:10:46 +00:00
jeremy.zhang c98c7e6986 Use HostAddressOpt for opts that accept IP and hostnames
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
2017-03-28 11:36:50 +08:00
Hongbin Lu 8bc3dbecfb Use oslo_log to instead of app.logger
Change-Id: I7228402a86111925389396039a5ba444170a83ca
Closes-Bug: #1668558
2017-03-19 11:45:49 -05:00
Hongbin Lu d6de55486e Enable manila devstack plugin
Change-Id: I17a5f1b673a8785d013c74cd855006b5309cd9eb
2017-03-18 09:43:51 -05:00
Jenkins 1b2965e5e6 Merge "Remove unused logging import" 2017-03-05 22:52:29 +00:00
Jenkins 9484110b90 Merge "Add document for volume providers" 2017-03-03 13:22:47 +00:00
ricolin d2c8d84b6d Update test requirement
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
2017-03-02 16:21:49 +00:00
drngsl ed44f89ce7 Add document for volume providers
Change-Id: Ieec1e53ea495247eb3d312f79a877d3dcabee0a2
2017-02-21 22:30:51 +08:00
Jenkins 88bc7cb0d4 Merge "Add parameter 'region_name' for novaclient" 2017-02-20 21:35:09 +00:00
Anh Tran fbf7f27697 Remove unused logging import
Change-Id: Ib68024e129293b6934954238ea35e140487d3026
2017-02-16 15:11:19 +07:00
Jenkins bd824972ad Merge "Fix logging format" 2017-02-13 14:57:36 +00:00
drngsl 4ad155bd63 Fix incorrect key on formating logging message
Change-Id: Ia69494db0b8b28420ad306982146aff4f7779380
2017-02-09 20:32:34 -05:00
drngsl f9ff5e394f Add parameter 'region_name' for novaclient
In
https://review.openstack.org/#/c/419224/
the parameter 'region_name' for novaclient was removed.
Here add it back.

Change-Id: Ib0423a7b1d564504c31eecdd6ea3c569431c2d6b
2017-02-08 03:51:00 -05:00
Jenkins 320d96f72d Merge "Import _ from i18n.py" 2017-02-08 08:20:23 +00:00
Jenkins 43cc662de0 Merge "Enable Fuxi to use Manila share" 2017-02-08 08:10:19 +00:00
Jenkins 5163dfa9e9 Merge "RBD:Make the volume to do local attach after created" 2017-02-07 17:19:59 +00:00
Feng Shengqin 22cb7874e3 Fix logging format
After https://review.openstack.org/#/c/423570/,
there are still some loggings which need fix.

Change-Id: If4334f58162883be78a7f67e19435f622367f91f
2017-02-07 20:14:36 +08:00
Jenkins 3e680b53c1 Merge "Modify comment about FuxiException" 2017-02-07 03:08:46 +00:00
Jenkins 87cedd618d Merge "Fixes some typo errors on fuxi project." 2017-02-07 01:28:00 +00:00
Feng Shengqin d79cfa712b Import _ from i18n.py
Change-Id: I6968da24a1fa7c354c634924a767893b1e12f28f
2017-02-07 03:46:57 +08:00
Feng Shengqin f1bcfd15fc Modify comment about FuxiException
Change-Id: Iccf643f85363d07b46ac6a3d306af224ef9a66b9
2017-02-07 01:42:11 +08:00
Xu Ao 3772e6d11e RBD:Make the volume to do local attach after created
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
2017-02-04 16:47:33 +08:00
zhangni 8f27b9ed18 Enable Fuxi to use Manila share
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
2017-02-03 09:24:23 +08:00
Jenkins 4cf9271466 Merge "Replace hardcode values with OptGroup in config setting" 2017-01-26 16:34:07 +00:00
drngsl f5a275c857 Replace hardcode values with OptGroup in config setting
Change-Id: I08689031571b589fc0b0c4af5dc4089cee190ccf
2017-01-25 21:57:07 -05:00
Jenkins e1df839875 Merge "Fix logging format" 2017-01-25 17:45:27 +00:00
Dung Ha a8abafb5c3 Fixes some typo errors on fuxi project.
Change-Id: Ifefc999d3315c02d7ef757d59e01e81186b99cfe
2017-01-24 23:40:51 +07:00
Jenkins cc6c4ae5a1 Merge "Add help text for conf 'rootwrap_config'" 2017-01-24 09:37:07 +00:00
drngsl 5551ced184 Fix logging format
Change-Id: I4cc9921e38a45033a00ab397e61c6eddd4ad20f1
2017-01-20 20:12:55 -05:00
Jenkins c3ea17f816 Merge "Removes unnecessary utf-8 encoding" 2017-01-20 02:18:07 +00:00
Jenkins c71f16d0d2 Merge "Raise exception when find more than one matched Cinder volumes" 2017-01-16 01:24:47 +00:00
Jenkins 6f9770ff81 Merge "Use the default executor in os-brick" 2017-01-13 14:52:38 +00:00