Commit Graph

11 Commits

Author SHA1 Message Date
Jean-Emile DARTOIS
6a55914b05 Fix config loading when running the watcher-api
This regression was caused when we upgrade the version of olso.
Unfortunately this issue wasn't picked up with the unit tests as
the cmds doesn't have unit tests yet.

Error message: "watcher-api fail with NoSuchOptError: no such option:debug"

This patchset implements unit tests for:

- 'watcher-api' command
- 'watcher-db-manage' command (and sub-command)
- 'watcher-applier' command

Change-Id: I2bea8aee28dec913ebc45f2824bf474f86652642
2015-11-23 10:49:21 +01:00
Jenkins
4d2d73aa98 Merge "Avoid dividing zero" 2015-11-19 09:01:27 +00:00
Zhenzan Zhou
a6db530c77 Avoid dividing zero
Some flavors may set disk size 0 byte, so disk_capacity may be 0.

Change-Id: I0f2cfd5ce9f64cd94e7b6ded7865384cb2b1e190
Closes-Bug: #1517033
2015-11-17 22:04:32 +08:00
Kevin_Zheng
8920fe0649 Should use watcher/common/context.py for consistency
Use watcher/common/context.py in watcher/common/service.py
for consistency

Change-Id: I0dc99e04a3e936c3da38598bd9aac469d79a793b
2015-11-17 14:32:04 +08:00
Kevin_Zheng
f7ac53c04c Update policy.py
Update watcher/openstack/common/policy.py to keep
up with other openstack components.

Change-Id: Ia6cd00363e0fbf0c72a24b3bb9bb5468e17a71e9
2015-11-17 11:32:33 +08:00
David TARDIVEL
c7e5dc5dcd Watcher notification listener is associated with an executor which integrates
the listener with a specific I/O handling framework. blocking executor should be
the default one.

Change-Id: I10431fefa5f9d4dff3f8482a38c534f1263e67e8
2015-11-14 19:23:35 +01:00
wangxiyuan
57be02dcd2 Use i18n directly
We should use i18n directly rather than openstack/common.

Change-Id: I64d3abce4ee2747b670bc921ffbb03d76defd42c
2015-11-13 16:55:34 +08:00
unknown
0c348313a4 Use olso.log directly
As the openstack/common is deprecated, Watcher should use oslo lib
directly to run in the openstack env. So there is much work to do
with oslo. This patch fixed the log part.

Change-Id: I3145a842fe3a22b3d08fec60d180329073edd50f
2015-11-12 16:06:11 +08:00
Jean-Emile DARTOIS
74160c5e78 consolidation of watcher
Change-Id: I9c82ef4d8a81af98afdfc34f5ad496bcade4af6a
2015-10-22 17:04:14 +02:00
Jean-Emile DARTOIS
77fcefbfbb fix dependencies version
Change-Id: I5fc4b3e8193232379a6aa2b6cc4ef6457f0a6ef1
2015-10-22 16:34:14 +02:00
David TARDIVEL
d14e057da1 initial version
Change-Id: I699e0ab082657880998d8618fe29eb7f56c6c661
2015-06-04 15:27:57 +02:00