Friday, 2014-03-07

*** rwsu has quit IRC00:31
*** thomasem has joined #openstack-ceilometer00:33
*** promulo has joined #openstack-ceilometer00:33
*** openstackgerrit has quit IRC00:35
*** openstackgerrit has joined #openstack-ceilometer00:35
openstackgerritClaudiu Belu proposed a change to openstack/ceilometer: Fixes Hyper-V metrics units  https://review.openstack.org/7880200:38
*** raymondr has quit IRC00:39
*** shakayumi has quit IRC00:42
*** fnaval has quit IRC00:46
openstackgerritAdrian Turjak proposed a change to openstack/ceilometer: Adds flavor.id metric  https://review.openstack.org/7572800:48
*** ironic has joined #openstack-ceilometer00:53
*** thomasem has quit IRC00:57
openstackgerritAdrian Turjak proposed a change to openstack/ceilometer: Adds a state metric to ceilometer  https://review.openstack.org/7519300:58
*** xianghui has joined #openstack-ceilometer01:04
*** HT_Sergio has quit IRC01:05
*** Yathi has joined #openstack-ceilometer01:13
*** ironic has quit IRC01:16
*** Yathi has quit IRC01:21
*** Yathi has joined #openstack-ceilometer01:22
*** raymondr has joined #openstack-ceilometer01:22
*** xianghui has quit IRC01:37
*** Yathi has quit IRC01:48
openstackgerritZhongyue Luo proposed a change to openstack/ceilometer: Removes use of timeutils.set_time_override  https://review.openstack.org/7883301:50
openstackgerritliusheng proposed a change to openstack/ceilometer: Fix updating alarm can specify existing alarm name  https://review.openstack.org/7849501:51
*** _cjones_ has quit IRC01:56
*** prad_ has quit IRC01:58
*** nosnos has joined #openstack-ceilometer02:00
*** prad has joined #openstack-ceilometer02:01
*** mihgen has quit IRC02:02
*** dhellmann_ has joined #openstack-ceilometer02:05
*** changbl has joined #openstack-ceilometer02:05
*** bogdando has quit IRC02:06
*** dhellmann has quit IRC02:06
*** tasdomas has quit IRC02:07
*** nikhil___ has quit IRC02:07
*** dhellmann_ is now known as dhellmann02:07
*** bogdando has joined #openstack-ceilometer02:07
*** nikhil__ has joined #openstack-ceilometer02:07
*** tasdomas has joined #openstack-ceilometer02:09
*** nikhil___ has joined #openstack-ceilometer02:22
*** promulo_ has joined #openstack-ceilometer02:23
*** ondergetekende_ has joined #openstack-ceilometer02:24
*** nati_ueno has quit IRC02:29
*** openstackgerrit has quit IRC02:35
*** sbadia has quit IRC02:35
*** changbl has quit IRC02:35
*** jaypipes has quit IRC02:35
*** lsmola has quit IRC02:35
*** parkerr_ has quit IRC02:35
*** nprivalova has quit IRC02:35
*** llu has quit IRC02:35
*** bogdando has quit IRC02:35
*** janisg has quit IRC02:35
*** esheffie1d has quit IRC02:35
*** Kim-Chi-San has quit IRC02:35
*** sdake has quit IRC02:35
*** nikhil__ has quit IRC02:35
*** dhellmann has quit IRC02:35
*** promulo has quit IRC02:35
*** ondergetekende has quit IRC02:35
*** tianst20 has quit IRC02:35
*** sileht has quit IRC02:35
*** ondergetekende_ has quit IRC02:35
*** promulo_ has quit IRC02:35
*** nikhil___ has quit IRC02:35
*** nosnos has quit IRC02:35
*** gibi has quit IRC02:35
*** zul has quit IRC02:35
*** ryanpetrello has quit IRC02:35
*** ilyashakhat_ has quit IRC02:35
*** annegentle has quit IRC02:35
*** dragondm has quit IRC02:35
*** yjiang5 has quit IRC02:35
*** scroiset has quit IRC02:35
*** jd__ has quit IRC02:35
*** ashestakov has quit IRC02:35
*** nijaba has quit IRC02:35
*** tasdomas has quit IRC02:35
*** sdake_ has quit IRC02:35
*** Ruetobas has quit IRC02:35
*** nealph has quit IRC02:35
*** lakspace has quit IRC02:35
*** SergeyLukjanov has quit IRC02:35
*** ruhe has quit IRC02:35
*** jburkhart has quit IRC02:35
*** kin has quit IRC02:35
*** fc__ has quit IRC02:35
*** hhamalai has quit IRC02:35
*** gpocentek has quit IRC02:35
*** Daviey has quit IRC02:35
*** boris-42 has quit IRC02:35
*** nsaje_ has quit IRC02:35
*** EmilienM has quit IRC02:35
*** zigo has quit IRC02:35
*** Guest34377 has quit IRC02:35
*** ildikov_ has quit IRC02:35
*** ekarlso has quit IRC02:35
*** anteaya has quit IRC02:35
*** apmelton1 has quit IRC02:35
*** prad has quit IRC03:00
*** thomasem has joined #openstack-ceilometer03:02
*** thomasem has quit IRC03:03
*** raymondr has quit IRC03:08
*** raymondr has joined #openstack-ceilometer03:14
*** ondergetekende has joined #openstack-ceilometer03:22
*** yjiang5 has joined #openstack-ceilometer03:23
*** promulo has joined #openstack-ceilometer03:25
*** annegentle has joined #openstack-ceilometer03:31
*** zul has joined #openstack-ceilometer03:31
*** ryanpetrello has joined #openstack-ceilometer03:31
*** dragondm has joined #openstack-ceilometer03:31
*** scroiset has joined #openstack-ceilometer03:31
*** annegentle has quit IRC03:31
*** zul has quit IRC03:31
*** zul has joined #openstack-ceilometer03:32
*** annegentle has joined #openstack-ceilometer03:33
*** raymondr has quit IRC03:48
*** raymondr has joined #openstack-ceilometer03:48
*** raymondr has quit IRC03:53
*** raymondr has joined #openstack-ceilometer05:16
*** _nadya_ has joined #openstack-ceilometer05:32
*** _nadya_ has quit IRC05:37
*** sayalilunkad has joined #openstack-ceilometer05:42
*** raymondr has quit IRC06:03
*** sayali has joined #openstack-ceilometer06:24
*** sayalilunkad has quit IRC06:28
*** AMike has joined #openstack-ceilometer06:42
*** sayali has quit IRC06:46
*** saju_m has joined #openstack-ceilometer07:01
*** stzilli has joined #openstack-ceilometer07:53
*** ildikov_ has joined #openstack-ceilometer07:53
*** eglynn has joined #openstack-ceilometer07:53
*** piyushmasrani has joined #openstack-ceilometer07:53
*** xianghui has joined #openstack-ceilometer07:53
*** shakayumi has joined #openstack-ceilometer07:53
*** fnaval has joined #openstack-ceilometer07:53
*** flwang has joined #openstack-ceilometer07:53
*** gibi has joined #openstack-ceilometer07:53
*** nikhil__ has joined #openstack-ceilometer07:53
*** ilyashakhat has joined #openstack-ceilometer07:53
*** sbadia has joined #openstack-ceilometer07:53
*** tianst20 has joined #openstack-ceilometer07:53
*** sileht has joined #openstack-ceilometer07:53
*** dhellmann has joined #openstack-ceilometer07:53
*** tasdomas has joined #openstack-ceilometer07:53
*** bogdando has joined #openstack-ceilometer07:53
*** changbl has joined #openstack-ceilometer07:53
*** sdake_ has joined #openstack-ceilometer07:53
*** Ruetobas has joined #openstack-ceilometer07:53
*** nealph has joined #openstack-ceilometer07:53
*** jaypipes has joined #openstack-ceilometer07:53
*** lsmola has joined #openstack-ceilometer07:53
*** janisg has joined #openstack-ceilometer07:53
*** parkerr_ has joined #openstack-ceilometer07:53
*** nprivalova has joined #openstack-ceilometer07:53
*** ekarlso has joined #openstack-ceilometer07:53
*** lakspace has joined #openstack-ceilometer07:53
*** llu has joined #openstack-ceilometer07:53
*** jd__ has joined #openstack-ceilometer07:53
*** boris-42 has joined #openstack-ceilometer07:53
*** SergeyLukjanov has joined #openstack-ceilometer07:53
*** ruhe has joined #openstack-ceilometer07:53
*** jburkhart has joined #openstack-ceilometer07:53
*** nsaje_ has joined #openstack-ceilometer07:53
*** esheffie1d has joined #openstack-ceilometer07:53
*** Kim-Chi-San has joined #openstack-ceilometer07:53
*** ashestakov has joined #openstack-ceilometer07:53
*** sdake has joined #openstack-ceilometer07:53
*** nijaba has joined #openstack-ceilometer07:53
*** EmilienM has joined #openstack-ceilometer07:53
*** kin has joined #openstack-ceilometer07:53
*** fc__ has joined #openstack-ceilometer07:53
*** anteaya has joined #openstack-ceilometer07:53
*** hhamalai has joined #openstack-ceilometer07:53
*** gpocentek has joined #openstack-ceilometer07:53
*** Daviey has joined #openstack-ceilometer07:53
*** zigo has joined #openstack-ceilometer07:53
*** Guest34377 has joined #openstack-ceilometer07:53
*** apmelton1 has joined #openstack-ceilometer07:53
*** AMike has quit IRC07:56
*** AMike has joined #openstack-ceilometer07:56
*** taplax has joined #openstack-ceilometer07:59
*** eglynn has quit IRC08:18
*** shakayumi has quit IRC08:19
*** admin0 has joined #openstack-ceilometer08:28
admin0good morning08:34
*** raymondr has joined #openstack-ceilometer08:35
*** raymondr has quit IRC08:39
*** nosnos has joined #openstack-ceilometer08:45
*** shakayumi has joined #openstack-ceilometer08:46
*** nacim has joined #openstack-ceilometer08:58
*** ildikov_ has quit IRC09:02
*** yassine has joined #openstack-ceilometer09:06
*** eglynn has joined #openstack-ceilometer09:07
*** mihgen has joined #openstack-ceilometer09:10
*** ildikov_ has joined #openstack-ceilometer09:18
*** flwang has quit IRC09:20
*** shakayumi has quit IRC09:26
*** shalmaliss has joined #openstack-ceilometer09:29
*** mihgen has quit IRC09:30
shalmalisshi, I am trying to install ceilometer in three-node set up using http://docs.openstack.org/havana/install-guide/install/apt/content/ceilometer-install.html09:31
shalmalissBut I am getting error "ServiceCatalogException: Invalid service catalog service: compute"09:31
shalmalissin apache logs09:32
shalmalisscan anyone plz help me with this09:32
shalmalissI could loging for the first time but now I can't login to horizon09:33
*** Alexei_987 has joined #openstack-ceilometer09:34
*** admin0 has quit IRC09:38
*** admin0 has joined #openstack-ceilometer09:48
*** raymondr has joined #openstack-ceilometer10:04
*** Kim-Chi-San has quit IRC10:06
*** raymondr has quit IRC10:08
*** shakayumi has joined #openstack-ceilometer10:17
*** saju_m has quit IRC10:19
*** shakayumi has quit IRC10:22
*** flwang has joined #openstack-ceilometer10:42
*** admin0 has quit IRC10:50
*** admin0 has joined #openstack-ceilometer11:29
*** saju_m has joined #openstack-ceilometer11:30
*** admin0 has quit IRC11:35
*** shakayumi has joined #openstack-ceilometer11:41
*** xianghui has quit IRC11:43
*** piyushmasrani has quit IRC11:48
*** nosnos has quit IRC11:51
nsaje_guys, can someone run `ceilometer statistics -m cpu` and `ceilometer statistics -m cpu_util` ? I get almost the same output and would like to verify this as a bug11:57
nsaje_i.e. it looks to me like the statistics query for cpu_util is taking cpu metric's values11:58
eglynnnsaje_: hmmm, that's kinda weird12:01
eglynn... /me checks12:01
*** admin0 has joined #openstack-ceilometer12:02
nsaje_in fact, every meter returns the same statistics on my devstak12:02
nsaje_*devstack12:02
*** shakayumi has quit IRC12:05
eglynnnsaje_: does the raw query you see when running with --debug look sane?12:05
nsaje_yes12:05
nsaje_eglynn: the query is to http://192.169.33.15:8777/v2/meters/instance/statistics12:06
nsaje_and I get12:06
nsaje_https://www.irccloud.com/pastebin/iY73XTOJ12:06
*** promulo_ has joined #openstack-ceilometer12:07
*** promulo has quit IRC12:08
eglynnnsaje_: ok, that looks very wrong :(12:08
nsaje_eglynn: unfortunately, yes. Could it have something to do with new aggregates changes?12:09
eglynnnsaje_: I'm thinking more likely the pipeline changes TBH12:09
nsaje_eglynn: This is why we need tempest tests asap :D12:10
eglynnnsaje_: yep12:10
eglynnnsaje_: ok, let me look into it, I don't have a fresh devstack running so it'll take me a while to get set up12:11
nsaje_eglynn: ok, I'm looking into it also, I'll see if I can find anything12:11
nsaje_eglynn: should I report a bug or wait?12:11
eglynnnsaje_: yep, please file a bug12:12
eglynnnsaje_: which storage driver, mongo or sqlalchemy?12:17
nsaje_sqlalchemy12:17
eglynnnsaje_: ... have you checked the counter names in the DB?12:17
nsaje_yes, they look alright12:17
nsaje_eglynn: anything specific I should be looking for?12:17
nsaje_eglynn: even listing the samples through CLI returns the correct data12:18
eglynnnsaje_: "correct data"?12:18
eglynnnsaje_: correct volume but wrong meter names?12:18
nsaje_e.g. cpu_util returns data samples in the range 0-10012:18
nsaje_eglynn: no, everything is correct. Only statistics command is problematic12:19
nsaje_eglynn: so it's not a problem of persisting the samples12:20
nsaje_eglynn: the problem should be when the samples are retrieved for statistics computation12:20
eglynnnsaje_: yep, that sounds likely12:20
*** promulo_ has quit IRC12:22
*** saju_m has quit IRC12:49
*** shakayumi has joined #openstack-ceilometer12:57
*** julim has joined #openstack-ceilometer13:06
eglynnnsaje_: finally got a devstack up, yep I'm seeing the same against sqlalchemy but not mongo13:07
eglynnnsaje_: looking into it now13:07
nsaje_eglynn: I think the problem could be this line: https://git.openstack.org/cgit/openstack/ceilometer/tree/ceilometer/storage/impl_sqlalchemy.py#n17213:11
nsaje_eglynn: but I haven't yet figured out what that line should really be :)13:11
eglynnnsaje_: yeah, thinking the same ... I just confirmed that constraint is actually being added to the query13:12
eglynnnsaje_: ... I wonder could it related to the recent re-org of the samples table?13:12
nsaje_eglynn: seems very likely, since [counter|meter|sample]_[id|name] were thrown around13:12
nprivalovaeglynn: I have an update about notifications. Looks like it's just too long. In tempest logs I see that the last attempt for retrieving notifications was at 13:37:45. In collector logs I see the message 13:43:19.361 28730 DEBUG ceilometer.openstack.common.rpc.amqp [-] received {message}. The message is about vcpus so it cannot be from pollsters. We continue investigations, will write email today13:13
eglynnnprivalova: great, thanks for the update! ... I wonder has nova extended the notification payload size beyond some magical threshold?13:14
eglynnnprivalova: ... or maybe some variable aspect of the notification (e.g. user metadata for instance) is causing it to bloat13:15
nprivalovaeglynn: do you think that the problem is message's size?13:15
eglynnnprivalova: sorry, I mis-interpreted what you were saying ... "Looks like it's just too long"13:16
nprivalovaeglynn: I meant that notifications are processed for a long time. Or is sending for a long time...I think the first variant is more likely13:17
eglynnnprivalova: a-ha, I see ... my bad! ... apols for the noise :)13:17
eglynnnsaje_: just rolled back my devstack to prior to the pipeline and aggregate changes landing, and still seeing the issue13:18
eglynnnsaje_: ... so looks like they're off the hook for now13:19
eglynnnsaje_: ... looking into that latest migration now13:19
*** shakayumi has quit IRC13:20
eglynnnsaje_: i.e. this commit https://github.com/openstack/ceilometer/commit/604fc82513:22
nsaje_eglynn: I'm not intimately familiar with sqlalchemy, but are we missing a join? Since meter is now a separate table13:24
eglynnnsaje_: yep exactly what I was thinking13:25
eglynnnsaje_: ... but I'm confused as to why sqlalchemy would consider (models.Meter.name == sample_filter.meter) constantly true in the absence of a join13:26
*** Kim-Chi-San has joined #openstack-ceilometer13:31
eglynnnsaje_: hmmm, maybe the join is implicit ... quick attempt to add an explicit join failed for me with an error that implies the join was already in place13:33
nsaje_eglynn: I got it working13:35
eglynnnsaje_: cool, what was the fix?13:35
nsaje_eglynn: for sqlalchemy the 'base' model is Meter13:36
nsaje_so I joined a Sample to it13:36
nsaje_and it works13:36
nsaje_(probably because the Meter.unit is listed first in the select parameters)13:36
eglynnnsaje_: excellent!13:36
eglynnnsaje_: can you get a fix up on gerrit?13:36
nsaje_eglynn: ASAP13:37
eglynnnsaje_: unfortunately we've missed the boat on the i3 tag13:37
nsaje_eglynn: broken alarming in i3 :D13:37
eglynnnsaje_: ... I'm guessin a re-spin is out of the question13:37
eglynnnsaje_: ... all statistics broken, even worse :(13:37
eglynnnsaje_: got a bug number?13:38
eglynnnsaje_: I'll mark critical and target to icehouse-rc113:38
nsaje_https://bugs.launchpad.net/ceilometer/+bug/128932513:38
*** admin0 has quit IRC13:38
*** raymondr has joined #openstack-ceilometer13:40
eglynnjd__: around?13:40
silehthum, annoying bug ...13:41
*** ityaptin has joined #openstack-ceilometer13:42
nsaje_eglynn: we probably should take a closer look at that filtering function, it filters mostly on Sample and it isn't joined anywhere13:44
eglynnnsaje_: yep, lets get the initial fix out for review anyway13:44
eglynnnsaje_: we can have a mpore detailed discussion when gordc comes online13:44
eglynnjd__: nsaje_ has unearthed a serious breakage in statistics for sqlalchemy13:45
eglynn... samples for *all* meters are included in all stats queries13:45
eglynn... defect has on master since https://github.com/openstack/ceilometer/commit/604fc825 (i.e. circa 10 days)13:45
eglynn... and is in icehouse-3 unfortunately :(13:45
eglynnjd__: ... would asking for a re-spin of icehouse-3 be out of the question?13:46
*** admin0 has joined #openstack-ceilometer13:47
nsaje_eglynn: https://review.openstack.org/#/c/78962/13:52
eglynnnsaje_: looking13:52
silehteglynn, nsaje_ I wonder why no unit tests have catched that13:53
silehtw+2: Julien Danjou <julien@danjou.info>13:54
silehtApproved+1: Mehdi Abaakouk <mehdi.abaakouk@enovance.com>13:54
silehtoups13:54
eglynnsileht: prolly coz the statistics scenario tests all use a constant meter name13:54
silehteglynn, we needs to add a new test so13:54
eglynnsileht: yep13:54
*** raymondr has quit IRC13:55
*** shalmaliss has quit IRC13:57
*** admin0 has quit IRC13:58
*** thomasem has joined #openstack-ceilometer13:59
*** nsaje_ is now known as nsaje_on_the_bus14:00
*** admin0 has joined #openstack-ceilometer14:01
*** admin0 has quit IRC14:02
*** bowdengl has joined #openstack-ceilometer14:06
*** yfujioka has quit IRC14:07
*** raymondr has joined #openstack-ceilometer14:08
ildikov_nsaje_: hi14:11
ildikov_nsaje_: I've posted a comment to that fix, could you please check?14:11
*** raymondr has quit IRC14:12
jd__eglynn: that's what rc1 is for, fixing those bugs :)14:21
eglynnjd__: yeah, I guess I'm thinking there may be folks actually deploying milestones with some expectation of non-borked-ness14:23
*** gordc has joined #openstack-ceilometer14:23
eglynnjd__: ... well more of an expectation that when just plain trunk chasing14:23
eglynnjd__: ... any-hoo, for the i3-based spin of the RDO distro I guess we'll just carry an extra patch14:24
jd__eglynn: yeah sounds reasonable14:24
eglynnjd__: cool enough, /me unpresses the panic button ;)14:25
*** nsaje_on_the_bus is now known as nsaje14:26
*** raymondr has joined #openstack-ceilometer14:26
*** parkerr_ has quit IRC14:27
ildikov_nsaje: hey14:28
*** admin0 has joined #openstack-ceilometer14:28
nsajeeglynn, ildikov_ : looking at comments now, sorry I had to commute14:28
eglynnnsaje: np ... I twigged your on_the_bus nick and assumed as much :)14:28
ildikov_nsaje: /me sorry, I've just realized when you changed back your name that you wre on the bus :)14:29
*** gordc has quit IRC14:29
nsajeildikov_: great suggestion, MeterSampleModel looks like the class to use14:30
*** raymondr has quit IRC14:30
eglynnnsaje: .. prolly an idea to add gordc as a reviewer on that patch also14:31
ildikov_eglynn, nsaje: I've just wanted to suggest that14:31
*** gordc has joined #openstack-ceilometer14:31
ildikov_eglynn, nsaje: gordc can confirm my suggestion too, if MeterSample looks like the one, or it is the one14:32
*** gordc has quit IRC14:33
*** gordc has joined #openstack-ceilometer14:33
nsajeeglynn: if this is urgent to fix today, perhaps someone with more sqlalchemy experience should take over this patch14:35
eglynngordc: hey14:35
gordceglynn: whatsup?14:36
eglynngordc: you might want to read the baklog http://eavesdrop.openstack.org/irclogs/%23openstack-ceilometer/%23openstack-ceilometer.2014-03-07.log14:36
eglynngordc: (issue with statistics queries in sqlalchemy)14:36
eglynnnsaje: actually its not urgent that it gets in today14:36
eglynnnsaje: let's take our time and get it right14:36
gordceglynn: i saw the patch. i'll read the log to see what's being discussed.14:37
eglynnnsaje: the urgency was me initially hoping to sneak the fix into a icehouse-3 respin14:37
eglynngordc: cool thanks!14:37
*** prad_ has joined #openstack-ceilometer14:37
eglynnnsaje: but that's not going to happen, so I think we have time to get this right14:37
ildikov_eglynn: in get it right we also need to include the tests14:38
eglynnildikov_: true dat14:38
*** parkerr_ has joined #openstack-ceilometer14:44
*** gordc1 has joined #openstack-ceilometer14:53
*** gordc has quit IRC14:54
nsajegordc1: what say you, should MeterSample be used in https://git.openstack.org/cgit/openstack/ceilometer/tree/ceilometer/storage/impl_sqlalchemy.py#n172 ?14:55
gordc1nsaje: testing it out right now. (or trying to... my internet keeps dying on me)14:57
gordc1nsaje: switching all the aggregate items to MeterSample should work but i'm trying to test if that's needed or if it's broken elsewhere.14:58
nsajegordc1: well, feel free to take over fixing this, I don't have much sqlalchemy experience :)14:58
*** gordc1 is now known as gordc14:59
gordcnsaje: cool cool. i'll continue looking at it and see what i can dig up14:59
*** stzilli has quit IRC15:01
*** fnaval has quit IRC15:10
*** gordc has quit IRC15:16
*** gordc has joined #openstack-ceilometer15:16
*** openstackgerrit has joined #openstack-ceilometer15:22
*** admin0 has quit IRC15:29
*** admin0 has joined #openstack-ceilometer15:30
*** ryanpetrello has quit IRC15:31
*** ryanpetrello has joined #openstack-ceilometer15:32
*** fnaval has joined #openstack-ceilometer15:34
*** bowdengl has quit IRC15:38
*** shakayumi has joined #openstack-ceilometer15:39
*** admin0 has quit IRC15:56
*** Ruetobas has quit IRC16:04
*** Ruetobas has joined #openstack-ceilometer16:05
*** mihgen has joined #openstack-ceilometer16:05
*** shakayumi has quit IRC16:08
*** AMike has quit IRC16:09
*** Ruetobas has quit IRC16:09
*** admin0 has joined #openstack-ceilometer16:10
*** admin0 has quit IRC16:13
*** Ruetobas has joined #openstack-ceilometer16:14
*** admin0 has joined #openstack-ceilometer16:19
*** admin0 has quit IRC16:21
ildikov_gordc: hi. are you around?16:26
gordcildikov_: yep16:26
ildikov_gordc: I just have a quick question about negative api tests16:26
ildikov_grodc: I was wondering if we should test the error messgae or not as those usually have translation16:27
*** raymondr has joined #openstack-ceilometer16:27
ildikov_gordc: I'm not sure about if it is handled by the unit tests or not16:27
gordcildikov_: hmm. good question. i've no idea how the translation work... i'd assume the unit tests take the raw 'untranslated' messages16:29
gordcildikov_: are you adding tests or is this relating to a bug?16:30
ildikov_gordc: I added a review comment to a test earlier and I got back this issue as a reason for not testing the expected error message16:31
*** raymondr has quit IRC16:31
ildikov_gordc: in case of that patch it was a minor issue and that was about to merge into I-3, so I let it go, now I have another review, where I have already a few comments and this would also be on the list, so I thought to ask about it16:32
ildikov_gordc: do you have any hints, where should I start the investigation of this topic?16:33
ildikov_gordc: in my view it is better to test the error message too as in many cases it is generated and it is better to konw if the text that was generated after an exception is correct or not16:33
gordcildikov_: ah i see... to be honest i don't know when the translation happens... i would think it would happen during packaging.16:34
ildikov_gordc: and also we already have some test cases that checks these messages16:34
gordcildikov_: search ceilometer code, i vaguely remember that we have a few tests that check the error message.16:34
gordcildikov_: if so, i would assume translation is a non-issue in regards to unit tests.16:35
ildikov_gordc: yes we have, I wrote some tests of this kind and the patch is already merged16:35
ildikov_gordc: and there were some already, when I wrote mine16:36
ildikov_gordc: that sounds logical16:36
gordcildikov_: yeah... i've never heard of anyone complain about tests not running on their machine because of translation...16:36
gordcildikov_: that said, i couldn't tell you anyone who uses the translations so that could be the reason.16:37
ildikov_gordc: me neither, but we also have en_us locale on every of our test machines16:38
gordcildikov_: same.16:39
*** raymondr has joined #openstack-ceilometer16:40
ildikov_gordc: and what is your opinion about testing the error messages in general, independently from this translation question?16:40
ildikov_gordc: in my view it is important, but maybe I'm just too maniac :)16:41
gordcildikov_: for me, it's not really important... unless there's a bunch of different exception cases and we particularly want to make sure it's getting caught by right clause.16:44
*** raymondr has quit IRC16:45
gordcildikov_: although i'm probably not a good person to ask about tests (i should probably improve my tests).16:45
ildikov_gordc: in the review I'm just in, there three ClientSideErrors in that validate function and all of them with the default error code (HTTP 400)16:47
ildikov_s/there three/there are three/16:48
ildikov_gordc: maybe this can be one case, when it would be useful to check16:50
gordcildikov_: i see... i'd probably be indifferent to it since they all have same error (if that's right). that said, i'm sure there are people who share your opinion that it should be verified...16:51
gordcildikov_: for me, if you added that tests in i wouldn't mind since it doesn't hurt to test for more things... whether it's useful or not, you'll get different opinions on. :)16:52
ildikov_gordc: ok, I get it :)16:53
*** _cjones_ has joined #openstack-ceilometer16:53
ildikov_gordc: I do not want to steal your time, so thanks for the opinions and the discussion16:55
*** yassine has quit IRC16:56
gordcildikov_: np. good discussion. i typically just put comments on how i'd do it. if people disagree they'll say so... not a big deal. if you feel like it's really important, you can put it to a bigger forum (ie. meeting or mailinglist) to see what community thinks.16:59
ildikov_gordc: ok, thanks, it's a good idea, improving tests is always a good topic I think :)17:01
ildikov_gordc: sorry, I need to run now, thanks again for guiding me :)17:01
gordcildikov_: agreed. even though i hate writing tests.17:01
gordcildikov_: cool cool, ttyl17:01
ildikov_gordc: sometimes me too, but during development I feel that it is useful to have tests17:03
ildikov_gordc: laters17:03
*** ildikov_ has quit IRC17:07
*** nacim has quit IRC17:07
openstackgerritA change was merged to openstack/ceilometer: Enable monkeypatch for select module  https://review.openstack.org/7865417:10
*** rwsu has joined #openstack-ceilometer17:12
openstackgerritgordon chung proposed a change to openstack/ceilometer: Fix broken statistics in sqlalchemy  https://review.openstack.org/7896217:14
*** promulo has joined #openstack-ceilometer17:15
openstackgerritgordon chung proposed a change to openstack/ceilometer: Fix broken statistics in sqlalchemy  https://review.openstack.org/7896217:15
*** lsmith has joined #openstack-ceilometer17:18
lsmithI am working on setting up MySQL backend for ceilometer. I have the connection working but no tables. I've looked for setup files, etc back can't seem to find any reference on how the MySQL tables get created.17:19
eglynnlsmith: ceilometer-dbsync --config-file /etc/ceilometer/ceilometer.conf17:20
eglynnlsmith: after creating the DB17:20
eglynnlsmith: i.e. fire up mysql client and run "create database ceilometer;"17:21
*** _nadya_ has joined #openstack-ceilometer17:21
eglynnlsmith: in /etc/ceilometer/ceilometer.conf ensure you've got ...17:21
eglynn[database]17:21
eglynnconnection = mysql://$USER:$PASSWD@$IP_ADDR/ceilometer?charset=utf817:22
eglynnlsmith: ^^^ with the appropriate substitutions17:22
lsmitheglynn Awesome Thanks that what I was looking for. Was not able to find it in the docs or google search. Thanks again17:23
eglynnlsmith: np!17:23
*** nati_ueno has joined #openstack-ceilometer17:29
*** _nadya_ has quit IRC17:29
*** _nadya_ has joined #openstack-ceilometer17:30
*** sayalilunkad has joined #openstack-ceilometer17:42
*** nati_ueno has quit IRC17:46
*** _nadya_ has quit IRC17:46
*** thomasem has quit IRC17:47
*** raymondr has joined #openstack-ceilometer17:56
*** gordc has quit IRC18:00
*** raymondr has quit IRC18:00
*** gordc has joined #openstack-ceilometer18:05
*** thomasem has joined #openstack-ceilometer18:06
*** sayalilunkad has quit IRC18:08
*** thomasem has quit IRC18:09
*** sayalilunkad has joined #openstack-ceilometer18:09
*** sayalilunkad has quit IRC18:09
*** eglynn has quit IRC18:10
*** sayalilunkad has joined #openstack-ceilometer18:10
*** nati_ueno has joined #openstack-ceilometer18:20
*** mihgen has quit IRC18:23
*** shakayumi has joined #openstack-ceilometer18:24
*** _nadya_ has joined #openstack-ceilometer18:25
*** mihgen has joined #openstack-ceilometer18:35
*** sayali has joined #openstack-ceilometer18:40
*** sayalilunkad has quit IRC18:43
openstackgerritgordon chung proposed a change to openstack/ceilometer: Fix broken statistics in sqlalchemy  https://review.openstack.org/7896218:45
*** gordc has quit IRC18:54
*** eglynn has joined #openstack-ceilometer18:55
eglynnsayali: back18:58
eglynnsayali: did you run that mysql command?18:58
*** admin0 has joined #openstack-ceilometer18:58
sayalieglynn: mysql shell is giving me errors18:59
eglynnsayali: what kind of errors?18:59
sayalieglynn: syntax errors18:59
*** admin0 has quit IRC19:00
eglynnsayali: copy and paste the following19:00
eglynnselect volume, resource_id from sample where meter_id in (select id from meter where name = 'cpu_util');19:00
sayalinope the first command only fails19:00
sayalifor authenticating to the database19:00
eglynnsayali: paste?19:00
eglynnthat's not a syntax error19:01
sayali eglynn : http://paste.openstack.org/show/7291819:02
eglynnsayali: try ...19:02
eglynnmysql -u root -p$(grep DATABASE_PASSWORD ~/devstack/localrc | cut -f2 -d=) ceilometer19:02
eglynnsayali: arggh!19:03
eglynnsayali: infinite recursion :)19:03
eglynnsayali: ... you've tried to fire up mysql *within* mysql19:04
eglynnsayali: ctrl+D19:04
eglynnsayali: at the *shell* prompt paste: mysql -u root -p$(grep DATABASE_PASSWORD ~/devstack/localrc | cut -f2 -d=) ceilometer19:04
eglynnsayali: note *no space* after the -p19:05
sayalieglynn: ok now that got me to a database shell19:06
eglynnsayali: w00t!19:06
eglynnsayali: select volume, resource_id from sample where meter_id in (select id from meter where name = 'cpu_util');19:06
eglynnsayali: can you paste the output of that command?19:08
sayalieglynn: Error:- table ceilometer.sample does not exist19:08
eglynnsayali: show tables;19:08
eglynnsayali: how old is your devstack?19:09
sayalieglynn: http://paste.openstack.org/show/7291919:09
eglynnsayali: ctrl+D19:10
eglynnsayali:  cd /opt/stack/ceilometer/19:11
eglynnsayali: git log | head -1019:11
sayalieglynn: maybe a month old19:11
eglynnsayali: really? we're debugging a *month* old devstack?19:11
sayaliFeb 12th:|19:12
eglynnsayali: that's ancient history I'm afraid19:13
sayalieglynn: I'll spin a new one and check19:13
eglynnsayali: I can't even remember the sqlalchemy schema from back then19:13
eglynnsayali: yes that would be wise19:13
eglynnsayali: but before you do so19:13
eglynnsayali: go back into mysql client19:13
sayalieglynn: though I had done that a few days back on another VM when I first approached you with this problem19:14
sayalieglynn: ok and ?19:14
eglynnsayali: select counter_volume, resource_id from meter where counter_name = 'cpu_util'19:15
eglynn;19:15
eglynnsayali: ... /me is confused as to why you went back to such an old devstack19:15
eglynnsayali: ... why not just use the new-ish one you spun up a few days ago?19:16
eglynnsayali: devstacks should be treated like cattle, as opposed to beloved pets ;)19:17
eglynnsayali: ... just shoot them in the head when they start showing their age19:17
sayalieglynn: that one kept crashing when I did stack.sh19:17
eglynnsayali: ... don't try to keep nursing an old one along19:17
eglynnsayali: ... anyway, any joy with that SQL statement above?19:17
sayalieglynn:  http://paste.openstack.org/show/7292019:17
eglynnsayali: what's your instance ID,  2fcbf418-d62f-427c-ab14-b109c1bbcff9 perchance?19:18
sayalieglynn: yes19:19
eglynnsayali: ok so the samples exist in the metering store19:19
eglynnsayali: which means that the sample gathering pipeline is all working19:19
eglynnsayali: which is good19:20
sayalieglynn: yes19:20
eglynnsayali: but for some reason you don't see those samples via the ceilo-api service19:20
eglynnsayali: now we could drill down and try to figure out why19:20
eglynnsayali: but debugging a month-old devstack is not a good use of your time19:20
sayalieglynn: before that do you want me to start fresh?19:20
eglynnsayali: or of mine, for that matter19:20
eglynnsayali: yeap, you got it in one! :)19:21
sayalieglynn: ok cool! how long would you be around?19:21
eglynnsayali: it's friday evening getting on for 7:30pm in my TZ, so not for too long19:22
sayalieglynn: ok, will ping if your still around:)19:22
eglynnsayali: k19:22
*** thomasem has joined #openstack-ceilometer19:29
*** yassine has joined #openstack-ceilometer19:32
*** shakayumi has quit IRC19:33
*** gordc has joined #openstack-ceilometer19:43
*** raymondr has joined #openstack-ceilometer19:45
*** zul has quit IRC19:55
*** _nadya_ has quit IRC19:58
*** raymondr has quit IRC20:01
*** ryanpetrello has quit IRC20:02
*** ryanpetrello has joined #openstack-ceilometer20:04
*** sayali has quit IRC20:05
*** _nadya_ has joined #openstack-ceilometer20:22
*** raymondr has joined #openstack-ceilometer20:38
*** _nadya_ has quit IRC20:39
*** eglynn has quit IRC20:39
*** admin0 has joined #openstack-ceilometer21:19
*** ryanpetrello_ has joined #openstack-ceilometer21:21
*** ryanpetrello has quit IRC21:23
*** ryanpetrello_ is now known as ryanpetrello21:23
openstackgerritgordon chung proposed a change to openstack/ceilometer: Fix broken statistics in sqlalchemy  https://review.openstack.org/7896221:28
*** promulo has quit IRC21:31
*** admin0 has quit IRC21:35
openstackgerritRob Raymond proposed a change to openstack/ceilometer: Replace hard coded WSGI application creation  https://review.openstack.org/7795721:40
*** admin0 has joined #openstack-ceilometer21:50
*** lsmith has quit IRC21:52
*** promulo has joined #openstack-ceilometer21:55
*** admin0 has quit IRC22:01
*** ryanpetrello has quit IRC22:04
*** thomasem has quit IRC22:09
*** gordc has quit IRC22:26
*** yassine has quit IRC22:32
*** julim has quit IRC22:42
openstackgerritRob Raymond proposed a change to openstack/ceilometer: Replace hard coded WSGI application creation  https://review.openstack.org/7795722:51
*** yanuha has joined #openstack-ceilometer22:53
*** rwsu has quit IRC23:15
*** zigo has quit IRC23:17

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