Friday, 2013-09-20

*** matsuhashi has joined #openstack-metering00:00
*** herndon has joined #openstack-metering00:04
*** thomasm has quit IRC00:09
*** nosnos has joined #openstack-metering00:23
*** sdake_ has quit IRC00:42
*** sdake_ has joined #openstack-metering00:44
*** thomasm has joined #openstack-metering00:52
*** raghuvrao has left #openstack-metering01:02
*** raghuvrao has joined #openstack-metering01:13
*** evanjfraser has quit IRC01:16
*** sdake_ has quit IRC01:23
*** thomasm has quit IRC01:36
*** fnaval_ has joined #openstack-metering01:51
openstackgerritGuangyu Suo proposed a change to openstack/ceilometer: Add source field to Meter model  https://review.openstack.org/4663901:52
*** herndon has quit IRC01:53
*** evanjfraser has joined #openstack-metering01:57
*** thomasm has joined #openstack-metering01:59
*** herndon has joined #openstack-metering02:05
*** neumerance has joined #openstack-metering02:22
openstackgerritGuangyu Suo proposed a change to openstack/ceilometer: Add source field to Meter model  https://review.openstack.org/4663902:28
openstackgerritGuangyu Suo proposed a change to openstack/ceilometer: Add source field to Meter model  https://review.openstack.org/4663902:31
*** maksimov has joined #openstack-metering02:31
*** thomasm has joined #openstack-metering02:34
*** maksimov has quit IRC02:36
openstackgerritThomas Maddox proposed a change to openstack/ceilometer: Fix for timestamp precision in SQLAlchemy  https://review.openstack.org/4610002:38
*** herndon has quit IRC02:47
openstackgerritThomas Maddox proposed a change to openstack/ceilometer: Fix for timestamp precision in SQLAlchemy  https://review.openstack.org/4610003:01
*** sandywalsh_ has quit IRC03:03
*** thomasm has quit IRC03:03
*** sandywalsh has joined #openstack-metering03:23
*** Shaan7 has quit IRC03:33
*** Shaan7 has joined #openstack-metering03:57
*** krtaylor has joined #openstack-metering04:55
*** tasdomas_afk is now known as tasdomas05:01
*** evanjfraser has quit IRC05:07
*** tasdomas has left #openstack-metering05:25
openstackgerritJenkins proposed a change to openstack/ceilometer: Imported Translations from Transifex  https://review.openstack.org/4708306:02
*** terriyu has quit IRC06:10
*** maksimov has joined #openstack-metering06:26
*** matsuhashi has quit IRC06:27
*** matsuhashi has joined #openstack-metering06:28
*** maksimov has quit IRC06:30
*** shang has quit IRC06:31
eglynnsileht: good morning06:52
silehteglynn, good morning, I have catched your message, I actually work on06:53
silehteglynn, I think dhellmann need to removed its -2 too for https://review.openstack.org/#/c/41971/2306:53
eglynnsileht: message about https://review.openstack.org/46707 ? ... cool! you're way ahead of me ;)06:53
eglynnsileht: yep, dhellmann's -2 is holding that one back IIUC06:54
silehteglynn, I have just finished ceilometerclient rebase/rework, I have added required fields and alarm-get-state in cli, too.06:55
*** nadya has joined #openstack-metering06:55
eglynnsileht: excellent! I'll reconcile the partitioning patch with your treshold eval refactor06:56
*** zul has quit IRC06:56
*** zul has joined #openstack-metering06:57
* sileht is impatient to retest the whole chain with heat autoscaling :)06:57
eglynnsileht: yep, that would be a good validation ...06:58
openstackgerritMehdi Abaakouk proposed a change to openstack/python-ceilometerclient: Use the new alarm format  https://review.openstack.org/4670707:04
eglynnsileht: I'm still seeing a failure on the state update ... http://paste.openstack.org/show/4729607:14
eglynnsileht: (maybe because I haven't pulled in the threshold eval refactor patch yet ...)07:15
eglynnsileht: "still seeing" == "after applying https://review.openstack.org/46707"07:15
silehteglynn, in fact, they is a bug in wsme, that doesn't catch mandatory correctly07:16
eglynnsileht: a-ha, I see07:16
silehteglynn, the error is catch because alarm creation07:16
silehteglynn, jd__ works on this issue07:16
eglynnsileht: cool!07:16
silehteglynn, https://bugs.launchpad.net/wsme/+bug/122700407:17
silehteglynn, but I have just (re)tried autoscaling and wsme 0.5b5 seems have broken my BoundedInt customtype ....07:18
silehteglynn, the json input is no longer converted into the basetype (int)07:18
silehteglynn, on stack-update heat seems to pass only the alarm diff instead of the whole alarm ...07:21
*** Ruetobas has quit IRC07:21
eglynnsileht: i.e. Heat still has the old behaviour on PUT?07:22
silehteglynn, yes07:22
eglynnsileht: that would be expected, no?07:22
eglynnsileht: (pending an update on Heat side ...)07:22
silehtyes07:23
eglynncool07:26
eglynnright-o, I'm gonna head into the office now ...07:27
eglynn(back online in half an hour ...)07:27
eglynnlaters ...07:27
*** Ruetobas has joined #openstack-metering07:38
*** eglynn has quit IRC07:42
*** Ruetobas has quit IRC07:43
*** Ruetobas has joined #openstack-metering07:48
*** boris-42 has joined #openstack-metering08:00
*** shang has joined #openstack-metering08:01
*** matsuhas_ has joined #openstack-metering08:03
*** matsuhashi has quit IRC08:03
*** eglynn has joined #openstack-metering08:10
jd__dhellmann: you left a -2 on https://review.openstack.org/#/c/41971 that I think is not justified anymore and that's blocking the whole merge process08:34
jd__and I don't see any kick button08:34
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Convert BoundedInt value from json into int  https://review.openstack.org/4753308:36
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Implement the combination evaluator  https://review.openstack.org/4283208:36
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Add alarm combination API  https://review.openstack.org/4197108:36
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Fix the developer documentation of the alarm API  https://review.openstack.org/4698008:36
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Provide new API endpoint for alarm state  https://review.openstack.org/4672408:36
*** Ruetobas has quit IRC08:36
silehtjd__, can you review this one: 1668c25c-b11f-4416-a3b5-2d291dc89e3a08:37
silehtoups: https://review.openstack.org/4753308:37
*** matsuhas_ has quit IRC08:39
jd__sileht: done :)08:42
silehtjd__, arf I have copy/paste wsme code..., don't edit wsme/types.py, it will blind your eye08:45
jd__sileht: :/08:45
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Implement the combination evaluator  https://review.openstack.org/4283208:47
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Add alarm combination API  https://review.openstack.org/4197108:47
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Fix the developer documentation of the alarm API  https://review.openstack.org/4698008:47
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Provide new API endpoint for alarm state  https://review.openstack.org/4672408:47
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Convert BoundedInt value from json into int  https://review.openstack.org/4753308:47
silehtjd__, fixed08:47
*** matsuhashi has joined #openstack-metering08:47
jd__sileht: +2 :)08:49
silehtjd__, merci !08:49
*** matsuhashi has quit IRC08:49
silehteglynn, can you take a look, too ? (https://review.openstack.org/47533)08:49
eglynnsileht: looking now ...08:49
*** matsuhashi has joined #openstack-metering08:50
eglynnsileht: approved :)08:51
*** matsuhas_ has joined #openstack-metering08:51
silehteglynn, autoscaling reworks with this one :)08:52
eglynnsileht: nice!08:52
* eglynn still reconciling partitioning with the refactored evaluator business ...08:53
*** matsuhashi has quit IRC08:55
*** Ruetobas has joined #openstack-metering09:13
*** neumerance has quit IRC09:14
*** Ruetobas has quit IRC09:18
openstackgerritA change was merged to openstack/ceilometer: Convert BoundedInt value from json into int  https://review.openstack.org/4753309:22
*** Ruetobas has joined #openstack-metering09:24
*** leizhang has joined #openstack-metering09:32
*** matsuhas_ has quit IRC09:43
openstackgerritJulien Danjou proposed a change to openstack/ceilometer: api: allow alarm creation for others project by admins  https://review.openstack.org/4754209:48
openstackgerritBartosz Górski proposed a change to openstack/python-ceilometerclient: Pass region_name argument to keystone client  https://review.openstack.org/4754409:53
*** leizhang has quit IRC09:56
*** leizhang has joined #openstack-metering09:56
openstackgerritJulien Danjou proposed a change to openstack/ceilometer: api: allow alarm creation for others project by admins  https://review.openstack.org/4754210:01
*** nosnos has quit IRC10:17
*** nadya has quit IRC10:24
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Simple alarm partitioning protocol based on AMQP fanout RPC  https://review.openstack.org/4475110:31
eglynnsileht: could you cast your eye over https://review.openstack.org/44751 ?10:37
eglynnsileht: (in particular the reconciliation of partitioning with your evaluator refactor)10:38
openstackgerritBartosz Górski proposed a change to openstack/ceilometer: Adding region name to service credentials  https://review.openstack.org/4734110:38
eglynnsileht: (... but also of course I'd appreciate another pair of eyes on the partitioning logic)10:38
silehteglynn, of course, I have planned to play with it the afternoon10:41
eglynnsileht: great, thanks!10:41
* eglynn busts out the thumb screws ... ;)10:43
eglynnjd__: if you have time also to give the partitioning stuff another pass?10:43
eglynnjd__: (responses to your last set of comments here https://review.openstack.org/#/c/44751/9 )10:43
*** nadya has joined #openstack-metering10:50
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Simple alarm partitioning protocol based on AMQP fanout RPC  https://review.openstack.org/4475111:11
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Notify with string representation of alarm reason  https://review.openstack.org/4737911:23
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Simple alarm partitioning protocol based on AMQP fanout RPC  https://review.openstack.org/4475111:32
jd__sileht: http://lists.openstack.org/pipermail/openstack-dev/2013-September/015354.html rings a bell?11:39
jd__eglynn: will do :)11:39
eglynnjd__: thank you sir!11:39
silehtjd__, This is related to wsme mandatory issue11:40
silehtjd__, do you want I create a patch with a workaround (manual check of all mandatory fields) to have correct message error ?11:42
silehtjd__, The person needs to use ceilometerclient with https://review.openstack.org/#/c/46707/11:45
*** eglynn is now known as eglynn-lunch11:47
jd__sileht: feel free to answer to the mailing list :) but having a patch with correct error returned would be great indeed11:47
silehtjd__, done11:52
jd__thanks sileht12:03
*** sandywalsh has quit IRC12:11
*** thomasm has joined #openstack-metering12:11
openstackgerritA change was merged to openstack/ceilometer: Notify with string representation of alarm reason  https://review.openstack.org/4737912:20
*** nadya_ has joined #openstack-metering12:20
*** nadya has quit IRC12:21
thomasmHEy all12:25
*** sandywalsh has joined #openstack-metering12:26
*** gordc has joined #openstack-metering12:33
*** bpokorny has joined #openstack-metering12:45
jd__eglynn-lunch: around?12:47
*** eglynn-lunch is now known as eglynn12:47
eglynnjd__: yep12:47
jd__eglynn: I'm reading your comment on https://review.openstack.org/#/c/4754212:48
jd__IIUC this project_id restriction is stored in the threshold alarm?12:48
eglynnjd__: not making sense?12:48
jd__I think it does make sense, I've added tests for PUT too, and I'm hitting it12:49
eglynnjd__: yep, an extra constraint is implicitly added to the statistics query12:49
eglynnjd__: (which is now stored in the threshold rule)12:49
eglynnjd__: so that the alarm owner can only see that stats they can query themselves directly12:49
eglynnjd__: (for non-admin alarm owners)12:49
jd__I think I get that12:50
eglynnk12:50
jd__what I don't get is what it is stored?12:50
jd__what it is returned as part of the alarm object in the REST API?12:50
jd__this should be the eveluator to read on_behalf_Of and use the field to construct the query12:50
jd__or do I miss something?12:50
eglynnIIUC the evaluator just uses the query constaints as always12:51
eglynnsome of those constraints could be provided by the user creating the alarm12:51
eglynne.g. resource_id=<instance_id>12:51
jd__agreed12:51
eglynnbut an extra one is added when the alarm is created12:51
eglynnthe extra one being project_id=owner_project_id12:52
jd__but currently, if an admin changes the on_behalf_of field of an alarm, it's likely to break things for example?12:52
jd__things = the statisticsquery12:52
eglynnon_behalf_of is only an attribute of the alarm history IIUC12:52
jd__oh12:52
jd__ok I thought it was used for statitics12:52
jd__ok so there's only the bug I'm hitting12:53
jd__and the one you mentionned12:53
eglynnthe bug you're hitting?12:53
jd__yeah I've added the same code for PUT (the current patch only handled POST)12:53
jd__and my test does not pass because the project_id is not correct on the rule12:54
jd__for the reason you pointed12:54
eglynna-ha, OK ... so I guess if the alarm project_id is updated, then so must be the extra implicit query12:54
jd__yeah12:54
eglynncool12:54
jd__so, my point is, why not remove the extra implicit query altogether?12:54
jd__and build it at run time in the evaluators?12:54
jd__do we need even to build it an admin can set the correct project_id12:55
* jd__ scratches his head12:55
eglynnwell in the evaluator we wouldn't know if the project_id query needs to be added, as we wouldn't know at that point if the alarm owner is admin or not12:55
eglynnunless I'm missing something there ...12:56
jd__eglynn: the admin can set project_id when creating an alarm12:56
jd__ok so you're an admin, I'm not12:56
eglynnyep12:56
jd__you create an alarm for me and you set project_id='jd'12:56
eglynnsure12:56
eglynnthen when the evaluator check that alarm12:56
eglynnit wouldn't know that jd is non-admin12:56
eglynn(the extra query bit is only needed in the non-admin case)12:57
eglynnIIUC12:57
jd__oh I see, I missed the case where you want to evaluate admin alarm not contrained to ONE project?12:57
eglynnsure, it seems like an artificial constraint for non-admin alarm owners12:57
jd__ok, I was thinking evaluation was always limited to one project12:58
eglynnwouldn't admins be able query stats directly for multiple projects?12:58
jd__hum12:58
eglynn(in which case, seems logical to allow their alarms do the same thing)12:58
jd__yeah12:59
jd__the problem is that our evaluator runs as admin13:00
jd__i'm drafting something, one sec13:00
eglynnyep it does13:00
eglynnso the point is to avoid the evaluator's admin-ness being inappropriately delegated to non-admin alarm owners when the evaluator is querying on their behalf13:01
jd__:/13:02
eglynnbut also to avoid admin alarm owners being artificially constrained to only alarming on their own statistics13:02
jd__makes sense13:02
jd__I just think it sucks we have to do it this way13:02
eglynnit's a bit indirect all right, I'll grant you that13:03
jd__well I'll suck it up and will check how Keystone v3 can help :)13:08
eglynncoolio :)13:08
*** julim has joined #openstack-metering13:09
*** jergerber has joined #openstack-metering13:09
* sileht read the big backlog13:12
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Handle manually mandatory field  https://review.openstack.org/4756313:12
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Implement the combination evaluator  https://review.openstack.org/4283213:12
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Add alarm combination API  https://review.openstack.org/4197113:12
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Fix the developer documentation of the alarm API  https://review.openstack.org/4698013:12
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Provide new API endpoint for alarm state  https://review.openstack.org/4672413:12
silehtjd__, https://review.openstack.org/4756313:14
*** herndon has joined #openstack-metering13:17
*** raghuvrao has quit IRC13:23
*** rrao has joined #openstack-metering13:25
*** rrao has quit IRC13:25
*** rrao has joined #openstack-metering13:25
*** fnaval_ has quit IRC13:25
jd__sileht: will check13:29
*** rrao has left #openstack-metering13:31
openstackgerritVladislav Kuzmin proposed a change to openstack/ceilometer: Replace tests.base part4  https://review.openstack.org/4714513:34
openstackgerritVladislav Kuzmin proposed a change to openstack/ceilometer: Replace tests.base part3  https://review.openstack.org/4714413:34
openstackgerritVladislav Kuzmin proposed a change to openstack/ceilometer: Replace tests.base part6  https://review.openstack.org/4714713:34
openstackgerritVladislav Kuzmin proposed a change to openstack/ceilometer: Replace tests.base part5  https://review.openstack.org/4714613:34
openstackgerritVladislav Kuzmin proposed a change to openstack/ceilometer: Update oslo in ceilometer part1  https://review.openstack.org/4647613:34
openstackgerritVladislav Kuzmin proposed a change to openstack/ceilometer: Replace tests.base part1  https://review.openstack.org/4648013:34
openstackgerritVladislav Kuzmin proposed a change to openstack/ceilometer: Replace tests.base part2  https://review.openstack.org/4714313:34
openstackgerritVladislav Kuzmin proposed a change to openstack/ceilometer: Update oslo in ceilometer part2  https://review.openstack.org/4714213:34
*** ruhe has joined #openstack-metering13:51
dhellmannjd__: good morning! you're on the stable maintenance team, right?13:53
*** terriyu has joined #openstack-metering13:53
*** fnaval__ has joined #openstack-metering13:53
jd__dhellmann: I don't know :)14:01
dhellmannjd__: I think you are by virtue of being PTL14:01
dhellmannin any case, I approved that notification change :-)14:01
eglynndhellmann, jd__: here's the stable-maint member list ... https://launchpad.net/~openstack-stable-maint/+members#active14:02
dhellmanneglynn: thanks, I was looking for that in gerrit14:03
jd__dhellmann: btw if you missed it:14:04
jd__<jd__> dhellmann: you left a -2 on https://review.openstack.org/#/c/41971 that14:04
jd__       I think is not justified anymore and that's blocking the whole merge14:04
jd__       process14:04
dhellmannjd__: I'll look at that again today, I saw there was progress on that while I was traveling and now that I'm home I should have time to do a proper review14:04
jd__dhellmann: ok, the patch already has 2 +2 so… :)14:05
jd__but feel free to review indeed14:05
dhellmannjd__: ok, I see tha tnow14:05
*** julim has quit IRC14:06
dhellmannjd__: approved14:07
jd__kewl thanks dhellmann14:07
*** julim has joined #openstack-metering14:07
dhellmannjd__: am I blocking us on anything else? :-)14:07
jd__dhellmann: no it's good :)14:08
dhellmanngood14:08
*** thomasm has quit IRC14:09
jd__dhellmann: there's some WSME patches to review if you are bored14:10
dhellmannjd__: those are on my list for today, too14:10
jd__cool :)14:10
*** neumerance has joined #openstack-metering14:11
*** herndon has quit IRC14:11
neumeranceHi guys, is there anyone here how to restart ceilometer services in devstack?14:11
dhellmannneumerance: they should restart when you run rejoin-stack.sh14:12
dhellmannjust like the other services14:12
*** dhellmann is now known as dhellmann_14:16
silehtdhellmann, I have made a new improvement for sphinxcontrib-pecanwsme, to get https://review.openstack.org/#/c/46980/8 merged14:16
*** litong has joined #openstack-metering14:17
litong@jd__, ping14:18
jd__litong: pong14:18
litong@jd__, our test coverage average at around 55%. would like to add some test cases for a higher test code coverage, wondering if you are ok with it?14:19
jd__litong: sure14:19
sileht+114:20
litongI will try to put the new patch sets in a series, so I will just add test cases in each set.14:20
*** Ruetobas has quit IRC14:29
openstackgerritA change was merged to openstack/ceilometer: Add alarm combination API  https://review.openstack.org/4197114:35
*** Ruetobas has joined #openstack-metering14:36
*** thomasm has joined #openstack-metering14:37
*** raghuvrao has joined #openstack-metering14:40
*** julim has quit IRC14:40
*** julim has joined #openstack-metering14:41
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Fix the developer documentation of the alarm API  https://review.openstack.org/4698014:45
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Handle manually mandatory field  https://review.openstack.org/4756314:45
*** herndon has joined #openstack-metering14:46
openstackgerritJulien Danjou proposed a change to openstack/ceilometer: api: allow alarm creation for others project by admins  https://review.openstack.org/4754214:48
*** ruhe has quit IRC14:54
*** ruhe has joined #openstack-metering14:57
*** Ruetobas has quit IRC15:12
*** julim has quit IRC15:13
thomasm+2's welcomed: https://review.openstack.org/#/c/4610015:27
thomasm=D15:27
thomasmAhhh, wait feature freeze.15:28
openstackgerritA change was merged to openstack/ceilometer: Implement the combination evaluator  https://review.openstack.org/4283215:29
eglynnsileht: hey15:32
silehteglynn, o/15:32
eglynnsileht: I need to drop off-line in a few mins ...15:32
eglynnsileht: so just wondering if there's any further feedback from you on the partitioning stuff that I could deal with quickly before I drop off?15:32
*** openstackgerrit has quit IRC15:33
*** openstackgerrit has joined #openstack-metering15:33
*** Ruetobas has joined #openstack-metering15:33
silehteglynn, I have just read your remarks and I'm OK, but I have not yet play with it15:33
silehteglynn, I prepare the fix for heat alarm update15:33
eglynnsileht: cool enough15:34
eglynnsileht: I'll be on-line again later this evening if you've any suggested changes to the partitioning stuff as a result of playing with it ...15:34
silehteglynn, ok15:35
eglynnsileht: (the pressure is on to get this landed today ... ;)15:35
silehteglynn, oh I will switch one this first, heat can wait a bit15:38
eglynnsileht: thank you sir!15:38
*** neumerance has quit IRC15:39
*** nadya_ has quit IRC15:58
*** herndon has quit IRC16:00
*** Ruetobas has quit IRC16:01
*** shang has quit IRC16:03
*** Ruetobas has joined #openstack-metering16:03
jd__eglynn: any chance you quickly update from gordc comments?16:03
eglynnjd__: looking now ...16:04
*** herndon has joined #openstack-metering16:04
silehtgordc, Can you take a look to: https://review.openstack.org/#/c/47563/ ?16:05
gordceglynn: is there a more detailed bp for partitioner work? too be honest i'm not familiar with it but it looks interesting.16:07
silehteglynn, I have finish my tests, ready to +2 after the gordc remarks are done16:07
gordcsileht: sure. i can have a look.16:07
*** dhellmann_ is now known as dhellmann16:08
*** Ruetobas has quit IRC16:08
eglynngordc: I've promised several times to do a proper write-up of the idea, but haven't gotten to it yet16:08
eglynngordc: will definitely do so shortly ...16:08
gordceglynn: no worries. i probably won't get around to looking at it for a while anyways.16:09
*** julim has joined #openstack-metering16:11
*** terriyu has quit IRC16:11
openstackgerritA change was merged to openstack/ceilometer: Provide new API endpoint for alarm state  https://review.openstack.org/4672416:11
*** julim has quit IRC16:12
*** Ruetobas has joined #openstack-metering16:14
silehtgordc, thanks16:14
gordcsileht: np16:16
*** sdake_ has joined #openstack-metering16:19
*** gordc has quit IRC16:24
*** gordc has joined #openstack-metering16:25
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer: Simple alarm partitioning protocol based on AMQP fanout RPC  https://review.openstack.org/4475116:26
eglynngordc, jd__: responded ... gotta run now to pick up kids, will be back online in circa 30mins16:27
*** eglynn has quit IRC16:33
*** terriyu has joined #openstack-metering16:44
*** shaneduan has left #openstack-metering16:47
*** shardy is now known as shardy_afk16:50
*** nadya has joined #openstack-metering16:54
*** eglynn has joined #openstack-metering16:55
*** nadya has quit IRC17:03
*** ruhe has quit IRC17:08
openstackgerritlitong01 proposed a change to openstack/ceilometer: add more test cases to improve the test code coverage #1  https://review.openstack.org/4760817:13
*** sandywalsh_ has joined #openstack-metering17:14
*** sandywalsh has quit IRC17:18
terriyulitong: thanks for the patch.  Just curious, you said our test coverage was 55%.  I'm wondering, how do you check that?17:19
*** ruhe has joined #openstack-metering17:19
*** herndon has quit IRC17:27
*** shakayumi has joined #openstack-metering17:41
*** ruhe has quit IRC17:42
*** maksimov has joined #openstack-metering17:44
*** ruhe has joined #openstack-metering17:44
*** ruhe has quit IRC17:51
litong@terriyu, run-tests --coverage, then you will see a directory named cover,17:56
litongthe reports are there.17:57
*** nadya has joined #openstack-metering17:58
*** ruhe has joined #openstack-metering18:03
*** julim has joined #openstack-metering18:07
*** ruhe has quit IRC18:07
*** nadya has quit IRC18:11
openstackgerritA change was merged to openstack/ceilometer: Handle manually mandatory field  https://review.openstack.org/4756318:20
*** thomasm has quit IRC18:35
*** thomasm has joined #openstack-metering18:54
*** leizhang has quit IRC18:55
*** thomasm has quit IRC18:55
*** thomasm has joined #openstack-metering18:55
terriyuthanks litong19:05
terriyuunfortunately, that command isn't working for me :(19:05
litong./run-tests.sh --recoverage should work.19:06
*** thomasm has quit IRC19:38
*** thomasm has joined #openstack-metering19:39
*** evanjfraser has joined #openstack-metering19:46
*** gordc has quit IRC19:49
* eglynn hates to deploy the thumbscrews again ...19:50
eglynnjd__: can you give https://review.openstack.org/44751 another look?19:50
* eglynn would love to get it landed today if poss ...19:50
*** julim has quit IRC19:55
*** julim has joined #openstack-metering19:59
*** herndon has joined #openstack-metering20:08
terriyulitong: I tried that command and it says that "recoverage" is not an option20:09
terriyuwell, I should have been more clear20:09
litong--coverage, no recoverage20:09
terriyuwhen I ran ./run-tests.sh --coverage20:09
terriyuit runs but I get a bunch of test failures20:09
terriyuand I don't see a cover folder20:09
terriyuhttp://paste.openstack.org/show/47341/20:12
litongso you have not run the script looks like.20:18
litongprobably make sure your env is setup right.20:18
litongnormally it is because you either miss dependency or your dependency is out dated.20:18
litongI suggest you run this first.20:19
litongsudo python setup.py install20:19
litongthis will basically download all the dependencies20:19
litongif it runs ok, then do sudo python setup.py develop.20:19
litongthen run the script again.20:19
terriyuthanks litong20:30
terriyuI ran sudo python setup.py install and sudo python setup.py develop20:30
terriyuand then ran ./run-tests.sh --coverage20:30
terriyubut I'm still getting the same test failures20:30
terriyuI do see some files like .coverage.precise64.12084.97441220:31
litongif you are seeing errors from nova_test, that is ok, you may not have nova stuff.20:31
terriyubut no cover folder20:31
litongso I normally just remove some nova test.20:31
litongthen you should be able to run it again.20:31
litongI mean remove this file nova_tests/test_notifier.py20:32
*** shakayumi has quit IRC20:36
*** evanjfraser has quit IRC20:37
openstackgerritlitong01 proposed a change to openstack/ceilometer: add more test cases to improve the test code coverage #2  https://review.openstack.org/4762920:38
terriyulitong: I tried removing nova_tests/test_notifier.py and commenting out nova_tests in the run-tests.sh script, but the same test failures occurred20:39
litongwhat are the errors?20:40
terriyuhold on, I'll get you a paste20:40
litongdid sudo python setup.py install finish successfully?20:40
terriyuyes, sudo python setup.py finished successfully20:45
*** nadya has joined #openstack-metering20:51
terriyulitong: here's a paste of the errors http://paste.openstack.org/show/47342/20:53
litong@terriyu, not sure about the problem. probably try this, backup your /etc/ceilometer/ceilometer.conf file some where, then remove that file.20:56
litongtry again.20:56
terriyuI use Devstack, so I don't know if that has something to do with it20:56
terriyualso, I'm using the SQLAlchemy backend20:56
litong@terriyu, right, I use devstack as well, that is why I suggest to try to get rid of your configuration file and just use what ceilometer defaults to run the test.21:01
*** thomasm has quit IRC21:07
*** nadya has quit IRC21:08
*** julim has quit IRC21:08
litong@terriyu, from this error, No module named config, seems to me that you are missing oslo.config module.21:09
terriyuok21:10
litongyou probably want to install the latest oslo.config module.21:10
*** thomasm has joined #openstack-metering21:11
terriyulitong: should I install oslo.config using pip?21:11
litongI do not remember, probably either apt-get or pip.21:11
litongtry pip and see how it goes.21:12
thomasmterriyu, litong: I thought that oslo used an update script to mirror to all OS projects?21:13
litongsome of the modules are not automatically updated.21:13
thomasmOhhhh okay21:14
litongI do not think I saw oslo.config being in the requirments.txt.21:14
thomasmlitong, Ahhh yeah I see it now. Sorry =]21:14
thomasmhttps://pypi.python.org/pypi/oslo.config21:14
thomasmhmmmm21:14
litongsometimes, you may have to get rid of the .tox directory to refresh your run-tests.21:15
thomasmtox -r can also be helpful. Though, like litong said, sometimes I just have to blow away my .tox completely.21:16
thomasmIt looks like that update script is more specifically for updating from incubator21:17
thomasm=]21:17
litongwell, actually oslo.config is in the requirements.txt.21:17
litongit requires 1.2.0a3.21:17
litongmake sure your oslo.config is up to that level.21:17
terriyuok21:18
litongand it is possible that you may have an older version in .tox/_download dir,21:18
terriyuhmm, that's weird21:18
terriyuI did "pip search oslo.config" and it's installed21:18
*** thomasm has quit IRC21:18
litongyou may see some thing like this http%3A%2F%2Ftarballs.openstack.org%2Foslo.config%2Foslo.config-1.2.0a3.tar.gz21:18
litongI have the required oslo.config obviously.21:19
terriyumy version of oslo.config is 1.2.0a4.5.gf2be4e821:19
litongcheck the .tox/_download directory.21:19
litongsee if you have multiple of oslo.config21:20
*** EmilienM has quit IRC21:22
terriyuin .tox/_download, I have oslo.config-1.2.0a321:22
terriyuhmm21:23
terriyuwell, I'll try removing .tox21:23
*** litong has quit IRC21:23
*** EmilienM has joined #openstack-metering21:23
*** sandywalsh_ has quit IRC21:37
*** sandywalsh_ has joined #openstack-metering21:54
*** bpokorny has quit IRC22:03
*** openstack has quit IRC22:35
*** openstack has joined #openstack-metering22:35
*** fnaval__ has quit IRC23:03
*** herndon has quit IRC23:04
*** maksimov has quit IRC23:25
*** herndon has joined #openstack-metering23:50
*** mgagne has quit IRC23:50

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