Commit Graph

74 Commits

Author SHA1 Message Date
Zuul 5503d44ee5 Merge "Remove deprecated oslotest.mockpatch usage" 2017-10-27 06:23:46 +00:00
Sean Pryor 6c56e96b5c Removed kwarg enforce_type from oslo.config set_override method
This change relates to change I8a5e868e0adc2c7b6f46f56ee77a8129c34badb9
which removes the kwarg enforce_type from the oslo config library
functions set_override and set_default

Change-Id: Ic1bbd5c965440a38ed9f35dd451f6025c30330ca
2017-10-27 03:09:48 +00:00
Thomas Bechtold 808a5b14fc Remove deprecated oslotest.mockpatch usage
It is deprecated[1] and will be removed soon.

[1] https://docs.openstack.org/oslotest/latest/reference/api/oslotest.mockpatch.html

Change-Id: I06f12724c7e64057f1c5971f4847f878a3f87a51
Closes-Bug: #1712017
2017-10-27 03:08:47 +00:00
Jon Schlueter 0ce7a9d7f3 fixup python35 tox
bilean/api/openstack/versions.py used httplib convert to using
six.moves http_client

https://pythonhosted.org/six/#module-six.moves identified httplib
since six is already part of requirements this is the easiest
approach to making this code python 2 and 3 compatible

Change-Id: Ieb2357fc7c2945b95d9d5d117d6f2ebc8c88d6ae
2017-10-17 23:24:25 -04:00
Dung Ha 2f13fc3283 Fixes all current typo errors on Bilean project.
Change-Id: I3fccec3af657e49f3f149318829eb970f3183913
2017-06-23 05:50:48 +00:00
Jenkins a3fb6de594 Merge "Remove unused logging import" 2017-06-23 03:54:30 +00:00
lvdongbing 6f880c827b Remove sqlite_db in set_defaults()
Config option sqlite_db was removed from oslo.db[1].  Unit tests will be
failed if this argument is set, so we shouldn't set its default value.

[1]cc64f70105

Change-Id: I0f84690a538544a76d2ee536e2c6378d91055528
2017-06-22 15:27:30 +08:00
Anh Tran b35c2b1c4d Remove unused logging import
Change-Id: I087e7a221ea784678e8a90d2666e2ccc28831ecb
2017-02-16 10:21:15 +07:00
Jenkins aa15d9e9e3 Merge imports in code
This patch merges all lines importing i18n into 1 line:

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I1f637883cbc5e0efd1bc20feb6cb672b8f92d4a0
2016-09-01 09:10:49 +00:00
Jenkins 03250b0a82 Merge "Translate info-level log messages for LOG.info" 2016-09-01 07:12:06 +00:00
Jenkins cab7399499 Merge "Translate info-level log messages for LOG.warn" 2016-08-30 05:54:14 +00:00
gengchc2 a67563944f Translate info-level log messages for LOG.info
The Log "LOG.info(_LI(...)" is used in some places,
but the log "LOG.info(_(..))"  still used in a few places.

Change-Id: I12a25b9c95f67e08db0f422aa8fcff39028ccf95
2016-08-29 05:22:22 +00:00
gengchc2 2f287ffdc0 Translate info-level log messages for LOG.warn
The Log "LOG.warn(_LW(...)" is used in some places,but
the log "LOG.warn(_(..))"  still used in a few places.

Change-Id: Ife3ce21190907386e69f78f97b9c601467016b89
2016-08-26 23:47:03 +00:00
gengchc2 c6e90aaed2 Correct bilean reraising of exception
When an exception was caught and rethrown, it should call 'raise'
without any arguments because it shows the place where an exception
occured initially instead of place where the exception re-raised

Change-Id: Iee0d0c14c77e4ae2dbd0c3661eb7e3959a244290
2016-08-26 09:14:21 +00:00
Nguyen Hung Phuong e09fdeddad Clean imports in code
In some part in the code we import objects.
In the Openstack style guidelines they recommend to import only
modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: Ie752a6115effac5e2539f27340bd6f922e9dae58
2016-08-24 15:51:17 +07:00
lvdongbing a1f01ab73e Suupport to generate resource consumption list.
Change-Id: I691cad21e63772e00602cb0048974e635dc144a1
2016-08-14 23:05:17 -04:00
lvdongbing 673374761e Should generate consumpiton when freeze
Change-Id: Id6d3ef30badc7ca0f7c7e51e61837f1b5390ec7c
2016-08-09 04:26:45 -04:00
Jenkins a6fff8d084 Merge "Auto set first policy as default policy" 2016-08-09 03:28:50 +00:00
lvdongbing 132891b988 Auto set first policy as default policy
Change-Id: I6bd5a8f9718ac9a282c3bd409ae261072a88b8b7
2016-08-08 22:57:45 -04:00
lvdongbing 1a0b71ecb2 Fix the issue that consumption filter not work
Change-Id: I27118fd95864c1383339c3e74da799d3c841d9fd
2016-08-07 23:18:20 -04:00
lvdongbing aee6d03c03 Add os.cinder.volume plugin
Change-Id: I0a465fbb1763fd84f95dbe8898788bcea9811fd4
2016-08-04 03:06:12 -04:00
lvdongbing 711c54e6d2 Add consumptions API support.
Change-Id: I56a60b98801fce9de6a792371d3ca60ed5712c56
2016-08-03 21:07:06 -04:00
lvdongbing ff26ed98e7 Replace float with decimal
Floating point calculations are inaccurate, often lose precision even
when storing into database. So we replace float with decimal.

Change-Id: I3782264015e0b0e260f0c046dc7c3ea94eab0b52
2016-06-22 21:11:09 -04:00
lvdongbing 5025328bc1 Enable notification messaging pools
Use notification pools by default and use the same notification
topic as ceilometer, separate notification topic is no need to add.

Change-Id: Ieef1ece78e6e8d20abfeea9546e1a9170b7eeb70
2016-06-11 21:33:42 -04:00
Andreas Jaeger e5385d4e9b Remove unused POT files
We do not store translation source files anymore
in git, remove the outdated file.

Change-Id: I24da40db05492e413768da8b4885242810a6c517
2016-06-09 15:09:49 +02:00
lvdongbing 1dbdb83115 Combine rules and resources to plugins
Change-Id: Iee26ccbd47918c198edbcea5f9368d0609783e2b
2016-06-06 05:40:36 -04:00
Jenkins 2408d71cb4 Merge "Modify api and remove project_id" 2016-05-12 03:16:10 +00:00
lvdongbing d1f574f9dc Modify api and remove project_id
Change-Id: If87115db29f6f1bf80963be2b3af5d6d8a5f1caf
2016-05-11 21:32:49 -04:00
lvdongbing f0d0a1403a Separate consumption and recharge from event
Change-Id: I77d8ae8952f8a436105277f13ca469ea7130aa97
2016-04-14 05:51:33 -04:00
Jenkins 2c9d918525 Merge "Add 'name' field to user object" 2016-04-12 09:33:11 +00:00
lvdongbing 3a825e2e07 Add 'name' field to user object
Change-Id: I47bd9e0b35e61e9999c4563b797764a7e002b086
2016-04-12 05:12:04 -04:00
lvdongbing c31a3afcc4 Enable to set project_id when get service context
Change-Id: Id8a882e81cc8aba603dd8b9bc061566760f53a92
2016-04-12 03:20:09 -04:00
lvdongbing 1e540840c3 Add actions
Make every operation as an action, and divide an action into
serveral atom task, this make sure that every operation could
be correctly executed.

Change-Id: I99ad1400936dc7236b7c55bcf67239dedbca0f48
2016-04-05 04:48:41 -04:00
lvdongbing 1782a3d694 Separate scheduler as a service
Separate scheduler as a service to improve engine's performance.

Change-Id: I76446a08036df886c8d7e14430d08ed901901799
2016-03-27 21:58:13 -04:00
lvdongbing c4546c1d5c Add user lock.
Change-Id: Ia4d2069b910cdaba3b8666275d0290636d773f82
2016-03-23 03:36:01 -04:00
lvdongbing df6044d409 Release instance when freeze user
Change-Id: I54694f0573615399dad55fdbc4b82bfa51b4e0ca
2016-03-21 21:11:34 -04:00
lvdongbing f980eeb988 Revise daily job
Daily job should always be there until the user is deleted.

Change-Id: Ic80c7d540fafbd35f285e233400b2e2147480820
2016-03-15 02:28:11 -04:00
lvdongbing 16726ae7af Fix the issue that cannot delete resource
Change-Id: Id0e7e955c2b787a6e2d1fd06f58551ac273f54bf
2016-03-14 22:59:36 -04:00
lvdongbing fbe61bc996 Fix the issue when generating events
Closes-bug: #1553856
Change-Id: I78c2dd79717970f624e3a4d3bd343c54aba2df2b
2016-03-07 02:01:30 -05:00
lvdongbing 0f3444d506 Fix bugs when creating resource.
Change-Id: Ieb0bad7d951e279e1a4b568740c61d70a810f234
2016-03-04 03:08:19 -05:00
lvdongbing 9e779b134b Support to attach policy to user
Change-Id: I05512d1a46ddac6fb057acb0ec4408f7444864e1
2016-03-02 16:53:28 +08:00
Jenkins 910b928807 Merge "Deprecated tenant" 2016-03-01 07:13:10 +00:00
lvdongbing 039316bc33 Deprecated tenant
As Keystone V3 deprecated tenant, we use project instead of tenant.

Change-Id: I20caba7872210c339b3a1aff7e0ebf7555084110
2016-02-27 09:15:57 +08:00
lvdongbing 6563c227f7 Support to add rules to policy
Change-Id: If656bebf4631be9db7fe3ef59212c788cc8abdf9
2016-02-27 06:21:47 +08:00
lvdongbing 9f0b6822f0 Remove old clients thoroughly
Bilean now use openstacksdk, old clients should be removed horoughly.

Change-Id: I2cb343f877f566e22415b90781854a597a0f6b97
2016-02-02 17:16:28 +08:00
lvdongbing 85071b7b42 Remove pdb code
Change-Id: Iddab6c2d1569d9cb420e908cbcfde57627d13272
2016-02-02 17:00:37 +08:00
lvdongbing d6b03252ad Use openstacksdk to communicate with other services
Change-Id: I083fc384b79665f9c64efa867a3b6d93f094dd0e
2016-02-02 16:29:59 +08:00
Jenkins 3120e19f61 Merge "Set hostname as engine_id" 2016-01-29 05:59:21 +00:00
lvdongbing 292ee44854 Set hostname as engine_id
The engine_id used uuid will change every time when bilean-engine
rebooting, it made enine can not load related jobs from db. This
patch sets bilean-engine's hostname as engine_id.

Change-Id: I2ae41bd3ec0924febf6a13efbd90fcccf9710d25
2016-01-27 22:47:12 +08:00
lvdongbing 9f325c0be1 Change bilean_task to scheduler.
Module 'bilean_task' has been renamed to 'scheduler', some missing
points make it fail to generate sample config and maybe some other
problem, this patch fixes this issue.

Change-Id: I566e7b9827fe2b7b599aba04a9c968a7ecad6b1b
2016-01-27 22:28:38 +08:00