Tuesday, 2016-06-21

*** thorst_ has joined #openstack-watcher00:00
openstackgerritTin Lam proposed openstack/watcher: Add bandit in tox -e pep8  https://review.openstack.org/33189000:04
*** thorst_ has quit IRC00:09
*** thorst_ has joined #openstack-watcher00:42
*** thorst_ has quit IRC01:18
*** thorst_ has joined #openstack-watcher01:19
*** thorst_ has quit IRC01:28
*** thorst_ has joined #openstack-watcher02:26
*** thorst_ has quit IRC02:33
*** thorst_ has joined #openstack-watcher03:32
*** thorst_ has quit IRC03:37
*** thorst_ has joined #openstack-watcher04:34
*** thorst_ has quit IRC04:42
*** jwcroppe has joined #openstack-watcher05:28
*** ecelik has joined #openstack-watcher05:33
*** thorst_ has joined #openstack-watcher05:40
*** thorst_ has quit IRC05:47
*** thorst_ has joined #openstack-watcher06:45
*** thorst_ has quit IRC06:52
*** jwcroppe has quit IRC06:57
*** jwcroppe has joined #openstack-watcher07:00
*** Kevin_Zheng has quit IRC07:13
*** vincentfrancoise has joined #openstack-watcher07:24
tkaczynskihey guys, I'm trying to learn in details how to develop a third party plugin for watcher07:32
tkaczynskiI've found this: https://factory.b-com.com/www/watcher/doc/watcher/dev/plugin/base-setup.html07:32
vincentfrancoisehi tkaczynski07:33
tkaczynskithen there are links how to develop a strategy plugin etc. but I've found this insufficient07:33
vincentfrancoisewhat is it that is missing?07:33
tkaczynskiis there any more documentation about that? especially that this plugin might be typically in the separate git repository. so here are my questions:07:34
vincentfrancoiseBTW, the latest watcher doc is now available at http://docs.openstack.org/developer/watcher07:34
tkaczynski1. how do I include this plugin repo in Watcher, so that the strategy is auto-discovered on watcher restart?07:35
*** danpawlik has joined #openstack-watcher07:35
vincentfrancoiseI was the one writing it so there isn't any more than this AFAICT07:35
tkaczynski2. from plugin perspective: how do I reference the strategy base class? as plugin is in a separate repo, I need a way to somehow add "watcher" dependency as a kind of library, so I can reference it, no?07:36
vincentfrancoisefor your 1st question, isn't the answer in http://docs.openstack.org/developer/watcher/dev/plugin/strategy-plugin.html#using-strategy-plugins07:37
*** jed56 has joined #openstack-watcher07:37
vincentfrancoise"The Watcher Decision Engine service will automatically discover any installed plugins when it is restarted"07:37
tkaczynskiwell, it doesn't say how do I include this external git repo07:38
vincentfrancoiseas for your second question, I guess it's not explicitely stated in the doc07:38
vincentfrancoisebut as you can see in the NewStrategy07:38
vincentfrancoisewhich is the example of implementation given in the doc07:38
vincentfrancoiseyou have to import the base class from watcher07:39
tkaczynskiso how do I import it?07:39
tkaczynskicopy - paste?07:39
vincentfrancoiseso yes you do need to add Watcher as a dependency in your 3rd party07:39
vincentfrancoisein requirements.txt07:40
tkaczynskiso reference Watcher git repo and install using pip?07:40
vincentfrancoiseI'll create a bug ticket so we explicit this dependency thing then07:40
vincentfrancoiseor the pypi package (python-watcher)07:40
tkaczynskiI think what would really be helpful is a step-by-step tutorial how to develop a new strategy as a plugin. many pieces are already there, I would really really love to have that :)07:43
tkaczynskiI like the page with cookiebutter. run this command, add this class, restart something... it's just not guiding to the end07:44
danpawliktkaczynski: +107:44
vincentfrancoiseI created https://bugs.launchpad.net/watcher/+bug/159470507:45
openstackLaunchpad bug 1594705 in watcher "Mention Watcher dependency when creating 3rd-party plugins" [Undecided,Triaged]07:45
vincentfrancoiseplease tell me or amend it directly if you feel we need to add anything more.07:45
tkaczynskithanks Vincent :)07:46
tkaczynskiI'm going to implement a similar pluggability model for scoring engines, so it's critical that I understand how it works. I will need to do this exercise now, I will try to take notes what it takes to develop a plugin end-to-end07:47
tkaczynskibut I already see that it won't be easy and there are gaps in the documentation. hopefully when I finish I will help to close these gaps07:48
vincentfrancoiseGood to hear :)07:48
vincentfrancoiseIt wasn't not such an easy task to write a step-by-step doc without missing anything07:49
*** thorst_ has joined #openstack-watcher07:50
*** hanrong1 has joined #openstack-watcher07:52
openstackgerritBruno Grazioli proposed openstack/watcher: Check if nova-service is already disabled  https://review.openstack.org/33123007:54
*** thorst_ has quit IRC07:57
*** brunograz has joined #openstack-watcher07:59
*** jinquan has joined #openstack-watcher08:10
tkaczynskiof course. such things are in general quite difficult. basically somebody needs to do a "dry run" and test whether it actually works08:24
tkaczynskiand this should be done periodically, because software is changing, so it's additional work to keep it up to date08:25
*** Kevin_Zheng has joined #openstack-watcher08:33
vincentfrancoisetkaczynski: sure08:34
vincentfrancoisewe are mainly operating in a best effort manner regarding the doc08:35
openstackgerritMerged openstack/watcher: Add bandit in tox -e pep8  https://review.openstack.org/33189008:40
openstackgerritMerged openstack/watcher: Check if nova-service is already disabled  https://review.openstack.org/33123008:40
*** openstackgerrit has quit IRC09:18
*** openstackgerrit has joined #openstack-watcher09:18
openstackgerritJinquan Ni proposed openstack/watcher: Use disabled/enabled to change service state  https://review.openstack.org/33050710:10
*** Kevin_Zheng has quit IRC10:43
*** Zucan has quit IRC11:53
*** Zucan has joined #openstack-watcher13:03
*** hvprash has joined #openstack-watcher13:13
*** hvprash_ has joined #openstack-watcher13:16
*** hvprash has quit IRC13:19
*** esberglu has joined #openstack-watcher13:22
openstackgerritGrigorios Katsaros proposed openstack/watcher-specs: Graph model describing virtual and physical elements in a data center  https://review.openstack.org/29889113:38
zigoGuys, you've seen that watcher is now in Debian, right? :)13:46
vincentfrancoisezigo: hi13:47
*** hvprash has joined #openstack-watcher13:47
zigoIt got accepted this week-end.13:47
*** openstackgerrit has quit IRC13:48
vincentfrancoisenice !13:48
*** openstackgerrit has joined #openstack-watcher13:48
*** hvprash_ has quit IRC13:51
*** hvprash_ has joined #openstack-watcher13:53
*** hvprash has quit IRC13:55
*** jinquan1 has joined #openstack-watcher14:15
openstackgerritGrigorios Katsaros proposed openstack/watcher-specs: Graph model describing virtual and physical elements in a data center  https://review.openstack.org/29889114:19
*** dtardivel has joined #openstack-watcher14:52
jed56sballe_: hi14:56
sballe_jed56: do you know if nova supports cgroups?14:57
jed56What is the context ?14:58
jed56cgroups is not used anymore by docker14:58
jed56I believe that CPU quota can be handled by cgroup15:00
jed56in nova15:00
sballe_I am looking for isolation15:00
jed56QEMU and LXC drivers use Cgroups15:01
*** alexchadin has joined #openstack-watcher15:03
vincentfrancoisealexchadin: hi15:04
alexchadinvincentfrancoise: I have assigned this bug https://bugs.launchpad.net/watcher/+bug/1594434 to Alexander Stavitskiy15:04
openstackLaunchpad bug 1594434 in watcher "Import module instead of class" [Low,Triaged] - Assigned to Alexander Stavitskiy (alexstav)15:04
alexchadinvincentfrancoise: is it okay?15:05
vincentfrancoiseoh yeah go for it :)15:05
sballe_jed56: I guess I am trying to figure out if you can define a group via APIs. For example SLURM and other resource managers allow you to put all the processes for a given job in a group using cgroup15:06
jed56what is SLURM ?15:09
openstackgerritGrigorios Katsaros proposed openstack/watcher-specs: Graph model describing virtual and physical elements in a data center  https://review.openstack.org/29889115:22
dtardivelsballe_: please, could you merge this spec https://review.openstack.org/#/c/317130/ ? Thx15:35
sballe_dtardivel: just workflow+1?15:36
dtardivelyes please, we have 2 +2 and 2 +1 :)15:36
openstackgerritMerged openstack/watcher-specs: Audit parameters should be persistent in Db  https://review.openstack.org/31713015:41
*** alexchadin has quit IRC15:59
*** ss4 has joined #openstack-watcher16:01
jed56if you want to see a video of the watcher git history https://www.youtube.com/watch?v=q5RliegWf1g16:04
*** brunograz has quit IRC16:04
openstackgerritMerged openstack/python-watcherclient: Replaced UUID of goal with name  https://review.openstack.org/33155216:16
openstackgerritAlexandr Stavitskiy proposed openstack/watcher: Add importing modules instead of classes  https://review.openstack.org/33224116:39
*** alexchadin has joined #openstack-watcher16:41
*** alexchadin has quit IRC16:43
*** hvprash_ has quit IRC16:44
*** hvprash has joined #openstack-watcher16:44
*** hvprash_ has joined #openstack-watcher16:45
*** vincentfrancoise has quit IRC16:48
*** hvprash has quit IRC16:49
*** jinquan1 has quit IRC16:53
*** jwcroppe has quit IRC17:01
openstackgerritMerged openstack/watcher: Use disabled/enabled to change service state  https://review.openstack.org/33050717:03
*** jwcroppe has joined #openstack-watcher18:41
openstackgerritVladimir Ostroverkhov proposed openstack/watcher: Add goal_name field in strategy  https://review.openstack.org/33155119:17
*** esberglu_ has joined #openstack-watcher19:27
*** esberglu has quit IRC19:28
*** esberglu_ is now known as esberglu19:28
*** jimbaker has quit IRC19:29
*** jwcroppe has quit IRC19:30
*** ecelik has quit IRC19:30
*** jimbaker has joined #openstack-watcher19:34
*** jimbaker has quit IRC19:34
*** jimbaker has joined #openstack-watcher19:34
*** ecelik has joined #openstack-watcher19:42
*** jwcroppe has joined #openstack-watcher19:44
*** jwcroppe has quit IRC19:56
*** jwcroppe has joined #openstack-watcher20:05
*** Zucan has quit IRC20:07
*** dtardivel has quit IRC20:17
*** hvprash_ has quit IRC20:23
*** hvprash has joined #openstack-watcher20:27
*** ss4 has quit IRC21:01
*** esberglu has quit IRC22:00
*** hvprash has quit IRC22:19
*** jwcroppe has quit IRC22:57
*** jwcroppe has joined #openstack-watcher23:14
*** jwcroppe has quit IRC23:17
*** jwcroppe has joined #openstack-watcher23:17

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!