Tuesday, 2013-08-27

*** maksimov has joined #openstack-metering00:00
*** dina_belova has joined #openstack-metering00:33
*** dina_belova has quit IRC00:37
*** alexb_ has quit IRC00:39
*** flwang has joined #openstack-metering00:41
*** shaneduan is now known as shaneduan[afk]00:47
*** flwang has quit IRC01:10
*** sandywalsh has quit IRC01:14
*** alexb_ has joined #openstack-metering01:16
*** gordc has joined #openstack-metering01:28
*** dina_belova has joined #openstack-metering01:33
*** sandywalsh has joined #openstack-metering01:34
*** dina_belova has quit IRC01:38
*** fnaval_ has joined #openstack-metering01:50
*** fnaval_ has joined #openstack-metering01:51
*** d34dh0r53 has joined #openstack-metering01:59
*** anteaya has quit IRC02:00
*** d34dh0r53 has quit IRC02:02
*** flwang has joined #openstack-metering02:16
openstackgerritShuangtai Tian proposed a change to openstack/ceilometer: Handle the metrics sent by nova notifier  https://review.openstack.org/4283802:22
*** dina_belova has joined #openstack-metering02:34
*** dina_belova has quit IRC02:38
*** shaneduan[afk] is now known as shaneduan02:46
openstackgerritA change was merged to openstack/ceilometer: Support for wildcard in pipeline  https://review.openstack.org/4370202:48
*** zul has quit IRC03:00
*** zul has joined #openstack-metering03:02
*** giroro_ has quit IRC03:32
*** dina_belova has joined #openstack-metering03:34
*** changbl has quit IRC03:35
*** dina_belova has quit IRC03:39
*** gordc has quit IRC04:01
*** dina_belova has joined #openstack-metering04:35
*** dina_belova has quit IRC04:39
*** boris-42 has joined #openstack-metering05:04
*** SergeyLukjanov has joined #openstack-metering05:17
*** dina_belova has joined #openstack-metering05:35
*** shang has joined #openstack-metering05:36
*** dina_belova has quit IRC05:40
flwangjd__: around?05:44
*** dina_belova has joined #openstack-metering06:00
openstackgerritJenkins proposed a change to openstack/ceilometer: Imported Translations from Transifex  https://review.openstack.org/4340506:04
*** shang has quit IRC06:12
*** tasdomas_afk is now known as tasdomas06:12
*** shang has joined #openstack-metering06:16
*** shang has quit IRC06:25
*** shang has joined #openstack-metering06:41
openstackgerritA change was merged to openstack/ceilometer: Use system locale when Accept-Language header is not provided  https://review.openstack.org/4374706:46
*** dina_belova has quit IRC06:47
*** dina_belova has joined #openstack-metering06:47
*** maksimov has quit IRC06:50
*** dina_belova has quit IRC06:52
*** yolanda has joined #openstack-metering06:54
*** Alexei_987 has joined #openstack-metering07:13
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: 'and' and 'or' operations for alarms combination  https://review.openstack.org/4283207:14
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Add alarm combination API  https://review.openstack.org/4197107:14
*** sileht has quit IRC07:19
*** sileht has joined #openstack-metering07:20
*** SergeyLukjanov has quit IRC07:27
*** shang has quit IRC07:28
*** shaneduan is now known as shaneduan[afk]07:45
*** shardy_afk is now known as shardy07:45
*** dina_belova has joined #openstack-metering07:58
*** dina_belova has quit IRC08:02
*** eglynn has joined #openstack-metering08:13
boris-42jd__ hi08:18
jd__hey boris-4208:18
jd__I was thinking about you08:18
boris-42jd__ I will take today finally that bug=)08:18
boris-42jd__ I have some question about https://blueprints.launchpad.net/ceilometer/+spec/ceilometer-db-sync-models-with-migrations08:18
jd__awesome!08:18
boris-42jd__ why it is not approved?)08:19
jd__because nobody asked to do08:19
boris-42heh=)08:20
boris-42thanks=)08:20
jd__though I'm not sure it's going to make it for H3 at this point?08:20
boris-42jd__ this thing is almost ready https://review.openstack.org/#/c/42307/08:20
jd__or is completed? the status is unknown08:20
boris-42jd__ WIP08:20
jd__ok I'll set it to Low for H308:21
boris-42jd__ we are trying to make common tests that checks that models and shcemas are synced in different backned08:21
boris-42jd__ seems reasonable08:21
boris-42jd__ it is not blocking bp08:21
jd__yeah that makes sense to have this into oslo.db08:21
boris-42jd__ then we will be able to avoid using migrations in test08:21
boris-42jd__ we will use BASE.metadata.create_all()08:22
jd__yeah I saw Jay was complaining about it08:22
boris-42yeah he is speaking=) and we already working about it half year=)08:22
boris-42jd__ it is not so simple to transfer such simple ideas into code in OpenStack=)08:25
openstackgerritTerri Yu proposed a change to openstack/ceilometer: Adds group by statistics for MongoDB driver  https://review.openstack.org/4304308:26
jd__indeed08:26
jd__well done terriyu08:26
terriyuoh08:26
terriyudon't congratulate me yet08:26
terriyuI forgot to run the tests on my rebase08:26
boris-42^_^08:27
boris-42I see u like risk terriyu08:27
boris-42=)08:27
terriyuboris-42: haha08:28
terriyuwell I'm running the tests now08:28
terriyuand Jenkins is too08:28
boris-42=)08:33
boris-42jd__ oh i lost what tests fails?08:41
*** Ruetobas has joined #openstack-metering08:53
*** dina_belova has joined #openstack-metering08:59
jd__boris-42: tests.unit.db.sqlalchemy.test_utils.TestMigrationUtils.test_util_drop_unique_constraint_with_not_supported_sqlite_type08:59
terriyujd__: my rebase for the MongoDB group by patch worked.  It would be good if we could chat about the API group by tests sometime today, that is if you have time...09:03
*** dina_belova has quit IRC09:03
jd__terriyu: yes just replied to your mail :)09:06
terriyujd__: thanks, I'll try to catch you later then.  Have a safe trip.09:08
jd__thanks!09:08
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Base Alarm history peristence model  https://review.openstack.org/4384809:20
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Plug alarm history logic into the API  https://review.openstack.org/4384909:20
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Alarm history storage implementation for mongodb  https://review.openstack.org/4385009:20
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Base Alarm history peristence model  https://review.openstack.org/4384809:25
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Plug alarm history logic into the API  https://review.openstack.org/4384909:25
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Alarm history storage implementation for mongodb  https://review.openstack.org/4385009:25
*** tasdomas is now known as tasdomas_afk09:27
*** tasdomas_afk is now known as tasdomas09:27
openstackgerritJulien Danjou proposed a change to openstack/ceilometer: api: update v1 for Flask >= 0.10  https://review.openstack.org/4347809:33
*** dina_belova has joined #openstack-metering09:59
*** dina_belova has quit IRC10:04
*** eglynn has quit IRC10:05
*** flwang has quit IRC10:23
*** bogdando has quit IRC10:27
*** eglynn has joined #openstack-metering10:33
*** eglynn is now known as eglynn-dentist10:47
dhellmann_jd__: ping10:51
jd__dhellmann_: pong10:53
dhellmann_jd__: I'm looking at that thread about a primary key for the meter query, and I'm confused. How does the id from the sample table help?10:53
jd__dhellmann_: it doesn't for meter query, just for sample query10:54
*** dhellmann_ is now known as dhellmann10:54
jd__llu corrected this point I think10:54
dhellmannI fail to see how the sample id is right for the pagination, though. It's not a unique key for meters.10:55
jd__that's why they start talking about using a combination10:56
* dhellmann re-reads10:56
jd__I mainly responded to the fact they wanted to add an id to the schema where there's already two id in the meter table10:56
jd__meter table which is actually the sample table10:56
dhellmannright10:56
dhellmannok, I like the idea of combining some values10:56
jd__Ceilometer, the most confusing project I ever dealt with :)10:56
dhellmannI think we really only need the combination of resource id and meter name, right?10:57
jd__and source10:57
jd__and user_id10:57
jd__and project_id10:57
jd__and probably other fields of Samples10:57
dhellmannsource, user, and project are implied by the resource id10:57
dhellmannor the meter name10:57
jd__well, not really10:57
jd__we never enforced such a thing10:57
jd__e.g. we never enforced that a resource always belong to always the same user10:58
jd__that can be true in OpenStack, but not in other metered systems10:58
dhellmannbut we also aren't grouping by that in the query we're using to build the result set for the list of meters, right?10:58
jd__hm I don't know10:59
jd__we should? :)10:59
dhellmannno10:59
dhellmannthat list is "what type of data has been collected?"10:59
*** bogdando has joined #openstack-metering10:59
dhellmannthe grouping really only needs to be done in the statistics query10:59
jd__right10:59
jd__we don't return project/user etc anyway11:00
*** dina_belova has joined #openstack-metering11:00
dhellmannright11:00
dhellmannit's not relevant here11:00
jd__so basically the marker should be all fields returned in a Meter11:00
dhellmannno, no11:00
jd__not in a Sample11:00
jd__I mean in a Meter11:00
dhellmannthe marker only needs to uniquely identify the meter, and the fields you need for that are the meter name and the resource id11:00
dhellmannwe have a rule that no 2 meters with the same name should have different units, so that's not needed11:01
dhellmannwe don't care that the same meter was collected for more than one user11:01
dhellmanna resource can only belong to one project11:01
dhellmann(or tenant, I forget which word we're using this week)11:01
jd__that's true for source=openstack11:01
jd__not necessarily for others11:01
jd__there isn't any rule for that11:02
jd__we lack rules. :)11:02
dhellmannif I ask, "what kinds of things do you know about my instance" I don't care that you know that 2 users did things to it and you measured them separately11:02
jd__agreed11:02
dhellmannif I *do* care, I can ask for the actual statistics separately11:02
dhellmannso the list of meters does not need to include the user, or tenant, or whatever11:02
jd__but basically, the models.Meter is wrong in this regard11:03
dhellmannbut I guess you're strictly right that a resource can move between tenants11:03
jd__it returns one project_id where they can be several11:03
dhellmannwell, let's address that when an actual case comes up :-)11:03
jd__yeah11:03
jd__but my point is, it's better to build on rules than on assumptions11:04
dhellmannfair enough11:04
*** dina_belova has quit IRC11:04
dhellmanndoes the actual marker need to be "transparent" so that API users know what it is?11:04
jd__I don't know but I'm worried about it being storage driver agnostic11:05
dhellmannbecause we need to be able to do some sort of comparison for the sort?11:05
jd__though that may rely on transparent11:05
jd__well sort is on fields not markers so I'm not sure it's connected?11:05
dhellmannwhat I was thinking was if we combine some values and base64 encode them, we can keep the caller from knowing what's in the value but still split it apart ourselves to use in different columns in a query11:06
dhellmannI mean, it's not *really* secret, but it's at least demonstrating that they shouldn't pay attention to the value per se11:06
dhellmannwe'll have to sort on the marker for it to make any sense11:06
jd__I see what you mean11:06
dhellmannotherwise there's no way in hell of returning the right results11:07
dhellmannok, I'll propose that, too11:07
jd__ah you mean sorting on the fields transported by the marker?11:07
dhellmannyeah11:07
jd__got it11:07
jd__sure11:07
dhellmannso if I send resource_id:meter_name base64 encoded, it gets split and then we sort on those 2 columns11:07
jd__yes11:09
jd__you need to keep sort= always the same anyway11:09
dhellmannright11:09
jd__I got to go, lunch's waiting for me11:09
dhellmannand sort based on the marker before any of the user's sort requirements11:09
dhellmannbon appetite11:09
jd__thanks!11:10
*** flwang has joined #openstack-metering11:16
*** dina_belova has joined #openstack-metering12:00
openstackgerritlitong01 proposed a change to openstack/ceilometer: install manual last few sections format needs to be fixed  https://review.openstack.org/4349912:01
*** litong has joined #openstack-metering12:04
*** dina_belova has quit IRC12:04
*** dina_belova has joined #openstack-metering12:14
*** dina_belova has quit IRC12:18
*** eglynn-dentist is now known as eglynn12:37
*** gordc has joined #openstack-metering12:46
openstackgerritSvetlana Shturm proposed a change to openstack/ceilometer: Add test for checking models with migrations  https://review.openstack.org/4387212:48
*** bpokorny has joined #openstack-metering12:50
*** fnaval_ has quit IRC13:02
openstackgerritSvetlana Shturm proposed a change to openstack/ceilometer: Add test for checking models with migrations  https://review.openstack.org/4387213:03
*** changbl has joined #openstack-metering13:07
boris-42jd__ ping13:10
boris-42jd__ there was a bug in tests13:11
boris-42jd__ https://review.openstack.org/#/c/43864/13:11
boris-42jd__ here is the fix13:11
*** anteaya has joined #openstack-metering13:12
boris-42jd__ we don't patch sqla.migrate if we run only this test -> it tries to run Alter in Sqlite -> instead of our approach with create new table copy and drop old table -> produce that bug13:12
boris-42jd__ so there is no bug in oslo db code hooo13:12
openstackgerritSvetlana Shturm proposed a change to openstack/ceilometer: Add test for checking models with migrations  https://review.openstack.org/4387213:13
gordcsileht: if you have time and want to look at oslo patches -- can't seem to find any +2, so hoping for some +1s :) : https://review.openstack.org/#/c/41423/17 https://review.openstack.org/#/c/43864/13:14
*** dina_belova has joined #openstack-metering13:14
*** dina_belova has quit IRC13:19
*** changbl has quit IRC13:23
*** fnaval_ has joined #openstack-metering13:23
*** sandywalsh has quit IRC13:44
*** sandywalsh has joined #openstack-metering13:57
openstackgerritlitong01 proposed a change to openstack/ceilometer: install manual last few sections format needs to be fixed  https://review.openstack.org/4349914:02
*** thomasm has joined #openstack-metering14:04
thomasmHey all!14:05
sandywalshyo14:05
*** shaneduan[afk] is now known as shaneduan14:07
*** shaneduan is now known as shaneduan[afk]14:09
openstackgerritSvetlana Shturm proposed a change to openstack/ceilometer: Add test for checking models with migrations  https://review.openstack.org/4387214:09
*** dina_belova has joined #openstack-metering14:15
sandywalshjd__, any thoughts of jumping in on this mid-icehouse meetup movement going on the ML?14:15
sandywalshwould be great for CM I think ... we're getting large enough that it would be really useful.14:16
*** dina_belova has quit IRC14:19
openstackgerritSvetlana Shturm proposed a change to openstack/ceilometer: Add test for checking models with migrations  https://review.openstack.org/4387214:20
openstackgerritCyril Roelandt proposed a change to openstack/ceilometer: Network: process metering reports from Neutron  https://review.openstack.org/4389214:23
sandywalshLogstash joins Elastic Search http://www.elasticsearch.com/blog/welcome-jordan-logstash/14:26
*** changbl has joined #openstack-metering14:30
thomasmOoooo14:31
*** dina_belova has joined #openstack-metering14:32
*** alexb_ has quit IRC14:37
openstackgerritgordon chung proposed a change to openstack/ceilometer: API FunctionalTest class lacks doc strings  https://review.openstack.org/4389714:50
*** alexb_ has joined #openstack-metering14:57
openstackgerritgordon chung proposed a change to openstack/ceilometer: API FunctionalTest class lacks doc strings  https://review.openstack.org/4389715:04
*** shaneduan[afk] is now known as shaneduan15:15
*** shang has joined #openstack-metering15:31
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Plug alarm history logic into the API  https://review.openstack.org/4384915:39
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Alarm history storage implementation for mongodb  https://review.openstack.org/4385015:39
openstackgerritgordon chung proposed a change to openstack/ceilometer: API FunctionalTest class lacks doc strings  https://review.openstack.org/4389715:39
*** shadower is now known as shadower|ragequi15:40
*** shadower|ragequi is now known as shadower15:40
*** tasdomas is now known as tasdomas_afk15:53
*** shang has quit IRC15:58
*** yjiang5_away is now known as yjiang516:03
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Base Alarm history peristence model  https://review.openstack.org/4384816:18
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Plug alarm history logic into the API  https://review.openstack.org/4384916:18
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Alarm history storage implementation for mongodb  https://review.openstack.org/4385016:18
*** shang has joined #openstack-metering16:32
*** herndon_ has joined #openstack-metering16:36
*** dina_belova has quit IRC16:39
*** dina_belova has joined #openstack-metering16:40
*** dina_belova has quit IRC16:44
openstackgerritSvetlana Shturm proposed a change to openstack/ceilometer: Add test for checking models with migrations  https://review.openstack.org/4387216:45
openstackgerritA change was merged to openstack/ceilometer: missing resource in middleware notification  https://review.openstack.org/4358516:56
openstackgerritA change was merged to openstack/ceilometer: api: update v1 for Flask >= 0.10  https://review.openstack.org/4347816:57
*** shaneduan is now known as shaneduan[afk]16:59
*** dina_belova has joined #openstack-metering17:00
openstackgerritA change was merged to openstack/ceilometer: API FunctionalTest class lacks doc strings  https://review.openstack.org/4389717:02
*** Alexei_987 has quit IRC17:04
openstackgerritSvetlana Shturm proposed a change to openstack/ceilometer: Add test for checking models with migrations  https://review.openstack.org/4387217:08
dhellmanneglynn: ping?17:19
eglynndhellmann: hey17:19
dhellmannhey, I'm looking at the alarm history stuff17:19
eglynndhellmann: thanks17:19
dhellmanndo we need a new table for that? or could we just use a meter?17:19
dhellmannI thought we talked about using a meter at the summit, but maybe I misremembered17:20
eglynnwell I wanted to have the alarm history retention period independent of the TTL for meters in general17:20
eglynnseemed the best way of achieving this was a via a seperate table17:21
dhellmannthat's a fair point17:21
dhellmannI've been out of the loop a good bit, do we have TTL handling now?17:21
eglynn(admittedly I'm still implementing the retention logic, so not in the current patch series)17:21
eglynnwe do have TTL for meters17:21
eglynncontrolled via config, off my default17:22
eglynns/my/by/17:22
dhellmannand I guess that doesn't allow for different TTL by meter name17:22
eglynndhellmann: yep exactly, it's accross the board for everything17:23
dhellmannare we at least emitting meters when alarms change state?17:23
eglynnnot currently17:23
dhellmannok17:23
eglynnit would be straight-forward to add I think, but time is getting very tight at this stage for h317:24
dhellmannyeah17:24
dhellmannok, I guess we can go ahead with a separate table, then17:24
eglynndhellmann: cool :)17:25
dhellmannfor get_alarm_changes() the first argument is an alarm_id -- is that a uuid?17:25
dhellmannbecause the second argument seems to be filtering on tenant, which I wouldn't expect for a specific alarm17:25
*** shang has quit IRC17:26
eglynndhellmann: yep, first arg is a UUID17:26
dhellmannisn't an alarm always owned by a tenant? I don't understand the 2nd arg.17:27
eglynndhellmann: the idea of the on_behalf_of is to allow the threshold evaluator make changes visible to the owner of the alarm17:27
eglynndhellmann: so we record the project_id of the initiator of the change17:28
eglynndhellmann: and the tenant ID that the change is made on behalf of17:28
eglynndhellmann: then when history is accessed, it's scoped by the X-Project-Id matching the on_behalf_of fields17:29
dhellmannis a single alarm ever going to have changes because of multiple tenants?17:29
dhellmannmaybe you're counting changes to the definition of the alarm as a change?17:29
dhellmannso the owner of the alarm and the owner of the resource being watched might be different?17:29
eglynnyes, rule changes and state transition all count17:29
dhellmanngot it, ok17:30
*** dina_belova has quit IRC17:30
dhellmannso if I own an alarm I can see the changes I make and if I own a monitored resource I can see the changes related to the resource17:30
*** dina_belova has joined #openstack-metering17:31
eglynndhellmann: that's a shortcoming currently that I have on my list17:31
eglynndhellmann: i.e. to restrict the visibility of the resources to scope by the tenant owning the alarm17:32
dhellmannI thought that the way it works now, where a tenant can only see a subset of the changes, was the way you wanted it to work17:33
eglynndhellmann: yes that is the way I want it to work for alarm history17:34
eglynn(I was talking about a similar change I also intend to make to the threshold evaluation logic)17:35
dhellmannah17:35
*** dina_belova has quit IRC17:35
dhellmanneglynn: is this written up somewhere? I'm looking through the blueprints but the first couple I hit have no external link17:35
sandywalsheglynn, dhellmann wouldn't an alarm be an event?17:36
eglynndhellmann: no I didn't write up the on_behalf_of idea on the wiki or anywhere similar17:36
eglynndhellmann: but I could do so if that would be considered useful?17:36
dhellmannsandywalsh: yes, it will need to be eventually17:36
dhellmannsandywalsh: are you suggesting using the event table instead of a separate alarm table? will that work with the TTL requirements?17:38
eglynnsandywalsh: I hadn't considered that17:38
eglynnsandywalsh: is the event logic implemented for all the storage drivers?17:38
sandywalshdhellmann, yes, exactly. An alarm event would be no different than a "create.instance" event17:38
sandywalsheglynn, no, it's only sqlalchemy currently, but we may be switching to mongo anyway, so it'll need to go there.17:39
sandywalsh(it's pretty simple)17:39
eglynnsandywalsh: I took the opposite approach and implemented for mongo first17:39
eglynn(i.e. for the proposed alarm history)17:40
sandywalsheglynn, right, our storage requirements were looking like mongo would be a bad choice initially. We've re-calculated and think we can do away with needing shards17:40
eglynnsandywalsh: interesting, so the focus shifting to mongo?17:41
sandywalsheglynn, looking that way ... still running scaling tests17:41
sandywalsheglynn, if you use the event table, you'll get the trigger pipeline and all kinds of other goodies (vs a new table)17:41
sandywalsheglynn, and alarming will *definitely* want the trigger pipeline17:42
eglynnsandywalsh: yep, for icehouse, I'm feeling some reconciliation of the alarms and events logic would be useful17:43
eglynnsandywalsh: (but probably premature for H, or?)17:43
dhellmanneglynn: I'd rather focus effort on making alarm history stuff use events than build something completely separate that we're going to throw away17:44
sandywalsheglynn, icehouse certainly17:44
dhellmannbecause if we use events now, we don't need an api that we'll end up deprecating, right?17:45
*** dina_belova has joined #openstack-metering17:45
eglynndhellmann: well except that the events stuff is still a moving target by the sounds of it, and I need to get something simple in place for H17:46
eglynndhellmann: the alarm history API could facade over the event stuff later on down the road, or?17:47
dhellmanneglynn: yeah, it could17:47
sandywalsheglynn, is anyone likely to deploy alarms from H?17:47
eglynnsandywalsh: well, for heat autoscaling at least, I think so17:48
dhellmannI thought I saw a bunch of work on the event stuff, was that just on the storage side?17:48
* dhellmann is too far out of the loop17:48
sandywalshmost of the event stuff has been in oslo actually (retries, etc) ... but the api stuff is there too now.17:49
sandywalshand dragondm has the event->meter schema branch up for review as well (very very cool)17:49
sandywalshdata driven event->meter mapping :)17:49
sandywalshI'm wrestling with alembic :(17:49
*** shaneduan[afk] is now known as shaneduan17:50
sandywalshstorage has been a big part of it though, yes. jaypipes and herndon_ have been tweaking it a lot17:50
* dhellmann is torn17:51
eglynnI feel it would be difficult to rebase alarm history on events at this late stage, but it's useful enough to get it for H17:52
eglynn(by "it's useful enough", I mean a standalone simple alarm history API)17:53
sandywalshI'd probably try to cram it into Meter for now if that's the case. You're correct that api shouldn't be affected and that's the biggest touch point.17:55
sandywalsh(and it's less code to write)17:55
sandywalshhmm17:56
sandywalshactually17:56
sandywalshwould there need to be an alarm history API if it's using events?17:57
sandywalshwouldn't you just look for event-type = 'XXX-alarm' ?17:57
dragondmsandywalsh: actually it's notification->event mapping up atm.  event-> meter (sample) is next :->17:57
eglynnas a convenience facade17:57
herndon_dhellmann: event api is hung up on sqlalchemy migration, probably not going to make H release at this point17:57
sandywalshdragondm, sorry, yes17:57
sandywalsheglynn, hmm, how big a convenience is it? :)17:58
gordcdhellmann: when you have time, do you think this is a valid test case for the process_request failure in middleware.notifier (i've included error decorator in middleware.notifier code: http://paste.openstack.org/show/45223/17:58
sandywalshherndon_, I'm hung on it too17:58
sandywalshjd__, ping?17:58
herndon_apparently mirantis are working on it, hoping this will solve all of our problems: https://review.openstack.org/#/c/4387217:58
sandywalshI'm wondering if I should switch my alembic migrations back to sqlalchemy-migration until this alembic thing is fixed17:59
herndon_given that there are already alembic migrations in, I'm not sure that will work.17:59
dhellmanngordc: that looks like a good start for testing process_request()18:00
*** SergeyLukjanov has joined #openstack-metering18:00
herndon_(and I got -1'd for using sqlachemy-migration)18:00
eglynnyeah, I thought we were pretty much stuck with alembic now, or?18:00
dhellmanngordc: it may be tricky to mock notify() so it works in process_request but fails in process_response18:00
sandywalshherndon_, you can reorder alembic migrations pretty easily ... I'm just concerned about 1000+ mysql errors :(18:00
sandywalsheglynn, I went down the alembic route (being a good boy), but it's a bag of holes currently.18:01
dhellmannherndon_, sandywalsh : let's talk about migrations at the meeting this week -- I agree we should drop alembic if it's going to hold up the release, I thought it was already working.18:01
sandywalshdhellmann, +118:01
herndon_sqlite + alembic is a problem. I agree18:01
thomasmWhat was the motivation for Alembic?18:02
eglynnsandywalsh: is there even an option to be a bad boy and revert to sqlalchemy-migrate?18:02
dhellmanneglynn: sqlalchemy-migrate is still there, so yes18:03
eglynnk18:03
sandywalshhttps://wiki.openstack.org/wiki/Meetings/MeteringAgenda#Agenda18:03
dhellmannthe plan was to make alembic work and then stop adding new migrations with s-m18:03
dhellmannthomasm: alembic has better handling for merge conflicts, and sqlalchemy-migrate is no longer maintained by the author18:03
thomasmOhhhh okay18:03
sandywalshit's much better, but just not fully baked in CM yet18:03
dhellmannyeah18:04
thomasmGotcha18:04
gordcdhellmann: you're right, not sure what i could mock that could pass one and fail the other. did the decorator look fine to you?18:04
thomasm:)18:04
sandywalsheglynn, is there an api proposal for alarm history?18:04
sandywalsh(looking to read up)18:04
dhellmannsandywalsh: are there changes under review to fix the problems you and jay found?18:04
dhellmanngordc: mock.patch lets you provide multiple return values, I think18:05
sandywalshdhellmann, jay's is up, I've been fixing mine locally, but there's a paste in the ML discussion on the topic.18:05
dhellmanngordc: but you could just write tests that call the methods directly18:05
eglynnsandywalsh: the skeletal history API is already landed18:05
sandywalsheglynn, thanks, I'll give it a read18:05
dhellmanngordc: yes, I think so. maybe log_and_ignore_error()?18:05
dhellmanngordc: we want to make it clear that the error doesn't go any further18:06
eglynnsandywalsh: the current set of patches fill out the storage model and plug that into the (currently inoperative) API18:06
gordcdhellmann: ok i'll make that adjustment. i'll try calling methods directly to see if the decorator still gets triggered.18:07
sandywalsheglynn, I think the only sticking point against Events (currently) would be the json payload. apmelton is working on the Event Body branch (fast access json for sqlalchemy) and you'd need that.18:08
sandywalsheglynn, or you could stuff the json into Traits for the time being.18:09
sandywalsh(a little icky)18:09
eglynnsandywalsh: I'll take a look at the events stuff in more detail tmrw (gotta hit the road from the office fairly soon)18:10
eglynn(but I'd be nervous of changing course this late for H)18:10
sandywalshyep, just something to consider18:11
eglynnsandywalsh: yep, absolutely18:11
* eglynn is just back from two weeks vacation, so still a bit off the pace in terms of recent developments18:11
litonghi folks, can you look at this patch, it is to fix the format problems in the manual. https://review.openstack.org/#/c/43499/18:18
litonghere is the results from the build. http://docs-draft.openstack.org/99/43499/6/check/gate-ceilometer-docs/fa503d2/doc/build/html/install/manual.html18:18
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Base Alarm history peristence model  https://review.openstack.org/4384818:25
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Plug alarm history logic into the API  https://review.openstack.org/4384918:25
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Alarm history storage implementation for mongodb  https://review.openstack.org/4385018:25
*** dina_belova has quit IRC18:27
*** dina_belova has joined #openstack-metering18:28
*** eglynn has quit IRC18:30
*** dina_belova has quit IRC18:32
*** anteaya has quit IRC18:33
*** shaneduan is now known as shaneduan[afk]18:39
gordcdhellmann: could you take a look at this patch as well: https://review.openstack.org/#/c/42179/ and if you have any issues with it aside from log/ignore exceptions in process_request/response.18:42
*** shaneduan[afk] is now known as shaneduan18:43
openstackgerritSvetlana Shturm proposed a change to openstack/ceilometer: Extra indexes cleanup  https://review.openstack.org/4271618:48
*** maksimov has joined #openstack-metering18:52
*** anteaya has joined #openstack-metering18:54
*** maksimov has quit IRC18:58
*** maksimov has joined #openstack-metering18:58
terriyuasalkeld: did you write some of the API Statistics tests?19:03
terriyuoops, I think it's 5 am in Australia19:17
thomasmlol19:17
terriyuI'm still learning what time zone everyone is in :)19:18
thomasmYou and me both. =P19:19
dragondmheh ya.19:20
dragondmwell, my body is in cdt, my brain thinks it's pdt. :>19:21
*** mberwanger has joined #openstack-metering19:21
dragondmAnyone know what breed of chicken I need to sacrifice to get someone to review a patch in openstack/requirements :> ?19:23
thomasmA silkie19:23
thomasmPretty sure that's it, yeah.19:23
dragondm*floof*19:24
thomasmThey're so fluffy!19:24
*** dina_belova has joined #openstack-metering19:28
*** dina_belova has quit IRC19:33
*** dina_belova has joined #openstack-metering19:39
*** mberwanger has quit IRC19:41
*** dina_belova has quit IRC19:43
terriyudhellmann: can I ask you some quick questions about API testing?19:49
*** eglynn has joined #openstack-metering19:56
*** eglynn has quit IRC20:02
*** eglynn has joined #openstack-metering20:10
openstackgerritgordon chung proposed a change to openstack/ceilometer: add tests for _query_to_kwargs func  https://review.openstack.org/4379620:10
dhellmannterriyu: sure, what's up?20:10
terriyudhellmann: thanks for taking time out of your busy schedule to help me out20:10
dhellmanndragondm: add me as a reviewer for your change20:11
terriyuI just wanted to ask you some general questions about API testing20:11
dhellmannterriyu: sure20:11
terriyujd__ and I wrote the group by implementation in the storage drivers and I also wrote the matching storage driver tests20:11
terriyuI'm working on the API tests for the group by implementation and I'm wondering if it's supposed to be very similar to the storage tests, or something different?20:12
dhellmannunit tests should focus on each layer separately20:12
dhellmannso for the storage tests I would expect to see tests that verify that the driver stores and retrieves data properly20:12
dhellmannfor the api I would expect to see that the storage driver is called with the right arguments and that errors are handled correctly20:12
dragondmdhellmann: done!20:13
dhellmannthat way you don't duplicate test setup for the 2 layers, and if there is a problem you can isolate it with a test20:13
dhellmanndragondm: why do we need a new json parser?20:14
dragondmit's not a json parser. it's basically a json version of xpath20:14
dragondmit provides a quick syntax for fishing an element out of a deserialized json object.20:15
dhellmannah20:15
dhellmannI misread it20:15
dhellmannis that for event queries or something?20:15
terriyudhellmann: so for the API tests, I would pass some arguments to get_json() and then check the results?  And not worry about what the storage drivers are doing?20:15
dragondmfor the configurable-events branch. For writing a config to transform notifications -> event traits.20:16
dhellmannterriyu: you will probably want to replace the storage driver with a mock so you can control what it returns20:16
dhellmannuse mock.patch to do that, and then call get_json() to make the REST call20:16
jd__dhellmann: actually we test the API on real storage drivers to be sure they all returns the same data20:16
dragondm(and ultimately for the event-pipelines)20:16
dhellmanndragondm: why do we want that to be configurable? to cut down on the amount of data stored in the traits table?20:17
jd__dhellmann: terriyu: it's damn more reasonable in the end, since we had terrrrrrrrrrrrrrible differences between MongoDB and SQLAlchemy back in the early daus20:17
dhellmannjd__: I thought we were handling that in the db tests now?20:17
dragondmYah, and to configure what we need.20:18
dragondmSo we don't need to edit code every time we want to add a trait to an event.20:18
jd__dhellmann: we do both now, it's safer  -- I fixed a lot of bugs with that before we have the models20:18
dhellmannok20:19
dragondm(and, for example RAX will have custom traits that will be used by event-pipelines )20:19
dhellmannterriyu: what jd__ said :-)20:19
jd__:-)20:19
dhellmanndragondm: well, I would have thought we'd just flatten the entire payload of the event into traits20:19
terriyudhellmann: thanks for your help :)20:19
dragondmyah, mostly. But there are some complexities in that.  Notifications have nested structure, event traits are flat.20:21
dragondmAnd while alot of the notification fields would become traits, we really only want the ones we will be actively using. (for db size reasons)20:23
dragondm(We've calculated we will be storing 10's of millions of events. It adds up)20:24
dhellmanndragondm: the size thing is the more compelling reason :-)20:25
dragondmYah. Plus we can add custom traits for our installation w/o code patches.  (we have internal values that are screwball bitfields derived from other fields in the notification)20:27
*** yolanda has quit IRC20:27
dragondmOr do minor data massaging. (nova has an annoying habit of using "" for null dates for instance. )20:27
*** dina_belova has joined #openstack-metering20:28
dragondmAnyway, the configurable-events code is up for review at: https://review.openstack.org/#/c/42713/  I've tried to make the document in the linked bp fairly informative.20:30
dragondm(and thanks for taking care of the requirements thing. :>  It got derailed in the testr/subunit bug fiasco on friday)20:31
dhellmanndragondm: no problem :-)20:32
openstackgerritMonsyne Dragon proposed a change to openstack/ceilometer: Add configuration-driven conversion to Events  https://review.openstack.org/4271320:34
*** mberwanger has joined #openstack-metering20:38
openstackgerritCyril Roelandt proposed a change to openstack/ceilometer: Implement 'reset_on' for mongodb  https://review.openstack.org/4235520:48
openstackgerritCyril Roelandt proposed a change to openstack/ceilometer: Statistics: Add a "reset_on" query parameter  https://review.openstack.org/4189920:48
*** mberwanger has quit IRC20:51
*** mberwanger has joined #openstack-metering20:53
*** thomasm has quit IRC20:53
*** openstackgerrit has quit IRC20:55
*** openstackgerrit has joined #openstack-metering20:56
*** eglynn has quit IRC21:00
*** Ruetobas has quit IRC21:01
herndon_dragondm: worth looking at your branch yet, or should I hold off for a while longer?21:07
dragondmYah, I have to get jenkins to recheck when the change to openstack/requirements lands, but that's been approved, so the events code shouldn't change. Have at it.21:08
*** litong has quit IRC21:13
*** mberwanger has quit IRC21:13
*** yolanda has joined #openstack-metering21:17
*** sandywalsh has quit IRC21:20
*** maksimov has quit IRC21:20
*** dina_belova has quit IRC21:29
*** dina_belova has joined #openstack-metering21:29
*** sandywalsh has joined #openstack-metering21:33
*** dina_belova has quit IRC21:34
*** yolanda has quit IRC21:34
*** changbl has quit IRC21:41
*** evanjfraser has quit IRC21:42
*** boris-42 has quit IRC22:02
*** SergeyLukjanov has quit IRC22:05
*** bpokorny has quit IRC22:10
*** shardy is now known as shardy_afk22:13
*** evanjfraser has joined #openstack-metering22:18
*** dina_belova has joined #openstack-metering22:40
*** dina_belova has quit IRC22:45
*** thomasm has joined #openstack-metering22:53
*** herndon_ has quit IRC23:16
*** anteaya has quit IRC23:21
*** alexb_ has quit IRC23:22
*** herndon_ has joined #openstack-metering23:29
*** dina_belova has joined #openstack-metering23:40
*** herndon_ has quit IRC23:41
*** dina_belova has quit IRC23:45
*** fnaval_ has quit IRC23:48
*** maksimov has joined #openstack-metering23:52
*** jergerber has quit IRC23:56
*** gordc has quit IRC23:57

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