Tuesday, 2015-03-31

*** ddieterly has joined #openstack-ceilometer00:08
*** ankita_w_ has joined #openstack-ceilometer00:11
*** ankita___ has joined #openstack-ceilometer00:13
*** ankita_wagh has quit IRC00:14
*** ankita_w_ has quit IRC00:17
*** promulo__ has joined #openstack-ceilometer00:18
*** jruano has joined #openstack-ceilometer00:19
*** promulo has quit IRC00:22
*** sbfox has joined #openstack-ceilometer00:30
*** zhenq has joined #openstack-ceilometer00:38
*** zhenq has quit IRC00:42
*** Longgeek has joined #openstack-ceilometer00:54
*** jruano has quit IRC00:56
*** zhenq has joined #openstack-ceilometer01:02
*** amalagon has joined #openstack-ceilometer01:04
*** jruano has joined #openstack-ceilometer01:08
*** zhenq has quit IRC01:10
*** haigang has joined #openstack-ceilometer01:13
*** ankita___ has quit IRC01:15
*** ankita_wagh has joined #openstack-ceilometer01:16
*** zhenq has joined #openstack-ceilometer01:16
*** Longgeek has quit IRC01:17
*** Longgeek has joined #openstack-ceilometer01:17
*** sbfox has quit IRC01:17
*** ankita_wagh has quit IRC01:20
*** mitz has quit IRC01:26
*** jruano has quit IRC01:32
*** mitz has joined #openstack-ceilometer01:36
*** edmondsw has quit IRC01:55
*** Longgeek has quit IRC02:09
*** Longgeek_ has joined #openstack-ceilometer02:09
*** Longgeek_ has quit IRC02:20
*** Longgeek_ has joined #openstack-ceilometer02:23
*** _cjones_ has joined #openstack-ceilometer02:30
*** _cjones_ has quit IRC02:33
*** _cjones_ has joined #openstack-ceilometer02:33
*** jruano has joined #openstack-ceilometer02:35
*** jruano has quit IRC02:39
*** sbfox has joined #openstack-ceilometer02:42
*** rbak has joined #openstack-ceilometer02:53
*** haigang has quit IRC02:57
*** amalagon has quit IRC03:00
*** rbak has quit IRC03:02
*** ddieterly has quit IRC03:07
*** harlowja_ is now known as harlowja_away03:07
*** zhenq has quit IRC03:12
*** alextricity has quit IRC03:16
*** haigang has joined #openstack-ceilometer03:22
*** haigang has quit IRC03:27
*** amalagon has joined #openstack-ceilometer03:31
*** deepthi has joined #openstack-ceilometer03:32
*** rbak has joined #openstack-ceilometer03:38
*** rbak has quit IRC03:46
*** haigang has joined #openstack-ceilometer03:55
*** sbfox has quit IRC03:59
*** ddieterly has joined #openstack-ceilometer04:08
*** ddieterly has quit IRC04:12
*** _cjones_ has quit IRC04:15
*** _cjones_ has joined #openstack-ceilometer04:15
*** yatin has joined #openstack-ceilometer04:16
*** drjones has joined #openstack-ceilometer04:16
*** _cjones_ has quit IRC04:20
*** drjones has quit IRC04:21
*** Longgeek_ has quit IRC04:35
*** _cjones_ has joined #openstack-ceilometer04:41
*** Longgeek has joined #openstack-ceilometer04:42
*** _cjones_ has quit IRC04:44
*** ildikov has quit IRC04:55
*** ddieterly has joined #openstack-ceilometer05:09
*** ddieterly has quit IRC05:13
*** mahipal has joined #openstack-ceilometer05:23
*** exploreshaifali has joined #openstack-ceilometer05:40
*** ildikov has joined #openstack-ceilometer05:47
*** exploreshaifali has quit IRC05:53
*** yatin has quit IRC05:58
gzhai1ildikov:hi06:00
openstackgerritOpenStack Proposal Bot proposed openstack/ceilometer: Imported Translations from Transifex  https://review.openstack.org/16570306:06
*** AJaeger has joined #openstack-ceilometer06:09
AJaegerGood morning ceilometer, could you merge the translations, please? https://review.openstack.org/#/c/165703/06:09
*** ddieterly has joined #openstack-ceilometer06:10
*** ddieterly has quit IRC06:14
*** yatin has joined #openstack-ceilometer06:15
*** sbfox has joined #openstack-ceilometer06:17
*** haigang has quit IRC06:27
*** yatin has quit IRC06:27
*** haigang has joined #openstack-ceilometer06:27
*** haigang has quit IRC06:32
AJaegerthanks, Mehdi! (Sorry, don't know IRC nic)06:33
silehtAJaeger, it's sileht06:33
silehtAJaeger, welcome06:33
AJaegersileht, thanks!06:33
*** yatin has joined #openstack-ceilometer06:41
*** yprokule has joined #openstack-ceilometer06:44
*** AJaeger has left #openstack-ceilometer06:49
openstackgerritZhiQiang Fan proposed openstack/python-ceilometerclient: WIP: Add timeout for keystoneclient session  https://review.openstack.org/16919407:03
*** liusheng has joined #openstack-ceilometer07:04
*** Kennan2 has joined #openstack-ceilometer07:08
gzhai1ildikov:hi07:08
*** Kennan has quit IRC07:09
*** ddieterly has joined #openstack-ceilometer07:10
ildikovgzhai1: hi07:11
ildikovgzhai1: sorry, I was afk, I just always forget to change my nick07:11
ildikovgzhai1: what's up?07:11
*** haigang has joined #openstack-ceilometer07:12
*** yatin has quit IRC07:13
*** ddieterly has quit IRC07:15
*** ala_ has joined #openstack-ceilometer07:19
*** yatin has joined #openstack-ceilometer07:30
sileht:bn07:31
*** mahipal has quit IRC07:33
*** liusheng has quit IRC07:33
*** liusheng has joined #openstack-ceilometer07:34
gzhai1ildikov::could you pls. review my doc changes?07:44
gzhai1ildikov:https://review.openstack.org/#/c/165374/07:44
*** yatin has quit IRC07:44
ildikovgzhai1: sure, I will check soon, thanks07:45
*** safchain has joined #openstack-ceilometer07:49
gzhai1ildikov:Thanks!07:53
*** eglynn has joined #openstack-ceilometer07:56
*** Ephur has quit IRC08:01
*** yatin has joined #openstack-ceilometer08:01
*** liusheng has quit IRC08:03
*** liusheng has joined #openstack-ceilometer08:04
openstackgerritMerged openstack/gnocchi: rest: add more operators in complex queries  https://review.openstack.org/16692008:05
openstackgerritMerged openstack/gnocchi: storage: pass query rather than predicate in value_search  https://review.openstack.org/16692108:10
*** ddieterly has joined #openstack-ceilometer08:11
*** ddieterly has quit IRC08:15
*** sbfox has quit IRC08:17
jd__gosh I thought I could avoid that crap requirement check08:22
jd__someone added if on Gnocchi too08:22
jd__s/if/it/08:22
jd__now I'm stuck to list dependencies versions that are false :(08:22
*** KrustyB has joined #openstack-ceilometer08:22
jd__removal requested, let's cross fingers08:25
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: allow to search for metric value  https://review.openstack.org/16716408:26
openstackgerritJulien Danjou proposed openstack/gnocchi: indexer: return objects rather than dict  https://review.openstack.org/16796508:26
openstackgerritJulien Danjou proposed openstack/gnocchi: Bump to oslo.serialization 1.4.0  https://review.openstack.org/16692208:26
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: encode all timestamps with timezone  https://review.openstack.org/16692308:26
openstackgerritMerged openstack/gnocchi: Use modern versions of the oslo packages  https://review.openstack.org/16899808:34
*** haigang has quit IRC08:38
*** amalagon has quit IRC08:41
*** amalagon has joined #openstack-ceilometer08:42
*** amalagon has quit IRC08:46
-openstackstatus- NOTICE: CI Check/Gate pipelines currently stuck due to a bad dependency creeping in the system. No need to recheck your patches at the moment.08:52
*** ChanServ changes topic to "CI Check/Gate pipelines currently stuck due to a bad dependency creeping in the system. No need to recheck your patches at the moment."08:52
*** flcn___ has joined #openstack-ceilometer08:56
*** flcn___ has quit IRC08:59
*** flcn___ has joined #openstack-ceilometer08:59
*** ildikov has quit IRC09:06
*** afazekas has joined #openstack-ceilometer09:11
*** ddieterly has joined #openstack-ceilometer09:12
*** Longgeek has quit IRC09:16
*** ddieterly has quit IRC09:16
*** ildikov has joined #openstack-ceilometer09:19
*** flcn___ has quit IRC09:45
*** cdent has joined #openstack-ceilometer09:52
*** ildikov has quit IRC09:54
*** liusheng has quit IRC10:00
*** liusheng has joined #openstack-ceilometer10:01
*** ildikov has joined #openstack-ceilometer10:09
*** ddieterly has joined #openstack-ceilometer10:13
*** Longgeek has joined #openstack-ceilometer10:17
*** ddieterly has quit IRC10:17
*** KrustyB has quit IRC10:28
*** Longgeek has quit IRC10:30
*** deepthi has quit IRC10:30
*** claudiub has joined #openstack-ceilometer10:52
*** IBerezovskiy has joined #openstack-ceilometer10:53
*** nsaje_ has quit IRC10:57
*** yatin has quit IRC11:02
*** ildikov has quit IRC11:06
*** Kennan has joined #openstack-ceilometer11:10
*** Kennan2 has quit IRC11:11
*** ddieterly has joined #openstack-ceilometer11:13
*** Kennan2 has joined #openstack-ceilometer11:14
*** Kennan has quit IRC11:14
*** Longgeek has joined #openstack-ceilometer11:17
*** ddieterly has quit IRC11:18
*** _nadya_ has joined #openstack-ceilometer11:19
*** ildikov has joined #openstack-ceilometer11:22
*** changbl has quit IRC11:30
*** yatin has joined #openstack-ceilometer11:32
*** amalagon has joined #openstack-ceilometer11:41
-openstackstatus- NOTICE: Check/Gate unstuck, feel free to recheck your abusively-failed changes.11:48
*** ChanServ changes topic to "OpenStack Telemetry (Ceilometer) | https://wiki.openstack.org/wiki/Ceilometer"11:48
*** ildikov has quit IRC12:03
*** nsaje_ has joined #openstack-ceilometer12:11
*** _nadya_ has quit IRC12:12
*** ddieterly has joined #openstack-ceilometer12:14
*** ildikov has joined #openstack-ceilometer12:18
*** ddieterly has quit IRC12:19
*** jruano has joined #openstack-ceilometer12:23
*** zhenq has joined #openstack-ceilometer12:24
*** claudiub has quit IRC12:27
*** claudiub has joined #openstack-ceilometer12:27
*** zhenq has quit IRC12:36
*** yatin has quit IRC12:38
*** jruano has quit IRC12:38
*** jruano has joined #openstack-ceilometer12:45
*** tongli has joined #openstack-ceilometer12:49
*** gordc has joined #openstack-ceilometer12:50
gordcjd__: now that gnocchi is under openstack, we have plans to merge teams?12:54
*** eglynn has quit IRC12:54
jd__gordc: no12:58
*** ildikov_ has joined #openstack-ceilometer12:58
jd__gordc: we just keep ceilometer-core and gnocchi-core and manage them as people contribute to one or another12:58
*** ddieterly has joined #openstack-ceilometer12:58
openstackgerritMehdi Abaakouk proposed openstack/gnocchi: WIP: Keep history of updated resource attributes  https://review.openstack.org/16840513:00
*** ildikov has quit IRC13:00
*** maishsk has joined #openstack-ceilometer13:00
*** maishsk has quit IRC13:04
cdentjd__: on https://review.openstack.org/#/c/169001/ you want a test that confirms the empty list case? or something else?13:05
jd__cdent: yes just that13:05
cdentroger, will do13:06
jd__sileht: why don't you use autoincrement?13:06
jasonamyershello all, would any of you be up to talking with the Ops group at the Summit in Vancouver?  They've got a proposal on their etherpad https://etherpad.openstack.org/p/YVR-ops-meetup13:08
openstackgerritRomain Soufflet proposed openstack/gnocchi: rest: Add list of resources types URL on /v1/resource  https://review.openstack.org/16929413:08
jasonamyersit is the most +1ed thing on their agenda13:08
gordcjd__: cool cool.13:10
jd__jasonamyers: I'm volunteer to represent Gnocchi at least13:11
jasonamyersawesome jd__13:11
gordcjd__: was just going to volunteer you.lol13:11
jd__jasonamyers: just keep me in the loop so I don't miss it13:12
jd__gordc: what about you represent Ceilometer? :)13:12
*** rbak has joined #openstack-ceilometer13:12
jasonamyerswill do jd__ there is a thread going around now on the Ops list13:12
gordcjd__: well played... well played.13:12
jasonamyersI'll keep an eye on it13:12
jasonamyersand share updates13:12
jd__jasonamyers: ok, I'm not subscribed to it so don't hesitate to Cc me :)13:12
jd__thanks jasonamyers :)13:13
gordcjasonamyers: i think a few of can join so it should be good.13:13
jasonamyersexcellent13:13
cdent"what needs fixing"13:13
cdentpeople's grammar! ;)13:14
* cdent is the last person to complain about such things13:14
jasonamyersetherpads are often stream of consciousness13:14
cdentindeed13:14
gordcwhat be grammar?13:14
jasonamyersTim Bell from Cern said: I think it is important to understand what Gnocchi does and what it will not do in case people feel it will solve all of the problems.13:15
cdentvery good point13:15
cdentgordc grammar be other people stuff13:15
cdentnot you stuff13:15
*** ddieterly has quit IRC13:16
*** logan2 has quit IRC13:16
*** ddieterly has joined #openstack-ceilometer13:17
gordcword13:18
*** logan2 has joined #openstack-ceilometer13:19
*** ddieterly has quit IRC13:21
openstackgerritRomain Soufflet proposed openstack/gnocchi: rest: Add list of resources types URL on /v1/resource  https://review.openstack.org/16929413:23
*** wayneeseguin has quit IRC13:24
*** eglynn has joined #openstack-ceilometer13:24
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: allow to search for metric value  https://review.openstack.org/16716413:26
openstackgerritJulien Danjou proposed openstack/gnocchi: indexer: return objects rather than dict  https://review.openstack.org/16796513:26
openstackgerritJulien Danjou proposed openstack/gnocchi: Bump to oslo.serialization 1.4.0  https://review.openstack.org/16692213:26
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: encode all timestamps with timezone  https://review.openstack.org/16692313:26
openstackgerritJulien Danjou proposed openstack/gnocchi: indexer: return resource objects rather than dict  https://review.openstack.org/16930213:26
silehtjd__, autoincrement doesn't forbid the insertion of a new raw without outdated attributes13:26
jd__sileht: "without outdated attributes", WDYM?13:27
silehtjd__, imagine to concurency calls, one change the user, the other the project13:27
*** jruano has quit IRC13:27
silehtjd__, with autoincrement, the row created by the latest that commit the transaction will not have the correct value from the first one that have commit the transaction13:28
*** yprokule1 has joined #openstack-ceilometer13:28
*** Ephur has joined #openstack-ceilometer13:29
jd__sileht: shit you blew my mind indeed13:30
silehtjd__, because when the lastest version of resource is retrieved, both transaction get the same row, each transassion  updated their fields, both successfuly insert the new row, but have one of the field not updated13:31
silehtjd__, that make sense ?13:31
*** yprokule has quit IRC13:31
*** rbak has quit IRC13:32
jd__sileht: so that's a problem when using PATCH right?13:32
silehtjd__, yes13:33
jd__and update_resource()… it wouldn't happen with PUT (that we don't have)13:33
jd__yeah it makes sense13:33
jd__sileht: and what about doing INSERT INTO (SELECT) ?13:35
jd__sileht: something along http://docs.sqlalchemy.org/en/latest/changelog/migration_09.html#insert-from-select13:35
jd__so you just insert default value with a select from MAX(revision)13:35
silehtjd__, that could work but you have to list all the columns you want,13:38
jd__sileht: well that's all the columns except the one updated13:38
silehtjd__, sqlalchemy doesn't allow '*!col1'13:38
jd__sileht: well we can iterate the class to know the column13:39
silehtjd__, and the column list is pluggable13:39
jd__sileht: that sill sounds like a better way of doing it no?13:39
jd__just run one query in SQL13:39
silehtjd__, sure13:40
jd__I'm pretty sure we can introspect a class to have the list of column13:40
silehtjd__, this is the tricky part, I will try that13:40
jd__sileht: ok let me know if you need help13:40
jd__I've been digging more and more deeply in sqlalchemy recently so…13:41
jd__like I've now understand lazy/eager loading, imagine that13:41
jd__I'm becoming smartsql13:41
silehtjd__, also I have start another patch to keep history of what metrics was attached to a resource, does It make sense to track that ?13:41
jd__sileht: I don't think so13:42
silehtjd__, in my current patch, when you retreive a old version of a resource, "metrics" is a empty dict13:43
jd__sileht: it should be the current list of metrics I think13:43
jd__metrics isn't a real attribute13:43
silehtjd__, ok13:43
jd__I really don't think it's necessary to version metrics, it'll add a lot of cost for no gain13:44
jd__and probably confusion13:44
jd__if you version metrics, then you retrive the object history 2 years ago… with metrics that have data from maybe 2 days ago because they didn't change13:44
jd__you can't always go back in time :D13:44
silehtjd__, yeah I have written down the schema for that and it looks ugly,13:45
*** ddieterly has joined #openstack-ceilometer13:45
jd__yeah so please let it go :D13:45
*** logan2 has quit IRC13:53
*** ddieterly has quit IRC13:54
*** logan2 has joined #openstack-ceilometer13:56
*** ildikov_ has quit IRC13:57
*** rbak has joined #openstack-ceilometer14:05
*** yprokule has joined #openstack-ceilometer14:05
*** yprokule1 has quit IRC14:08
*** _nadya_ has joined #openstack-ceilometer14:11
*** ildikov_ has joined #openstack-ceilometer14:13
*** jruano has joined #openstack-ceilometer14:25
openstackgerritChris Dent proposed openstack/gnocchi: Only query metrics by uuid if we have uuids  https://review.openstack.org/16900114:25
*** Ephur has quit IRC14:57
openstackgerritMerged openstack/gnocchi: Bump to oslo.serialization 1.4.0  https://review.openstack.org/16692215:01
*** claudiub has quit IRC15:01
*** cdent has quit IRC15:02
*** Ephur has joined #openstack-ceilometer15:05
silehtjd__, sqlalchemy+postgres can make the history for us: http://docs.sqlalchemy.org/en/latest/orm/versioning.html#server-side-version-counters15:06
silehtjd__, but mysql doesn't support thaht ...15:07
openstackgerritMerged openstack/ceilometer: Imported Translations from Transifex  https://review.openstack.org/16570315:07
jd__sileht: I never thought about MySQL…15:08
jd__sileht: is there a way to mimic that in MySQL, even if it's not efficient?15:11
jd__sileht: I'd say let's NotImplementedError in MySQL but I don't think it's going to be popular15:11
silehtlol15:11
openstackgerritMerged openstack/gnocchi: rest: encode all timestamps with timezone  https://review.openstack.org/16692315:12
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: enhance metric retrieval in controllers  https://review.openstack.org/16937515:15
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: do not use expect_error in tests  https://review.openstack.org/16937615:15
*** claudiub has joined #openstack-ceilometer15:16
*** zigo__ is now known as zigo15:23
*** exploreshaifali has joined #openstack-ceilometer15:25
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: pass the whole metric to aggregation  https://review.openstack.org/16938015:27
*** ildikov_ has quit IRC15:49
*** amalagon has quit IRC15:52
*** ala_ has quit IRC15:53
*** claudiub has quit IRC16:01
*** _cjones_ has joined #openstack-ceilometer16:05
*** jruano has quit IRC16:12
*** claudiub has joined #openstack-ceilometer16:19
*** ildikov_ has joined #openstack-ceilometer16:22
openstackgerritMatthew Edmonds proposed openstack/python-ceilometerclient: ceilometerclient fails with keystone v3 auth  https://review.openstack.org/16940916:24
openstackgerritMerged openstack/gnocchi: Only query metrics by uuid if we have uuids  https://review.openstack.org/16900116:36
*** sbfox has joined #openstack-ceilometer16:43
*** harlowja_away is now known as harlowja_16:45
silehtjd__, I have played with insert from select, the main issue is that mysql lock the entire table on each update16:46
silehtjd__, and can raise 'ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction'16:47
silehtjd__, otherwise that works16:47
*** ankita_wagh has joined #openstack-ceilometer16:54
*** sbfox has quit IRC16:58
*** sbfox has joined #openstack-ceilometer16:59
openstackgerritMerged openstack/ceilometer: Avoid a error when py27 and py-mysql tests run in sequence  https://review.openstack.org/16900517:03
*** amalagon has joined #openstack-ceilometer17:03
jd__sileht: ok let's do that and just advice PG :D17:03
*** claudiub has quit IRC17:05
*** amalagon has quit IRC17:08
*** yprokule has quit IRC17:12
*** dikonoor has joined #openstack-ceilometer17:13
dikonoorgordc , this is about https://review.openstack.org/#/c/167370/17:14
dikonoori have added a comment on what it intends to do17:17
*** wayneeseguin has joined #openstack-ceilometer17:19
dikonoorhttp://lists.openstack.org/pipermail/openstack-dev/2015-March/060209.html17:20
*** msly has quit IRC17:20
gordcdikonoor: cool cool. just taking a look now.17:21
dikonoorok.. do you know from where the tempest UT picks up the config files?17:22
gordcdikonoor: but basically if your policy file doesn't have 'default' in it, it will break.17:22
dikonooryeah17:22
gordcis this something the is explicitly stated in oslo.policy? it seems like this should really be handled there.17:23
dikonoorthe oslo.policy handles default..so all we are trying to do with the fix is let oslo.policy do the validation17:24
gordcdikonoor: the policy file is part of devstack install process, https://github.com/openstack-dev/devstack/blob/master/lib/ceilometer#L176-L17817:24
gordcit's just a copy of the one that exists here: https://github.com/openstack/ceilometer/blob/master/etc/ceilometer/policy.json17:24
dikonoori don't think it's a copy17:25
dikonoorThe policy.json that's used by tempest looks pretty empty compared to the one at https://github.com/openstack/ceilometer/blob/master/etc/ceilometer/policy.json17:26
dikonoorhttp://logs.openstack.org/70/167370/5/check/check-grenade-dsvm/7767ba3/logs/etc/ceilometer/policy.json.txt.gz17:27
dikonoorlooks like this :17:27
dikonoor{17:27
dikonoor    "context_is_admin":  [["role:admin"]]17:27
dikonoor}17:27
gordcdikonoor: right. so grenade actually installs the previous cycle's build first and then installs current cycle build... but doesn't change any config files17:28
gordcit's to test backward compat17:28
gordcso in juno it's: https://github.com/openstack/ceilometer/blob/stable/juno/etc/ceilometer/policy.json17:28
*** ankita_w_ has joined #openstack-ceilometer17:28
dikonoorthen i guess i should change the rbac.py a little further..17:30
*** ankita___ has joined #openstack-ceilometer17:30
dikonoorWith my current changes, it throws 403 , if there is no rule key and default defined17:31
dikonoorIf a rule key is not defined and a default is also not defined , then I think it should just let the rest call go through without a rbac validation17:32
*** ankita_wagh has quit IRC17:32
*** ankita_w_ has quit IRC17:33
dikonoorThe current rbac code https://github.com/openstack/ceilometer/blob/master/ceilometer/api/rbac.py#L49-L56 could be replaced by17:35
dikonoor  _ENFORCER.enforce(17:35
dikonoor                    rule_name,17:35
dikonoor                    {},17:35
dikonoor                    policy_dict)17:35
gordcdikonoor: hmm.. i mean it sort of does make sense to block (return 403) if there's no default17:35
dikonooralso depends on the behavior implemented in the other services.17:36
dikonoorI mean to be consistent17:36
*** safchain has quit IRC17:36
dikonoorI agree with you that ideally all calls defined should be blocked.That makes more sense17:37
dikonoorsorry..meant not defined17:37
dikonoorall calls that are NOT defined should be blocked , which is what my current changes do17:38
dikonoorif the tempest config files cannot be changed , then the tempest UT cases need to be fixed17:39
dikonoorCurrently they expect a 200 but without any entries in the policy.json, all of them will return 40317:39
gordcdikonoor: how did policy work in juno? was default just assumed?17:40
gordcif we do need a patch, you'd probably want something like this: https://github.com/openstack-dev/grenade/blob/master/from-icehouse/upgrade-ceilometer17:41
gordcwhich can allow you to refresh the file.17:42
dikonoorI am not sure if there was rbac implemented for ceilometer in juno..17:43
*** ankita_wagh has joined #openstack-ceilometer17:44
dikonoorWhen we tried few months back with juno, it wasn't implemented17:44
dikonoorit was probably implemented as part of https://review.openstack.org/#/c/11571717:45
dikonoorand this implementation disregards default values and skips RBAC for rules not defined in the policy.json17:46
dikonoorgordc, I did not quite follow what this does >>https://github.com/openstack-dev/grenade/blob/master/from-icehouse/upgrade-ceilometer17:46
dikonoorI mean from the context of what we are discussing17:46
*** ankita___ has quit IRC17:47
gordcdikonoor: basically what grenade is doing right now is install juno, test juno, install kilo, test kilo with juno config files17:47
gordcthe upgrade part is when you need to force a change ... ie. if you add a new option or config file between cycles.17:48
gordcso in example, it's copying in a new config file before testing the kilo against juno config files (or in examples cases, testing juno against icehouse config files)17:49
dikonoorok.. so you mean to say that we would need to update the policy.json and push it in so that tempest/grenade picks this new one instead of the juno one17:50
dikonoorok..so i guess there should be something like https://github.com/openstack-dev/grenade/blob/master/from-juno/upgrade-ceilometer that upgrades the policy.json17:53
*** ankita_w_ has joined #openstack-ceilometer17:55
gordcright... or we modify the policy in juno branch.17:55
dikonoorok..let me try the grenade change..  I had set the default as "" in the policy json file so that all UTs pass like before17:57
*** ankita_wagh has quit IRC17:58
gordci just find it strange that default is missing juno but it's fine... i understand we implemented rbac but i guess oslo.policy requires default value now?17:58
openstackgerritMatthew Edmonds proposed openstack/python-ceilometerclient: ceilometerclient insecure argument no longer works  https://review.openstack.org/16944218:00
openstackgerritJulien Danjou proposed openstack/gnocchi: indexer: return resource objects rather than dict  https://review.openstack.org/16930218:01
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: enhance metric retrieval in controllers  https://review.openstack.org/16937518:01
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: do not use expect_error in tests  https://review.openstack.org/16937618:01
openstackgerritJulien Danjou proposed openstack/gnocchi: rest: pass the whole metric to aggregation  https://review.openstack.org/16938018:01
dikonoorI am not sure if oslo.policy was implemented differently before. But in general , any rbac logic should first check if the rule is present , if no fall back on the default rule and that's how it works for all other services18:01
dikonoorthe policy.json doesn't neccessarily need to have a default value with oslo.policy but if a specific rule is not defined , it uses the default18:02
gordci guess before it would make up it's own default if not present.18:03
dikonoorno , earlier the default was to allow all calls (and ignore the default value in policy.json)18:04
dikonoorwith the proposed changes , we are trying to get the default value from the policy.json to be used18:05
*** jruano has joined #openstack-ceilometer18:07
dikonoorso i will leave the proposed rbac.py changes the way it is18:09
dikonoorand try to push in policy.json related changes to grenade (the other option is to modify the grenade test cases)18:10
dikonoorThanks gordc18:11
gordcyeah, i meant in juno, pre-rbac change... regardless, thanks for lookin at it.18:16
*** Longgeek has quit IRC18:16
*** Longgeek has joined #openstack-ceilometer18:17
*** edmondsw has joined #openstack-ceilometer18:17
*** msly has joined #openstack-ceilometer18:17
edmondswgordc: proposed a couple simple patches fixing keystone v3 and insecure support in ceilometerclient, if you can take a look18:18
edmondswor anyone else...18:18
edmondswhttps://review.openstack.org/#/c/169409/18:19
edmondswhttps://review.openstack.org/#/c/169442/18:19
edmondswgordc: is there a plan/schedule for a new ceilometerclient release that could include these?18:20
*** _nadya_ has quit IRC18:21
gordcedmondsw: i don't have ability to cut releases but i can let eglynn know.18:22
edmondswgordc, sure... wasn't asking for you to cut it, just whether there was already something in plan or I needed to go ask for one18:22
eglynnedmondsw: we usually bring it up at the weekly ceilometer meeting (Thurs @1500UTC) if needed18:23
* gordc deletes what i was typing18:23
eglynngordc: sorry :)18:23
gordc:)18:24
*** packet has joined #openstack-ceilometer18:24
edmondswgordc, I'm not certain these are the last two issues we'll find... looked like some other places were missing things they should have, but didn't notice them causing a problem18:24
edmondswgordc, eglynn, on a separate topic... y'all see http://lists.openstack.org/pipermail/openstack-dev/2015-March/060209.html ?18:24
eglynnedmondsw: I'll respond on the ML18:27
edmondsweglynn, thanks18:27
*** dikonoor has quit IRC18:28
gordcedmondsw: we were discussing it ^^18:28
gordchmm..never just noticed we stopped right before you came joined.18:29
edmondswgordc, that's what I get for forgetting to login to irc this morning...18:29
gordcedmondsw: http://eavesdrop.openstack.org/irclogs/%23openstack-ceilometer/%23openstack-ceilometer.2015-03-31.log18:30
openstackgerritOpenStack Proposal Bot proposed openstack/ceilometermiddleware: Updated from global requirements  https://review.openstack.org/16157118:30
*** zhenq has joined #openstack-ceilometer18:35
eglynngordc, edmondsw: so as I understood it, the aspect of fabiog's original RBAC that allowed API calls by default was deliberate18:37
eglynnthis was specifically to provide for backward compatability, i.e. an empty policy.json to work as before18:38
edmondsweglynn, sort of... I think there was a flaw in his logic, as I outlined in the email18:38
* eglynn re-reads18:39
edmondswthe code fabiog wrote expects a "segregation" rule in the policy.json, which won't be there with an upgrade from juno18:39
eglynnone sec18:40
*** afazekas has quit IRC18:43
edmondswfinished reading back on the chat with dikonoor earlier18:43
edmondswthe qa guys told me we'd need to add something in the release notes if we're going to put something in upgrade-ceilometer for this18:44
edmondswI think we probably have to, though18:44
eglynnedmondsw: OK, in order to fully be backward compat to old configs, we'd have to explicitly deal with the absence of a 'segregation' rule and fallback to 'context_id_admin' as before18:50
eglynnedmondsw: so say we take https://github.com/openstack/ceilometer/blob/master/ceilometer/api/rbac.py#L80-8218:50
eglynnedmondsw: and check first for ... segregation_rule = 'segregation' if 'segregation' in _ENFORCER.rules.keys() else 'context_is_admin'18:52
edmondsweglynn, yep, I think we could do that18:52
edmondsweglynn, and something similar with the default rule dikonoor is trying to add18:53
*** jruano has quit IRC18:54
eglynnedmondsw: yeah, we'd still have broken expectations around the the default rule handling18:55
eglynnedmondsw: ... so in that case, we'd need the absence of both an explicit *and* a default rule to still boil down to allow18:55
edmondsweglynn, could change dikonoor's proposal in https://review.openstack.org/#/c/167370/ to act the original way if default rule doesn't exist, or the way she's written if it does18:56
edmondsweglynn, gordc, I still think it would be better to require that a default rule is set, though...18:57
edmondsweglynn, gord, I'm not sure we should be trying to maintain backward compat with the lack of rbac support we had in juno18:58
eglynnedmondsw: "better to require that a default rule is set" ==> but that automatically breaks the upgrade-with-no-config-change requirement, amiright?18:58
edmondsweglynn, yes18:58
edmondsweglynn, but is that really a requirement? Exceptions can be made, that's what the upgrade-ceilometer file is for, and this seems like a case where it may be warranted18:59
edmondsweglynn, if not now, eventually we'll want to start acting like all the other projects here, right?19:00
eglynnedmondsw: the idea was to allow distros selectively backport that RBAC feature or not ... and for it not to break things if an old policy.json was used19:00
*** _cjones_ has quit IRC19:00
*** jruano has joined #openstack-ceilometer19:03
eglynnedmondsw: do you want me to summarize the discussion above on the ML?19:12
edmondsweglynn, yes please... I think we can make it work in a way that is backward compatible if that's what we want, and maybe it is for now, but eventually we might want to cut that tie and require a normal policy.json19:13
eglynnedmondsw: yep, in liberty we could do so19:14
*** vishwanathj has quit IRC19:14
edmondsweglynn, I think that's fine... I'm testing a change to dikonoor's work that I think should work for now19:14
eglynncoolness19:14
edmondswtx19:15
*** sbfox has quit IRC19:19
*** cdent has joined #openstack-ceilometer19:22
*** sbfox has joined #openstack-ceilometer19:26
eglynnedmondsw: done19:27
edmondsweglynn, tx19:27
eglynnedmondsw: I'm can target https://bugs.launchpad.net/ceilometer/+bug/1435855 at kilo-rc1 if those proposed changes to the patch will fly?19:28
openstackLaunchpad bug 1435855 in Ceilometer "Default rule does not work in ceilometer policy.json" [High,In progress] - Assigned to Divya K Konoor (dikonoor)19:28
edmondsweglynn, my tests worked... I'm writing up an email to Divya on how she can modify her patch19:28
eglynnedmondsw: coolness, thank you for your help on this!19:28
edmondsweglynn, np... tx for your time as well19:29
*** alexpilotti has joined #openstack-ceilometer19:41
*** jruano has quit IRC19:44
*** vishwanathj has joined #openstack-ceilometer19:46
*** jruano has joined #openstack-ceilometer19:49
openstackgerritMerged openstack/ceilometer: support ability to skip message signing  https://review.openstack.org/16785319:51
openstackgerritMerged openstack/ceilometer: remove instance:<flavor> meter  https://review.openstack.org/16846619:52
edmondswJenkins failed on gate-tempest-dsvm-neutron-src-python-ceilometerclient-icehouse with one of my proposed ceilometerclient changes... for reasons that don't appear to have anything to do with my changes19:52
edmondswis there a way to just recheck that, rather than recheck everything?19:53
cdentnot really edmondsw, a “recheck” response is all or nothing19:55
cdentpretty much what you gotta do19:55
edmondswcdent, I'll bit the bullet then... tx19:55
cdentgood luck19:57
* cdent bows out19:57
*** cdent has quit IRC19:57
*** _cjones_ has joined #openstack-ceilometer20:01
*** eglynn has quit IRC20:11
*** jruano has quit IRC20:19
*** alexpilotti has quit IRC20:21
*** _cjones_ has quit IRC20:22
*** maishsk has joined #openstack-ceilometer20:26
*** ankita_wagh has joined #openstack-ceilometer20:26
*** ankita_w_ has quit IRC20:29
*** _cjones_ has joined #openstack-ceilometer20:33
*** _cjones_ has quit IRC20:40
*** david-lyle has quit IRC20:40
*** promulo has joined #openstack-ceilometer20:41
*** promulo__ has quit IRC20:42
*** _cjones_ has joined #openstack-ceilometer20:42
*** Ephur has quit IRC20:45
*** claudiub has joined #openstack-ceilometer20:51
*** eglynn has joined #openstack-ceilometer20:53
*** maishsk_ has joined #openstack-ceilometer21:04
*** maishsk has quit IRC21:07
*** packet has quit IRC21:08
*** packet has joined #openstack-ceilometer21:10
*** sbfox has quit IRC21:16
*** jruano has joined #openstack-ceilometer21:17
openstackgerritMatthew Edmonds proposed openstack/python-ceilometerclient: ceilometerclient insecure argument no longer works  https://review.openstack.org/16944221:17
*** _nadya_ has joined #openstack-ceilometer21:21
*** exploreshaifali has quit IRC21:25
*** _nadya_ has quit IRC21:25
*** sbfox has joined #openstack-ceilometer21:26
*** gordc has quit IRC21:34
*** sbfox has quit IRC21:38
*** maishsk_ has quit IRC21:40
*** sbfox has joined #openstack-ceilometer21:42
*** parkerr_ has joined #openstack-ceilometer21:44
*** eglynn has quit IRC21:55
*** jruano has quit IRC22:00
*** harlowja_ is now known as harlowja_away22:04
*** harlowja_away is now known as harlowja_22:07
*** harlowja_ has quit IRC22:21
*** ankita_w_ has joined #openstack-ceilometer22:22
*** ankita___ has joined #openstack-ceilometer22:22
*** ankit____ has joined #openstack-ceilometer22:25
*** ankita_wagh has quit IRC22:25
*** ankita_w_ has quit IRC22:26
*** harlowja has joined #openstack-ceilometer22:26
*** ankita___ has quit IRC22:28
*** ankita_wagh has joined #openstack-ceilometer22:29
*** ankit____ has quit IRC22:32
*** ankita_w_ has joined #openstack-ceilometer22:35
*** packet has quit IRC22:36
*** promulo__ has joined #openstack-ceilometer22:37
*** promulo has quit IRC22:37
*** ankita_wagh has quit IRC22:39
*** rbak has quit IRC22:47
*** devlaps has joined #openstack-ceilometer22:50
*** packet has joined #openstack-ceilometer22:50
*** devlaps has quit IRC22:54
*** claudiub has quit IRC23:04
*** sbfox has quit IRC23:11
*** edmondsw has quit IRC23:24
*** tongli has quit IRC23:30
*** changbl has joined #openstack-ceilometer23:38
*** zhenq has quit IRC23:51

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