Monday, 2014-05-26

*** nati_ueno has joined #openstack-ceilometer00:14
*** nati_ueno has quit IRC00:40
*** shakamunyi has joined #openstack-ceilometer00:41
*** nati_ueno has joined #openstack-ceilometer00:41
*** shakamunyi has quit IRC00:50
*** nati_ueno has quit IRC00:51
*** liusheng has quit IRC00:54
*** matsuhashi has joined #openstack-ceilometer00:55
openstackgerritliusheng proposed a change to openstack/python-ceilometerclient: Reduce redundant parameter of some commands in CLI  https://review.openstack.org/6677600:58
*** nosnos has joined #openstack-ceilometer00:59
*** liusheng has joined #openstack-ceilometer01:00
openstackgerritliusheng proposed a change to openstack/ceilometer: Fix the floatingip pollster  https://review.openstack.org/8367601:03
*** shakamunyi has joined #openstack-ceilometer01:17
*** raymondr has joined #openstack-ceilometer01:21
*** shakamunyi has quit IRC01:26
*** raymondr has quit IRC01:41
*** llu has joined #openstack-ceilometer01:42
*** shakamunyi has joined #openstack-ceilometer01:53
*** shakamunyi has quit IRC01:57
*** shakamunyi has joined #openstack-ceilometer01:58
*** shakamunyi has quit IRC02:05
openstackgerritliusheng proposed a change to openstack/ceilometer: Improves the query_to_kwargs method  https://review.openstack.org/9278802:06
openstackgerritliusheng proposed a change to openstack/ceilometer: Improves the query_to_kwargs method  https://review.openstack.org/9206602:06
*** raymondr_ has joined #openstack-ceilometer02:07
*** raymondr_ has quit IRC02:26
*** shakamunyi has joined #openstack-ceilometer02:30
*** nati_ueno has joined #openstack-ceilometer02:33
*** shakamunyi has quit IRC02:40
*** _cjones_ has joined #openstack-ceilometer02:43
*** nati_ueno has quit IRC02:43
*** _cjones_ has quit IRC02:48
*** zqfan has joined #openstack-ceilometer03:00
*** shakamunyi has joined #openstack-ceilometer03:07
*** shakamunyi has quit IRC03:17
*** matsuhashi has quit IRC03:19
*** nosnos has quit IRC03:33
*** shakamunyi has joined #openstack-ceilometer03:43
*** nati_ueno has joined #openstack-ceilometer03:47
openstackgerritZhiQiang Fan proposed a change to openstack/ceilometer: Evaluate alarms by their dependency order  https://review.openstack.org/8933003:50
*** shakamunyi has quit IRC03:53
openstackgerritMitsuru Kanabuchi proposed a change to openstack/ceilometer: Add the function of deleting alarm history  https://review.openstack.org/8786904:13
*** nati_ueno has quit IRC04:14
*** nati_ueno has joined #openstack-ceilometer04:14
*** shakamunyi has joined #openstack-ceilometer04:20
*** matsuhashi has joined #openstack-ceilometer04:21
*** nosnos has joined #openstack-ceilometer04:21
*** zqfan has quit IRC04:22
*** shakamunyi has quit IRC04:29
*** _cjones_ has joined #openstack-ceilometer04:45
*** nati_ueno has quit IRC04:45
*** _cjones_ has quit IRC04:50
*** shakamunyi has joined #openstack-ceilometer04:55
*** nati_ueno has joined #openstack-ceilometer05:03
*** shakamunyi has quit IRC05:05
*** raymondr has joined #openstack-ceilometer05:17
*** nati_ueno has quit IRC05:21
*** nati_uen_ has joined #openstack-ceilometer05:25
*** nati_ue__ has joined #openstack-ceilometer05:28
*** nati_ueno has joined #openstack-ceilometer05:30
*** nati_uen_ has quit IRC05:30
*** shakamunyi has joined #openstack-ceilometer05:32
*** nati_ue__ has quit IRC05:33
*** raymondr has quit IRC05:35
*** shakamunyi_ has joined #openstack-ceilometer05:37
*** shakamunyi has quit IRC05:39
*** shakamunyi_ has quit IRC05:39
*** alexizz has joined #openstack-ceilometer05:40
*** nati_ueno has quit IRC05:42
*** nati_ueno has joined #openstack-ceilometer05:43
*** nati_uen_ has joined #openstack-ceilometer05:46
*** nati_ueno has quit IRC05:47
*** nati_ueno has joined #openstack-ceilometer05:48
*** nati_uen_ has quit IRC05:50
*** nati_uen_ has joined #openstack-ceilometer05:53
*** nati_ueno has quit IRC05:53
*** nati_uen_ has quit IRC05:57
openstackgerritOpenStack Proposal Bot proposed a change to openstack/ceilometer: Imported Translations from Transifex  https://review.openstack.org/8850606:01
*** nati_ueno has joined #openstack-ceilometer06:06
*** _nadya_ has joined #openstack-ceilometer06:10
*** psharma has joined #openstack-ceilometer06:17
*** _nadya_ has quit IRC06:19
openstackgerritChristian Berendt proposed a change to openstack/ceilometer: remove unneeded definitions of Python Source Code Encoding  https://review.openstack.org/9538806:20
*** _nadya_ has joined #openstack-ceilometer06:22
*** nati_ueno has quit IRC06:27
*** mengxd has joined #openstack-ceilometer06:36
*** zqfan has joined #openstack-ceilometer06:40
*** _nadya_ has quit IRC06:44
*** _nadya_ has joined #openstack-ceilometer06:47
*** nati_ueno has joined #openstack-ceilometer06:48
openstackgerritliusheng proposed a change to openstack/ceilometer-specs: Specs for alarm-evaluator-storage-access  https://review.openstack.org/9541806:52
openstackgerritliusheng proposed a change to openstack/ceilometer: Support direct alarm_evaluator storage access  https://review.openstack.org/8975606:59
*** ildikov has quit IRC07:03
*** ildikov_ has quit IRC07:05
*** nati_ueno has quit IRC07:11
*** nati_uen_ has joined #openstack-ceilometer07:12
*** nati_uen_ has quit IRC07:16
*** zul has quit IRC07:26
*** _nadya_ has quit IRC07:26
*** zul has joined #openstack-ceilometer07:41
*** ruhe has quit IRC07:49
*** DinaBelova has quit IRC07:49
*** underyx has quit IRC07:51
*** nacim has joined #openstack-ceilometer07:54
*** underyx has joined #openstack-ceilometer07:56
*** DinaBelova has joined #openstack-ceilometer07:56
*** ruhe has joined #openstack-ceilometer07:56
openstackgerritliusheng proposed a change to openstack/ceilometer: Support direct alarm_evaluator storage access  https://review.openstack.org/8975608:03
*** pnascimento has joined #openstack-ceilometer08:27
*** Infitialis has joined #openstack-ceilometer08:29
InfitialisI'm trying to set up compute host meters with "compute_monitors = ComputeDriverCPUMonitor" in nova.conf but it doesn08:30
Infitialis... show it08:30
*** lsmola has joined #openstack-ceilometer08:39
*** _nadya_ has joined #openstack-ceilometer08:44
*** safchain has joined #openstack-ceilometer08:45
*** alexizz has quit IRC09:05
*** eglynn has joined #openstack-ceilometer09:09
*** idegtiarov has joined #openstack-ceilometer09:11
*** matsuhashi has quit IRC09:13
*** ildikov has joined #openstack-ceilometer09:17
*** ildikov is now known as ildikov_cee09:17
*** IvanBerezovskiy has joined #openstack-ceilometer09:19
*** matsuhashi has joined #openstack-ceilometer09:20
*** _nadya_ has quit IRC09:23
*** matsuhashi has quit IRC09:33
*** matsuhas_ has joined #openstack-ceilometer09:38
*** mengxd has quit IRC09:40
eglynnjd__: nice one, the gnocchi has landed ;) ... https://github.com/stackforge/gnocchi09:41
eglynn\o/ :)09:41
eglynnjd__: ... BTW do you normally run the gnocchi-api svc alongside a full devstack, for the swift aspect?09:41
eglynnjd__: ... or just run gnocchi-api against a stand-alone swift install?09:42
eglynnjd__: (... /me just asked with the intention of giving amalagon some pointers)09:42
pnascimentohello stackers09:47
eglynnpnascimento: good morning09:47
jd__eglynn: I've done both actually09:48
jd__both work fine09:48
pnascimentoI'm on a quest to develop my own ceilometer agent, I think I have finished that part, so now I would like to develop a Unit or a Set of Unit Tests for that agent, seeing the tests/ subpackage I have realised that is availble a test for an agent, for the pollsters, and the list goes on...09:49
pnascimentomy question is, to be a well performed test, do I need this structure?09:49
pnascimentoif yes, which is the best structure for a agent test suite?09:49
eglynnjd__: ... aha cool, thanks09:50
eglynnjd__: (... /me was just wondering whether there were any dark arts or secret incantations required to get it up & running, seems like not)09:50
*** igor_ has joined #openstack-ceilometer09:50
eglynnjd__: ... do you normally work on precise or trusty or something else?09:50
eglynnjd__: (might as well line anamalagon up with that to simplify dependencies etc.)09:51
eglynnpnascimento: have you looked at https://github.com/openstack/ceilometer/blob/master/ceilometer/tests/agentbase.py ?09:52
jd__eglynn: OS X :]09:52
jd__eglynn: I barely use devstack09:53
eglynnpnascimento: ... that mainly asserts the agent's interaction with the pipeline config09:53
eglynnwow! jd__ is an outlier! ;)09:53
jd__hehe09:53
eglynnpnascimento: ... that base test class is then extended for various concrete agents, e.g. compute: https://github.com/openstack/ceilometer/blob/master/ceilometer/tests/compute/test_manager.py09:55
pnascimentoeglynn: I'm looking to ceilometer/tests/compute/pollsters/{base.py, test_cpu.py} and to ceilometer/tests/central/test_manager.py09:55
eglynnpnascimento: the latter test you mention ceilometer/tests/central/test_manager.py extends the superclass I referenced above (i.e. agentbase.BaseAgentManagerTestCase)09:56
eglynnpnascimento: ... whereas the logic in ceilometer/tests/compute/pollsters/test_cpu.py etc. is intened to just exercise the individual pollster code09:56
eglynnpnascimento: ... you'll need both09:57
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Allow to have different DB for alarm and metering  https://review.openstack.org/9482909:57
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: Allow to have different DB for alarm and metering  https://review.openstack.org/9482910:00
pnascimentoeglynn: ok, I will look into that specific class and into mock, but firstly should I develop a test as-I-need-to (e.g.: just for one of my pollster)? Or it is a best practice to create, for the manager, pollsters, etc? That is was too, one of my doubts...10:00
*** shakamunyi has joined #openstack-ceilometer10:01
eglynnpnascimento: your initial patch should include both10:01
eglynnpnascimento: ... i.e. both tests for the new agent code and the new pollsters10:01
pnascimentoeglynn: ok :) after, how can I execute my tests? There anything like Maven or Grunt?10:03
eglynnpnascimento: to run all tests: tox -epy27,pep810:03
eglynnpnascimento: you may need to install tox first if not already there10:04
eglynnpnascimento: ... IIRC the version of tox has gotta be <1.7.010:04
eglynnpnascimento: e.g.: $ sudo pip install --upgrade "tox>=1.6,<1.7"10:05
eglynnpnascimento: ... to run an individual test module: $ tox -epy27 package.subpackage.module10:06
eglynnpnascimento: ... wow, maven ... that's a blast from the past for me10:06
pnascimentoeglynn: lol I have seen that command but I thought that would be used just for analyse Python syntax (against PEP8 rules) in whole project :P10:06
eglynnpnascimento: ... you've a Java background, or?10:07
pnascimentopnascimento: yes :P10:07
* eglynn hasn't used maven since the, cough, cough, good old days of Apache CFX & JBoss10:07
eglynn... ah, the memories ;)10:07
eglynnpnascimento: the pep8 analysis is relatively quick, not a big deal to do it across the entire ceilometer code-tree10:08
eglynnpnascimento: what's slow is downing the dependencies on the first run10:08
eglynns/downing/downloading/10:09
pnascimentoeglynn: as I have heard recently you are better now with Python! :P10:09
pnascimentoeglynn: but thank you for your guidance :)10:10
eglynnpnascimento: I have learned the error of my ways, and been cured of my non-dynamic-language heresy ;)10:10
*** shakamunyi has quit IRC10:15
*** denis_makogon has joined #openstack-ceilometer10:22
openstackgerritChristian Berendt proposed a change to openstack/ceilometer: replaced unicode() with six.text_type()  https://review.openstack.org/9548810:24
*** mengxd has joined #openstack-ceilometer10:29
*** mengxd has quit IRC10:30
*** shakamunyi has joined #openstack-ceilometer10:34
eglynnsileht: just noticed that https://blueprints.launchpad.net/ceilometer/+spec/switch-to-oslo.messaging has undefined priority10:52
openstackgerritZhiQiang Fan proposed a change to openstack/python-ceilometerclient: Avoid empty entity field in uri path  https://review.openstack.org/9130110:52
eglynnsileht: (prolly just a side-effect of it being bumped from icehouse)10:52
eglynnsileht: ... would you agree with it being "Essential"10:53
eglynn(i.e. the highest priority)?10:53
eglynn(... not that it makes a great deal of difference now that it's already landed)10:53
*** zqfan has quit IRC10:54
*** pnascimento has quit IRC10:54
eglynnidegtiarov: good afternoon!11:05
eglynnidegtiarov: are you planning to propose a detailed spec for https://blueprints.launchpad.net/ceilometer/+spec/hbase-events-structure ?11:05
eglynnidegtiarov: ... is juno-1 milestone still realistic for this BP to be implemented?11:06
eglynnidegtiarov: ... the process of proposing a spec is described on the wiki https://wiki.openstack.org/wiki/Blueprints#Ceilometer11:07
DinaBelovaeglynn, o/ idegtiarov seems to be not here, I'll try to catch him))11:08
DinaBelovaeglynn, uno momento)11:08
eglynnDinaBelova: grazie! :)11:08
*** nacim has quit IRC11:11
*** boris-42 has quit IRC11:13
eglynnliusheng: are you planning to propose a detailed spec for https://blueprints.launchpad.net/ceilometer/+spec/support-novaclient-v3 ?11:16
*** julim has joined #openstack-ceilometer11:17
*** nacim has joined #openstack-ceilometer11:17
liushengeglynn: Hi eglynn, yes I have registerd this bp, but I am not sure ceilometer should surpport v3 client in juno:)11:20
eglynnliusheng: that's fine, I'll just untarget it from juno-1 in that case11:21
*** julim has quit IRC11:21
eglynnliusheng: ... ok that BP is now untargeted11:22
*** boris-42 has joined #openstack-ceilometer11:23
idegtiaroveglynn:  good afternoon! I am going to propose detailed spec for events into HBase, and have started bp https://blueprints.launchpad.net/ceilometer/+spec/hbase-events-feature and spec for events are proposed in frames of this bp.11:23
eglynnidegtiarov: excellent! ... please add me as a reviewer on the spec once you've proposed it to gerrot11:24
*** guest_____ has joined #openstack-ceilometer11:24
eglynns/gerrot/gerrit/11:24
eglynnidegtiarov: thanks!11:24
liushengeglynn: OK I will write a specs for that bp :-)11:24
idegtiaroveglynn:  ok!  :)11:25
*** guest_____ has left #openstack-ceilometer11:27
eglynnidegtiarov: ... does juno-1 still seem like a reasonable target for completion for hbase events?11:27
eglynnidegtiarov: (... realistically, you'd need to have patches landed by June 6th in order to make a milestone cut the following week)11:27
eglynn(or if not landed by the 6th, at least with reviews well progressed at that stage, capable of being landed very early on the milestone week)11:29
eglynn(juno-1 will be cut on Thurs Jun 12th IIRC)11:29
idegtiaroveglynn:  actually I hope to finish with  this patch in a week11:32
openstackgerritMitsuru Kanabuchi proposed a change to openstack/ceilometer: Add the function of deleting alarm history  https://review.openstack.org/8786911:33
eglynnidegtiarov: excellent, thank you sir!11:37
*** _nadya_ has joined #openstack-ceilometer11:44
silehteglynn, qck11:45
eglynnsileht: cool11:45
*** nosnos has quit IRC12:00
*** matsuhas_ has quit IRC12:08
openstackgerritChristian Berendt proposed a change to openstack/ceilometer: replaced unicode() with six.text_type()  https://review.openstack.org/9548812:13
*** inc0 has joined #openstack-ceilometer12:13
inc0good afternoon everyone. I have quick question. How do you handle large samble tables in sqlalchemy impl? I have over 60m records and well, I'd like to shrink it, can you configure ceilo to skip some measurments?12:14
inc0or well, how do you handle this?12:15
*** pnascimento has joined #openstack-ceilometer12:15
silehtinc0, you can choose what meter you want to store in the pipeline configuration (usualy /etc/ceilometer/pipeline.yml)12:23
silehtinc0, this must be done on ceilometer-*-agent nodes12:24
eglynninc0: use https://blueprints.launchpad.net/ceilometer/+spec/db-ttl12:24
eglynninc0: ... a-ha, maybe I misunderstood the question, in the light of sileht's reply12:25
eglynninc0: ... do you wanna expire existing metering data, or ensure less data is collected going forward?12:25
inc0eglynn, well, I think I'll do both.12:25
eglynninc0: cool enough12:26
inc0however I saw bp regarding aggregating records12:26
inc0that would be better in the longer run, I'll check it out when I'll have time12:26
inc0thank you guys12:27
eglynninc0: well we spoke about aggregation/roll-up at the icehouse summit, but it didn't get implemented12:27
ildikov_ceeinc0: here is some doc for the pipeline config: http://docs.openstack.org/developer/ceilometer/configuration.html#pipelines12:27
eglynninc0: ... the bringht new hope though is TSDaaS/gnocchi for Juno12:27
*** matsuhashi has joined #openstack-ceilometer12:28
eglynninc0: s/bringht/bright/ ... https://github.com/openstack/ceilometer-specs/blob/master/specs/gnocchi.rst12:28
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer-specs: Move TSDaaS/gnoochi spec under juno  https://review.openstack.org/9551312:31
inc0hmm looks good, hopefully I'll get some time to work on it12:32
openstackgerritEoghan Glynn proposed a change to openstack/ceilometer-specs: Move TSDaaS/gnoochi spec under juno  https://review.openstack.org/9551312:32
*** ildikov has joined #openstack-ceilometer12:38
openstackgerritA change was merged to openstack/ceilometer-specs: Move TSDaaS/gnoochi spec under juno  https://review.openstack.org/9551312:39
*** ildikov_cee has quit IRC12:40
*** amalagon has joined #openstack-ceilometer12:41
*** ityaptin has joined #openstack-ceilometer12:41
*** ildikov_ has joined #openstack-ceilometer12:43
*** ildikov has quit IRC12:45
*** ildikov has joined #openstack-ceilometer12:47
*** ildikov is now known as ildikov_cee12:47
*** promulo has quit IRC12:47
*** ildikov_ has quit IRC12:47
*** denis_makogon has left #openstack-ceilometer12:51
*** aviau has joined #openstack-ceilometer12:59
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: [DO NOT MERGE YET] Migration to oslo.db  https://review.openstack.org/9344213:04
openstackgerritMehdi Abaakouk proposed a change to openstack/ceilometer: [DO NOT MERGE YET] Migration to oslo.db  https://review.openstack.org/9344213:06
*** matsuhashi has quit IRC13:06
*** matsuhashi has joined #openstack-ceilometer13:06
*** inc0 has quit IRC13:07
*** inc0 has joined #openstack-ceilometer13:07
*** shakamunyi has quit IRC13:07
eglynnsileht: I guess you could just -2 https://review.openstack.org/93442 yourself to ensure it's not merged13:10
*** matsuhas_ has joined #openstack-ceilometer13:10
eglynnsileht: (... i.e. instead of the note in the commit msg subject line)13:10
silehteglynn, sure13:10
*** matsuhashi has quit IRC13:10
* eglynn is getting infected with the dreaded process-nitpick-syndrome ... ;)13:11
*** cmart has joined #openstack-ceilometer13:20
cmarthello13:24
eglynncmart: hola13:27
cmarteglynn: hi!13:27
cmartI have a couple of questions regarding this bug: https://bugs.launchpad.net/ceilometer/+bug/122429813:28
cmartI don't know if you remember that we talked last week about this..13:28
eglynncmart: we decided that *non-complex* attrs be filterable, right?13:28
cmartright13:29
cmartI look and analyze the code and I'm stucked with the "meter" field..13:29
eglynncmart: stuck in what sense?13:30
cmartstuck in the way that I don't know which is the best way to implement the filtering by meter... I saw that the alarm model does not have a meter column. Instead, it has a rule column with information about the meter, threshold, etc..13:30
eglynnamalagon: o/ ... ok to delay 1:1 today by 5 mins?13:31
amalagonsure ~13:31
*** psharma has quit IRC13:31
*** ildikov_cee has quit IRC13:32
cmartin the mongo implementation, it shouldn't be a problem, but what about the sqlalchemy impl?13:32
eglynncmart: in the "olden days", it did actually have a top-level field equivalent to "meter name"13:33
eglynncmart: https://github.com/openstack/ceilometer/blob/master/ceilometer/storage/sqlalchemy/migrate_repo/versions/007_add_alarm_table.py#L3413:33
eglynncmart: but when we added the concept of combination alarms13:33
eglynncmart: we gnericized the alarm representation so that it wasn't so threshold oriented13:33
cmartexactly..13:33
eglynncmart: ... so the counter_name got pushed into the threshold rule13:34
*** shakamunyi has joined #openstack-ceilometer13:34
eglynncmart: ... so now that the rule looks like https://github.com/openstack/ceilometer/blob/master/ceilometer/storage/sqlalchemy/migrate_repo/versions/016_simpler_alarm.py#L4413:35
eglynncmart: ... i.e. persisted as text in the sql-a case13:35
eglynncmart: ... I guess we'd have to do a "like" query?13:35
*** raymondr has joined #openstack-ceilometer13:36
eglynncmart: ... i.e. the sqla like operator ... http://docs.sqlalchemy.org/en/rel_0_7/core/expression_api.html13:36
eglynncmart: ... performance ain't gonna be pretty though :(13:37
cmartthat was my same thought :)13:38
eglynncmart: ... gotta run, could chat more on this laters13:38
cmartOK13:38
cmartthanks for the help.. ttyl13:38
*** Alexei_9871 has joined #openstack-ceilometer13:44
*** shakamunyi has quit IRC13:47
_nadya_hi folks!13:51
_nadya_I have a question about block in https://etherpad.openstack.org/p/ceilometer-schema . Maybe you have discussed that on summit13:52
_nadya_eglynn, sileht, Alexei_987, DinaBelova, jd__ ^^13:53
eglynn_nadya_: thanks! (... in a meeting now but I'll have a look at your note in the etherpad once that ends)13:55
*** gordc has joined #openstack-ceilometer14:00
sileht_nadya_, I have added two reviews that recently changes the sqlalchemy schema14:03
*** shakamunyi has joined #openstack-ceilometer14:04
_nadya_sileht: ok, looking. but it's not only sql I guess14:05
sileht_nadya_, user/project have been removed everywhere and sqlalchemy have drop source/sourceassoc too14:05
_nadya_sileht: aha, but resource still may have several sources, right?14:06
sileht_nadya_, previously sqlalchemy allows to retreive/query only the first source, other sources was not usable14:07
*** gordc1 has joined #openstack-ceilometer14:08
*** gordc has quit IRC14:10
_nadya_sileht: and here https://review.openstack.org/#/c/94483/8/ceilometer/storage/sqlalchemy/models.py you store only one source now, as I see. So every time source is rewritten, right?14:10
_nadya_sileht: ah, it's for Samples. Resource table is dropped for sql14:11
_nadya_sileht: I mean your change14:11
sileht_nadya_, in sample table you have the source record for each sample, but when we build the resource only the latest one is used14:12
_nadya_sileht: I always thought that Resource may have several sources. And the behaviour you described above "only latest is used" looks wrong to me14:16
*** erecio has joined #openstack-ceilometer14:18
sileht_nadya_, mongo driver already do that14:19
_nadya_sileht: yep, I know, and in HBase I have to impl that. but it looks not correct and that's why I was asking about it in etherpad :)14:20
*** pnascimento_ has joined #openstack-ceilometer14:22
*** pnascimento has quit IRC14:22
sileht_nadya_, but a resource with different source don't really have a sense (for me at least)14:22
sileht_nadya_, I agree that the term 'source' is not well defined14:23
_nadya_sileht: it's really hard to imagine, I agree. And it's far from real life :) but we have so many tests with 'multiple sources'14:24
*** fc__ has quit IRC14:25
sileht_nadya_, so lets me add the unit tests cleanup to my todo once the sqlalchemy review have landed :p14:25
_nadya_sileht: and that's why I was thinking about dropping source completely. Besides Resource problem there is a Meter one. If two meters have all fields equal but source are different, they will be considered as equal14:26
*** fc__ has joined #openstack-ceilometer14:26
_nadya_sileht: it's because 'ceilometer meter list' doesn't return source14:27
*** fc__ has quit IRC14:29
*** fc__ has joined #openstack-ceilometer14:29
_nadya_sileht: so the conclusion: we build Resource using actually random source (the source from 'first' sample, it depends on storage now actually) and Meter doesn't need source too, we just ignore it14:31
*** fc__ has quit IRC14:32
sileht_nadya_, yes this is the current state (once the sqlalchemy are landed), it's not perfect yet, but this permits to remove from the sql driver the annoying relationship between all tables14:33
*** fc__ has joined #openstack-ceilometer14:33
*** aviau has quit IRC14:35
*** matsuhas_ has quit IRC14:37
*** fc__ has quit IRC14:39
*** admin0 has joined #openstack-ceilometer14:39
*** fc__ has joined #openstack-ceilometer14:39
cmartsileht, can I ask you a question? About sqlalchemy and the LIKE function14:45
openstackgerritCyril Roelandt proposed a change to openstack/ceilometer: Add an alarm service based on taskflow  https://review.openstack.org/9176314:46
silehtcmart, sure (also don't hesitate to always drop your question on the chan, I can answer later if I'm afk or someone else can anwser too)14:47
cmartsileht: will do. Thanks14:47
openstackgerritA change was merged to openstack/ceilometer: Update testrepository configuration  https://review.openstack.org/9519914:47
cmartthe question is the following (take into account that I'm new with SQL:). I'm trying to do smth like this:  SELECT * FROM ceilometer.alarm WHERE ceilometer.alarm.rule LIKE '%meter_name\": \"memory%', but with sqlalchemy14:48
pnascimento_good afternoon stackers :) if you are available I need your help with Unit Tests on Ceilometer, I had som share of UTs regarding Java Code, but in this context (Openstack/Ceilometer), this UTs are little hard to crack :/14:49
pnascimento_I'm looking into compute/test_manager.py and central/test_manager.py14:49
cmartsileht: and I tried with this line: query.filter(models.Alarm.rule.like('%meter_name\": \"memory%')).all()..  But I'm getting no results :S14:50
*** aviau has joined #openstack-ceilometer14:50
pnascimento_as well, looking into test/agentbase.py14:50
pnascimento_I will try to put this problem of mine into a question...14:50
cmartIs the pattern well written? what am I missing?14:51
silehtcmart, not sure you can use LIKE with the JSON column type14:51
cmart:(14:52
silehtcmart, if you want parse a alarm rule, I think the best option is to have a better schema to describe them14:53
pnascimento_on: tests/newAgent/test_manager.py I have class TestManager and TestRunTasks, so as I could infer, the first one its a class to test the agent as one; the second class it's to test every "task" or "method" that belong to this agent, anyone confirms?14:53
pnascimento_in class TestManager there is only a method (duplicated likewise on compute agent test) named "test_load_plugins", the function content it's very straightforward, the only question, why on compute do you "injection" of "@mock.patch('ceilometer.pipeline.setup_pipeline', mock.MagicMock())"14:56
pnascimento_*?14:56
*** aviau has quit IRC14:56
cmartmy idea (or the bug I'm trying to solve) is to allow filter by meter within Alarm's model..14:57
cmartfor this first step, only filter by meter name.. That's why I got in here... and eglynn suggested that I should use LIKE within rule's column14:58
eglynncmart: one sec14:58
cmartfrom my point of view, I see a couple of options (every one of them has downsides): 1) just query all the alarm's rows and then, if the meter is part of the filter, then check the query contents and search for coincidences15:00
cmart2) add new columns to alarm to identify which one of them is related to meters (but what about combinated alarms?)15:01
cmartI know that both are really bad, and that's why I'm asking you for help :\15:02
*** idegtiarov has quit IRC15:05
*** aviau has joined #openstack-ceilometer15:08
pnascimento_some questions and problems of mine, could be related to inexperience with Mock and Unit Tests on Python :(15:10
eglynncmart: changing the database schema like that is pobably not justified just to support filtering alarms by meter name15:12
eglynncmart: ... the use of the LIKE operator was just a suggestion15:12
eglynncmart: ... are you 100% sure that's not a runner?15:13
*** _nadya_ has quit IRC15:14
*** Infitialis has quit IRC15:15
*** shakamunyi has quit IRC15:16
*** kun_huang has joined #openstack-ceilometer15:17
openstackgerritA change was merged to openstack/ceilometer-specs: Updated gitreview file for repo rename  https://review.openstack.org/9529915:17
*** kun_huan_ has joined #openstack-ceilometer15:24
*** kun_huang has quit IRC15:25
*** IvanBerezovskiy has left #openstack-ceilometer15:27
cmarteglynn: the guys  from sqlalchemy told me this: "if you're using postgres's json type, and you should, you want func. json_extract_path_text(models.User.data, "parent_name").like("%Josh%") or something like that."15:35
cmartguess it's another way of doing this..15:36
cmartit's lunch time here.. I will try that and let you guys know tomorrow..15:37
cmartthanks!15:37
eglynncmart: I stand corrected! :)15:37
eglynncmart: thank you sir!15:38
*** pnascimento_ has quit IRC15:38
*** raymondr has quit IRC15:44
*** _nadya_ has joined #openstack-ceilometer15:44
*** kun_huan_ has quit IRC15:51
*** kun_huang has joined #openstack-ceilometer15:52
*** Ruetobas has quit IRC16:01
*** Ruetobas has joined #openstack-ceilometer16:03
*** igor_ has quit IRC16:05
*** igor_ has joined #openstack-ceilometer16:06
openstackgerritChristian Berendt proposed a change to openstack/python-ceilometerclient: WIP: replace dict.iteritems() with six.iteritems(dict)  https://review.openstack.org/9555716:07
*** Ruetobas has quit IRC16:08
*** igor_ has quit IRC16:10
*** Ruetobas has joined #openstack-ceilometer16:14
openstackgerritEugeniya Kudryashova proposed a change to openstack/python-ceilometerclient: Use HTTPClient from common Oslo code  https://review.openstack.org/6893916:14
*** Alexei_9871 has left #openstack-ceilometer16:17
*** promulo has joined #openstack-ceilometer16:19
*** raymondr has joined #openstack-ceilometer16:20
*** _cjones_ has joined #openstack-ceilometer16:20
*** raymondr has quit IRC16:24
*** igor_ has joined #openstack-ceilometer16:36
*** drjones has joined #openstack-ceilometer16:39
*** igor_ has quit IRC16:41
*** _cjones_ has quit IRC16:43
openstackgerritA change was merged to openstack/python-ceilometerclient: Fix exception handling of CLI  https://review.openstack.org/9455416:43
*** admin0 has quit IRC16:47
*** nacim has quit IRC16:49
*** eglynn has quit IRC17:02
*** ildikov has joined #openstack-ceilometer17:03
openstackgerritArtur Svechnikov proposed a change to openstack/python-ceilometerclient: Add methods to resource classes  https://review.openstack.org/9155417:07
openstackgerritCristian A Sanchez proposed a change to openstack/python-ceilometerclient: Make HTTP client aware of no_proxy variable  https://review.openstack.org/9556517:15
*** _nadya_ has quit IRC17:16
*** _nadya_ has joined #openstack-ceilometer17:16
*** drjones has quit IRC17:21
*** safchain_ has joined #openstack-ceilometer17:27
*** safchain has quit IRC17:28
*** _cjones_ has joined #openstack-ceilometer17:30
*** jergerber has joined #openstack-ceilometer17:32
*** jergerber has quit IRC17:35
*** igor_ has joined #openstack-ceilometer17:37
*** zqfan has joined #openstack-ceilometer17:39
*** igor_ has quit IRC17:42
*** zqfan has quit IRC18:01
*** _nadya_ has quit IRC18:03
*** raymondr has joined #openstack-ceilometer18:16
*** inc0 has quit IRC18:24
*** _nadya_ has joined #openstack-ceilometer18:31
*** igor_ has joined #openstack-ceilometer18:38
*** igor_ has quit IRC18:43
*** raymondr has quit IRC18:48
*** safchain_ has quit IRC18:58
*** ddieterly has joined #openstack-ceilometer19:04
*** underyx is now known as Underyx|off19:07
*** ddieterl_ has joined #openstack-ceilometer19:08
*** ddieterly has quit IRC19:10
*** raymondr has joined #openstack-ceilometer19:19
*** kun_huang has quit IRC19:22
*** raymondr has quit IRC19:24
*** _nadya_ has quit IRC19:37
*** igor_ has joined #openstack-ceilometer19:39
*** igor_ has quit IRC19:43
*** sayalilunkad has joined #openstack-ceilometer19:46
*** sayalilunkad has quit IRC19:49
*** ddieterl_ has quit IRC20:05
*** ddieterly has joined #openstack-ceilometer20:06
*** ddieterly has quit IRC20:07
openstackgerritChristian Berendt proposed a change to openstack/python-ceilometerclient: replace dict.iteritems() with six.iteritems(dict)  https://review.openstack.org/9555720:20
*** igor_ has joined #openstack-ceilometer20:40
*** igor_ has quit IRC20:44
*** erecio has quit IRC20:46
*** cmart has quit IRC20:53
*** Underyx|off is now known as underyx20:57
*** raymondr has joined #openstack-ceilometer21:14
*** raymondr has quit IRC21:27
*** promulo has quit IRC21:33
*** melodous has joined #openstack-ceilometer21:37
melodoushi guys21:37
melodoussomeone here to give me a hand please?21:37
melodousim trying to understand how to work with events on ceilometer21:38
melodousbut my little brain is not enougth...21:38
melodousi dont know how to view the events i got during time21:39
melodousif i run ceilometer event-list i dont get anything21:39
*** igor_ has joined #openstack-ceilometer21:40
*** igor_ has quit IRC21:45
*** gordc1 has quit IRC21:50
*** igor_ has joined #openstack-ceilometer21:50
*** igor_ has quit IRC21:54
*** melodous_away has joined #openstack-ceilometer22:03
*** melodous has quit IRC22:04
-openstackstatus- NOTICE: stopping gerrit briefly to rebuild its search index in an attempt to fix post-rename oddities (will update with notices every 10 minutes until completed)22:28
*** ChanServ changes topic to "stopping gerrit briefly to rebuild its search index in an attempt to fix post-rename oddities (will update with notices every 10 minutes until completed)"22:28
*** ChanServ changes topic to "OpenStack Telemetry (Ceilometer) | https://wiki.openstack.org/wiki/Ceilometer"22:35
*** igor_ has joined #openstack-ceilometer22:51
*** igor_ has quit IRC22:55
*** packet has joined #openstack-ceilometer23:35
*** promulo has joined #openstack-ceilometer23:43
openstackgerritOpenStack Proposal Bot proposed a change to openstack/ceilometer: Updated from global requirements  https://review.openstack.org/9560923:48
*** igor_ has joined #openstack-ceilometer23:51
*** igor_ has quit IRC23:57

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