*** thorst__ has quit IRC | 00:00 | |
*** thorst__ has joined #openstack-watcher | 00:00 | |
*** thors____ has quit IRC | 00:01 | |
*** thorst___ has joined #openstack-watcher | 00:01 | |
*** thor_____ has quit IRC | 00:02 | |
*** thors____ has joined #openstack-watcher | 00:03 | |
*** thorst_ has quit IRC | 00:03 | |
*** thorst_ has joined #openstack-watcher | 00:04 | |
*** thor_____ has joined #openstack-watcher | 00:05 | |
*** thorst__ has quit IRC | 00:05 | |
*** thorst___ has quit IRC | 00:05 | |
*** thorst__ has joined #openstack-watcher | 00:06 | |
*** thorst___ has joined #openstack-watcher | 00:07 | |
*** tho______ has joined #openstack-watcher | 00:08 | |
*** thors____ has quit IRC | 00:08 | |
*** thorst_ has quit IRC | 00:08 | |
*** thorst_ has joined #openstack-watcher | 00:08 | |
*** thors____ has joined #openstack-watcher | 00:09 | |
*** thor_____ has quit IRC | 00:09 | |
*** thorst__ has quit IRC | 00:10 | |
*** thorst___ has quit IRC | 00:11 | |
*** tho______ has quit IRC | 00:12 | |
*** thorst__ has joined #openstack-watcher | 00:12 | |
*** thorst_ has quit IRC | 00:13 | |
*** thorst_ has joined #openstack-watcher | 00:13 | |
*** thors____ has quit IRC | 00:14 | |
*** thorst___ has joined #openstack-watcher | 00:14 | |
*** thors____ has joined #openstack-watcher | 00:15 | |
*** thor_____ has joined #openstack-watcher | 00:16 | |
*** thorst__ has quit IRC | 00:17 | |
*** thorst__ has joined #openstack-watcher | 00:17 | |
*** thorst_ has quit IRC | 00:18 | |
*** thorst_ has joined #openstack-watcher | 00:18 | |
*** thorst___ has quit IRC | 00:18 | |
*** thors____ has quit IRC | 00:19 | |
*** thorst___ has joined #openstack-watcher | 00:19 | |
*** thors____ has joined #openstack-watcher | 00:20 | |
*** thor_____ has quit IRC | 00:20 | |
*** thor_____ has joined #openstack-watcher | 00:21 | |
*** tho______ has joined #openstack-watcher | 00:22 | |
*** thorst__ has quit IRC | 00:22 | |
*** thorst_ has quit IRC | 00:23 | |
*** thorst_ has joined #openstack-watcher | 00:23 | |
*** thorst___ has quit IRC | 00:23 | |
*** thors____ has quit IRC | 00:24 | |
*** thorst__ has joined #openstack-watcher | 00:24 | |
*** thorst___ has joined #openstack-watcher | 00:25 | |
*** thor_____ has quit IRC | 00:25 | |
*** tho______ has quit IRC | 00:26 | |
*** thors____ has joined #openstack-watcher | 00:26 | |
*** thor_____ has joined #openstack-watcher | 00:27 | |
*** thorst_ has quit IRC | 00:27 | |
*** thorst_ has joined #openstack-watcher | 00:28 | |
*** thorst__ has quit IRC | 00:29 | |
*** thorst__ has joined #openstack-watcher | 00:29 | |
*** thorst___ has quit IRC | 00:30 | |
*** thorst___ has joined #openstack-watcher | 00:30 | |
*** thors____ has quit IRC | 00:31 | |
*** thors____ has joined #openstack-watcher | 00:31 | |
*** thor_____ has quit IRC | 00:31 | |
*** thorst_ has quit IRC | 00:32 | |
*** thorst_ has joined #openstack-watcher | 00:32 | |
*** thor_____ has joined #openstack-watcher | 00:33 | |
*** tho______ has joined #openstack-watcher | 00:34 | |
*** thorst__ has quit IRC | 00:34 | |
*** thorst___ has quit IRC | 00:35 | |
*** thorst__ has joined #openstack-watcher | 00:35 | |
*** thors____ has quit IRC | 00:36 | |
*** thorst___ has joined #openstack-watcher | 00:37 | |
*** thorst_ has quit IRC | 00:37 | |
*** thor_____ has quit IRC | 00:37 | |
*** thorst_ has joined #openstack-watcher | 00:38 | |
*** tho______ has quit IRC | 00:38 | |
*** thors____ has joined #openstack-watcher | 00:39 | |
*** thorst__ has quit IRC | 00:39 | |
*** thorst__ has joined #openstack-watcher | 00:40 | |
*** thor_____ has joined #openstack-watcher | 00:41 | |
*** thorst___ has quit IRC | 00:41 | |
*** thorst___ has joined #openstack-watcher | 00:42 | |
*** thorst_ has quit IRC | 00:42 | |
*** thorst_ has joined #openstack-watcher | 00:43 | |
*** thors____ has quit IRC | 00:43 | |
*** thors____ has joined #openstack-watcher | 00:44 | |
*** thorst__ has quit IRC | 00:44 | |
*** thorst__ has joined #openstack-watcher | 00:45 | |
*** thor_____ has quit IRC | 00:45 | |
*** thorst___ has quit IRC | 00:46 | |
*** thorst___ has joined #openstack-watcher | 00:47 | |
*** thorst_ has quit IRC | 00:47 | |
*** thorst_ has joined #openstack-watcher | 00:48 | |
*** thors____ has quit IRC | 00:48 | |
*** thors____ has joined #openstack-watcher | 00:49 | |
*** thorst__ has quit IRC | 00:49 | |
*** thorst__ has joined #openstack-watcher | 00:50 | |
*** thor_____ has joined #openstack-watcher | 00:51 | |
*** thorst___ has quit IRC | 00:52 | |
*** thorst___ has joined #openstack-watcher | 00:52 | |
*** thorst_ has quit IRC | 00:53 | |
*** thors____ has quit IRC | 00:53 | |
*** thorst_ has joined #openstack-watcher | 00:54 | |
*** thorst__ has quit IRC | 00:55 | |
*** thorst__ has joined #openstack-watcher | 00:55 | |
*** thor_____ has quit IRC | 00:56 | |
*** thors____ has joined #openstack-watcher | 00:56 | |
*** thorst___ has quit IRC | 00:56 | |
*** thorst___ has joined #openstack-watcher | 00:57 | |
*** thor_____ has joined #openstack-watcher | 00:58 | |
*** thorst_ has quit IRC | 00:58 | |
*** thorst_ has joined #openstack-watcher | 00:59 | |
*** thorst__ has quit IRC | 01:00 | |
*** yuywz has joined #openstack-watcher | 01:00 | |
*** thorst__ has joined #openstack-watcher | 01:01 | |
*** thors____ has quit IRC | 01:01 | |
*** thorst___ has quit IRC | 01:01 | |
*** thorst___ has joined #openstack-watcher | 01:01 | |
*** thor_____ has quit IRC | 01:02 | |
*** thors____ has joined #openstack-watcher | 01:03 | |
*** thorst_ has quit IRC | 01:03 | |
*** thorst_ has joined #openstack-watcher | 01:04 | |
*** thorst__ has quit IRC | 01:05 | |
*** thor_____ has joined #openstack-watcher | 01:05 | |
*** thorst___ has quit IRC | 01:06 | |
*** thorst__ has joined #openstack-watcher | 01:06 | |
*** thorst___ has joined #openstack-watcher | 01:07 | |
*** thors____ has quit IRC | 01:08 | |
*** thorst_ has quit IRC | 01:09 | |
*** thors____ has joined #openstack-watcher | 01:09 | |
*** thorst_ has joined #openstack-watcher | 01:10 | |
*** thor_____ has quit IRC | 01:10 | |
*** thorst__ has quit IRC | 01:10 | |
*** thorst__ has joined #openstack-watcher | 01:10 | |
*** thorst___ has quit IRC | 01:11 | |
*** thorst___ has joined #openstack-watcher | 01:11 | |
*** thor_____ has joined #openstack-watcher | 01:12 | |
*** tho______ has joined #openstack-watcher | 01:13 | |
*** thors____ has quit IRC | 01:13 | |
*** thors____ has joined #openstack-watcher | 01:14 | |
*** thorst_ has quit IRC | 01:14 | |
*** thorst__ has quit IRC | 01:15 | |
*** thorst_ has joined #openstack-watcher | 01:15 | |
*** thorst___ has quit IRC | 01:16 | |
*** thorst__ has joined #openstack-watcher | 01:16 | |
*** thorst__ has quit IRC | 01:16 | |
*** thorst__ has joined #openstack-watcher | 01:16 | |
*** thor_____ has quit IRC | 01:17 | |
*** tho______ has quit IRC | 01:18 | |
*** thorst__ has quit IRC | 01:19 | |
*** thors____ has quit IRC | 01:19 | |
*** thorst_ has quit IRC | 01:20 | |
*** hvprash has joined #openstack-watcher | 01:41 | |
openstackgerrit | junjie.huang proposed openstack/watcher-specs: Airflow event based migration strategy spec https://review.openstack.org/275474 | 01:43 |
---|---|---|
*** hvprash has quit IRC | 01:46 | |
*** zarkone has joined #openstack-watcher | 04:25 | |
*** apoorv has joined #openstack-watcher | 05:23 | |
*** esracelik has joined #openstack-watcher | 06:24 | |
*** brunograz has joined #openstack-watcher | 07:06 | |
*** brunograz has quit IRC | 07:09 | |
*** jed56 has joined #openstack-watcher | 07:19 | |
*** danpawlik has joined #openstack-watcher | 07:26 | |
*** acabot_ has joined #openstack-watcher | 07:27 | |
*** vincentfrancoise has joined #openstack-watcher | 07:29 | |
*** acabot_ has quit IRC | 07:31 | |
*** apoorv has quit IRC | 08:16 | |
*** wootehfoot has joined #openstack-watcher | 08:40 | |
*** apoorv has joined #openstack-watcher | 08:42 | |
*** dtardivel has joined #openstack-watcher | 08:42 | |
*** wootehfoot has quit IRC | 08:47 | |
openstackgerrit | Alexander Chadin proposed openstack/watcher: Add Overload standard deviation strategy https://review.openstack.org/297590 | 08:48 |
*** openstackgerrit has quit IRC | 09:04 | |
*** openstackgerrit has joined #openstack-watcher | 09:04 | |
*** zarkone has quit IRC | 09:22 | |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: Add PrettyTable module https://review.openstack.org/315446 | 09:30 |
*** alexchadin has joined #openstack-watcher | 09:37 | |
alexchadin | hi | 09:39 |
vincentfrancoise | hi | 09:39 |
alexchadin | don't you know where i can place periodic_task method in decision engine? | 09:39 |
vincentfrancoise | this periodic_task related to the audit right? | 09:41 |
alexchadin | Yeap | 09:41 |
jed56 | you should modify the audit handler | 09:41 |
jed56 | DefaultAuditHandler | 09:41 |
jed56 | i think | 09:41 |
vincentfrancoise | jed56: +1 | 09:42 |
vincentfrancoise | that's what I was thinking about | 09:42 |
alexchadin | hm | 09:42 |
alexchadin | I imported periodic_task from oslo_service | 09:42 |
jed56 | IMHO, you should manage several DefaultStrategyContext at the same time | 09:43 |
alexchadin | and call method like @periodic_task.periodic_task def test_method(self,context) | 09:43 |
alexchadin | You mean to have several objects of DefaultStrategyContext? | 09:45 |
*** alexchad_ has joined #openstack-watcher | 09:56 | |
openstackgerrit | Merged openstack/python-watcherclient: Add PrettyTable module https://review.openstack.org/315446 | 09:57 |
*** alexchadin has quit IRC | 09:58 | |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: Updated CLI for new /goals API https://review.openstack.org/298631 | 10:03 |
*** vincentfrancoise has quit IRC | 10:08 | |
*** alexchad_ is now known as alexchadin | 10:10 | |
*** apoorv has quit IRC | 10:17 | |
*** apoorv has joined #openstack-watcher | 10:21 | |
openstackgerrit | Merged openstack/python-watcherclient: Updated CLI for new /goals API https://review.openstack.org/298631 | 10:27 |
*** apoorv has quit IRC | 10:32 | |
*** alexchadin has quit IRC | 10:39 | |
jed56 | alexchadin : several instance of DefaultStrategyContext | 10:49 |
jed56 | the instance will contains the strategy parameters ( e.g scope, threshold, etc) | 10:52 |
*** hvprash has joined #openstack-watcher | 10:58 | |
*** hvprash has quit IRC | 11:00 | |
*** hvprash has joined #openstack-watcher | 11:02 | |
*** hvprash_ has joined #openstack-watcher | 11:04 | |
*** apoorv has joined #openstack-watcher | 11:05 | |
*** hvprash has quit IRC | 11:07 | |
*** hvprash_ has quit IRC | 11:17 | |
*** hvprash has joined #openstack-watcher | 11:22 | |
*** alexchadin has joined #openstack-watcher | 11:24 | |
alexchadin | jed56: I tried to place periodic method at DefaultStrategyContext, it isn't called | 11:26 |
jed56 | do you know why ? | 11:28 |
jed56 | you should manage the instances of DefaultStrategyContext in the DefaultAuditHandler | 11:29 |
jed56 | how did you design your periodic task ? | 11:30 |
*** apoorv has quit IRC | 11:30 | |
alexchadin | Yes, I know I should call DefaultStrategyContext in the DefaultAuditHandler | 11:31 |
alexchadin | And I need to find a class where I can place periodic task | 11:31 |
*** apoorv has joined #openstack-watcher | 11:31 | |
alexchadin | DefaultAuditHandler is called in AuditEndpoint, right? | 11:32 |
alexchadin | and AuditEndpoint is a rpc endpoint | 11:33 |
esracelik | hi all, first time I want to try watcher on devstack but I am getting the following error when I execute "watcher audit-template-create my_first_audit DUMMY" | 11:40 |
esracelik | Unknown attribute for argument audit_template_postdata: goal (HTTP 400) | 11:40 |
esracelik | I have "goals = DUMMY:dummy" option in my watcher.conf | 11:41 |
esracelik | any ideas? | 11:41 |
jed56 | alexchadin: you are right | 11:41 |
jed56 | hi esracelik | 11:41 |
esracelik | jed56: hi | 11:41 |
jed56 | hmm | 11:44 |
jed56 | we just merged the blueprint goal | 11:44 |
esracelik | jed56: ahh, so I need to update my repo, right? | 11:46 |
esracelik | I clone watcher a few hours ago.. | 11:46 |
jed56 | yes you should update watcher and python watcherclient | 11:48 |
jed56 | ah | 11:48 |
esracelik | jed56: my repo seems up-to-date. I am on master branch | 11:49 |
jed56 | okay let me try | 11:50 |
dtardivel | Hi esracelik | 11:56 |
esracelik | dtardivel: hi | 11:56 |
jed56 | IMHO, you should remove a section in the watcher.conf | 11:56 |
jed56 | I have to move dtardivel | 11:56 |
jed56 | will help you | 11:56 |
esracelik | jed56: thanks | 11:56 |
dtardivel | ok, did you update your python-watcherclient package ? | 11:57 |
*** alexchadin has quit IRC | 11:57 | |
esracelik | I updated python-watcher now sudo pip install -U python-watcher | 11:58 |
dtardivel | you have also to remove, in your watcher conf file the section [watcher_goals] | 11:58 |
esracelik | should I run pip install -U python-watcherclient | 11:58 |
*** alexchadin has joined #openstack-watcher | 11:58 | |
esracelik | ok, I manually added that section because of this problem actually. I am removing it | 11:59 |
dtardivel | about python-watcherclient, can you wait for 10mn. We had an issue with the gate yererday night. And the patches did not merged | 11:59 |
dtardivel | I'm working on them | 11:59 |
*** hvprash has quit IRC | 12:00 | |
esracelik | ok ok, thanks a lot | 12:00 |
alexchadin | jed56: could we continue about task? | 12:00 |
jed56 | alexchadin: I'm sorry i have a meeting now | 12:01 |
alexchadin | jed56: okay okay | 12:01 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: Added Strategy support in Watcher CLI https://review.openstack.org/299930 | 12:01 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: Support for refactored /audit_templates endpoint https://review.openstack.org/304759 | 12:02 |
dtardivel | I waiting for gate jobs for merging on python-watcherclient | 12:03 |
esracelik | BTW, I am working for a cloud compute laboratory and we are trying some energy efficiency services on cloud environments. currently we are implementing Anton Beloglazov's phd study on Dynamic VM consolidation in OpenStack Clouds. | 12:04 |
esracelik | Watcher seems to achieve this goal, we would actually like to contribute to watcher as well | 12:05 |
alexchadin | oh, I know Beloglazov:) | 12:06 |
esracelik | :) his study is very related with this issue | 12:07 |
alexchadin | I used some of his thoughts for my workload stabilization strategy | 12:08 |
alexchadin | but based it on standard deviation algorithm | 12:08 |
alexchadin | feel free to review it https://review.openstack.org/#/c/297590/ | 12:09 |
esracelik | ooh, sure | 12:09 |
*** apoorv has quit IRC | 12:24 | |
*** vincentfrancoise has joined #openstack-watcher | 12:24 | |
*** alexchadin has quit IRC | 12:38 | |
*** alexchadin has joined #openstack-watcher | 12:41 | |
alexchadin | vincentfrancoise: are you here? | 12:42 |
openstackgerrit | Merged openstack/python-watcherclient: Added Strategy support in Watcher CLI https://review.openstack.org/299930 | 12:43 |
vincentfrancoise | alexchadin: yes I am | 12:43 |
esracelik | dtardivel: your patch has been merged I think, right? | 12:45 |
openstackgerrit | Merged openstack/python-watcherclient: Support for refactored /audit_templates endpoint https://review.openstack.org/304759 | 12:45 |
dtardivel | esracelik: waiting for the last patchset to be merged by the gate. Sorry, it takes long time this afternoon | 12:45 |
alexchadin | I've talked with jed56 and still don't how to run periodic task in decision engine service | 12:45 |
dtardivel | please wait for again :) | 12:45 |
alexchadin | It seems that it run two threads to handle rpc | 12:46 |
alexchadin | But it doesn't handle internal periodic calls | 12:46 |
vincentfrancoise | Oh I see | 12:47 |
acabot | esracelik : hi esracelik | 12:47 |
acabot | esracelik : I suppose you are talking about OpenStack Neat | 12:47 |
esracelik | dtardivel: ok thanks | 12:47 |
esracelik | acabot: yes we tried openstack neat however it does not seem up-to-date so we implemented Anton's algorithms ourselves | 12:48 |
esracelik | acabot: have you tried it as well? | 12:49 |
acabot | esracelik : yes this project has been abandonned after Anton'thesis | 12:49 |
acabot | esracelik : we tried his solution before starting building Watcher | 12:49 |
acabot | esracelik : it was interesting but not flexible enough to enter the OpenStack community | 12:50 |
esracelik | acabot: ooh, we are at the same situation | 12:50 |
vincentfrancoise | alexchadin: I'm not sure I have the overall sense of how you want to do periodic tasks. Can you explain a bit how you think you want to do it? | 12:50 |
acabot | so we decided to build Watcher 18 months ago and provide a flexible framework to allow any admin to build its own optimization strategy | 12:51 |
acabot | it could be nice now to implement Anton's strategy in Watcher (its something we should have done...) | 12:52 |
esracelik | acabot: yes I think so, maybe we can work on this | 12:52 |
acabot | esracelik : sure it could be great, for which company are you working ? | 12:53 |
esracelik | acabot: I am working at a Big Data and Cloud Computing Laboratory in Tubitak - Turkey | 12:54 |
alexchadin | vincentfrancoise: I want to design 'call_continuous_audits' method that will be called every 60 seconds to check whether some audits should be launched or not | 12:54 |
acabot | esracelik : ok so thats pretty much the same than me, I'm working for bcom, a french institute of research & technology | 12:55 |
alexchadin | vincentfrancoise: by using @periodic_task.periodic_task decorator as it is implemented in other projects like nova, neutron, etc | 12:55 |
acabot | esracelik : the easiest way to introduce yourself in Watcher team is to join us on our IRC meeting every wednesday | 12:55 |
acabot | next week will be 14:00 UTC so 17:00 your time | 12:56 |
esracelik | acabot: yes sure we will join the meetings, thanks a lot | 12:57 |
acabot | esracelik : you're welcome | 12:57 |
dtardivel | esracelik: ok all patchsets have been merged. You can update your Watcher CLI now | 12:58 |
esracelik | dtardivel: thanks, I will try and share the results | 12:58 |
dtardivel | +1 | 12:59 |
vincentfrancoise | alexchadin: I'm looking at the code to see how we can do this | 13:01 |
alexchadin | vincentfrancoise: good, i'm in touch | 13:02 |
openstackgerrit | Alexander Chadin proposed openstack/watcher-specs: Add Watcher Continuosly Optimization spec https://review.openstack.org/315551 | 13:12 |
vincentfrancoise | alexchadin: I have some questions | 13:22 |
alexchadin | vincentfrancoise: i'm ready | 13:22 |
vincentfrancoise | alexchadin: how do you plan on handling the state of the continuous audit when you re-trigger the audit? | 13:22 |
alexchadin | I just published spec | 13:23 |
alexchadin | I plan to include 'launch at' field | 13:24 |
vincentfrancoise | I just read it | 13:24 |
vincentfrancoise | but the audit has the PENDING, SUCCEEDED, ... states: di you plan to reset them everytime the audit is triggered? | 13:25 |
alexchadin | hmm | 13:25 |
alexchadin | Yes, i think so | 13:26 |
vincentfrancoise | alexchadin: my problem with doing it like this is that if there is a problem in the audit, we may not be able to see it because it gets reset to ONGOING for example | 13:27 |
alexchadin | vincentfrancoise: you are right, i thought, that action plan list is always created and we can track all problems by AP state | 13:29 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: Tidy up https://review.openstack.org/311094 | 13:29 |
alexchadin | wait | 13:29 |
alexchadin | If we don't have any actions | 13:29 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: OpenStackClient plugin for goal https://review.openstack.org/311095 | 13:29 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: OpenStackClient plugin for strategy https://review.openstack.org/311096 | 13:29 |
alexchadin | Do we have plan? | 13:29 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: OpenStackClient plugin for audit template https://review.openstack.org/311097 | 13:29 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: OpenStackClient plugin for audit https://review.openstack.org/311098 | 13:29 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: OpenStackClient plugin for action plan https://review.openstack.org/311099 | 13:30 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: OpenStackClient plugin for action https://review.openstack.org/311100 | 13:30 |
vincentfrancoise | APs should be created only if the audit succeeds | 13:30 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: Switch Watcher CLI to an OSC-compatible version https://review.openstack.org/311101 | 13:30 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: Flatten the project structure https://review.openstack.org/311102 | 13:30 |
alexchadin | Got it | 13:30 |
openstackgerrit | David TARDIVEL proposed openstack/python-watcherclient: Replaced UUID of goal and strategy with name https://review.openstack.org/311985 | 13:30 |
alexchadin | I'll make some changes in spec | 13:31 |
alexchadin | thank you | 13:31 |
alexchadin | but issue with periodic task is still open | 13:31 |
vincentfrancoise | for the periodic task thing, maybe we can add a new endpoint in the DecisionEngineManager that would handle periodic tasks which would then consist of waiting for the right amount of time and them publish a message to trigger the audit once again | 13:33 |
alexchadin | regarding audit history: is it good idea to create new table to store any history of any launches? | 13:33 |
alexchadin | vincentfrancoise: wow | 13:34 |
alexchadin | vincentfrancoise: such weird way but i will try it | 13:35 |
vincentfrancoise | not sure though | 13:35 |
vincentfrancoise | there's probably a simpler way of doing it | 13:36 |
alexchadin | I'll wait for an answer from jed56. I'll take your idea into consideration. | 13:37 |
alexchadin | Thank you again:) | 13:38 |
alexchadin | regarding audit history: is it good idea to create new table to store history of any audit launches? | 13:38 |
vincentfrancoise | alexchadin: maybe, it's just that we have to weigh whether or not it's worth the effort to store it | 13:39 |
*** hvprash has joined #openstack-watcher | 13:42 | |
vincentfrancoise | alexchadin: as for the periodic task, can you also mention in the BP that we have to push a notification on the message bus every time we re-trigger the audit? | 13:42 |
vincentfrancoise | this way we can keep track of the triggered audit just by looking at the queue if we need to | 13:43 |
alexchadin | vincentfrancoise: I'll do | 13:43 |
alexchadin | If it works | 13:44 |
vincentfrancoise | I mean whether or not my suggestion works | 13:45 |
vincentfrancoise | via the status_endpoint | 13:45 |
alexchadin | ah, okay, understood | 13:46 |
vincentfrancoise | alexchadin: magnum does something that seems to be quite close to what we want with the periodic_tasks | 14:03 |
vincentfrancoise | see https://github.com/openstack/magnum/blob/master/magnum/servicegroup/magnum_service_periodic.py | 14:04 |
vincentfrancoise | and https://github.com/openstack/magnum/blob/master/magnum/common/rpc_service.py#L58-L77 | 14:04 |
alexchadin | It works! | 14:24 |
vincentfrancoise | Nice ! | 14:24 |
vincentfrancoise | how did you do it then? | 14:24 |
alexchadin | class MagnumServicePeriodicTasks(periodic_task.PeriodicTasks): | 14:25 |
alexchadin | def __init__(self, conf): | 14:25 |
alexchadin | super(MagnumServicePeriodicTasks, self).__init__(conf) | 14:25 |
alexchadin | @periodic_task.periodic_task(run_immediately=True) | 14:25 |
alexchadin | def test(self, ctx): | 14:25 |
alexchadin | LOG.info("great") | 14:25 |
alexchadin | class Service(service.Service): | 14:25 |
alexchadin | def __init__(self): | 14:25 |
alexchadin | super(Service, self).__init__() | 14:26 |
alexchadin | def start(self): | 14:26 |
alexchadin | pt = MagnumServicePeriodicTasks(CONF) | 14:26 |
alexchadin | self.tg.add_dynamic_timer( | 14:26 |
alexchadin | pt.run_periodic_tasks, | 14:26 |
alexchadin | periodic_interval_max=CONF.periodic_interval_, | 14:26 |
alexchadin | context=None) | 14:26 |
alexchadin | It's awful for now | 14:26 |
alexchadin | and just for tests | 14:26 |
alexchadin | but this works! | 14:26 |
alexchadin | i think where to integrate this | 14:27 |
vincentfrancoise | since we have the same kind of structure in Watcher, it shouldn't be too hard to integrate this ;) | 14:27 |
alexchadin | :) | 14:27 |
*** alexchadin has quit IRC | 14:36 | |
*** jwcroppe_ has joined #openstack-watcher | 14:37 | |
*** jwcroppe has quit IRC | 14:40 | |
hvprash | currently do we support a Goal to have multiple strategies ? | 14:51 |
*** hvprash_ has joined #openstack-watcher | 14:58 | |
*** slaweq has quit IRC | 14:58 | |
*** wootehfoot has joined #openstack-watcher | 14:59 | |
*** ss4 has joined #openstack-watcher | 14:59 | |
*** wootehfoot has quit IRC | 15:00 | |
*** ss4 has quit IRC | 15:01 | |
vincentfrancoise | yes we do | 15:01 |
vincentfrancoise | since yesterday actually | 15:01 |
*** hvprash has quit IRC | 15:02 | |
*** thorst_ has joined #openstack-watcher | 15:02 | |
vincentfrancoise | so you will need to pull the master branch to get the feature if you haven't already | 15:02 |
vincentfrancoise | Here is the blueprint that was implemented to add this feature https://blueprints.launchpad.net/watcher/+spec/get-goal-from-strategy | 15:03 |
*** danpawlik has quit IRC | 15:28 | |
hvprash_ | vincentfrancoise, i was trying to see how thats defined in the configs | 15:29 |
*** hvprash has joined #openstack-watcher | 15:30 | |
vincentfrancoise | ah yeah so the [watcher_goals] section has been removed | 15:32 |
vincentfrancoise | the goal-to-strategy mapping is now done when you start the decision engine | 15:32 |
vincentfrancoise | also, the DB schema changed | 15:32 |
vincentfrancoise | and because we do not provide DB migrations, you will have to recreate your Watcher DB | 15:33 |
hvprash | oh wow ! was looking into the old schema for the audit persistency bp | 15:33 |
*** hvprash_ has quit IRC | 15:34 | |
hvprash | so i can pull the latest trunk in devstack and try it out since its merged ? | 15:34 |
vincentfrancoise | exactly | 15:34 |
hvprash | any change to this workflow ? https://factory.b-com.com/www/watcher/doc/watcher/_images/sequence_trigger_audit_in_decision_engine.png | 15:35 |
vincentfrancoise | no the workflow is similar | 15:36 |
vincentfrancoise | it's just that the goal does not come from the config file anymore | 15:36 |
vincentfrancoise | and the implementation of the strategy changed | 15:37 |
dtardivel | hi, I updated the doc on factory.b-com.com (v. 0.26.1.dev51) in order to have last tips on goal/strategies | 15:37 |
hvprash | thx dtardivel | 15:37 |
hvprash | will refer that too | 15:37 |
dtardivel | you welcome | 15:37 |
hvprash | i may take one more day for the specs | 15:39 |
vincentfrancoise | feel free to do so | 15:41 |
hvprash | thx | 15:42 |
*** hvprash_ has joined #openstack-watcher | 15:52 | |
*** hvprash has quit IRC | 15:56 | |
*** esracelik has quit IRC | 16:21 | |
*** vincentfrancoise has quit IRC | 16:27 | |
*** thorst_ has quit IRC | 16:50 | |
*** gzhai2 has joined #openstack-watcher | 16:50 | |
*** gzhai1 has quit IRC | 16:50 | |
*** thorst_ has joined #openstack-watcher | 16:56 | |
*** thorst_ has quit IRC | 17:01 | |
*** thorst_ has joined #openstack-watcher | 17:03 | |
*** thorst_ has quit IRC | 17:07 | |
openstackgerrit | OpenStack Proposal Bot proposed openstack/python-watcherclient: Updated from global requirements https://review.openstack.org/313770 | 17:25 |
*** dtardivel has quit IRC | 17:59 | |
*** openstackgerrit has quit IRC | 18:18 | |
*** openstackgerrit has joined #openstack-watcher | 18:18 | |
*** hvprash has joined #openstack-watcher | 18:22 | |
*** hvprash_ has quit IRC | 18:25 | |
*** hvprash has quit IRC | 18:36 | |
*** hvprash has joined #openstack-watcher | 18:40 | |
*** esberglu has quit IRC | 20:18 | |
*** thorst_ has joined #openstack-watcher | 20:42 | |
*** hvprash has quit IRC | 21:00 | |
*** jwcroppe_ has quit IRC | 21:01 | |
*** hvprash has joined #openstack-watcher | 21:04 | |
*** dronshaw has joined #openstack-watcher | 21:13 | |
*** dronshaw has quit IRC | 21:25 | |
*** thorst_ has quit IRC | 21:27 | |
*** thorst_ has joined #openstack-watcher | 21:27 | |
*** thorst_ has quit IRC | 21:31 | |
*** thorst_ has joined #openstack-watcher | 21:33 | |
*** thorst_ has quit IRC | 21:36 | |
*** thorst_ has joined #openstack-watcher | 21:36 | |
*** thorst_ has quit IRC | 21:59 | |
*** thorst_ has joined #openstack-watcher | 22:05 | |
*** thorst_ has quit IRC | 22:05 | |
*** thorst_ has joined #openstack-watcher | 22:06 | |
*** jwcroppe has joined #openstack-watcher | 22:12 | |
*** thorst_ has quit IRC | 22:16 | |
*** thorst_ has joined #openstack-watcher | 22:22 | |
*** thorst_ has quit IRC | 22:27 | |
*** jwcroppe_ has joined #openstack-watcher | 23:03 | |
*** jwcroppe has quit IRC | 23:05 | |
openstackgerrit | Tin Lam proposed openstack/watcher: Remove direct access to dbapi https://review.openstack.org/315813 | 23:58 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!