Monday, 2017-02-06

*** VW has joined #craton01:06
*** VW has quit IRC01:11
*** VW has joined #craton03:07
*** VW has quit IRC03:14
*** valw has joined #craton03:25
*** valw has quit IRC03:30
*** toan has quit IRC03:33
*** mhayden has quit IRC03:34
*** hughsaunders has quit IRC03:34
*** toan has joined #craton03:36
*** hughsaunders has joined #craton03:36
*** mhayden has joined #craton03:38
*** VW has joined #craton03:48
*** david-lyle has joined #craton04:46
*** david-lyle has quit IRC04:50
*** david-lyle_ has joined #craton04:50
*** david-lyle_ is now known as david-lyle04:52
*** david-lyle has quit IRC05:21
*** VW has quit IRC05:52
*** valw has joined #craton07:27
*** valw has quit IRC07:31
*** VW has joined #craton07:52
*** VW has quit IRC07:56
suloo/08:31
sulogit-harry: btw, blame is not who set it, its just what vars are set at each level. i guess name suggests more, like git blame.11:15
sulothe idea was to add who part as well later ... so we can keep kind of a git like blame history11:16
suloi dont know if this is the right way to do that though11:17
git-harrysulo: ah okay. Well if blame is just intended to be the var hierarchy then I think it would make sense to use that spec to define how it should be used.11:23
git-harryTo me it seems pretty vital for anyone wanted to set/update vars to know what is set at each level.11:24
sulogit-harry: yeah i agree. Take a look at that, since we've never used it, we might find that its not doing what we are expecting. I think more than changin that spec drastically11:26
suloit might complement what you are proposing11:26
suloi think the db impl of your spec is partly done by that func11:27
*** valw has joined #craton11:28
*** valw has quit IRC11:33
git-harryYes, it would probably make sense to use/modify it as part of implementing this spec11:41
tojuvoneHi there12:37
tojuvoneI would need advice to update spec I have on Nova. How to link to Craton12:40
thomasemo/13:50
sulotojuvone: can you link the spec pls ?13:54
tojuvonehttps://review.openstack.org/428070/14:03
tojuvoneI was wondering if not to play with the url there, but keep both with url something like: http://${CRATON_IP}:8080/v1/hosts/{id}/host_details14:04
tojuvoneThen have problems in Craton side. Need to have rights to user for admin and any user having VMs on the host14:06
tojuvoneAnd one day when having notifications in Craton, updating host_details should have notification with the "host" that is actually in parent namespece14:07
thomasemsulo: I'd personally prefer be consistent with the existing implementation in my patch, regarding project admin being able to modify variables and such. The original bug suggests we may not all be on the same page there?14:51
thomasemAnd then I could follow-up with a patch fixing all of them to be how we actually want it.14:52
thomasemThat will facilitate communication and afford us a forum for discussion for any folks that disagree with expanding the scope of privileges for project admin.14:52
sulothomasem: sounds good to me. just pointing out that there is existing logic thats a bit mixed up.14:53
jimbakergit-harry, blame is intended to address history, not just inheritance14:53
jimbaker(or technically, overrides. or whatever)14:53
thomasemsulo: okay, cool! Yeah, I appreciate it. That was a bit confusing.14:53
thomasem:)14:53
thomasemAlso, while looking at it, I found this tiny thing and threw up a quick patch: https://review.openstack.org/#/c/429725/214:54
jimbakeras for usage: blame doesn't change setting variables. it's a separate view on the variables14:55
git-harryjimbaker: okay. It would be good if you could add your comments to the spec so we can capture all this in one place.15:00
jimbakergit-harry, for sure15:00
jimbakereveryone, meeting over in #openstack-meeting-415:00
*** VW has joined #craton15:04
*** VW has quit IRC15:24
*** valw has joined #craton15:30
*** VW has joined #craton15:33
*** valw has quit IRC15:35
*** klindgren has joined #craton15:35
*** klindgren__ has quit IRC15:37
*** VW has quit IRC15:38
*** VW has joined #craton15:48
thomasemo/16:00
* sigmavirus will be out for a dental appointment towards the end of the hour16:01
thomasemOhhhh good luck16:01
sigmavirusthomasem: it's not bad16:02
sigmavirusI just think a crown I had installed is a bit loose16:02
* thomasem cringes16:02
jimbakerso an easier appointment16:02
thomasemThat's good.16:02
*** Syed__ has joined #craton16:10
tojuvonejimbaker, Hi16:21
jimbakerhi16:21
*** klindgren_ has joined #craton16:29
*** klindgren has quit IRC16:32
thomasemCan we get another +2 on this? I'd like to get it in and update my variables patch for /projects. :) https://review.openstack.org/#/c/426918/16:38
thomasemAnd this has a +2 also, so needs another +2, I think? https://review.openstack.org/#/c/428996/16:39
tojuvonejimbaker, I posted earlier link to my Nova spec. Liked to have opinion how should I link to Craton16:40
thomasemSame with this guy https://review.openstack.org/#/c/42819516:40
tojuvonejimbaker, Has to go right.16:41
jimbakertojuvone, ok, i will take a look, thanks!16:42
jimbakerthomasem, same with those reviews for you16:42
tojuvonejimbaker, thanks, didn't like to rush this, but to get Pike...16:42
tojuvoneOh, Nova has policy.json. Could something like that be used in Craton namespace to have "admin_or_owner"16:45
tojuvoneJust thinking if can use just single link for admin and owner: http://${CRATON_IP}:8080/v1/hosts/{id}/host_details16:46
thomasemjimbaker: much appreciated!!16:47
jimbakertojuvone, interesting. i have been looking at similar details with respect to our rbac implementation16:48
tojuvonejimbaker, sulo, also as posted before, there would be perhaps problem with namespace related notification16:50
tojuvoneit needs "host" (hostname), from parent namespace16:50
tojuvoneotherwise would be easy to have notification content limited to namespace changed16:51
*** jovon has joined #craton17:06
*** klindgren has joined #craton17:14
*** klindgren_ has quit IRC17:15
*** harlowja has joined #craton17:20
*** harlowja has quit IRC17:49
*** VW has quit IRC17:54
*** VW has joined #craton18:02
*** VW has quit IRC18:08
*** VW has joined #craton18:09
*** harlowja has joined #craton18:44
sulothomasem: https://review.openstack.org/#/c/429725 i am not sure if i am reading this right18:48
sulobut they are differnt arent they ?18:48
thomasemsulo: they are different, but is_project_admin_context will return True always if is_admin_context returns True also, and they're OR'ed here.18:51
thomasemSo, it should short-circuit, but the additional check that ANDs context.is_admin and context.is_admin_project is unnecessary. The condition is already satisfied if context.is_admin returns True.18:52
thomasemSince we're OR'ing them.18:52
thomasemBasically, the call to is_admin_context should never have to run, because it's irrelevant.18:53
thomasemSince the first half of the AND being True will satisfy the OR returning True.18:53
thomasemDoes that make sense?18:53
thomasemsulo: ^^18:53
sulothomasem: ah i see what you are saying .. yes totally makes sense18:54
thomasemSweet. Yeah, just a little ditty I noticed while putzing around fixing up the projects patch.18:54
thomasemFigured it wouldn't hurt to delete some code. I love deleting code.18:55
jimbakerthomasem, makes sense, and probably survives in some form when we get the rbac stuff implemented19:04
jimbakeri see this as important for implementing that bootstrap approach we discussed earlier19:04
*** klindgren has quit IRC19:09
thomasemjimbaker: yep!19:10
*** klindgren has joined #craton19:10
Syed__sulo: you around ?19:30
*** valw has joined #craton19:32
*** valw has quit IRC19:36
*** jovon has quit IRC19:50
*** VW has quit IRC19:56
*** VW has joined #craton20:08
*** klindgren_ has joined #craton20:12
*** klindgren has quit IRC20:13
*** VW has quit IRC20:13
*** VW has joined #craton20:25
*** VW_ has joined #craton20:27
*** VW has quit IRC20:28
*** VW_ has quit IRC20:50
*** VW has joined #craton21:00
*** VW has quit IRC21:05
*** VW has joined #craton21:11
*** jovon has joined #craton21:14
jimbakerthomasem, thanks for some great comments on https://bugs.launchpad.net/craton/+bug/166171422:31
openstackLaunchpad bug 1661714 in craton "Bulk endpoint for working with resources" [High,New]22:31
jimbakerthomasem, given other priorities for the rest of us, let me suggest that we assign this bug to you, and you can bring sigmavirus and others as it makes sense22:33
antonymis there a way to query by variable without having the host id?22:33
antonymlike if i was doing a look up of the mac address that i had set as a variable22:34
jimbakerantonym, so you can query the corresponding hosts that have that mac address22:34
jimbakerno id necessary to start22:35
jimbakerthe query22:35
jimbakerbrb22:35
antonymyeah, so i can pull up the record by doing a query like this: hosts?region_id=1&ip_address=10.127.5.110 but if i wanted to query by the variables to narrow it down, does that exist yet?22:40
jimbakerantonym, so you should be able to do ?vars=some-var:some-value&another-var:another-value22:52
jimbakerarbitrarily combined with the query above of course22:52
antonymso like this? v1/hosts?vars=os:debian in this case i've only set one host with the variables, but it returns all of them22:59
jimbakerantonym, that should work. i did notice a problem in how we parse args if numbers (and presumably boolean or null) for the search params - this is not well specified, it currently only matches on strings23:09
jimbakerso v1/hosts?vars=foo:47 will not match a number that's stored in the foo variable23:10
antonymyeah, it doesn't seem to be matching on that, seems like it's just returning all records under hosts23:13
*** VW_ has joined #craton23:14
jimbakerantonym, you are running a recent build, right?23:16
jimbakersulo fixed a bug in vars filters very recently (feb 1)23:16
antonymyeah, latest master23:16
jimbakerok23:16
antonymhttps://gist.github.com/antonym/ebfa6f2eef738855a147158afb2d7ba723:17
*** VW has quit IRC23:17
antonymfirst one is the only one with vars set23:17
jimbakerright23:18
*** VW_ has quit IRC23:18
antonymare you supposed to be able to mix say a region in the query too? so if i only wanted to look for os:debian in my dfw region23:20
jimbakerantonym, region is optional23:21
jimbakerjust another part of a query filter23:21
jimbakerantonym, still trying to reproduce your problem23:22
jimbakercan you give me a gist of the script that's generating your data?23:22
*** VW has joined #craton23:25
antonymoh, i just manually tossed a few in23:25
antonymi just created a region, cell, made 6 host records and then attached that os:debian var on host 123:26
jimbakeryeah, just wonder what is different here. maybe empty variables?23:28
*** sulo_ has joined #craton23:28
jimbakerno, doesn't seem to be the case23:29
jimbakersulo, antonym is having a problem with the vars query23:29
jimbakeri've been unable to reproduce his problem23:29
*** VW has quit IRC23:29
jimbakerin a nutshell, doing something like ?vars=os:debian in the REST API is returning the full set of hosts, not just the ones that match the vars query filter23:31
*** sballe__ has joined #craton23:31
jimbakerantonym, i think we really need that little script of yours, just to figure out what is different here23:32
*** valw has joined #craton23:33
*** sballe_ has quit IRC23:34
*** sulo has quit IRC23:34
*** sballe__ is now known as sballe_23:36
thomasemjimbaker: excellent. Sounds good to me!23:37
jimbakerthomasem, cool, i just assigned you that bug23:38
jimbakerplease go ahead and start detailing out that blueprint23:38
*** valw has quit IRC23:38
antonymjimbaker: don't have a script since i tossed them in manually, i added the var with this: "http://ip:8080/v1/hosts/1/variables" -XPUT -d '{"os": "debian"}'23:40
*** VW has joined #craton23:46
jimbakerantonym, this is the same curl invocation i made to make the settings. the the corresponding query is returning the desired subset23:50
jimbakeri will prepare a script on my end that we can both run23:50
*** VW has quit IRC23:50
jimbakerand hopefully see the same results23:50

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