Thursday, 2017-02-16

*** jovon has quit IRC00:12
*** Syed__ has quit IRC02:55
*** valw has joined #craton03:23
*** valw_ has joined #craton03:25
*** valw has quit IRC03:28
*** valw_ has quit IRC03:33
*** tojuvone has joined #craton05:52
sigmavirusmorning all13:23
*** mdorman has quit IRC13:46
*** mdorman has joined #craton13:47
*** VW has joined #craton13:48
*** VW has quit IRC13:49
*** VW has joined #craton13:51
*** VW has quit IRC13:53
*** VW has joined #craton13:53
thomasemhihi!13:57
thomasemThanks for the help on that project vars patch, sigmavirus jimbaker!14:02
sigmavirusIdidn't do very much =P14:02
thomasemMoral support is a thing.14:02
thomasem:P14:02
sigmavirussiblings in merge conflicts?14:26
*** VW has quit IRC14:28
*** openstackgerrit has joined #craton14:29
openstackgerritThomas Maddox proposed openstack/craton master: Removes left-over debugging logs  https://review.openstack.org/43493614:29
openstackgerritThomas Maddox proposed openstack/craton master: Removes left-over debugging logs  https://review.openstack.org/43493614:30
thomasemno brainer https://review.openstack.org/#/c/43493614:30
thomasemOh, right. IRC integration14:30
thomasemNEat.14:30
thomasemsigmavirus: that's right!14:32
sigmavirusyw14:33
thomasemThanks!!14:36
*** VW has joined #craton14:36
*** VW has quit IRC14:53
*** VW has joined #craton14:57
*** VW has quit IRC14:58
*** VW has joined #craton14:59
git-harryI see there's a functional check now15:22
git-harrybut it doesn't work15:22
git-harryhttps://review.openstack.org/#/c/434936/15:22
git-harryAre we able to make it non-voting for the time being?15:23
jimbakeri was going to ask the same thing... something is wrong with the setup here it seems15:24
jimbakersigmavirus, ^^^15:24
sigmavirusI can flip that switch, sure15:25
jimbakercool, thanks15:30
openstackgerritThomas Maddox proposed openstack/craton master: RBAC-Lite for generic variables implementation  https://review.openstack.org/43497615:42
thomasemDoing some manual testing and writing more tests for ^^, but would appreciate thoughts on the implementation!15:44
thomasemAgain, this is temporary since we don't have time for full RBAC support right away.15:44
sigmavirusSo I have the change in to make it non-voting15:48
thomasem+115:48
sigmavirusBut I suspect it's because the database isnt' being configured15:48
thomasem:( aww man15:48
jimbakerre functional testing, maybe some sort of race on container_data['NetworkSettings']['IPAddress']? some checking on availability... i guess we could submit a review to explicitly get more debug info15:48
*** Syed__ has joined #craton15:49
sigmavirusLet me revise my schema change to depend on the infra change15:50
*** jovon has joined #craton15:52
sigmavirusSo, my change flicks a switch I think will auto-configure databases for us while also making it non-voting15:55
sigmavirusWhich means it may start to succeed after it has become non-voting P15:55
tojuvoneHi15:56
sigmavirusHi tojuvone !15:56
openstackgerritIan Cordasco proposed openstack/craton master: Add sort_dir and sort_keys to endpoint schemata  https://review.openstack.org/43450615:59
tojuvoneStruggling devstack, Craton, py2.7 and py3.5 all in one system.15:59
openstackgerritThomas Maddox proposed openstack/craton master: RBAC-Lite for generic resources implementation  https://review.openstack.org/43497616:00
jimbakerthomasem, re https://review.openstack.org/434976 - i would assume is_root=false, is_admin=true would mean that the corresponding user could work with project vars16:01
thomasemjimbaker: yep!16:02
thomasemI thought that made more sense than the original restrictions on projects (where you couldn't even get_by_id without being root)16:02
thomasemBut, wanted thoughts on that approach16:02
jimbakerthomasem, actually i'm all mixed up on my truth tables; i'm going to do this systematically before i report back16:02
jimbakeras what actually happens16:03
jimbakerbut in general:16:03
thomasemAs I understand it, top-level /projects is limited to is_root=True, anything under that pertaining to a specific project requires is_admin=True (meaning they have admin permissions on that project)16:03
thomasemIs that correct?16:03
thomasemI'16:03
jimbakerthomasem, yes16:03
jimbakerand a user associated with a project can always read the vars16:04
jimbakerjust not set if they are not admin16:04
thomasemOkay, so that's going to be a snag... the errors we were getting were from oslo_db trying to do exactly that.16:04
thomasemSince it expects project_id to be present to limit the scope that way16:05
jimbakeralso 401 errors should always report back with the corresponding error messge16:05
thomasemAre they not in this patch?16:05
jimbakerright now it's silent on the return16:05
thomasemHmm, weird... wasn't for me?16:05
thomasemMind sharing the call you made?16:05
thomasemAnd associated user configuration16:06
jimbaker$ curl -w "%{http_code}" http://127.0.0.1:8080/v1/projects/b9f10eca-66ac-4c27-9c13-9d01e65f96b4 -H "Content-Type: application/json" -H "X-Auth-Token: bootstrap" -H "X-Auth-User: bootstrap" -H "X-Auth-Project: b9f10eca66ac4c279c139d01e65f96b4"16:07
thomasemBut, the more concerning issue at hand - if we're wanting a regular non-admin project user to be able to view the project vars like that, I think we're going to have some issues with oslo_db.16:07
jimbakermaybe that's just a bug then, and we fix with rbac16:07
thomasemYeah, I think we'll have to do it that way.16:08
thomasemWhat this patch I'm doing aims to do is restore what was previously done.16:08
thomasemand prevent the 500s16:08
jimbakerfor cmdb timeline purposes, i believe this should suffice16:08
thomasemExcellent16:08
jimbakeralso make sure we configure the right users, with the right properties, in our generate_fake_data.py script16:09
thomasem$ curl -s http://127.0.0.1:8080/v1/projects/b9f10eca-66ac-4c27-9c13-9d01e65f96b4 -H "Content-Type: application/json" -H "X-Auth-Token: demo" -H "X-Auth-User: demo" -H "X-Auth-Project: b9f10eca66ac4c279c139d01e65f96b4" | jq16:09
thomasem{16:09
thomasem  "message": "This action requires the 'admin' role",16:09
thomasem  "status": 40116:09
thomasem}16:09
thomasemwas what I was getting, btw16:09
jimbakersimilar proviso applies to making sure it puts in parents - i have a small patch for that, which i used to test git-harry's recent work16:09
thomasemjimbaker: do we want demo to have is_admin=True?16:10
thomasemSince it's been False all this time16:10
thomasemOR I could create an `admin` user.16:10
thomasem:D16:10
thomasemthen we'd have all three16:10
jimbakerthomasem, interesting - i just get back a blank, but i was mucking around with is_admin, is_root settings (that's why i said truth table)16:10
thomasemGotcha16:10
jimbakerdemo_root, demo_admin, demo16:10
thomasemI can make those easy enough16:11
thomasemGot a lot of practice in that last patch. :P16:11
jimbakersomething like that? we still have root implies admin, right? which means the two columns is useless... but whatever16:11
jimbakertokens = user names, for consistency16:11
thomasemYou mean how is_root overrides is_admin, making it pointless?16:11
jimbakeryes16:11
thomasemtokens = user name? You lost me.16:12
jimbakerthe token for demo_root will be 'demo_root', etc16:12
thomasemOh yeah16:12
thomasemdefinitely, make life easy16:12
thomasemWell16:12
thomasemeasier, anyway16:12
jimbakeryes, and hopefully make it obvious it's not even close to be sure. thanks, scott/tiger16:13
jimbakerclose to being secure ;)16:13
thomasemLOL16:13
jimbakertojuvone, re your config, that sounds great16:18
tojuvonejimbaker, Just have keystone conflicting. Get mixed python versions it seems16:20
jimbakertojuvone, yes, that could cause potential conflict. should be easy enough to resolve i would think16:21
tojuvonejimbaker, Yeah, not one of my special skills, but yes :)16:22
openstackgerritThomas Maddox proposed openstack/craton master: RBAC-Lite for generic resources implementation  https://review.openstack.org/43497616:22
sigmavirusjimbaker: thomasem does http://logs.openstack.org/06/434506/3/check/gate-craton-tox-functional-ubuntu-xenial/2b1ccf3/console.html#_2017-02-16_16_02_44_870561 seem suspicious to you at all?16:22
thomasemsigmavirus: docker container setup failed some how16:23
thomasemThat's where service_ip comes from16:23
jimbakersigmavirus, it does. but i find it interesting that the code gets past this16:23
sigmavirusRight16:23
jimbakerspecifically in terms of its container checks16:23
sigmavirusI don't see docker in the logs16:23
sigmavirusI wonder16:23
jimbakermaybe multiple docker daemons running? and causing problems?16:24
jimbakersorry, or one daemon running16:24
sigmavirusto http://codesearch.openstack.org/ to see how others use docker16:24
thomasemOh wow. I've never seen this site before.16:24
jimbakerdoes look useful. brb16:25
* thomasem begins singing "A Whole New World16:25
sigmaviruscould be the jenkins user isn't set-up with the right docker daemon permissions?16:28
openstackgerritgit-harry proposed openstack/craton master: Add devices endpoint  https://review.openstack.org/43500516:39
sigmavirushttps://review.openstack.org/434979 should disable voting16:40
sigmavirusuntil then, I'm looking for other projects that use docker16:40
openstackgerritJovon McCloud proposed openstack/craton master: Adds Networks to docs  https://review.openstack.org/42911016:50
thomasemAnother meeting going over. Will be in shortly.17:01
jimbaker#startmeeting craton17:02
openstackMeeting started Thu Feb 16 17:02:19 2017 UTC and is due to finish in 60 minutes.  The chair is jimbaker. Information about MeetBot at http://wiki.debian.org/MeetBot.17:02
openstackUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.17:02
openstackThe meeting name has been set to 'craton'17:02
jimbaker#chair sigmavirus sulo jimbaker thomasem17:02
openstackCurrent chairs: jimbaker sigmavirus sulo thomasem17:02
jimbaker#link https://etherpad.openstack.org/p/craton-meetings17:02
jimbakersigmavirus, around?17:03
jimbakerif not we can have thomasem chair again...17:04
thomasemI don't mind. It'll be my first time, if you don't mind offering up some halps with the commands.17:04
jimbakerthomasem, sounds good17:04
thomasem#topic Roll Call17:04
jimbakerand looks like you have it down already17:05
jimbaker:)17:05
jimbakero/17:05
thomasemo/17:05
jovonhello17:05
* jimbaker should not chair, is the general consensus of the group, i believe :)17:05
thomasemWelcome to the party, jimbaker, jovon17:05
thomasem#topic Agenda17:06
thomasem#undo17:06
openstackRemoving item from minutes: #topic Agenda17:06
thomasem#topic Action Items17:06
thomasem#link http://eavesdrop.openstack.org/meetings/craton/2017/craton.2017-01-30-15.00.html17:06
thomasem#undo17:07
openstackRemoving item from minutes: #link http://eavesdrop.openstack.org/meetings/craton/2017/craton.2017-01-30-15.00.html17:07
thomasemI think that one was old17:07
jimbakerhttp://eavesdrop.openstack.org/meetings/craton/2017/craton.2017-02-13-15.00.html17:07
thomasemHere we are17:07
jimbaker#link http://eavesdrop.openstack.org/meetings/craton/2017/craton.2017-02-13-15.00.html17:07
sigmavirusI'm chairing the OSSP meeting17:07
thomasemThanks, jimbaker17:07
sigmavirussorry17:07
thomasemWe'll miss you, sigmavirus17:07
sigmavirusyeah, unlikely17:08
sigmavirus=P17:08
sigmavirusWorking on the docker fix right now for infra too17:08
thomasemExcellent!17:08
jimbakersigmavirus, very nice. i think i can repeat here, +100017:08
thomasemjimbaker: turn Dusty's document into etherpad, I guess our poorly name etherpad is sufficient?17:08
thomasemhttps://etherpad.openstack.org/p/cmdb_prototype_meeting_2017_02_0917:09
thomasemThat guy17:09
jimbaker#link https://etherpad.openstack.org/p/cmdb_prototype_meeting_2017_02_0917:09
jimbakeryes, that one17:09
jimbakerlet's just paste dusty's doc at the end17:10
jimbakerand we will work on making it better. sounds good?17:10
thomasemYeah, sounds good to me.17:10
thomasemjimbaker: Add reviewing said etherpad as a standard agenda item to our meeting template17:11
jimbakerdusty's doc added to cmdb tracking doc17:11
thomasemAwesome. Let's also add that as a standing item for our meeting template17:12
thomasemTo review progress-wise, I imagine17:12
jimbakerright, the doc as added is not terribly useful for the review process, but we will put it in a form to do so17:13
thomasem#action thomasem to write BP regarding deployment as a starting point for iterating on a suggested deployment model17:14
jimbakerthis is something that toan effectively asked me to do - to match requirements to work17:14
thomasemRight17:14
thomasemSo, do we want to turn that into an action item?17:14
jimbakerthomasem, sure, let's do that17:14
thomasem#action jimbaker to map Dusty's requirements to work or existing features of Craton, especially with respect to short-term deliverable (~2 weeks remaining)17:15
jimbakerthomasem, +117:15
thomasemsigmavirus's pagination stuff got finished and merged17:16
jimbakerand to be clear - this will be selective - only will consider short term stuff (first 3 reqs iirc)17:16
jimbakerfor this mapping17:16
thomasemjimbaker: I would confirm that... I still think some folks are expecting more than what we are.17:17
thomasemDo you mean UC1-3 are all that's expected?17:17
jimbakerthomasem, https://etherpad.openstack.org/p/cmdb_prototype_meeting_2017_02_09, starting at line 8917:18
jimbakernot another set of stories we have been recently looking at17:18
jimbakerwhich have the UCn numbering17:18
thomasemOh, okay17:19
jimbakerclear? i'm hoping to make it so :)17:19
jimbakerfor my sanity's sake at least17:19
thomasemHaha, indeed. Not entirely clear to me yet. I'll review it in more detail.17:19
thomasemI've read through all of the things, but they continue to have additional scope that I don't think we can meet with Craton, at least.17:19
jimbakergoing from reqs to something actionable is always a challenge17:19
thomasemDefinitely17:20
jimbakerthomasem, feel free to add your comments accordingly17:20
jimbakerso we can converge17:20
thomasemAnd scoping that by responsibility so Craton doesn't become the Australian from Futurama.17:20
thomasem#action thomasem to review Dusty and Bjorn's stories/use-cases and add notes on concerns or questions17:21
jimbakerand now i know that meme...17:21
thomasemI hope it's the one I was thinking of, and not something bad.17:21
thomasemWell... tasteless.17:21
jimbakeri believe we have a joint understanding. but hey, brains17:21
thomasemAnyway, does anyone know the status of the CLI testing that sigmavirus had an action item for?17:22
thomasemLol, indeed17:22
thomasemI'll carry that one forward until we can get a status on it.17:22
thomasem#action sigmavirus to finish up testing on cli17:23
jimbakerthat will be a good hamster wheel for sigmavirus17:23
sigmaviruso_O17:23
thomasemDo we then do Stand Up in this meeting?17:23
Syed__o/17:23
thomasem#topic Stand Up17:23
jimbakeryes. but sigmavirus is here, so let's cover that action item?17:24
jimbaker#undo17:24
openstackRemoving item from minutes: #topic Stand Up17:24
thomasem#undo17:24
openstackRemoving item from minutes: #action sigmavirus to finish up testing on cli17:24
thomasemPardon the onslaught of pings17:24
jimbakersome handy commands here...17:24
thomasemI dunno, jimbaker, I think he's busy.17:25
jimbakersigmavirus just pops in with emoticons as necessary17:25
thomasemYep17:25
thomasemAlright, let's move on.17:26
jimbaker+117:26
thomasem#action sigmavirus to finish up testing on cli17:26
thomasem#topic Stand Up17:26
thomasem#info each team member briefly describes what they are working on this week, and describes blockers (if there are any)17:26
thomasem#topic Stand Up :: jimbaker17:26
jimbakerfinish up WIP on vars in client/CLI; map reqs to craton tasks, focused on short term for the cmdb milestone; review stuff17:27
jimbakerdone17:27
thomasem#topic Stand Up :: thomasem17:28
thomasemproject vars merged (yay!); working on some bugs found during that work, then moving back to adding clouds; reviewing queue; review user stories and use-cases for concerns/questions I have so we can improve communication and expectations there.17:29
thomasemdone17:29
thomasem#topic Stand Up :: jovon17:29
jovoncleaning some current doc patches as well as investigating current doc tools available doc generating more autoimatic17:30
jovonautomatic*17:31
jimbaker+117:31
thomasemawesome17:31
thomasemAnything else, jovon, or 'done'? :)17:32
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503817:32
jovondone17:32
sigmavirus^ should be fun to watch17:32
jovon sorry17:32
thomasemNo problem at all!17:32
thomasem#topic Stand Up :: Syed__17:32
Syed__Working on patch for update project and users17:32
Syed__tests are broken now and its a mess :/17:33
Syed__but well, hoping to get it going today17:33
jimbakersigmavirus, nice about that possible bug fix17:33
Syed__apart from that working over CLI tests17:33
sigmavirusbe back in ~10 min17:33
thomasemSyed__: mind linking the review? I'll pull it down when I get a moment and see if anything jumps out at me that might help?17:34
Syed__thomasem: https://review.openstack.org/#/c/425463/17:34
Syed__thomasem: thanks17:34
jimbakerthis is an important thing to get fixed17:34
thomasem#link https://review.openstack.org/#/c/425463/17:34
thomasemYou bet!17:34
Syed__once i get this merged, have couple of minor reviews in the queue i would like y'all to check them out17:34
Syed__then will focus towards CLI users and projects17:35
Syed__done17:35
thomasem#topic Open Discussion17:35
jimbakerbasically all the refactoring that has hit projects... it's good, but definitely a lot of stepping on each other, given centrality17:35
thomasemYes. It's caused a fair amount of pain for all involved.17:35
thomasemBut, we're trucking through it. I am curious how everyone's feeling? We've been going at a bit of a pace here. :)17:36
thomasemWorking early/late/weekends17:36
jimbakerthomasem, well, if i tried to sustain yesterday's pace for much longer, i will fall over17:36
git-harryI could do with some reviews on https://review.openstack.org/#/c/435005/17:36
git-harrybefore I start on the code17:37
jimbakerso no, not sustainable. but i think it was important to pitch in here to break logjams17:37
thomasem#link https://review.openstack.org/#/c/435005/17:37
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503817:37
jimbakergit-harry, thanks, will take a look17:37
jimbakerto summarize, git-harry captures in that spec our discussion about a heterogeneous device collection, to accommodate for now net devices and hosts, but other devices in the future17:38
jimbakerso important stuff to be able to fully query with respect to a given switch for example17:39
thomasemRight, since /hosts doesn't support that?17:39
thomasemAnd we don't want /[switches,firewalls,hosts,etc.], rather just /devices17:40
jimbakerthomasem, correct - /hosts not surprisingly only returns host objects17:40
thomasemLOL yes, I was surprised at least..17:40
* thomasem kids17:40
jimbaker:)17:40
thomasemExcellent17:40
jimbakerso switches, firewalls - presumably network devices17:40
thomasemRight17:40
thomasemCool. I will take a look also17:40
jimbakerthe intent is that /devices will also in the future cover such usage as AWS resources, which are not hosts17:41
jimbakerbut are they devices...17:41
jimbaker;)17:41
jimbakerwe may have to accept that generalization may mean we are not going to refactor our names. i don't know17:42
thomasemrefactor our names?17:42
jimbakers/device/resource/ in our code base, or something like that17:42
thomasemAhhhhhhhhh, gotcha17:42
thomasemAlright, cool. Any other topics of discussion?17:43
jimbakeranyway, for rackspace private cloud (potential customer #1 for craton), this is moot17:43
thomasemYep17:43
jovoni like the idea17:43
jimbakerjovon, i like it too, other than the pain it will cause17:43
thomasemc'est la vie!17:44
git-harryI think we should make the functional testing non-voting to unblock the gate.17:44
jimbakerbut i was on a project at canonical where we decided to change the name from ensemble to juju. this was a very pervasive change, and impacted tooling, bug trackers, launchpad projects, etc17:45
git-harryI know sigmavirus is trying to fix the problem but we risk not being able to merge anything for a while if the issue ends up being problematic to solve.17:45
jimbakergit-harry, +117:45
jovon+117:45
thomasemYeah, let's be sure it's working before gating on it.17:45
jimbakeri believe sigmavirus stated he had submitted something to that effect17:46
jimbakerhttps://review.openstack.org/#/c/435038/ can be done in parallel17:46
Syed__i feel like functional testing is an important aspect and once its out there it will be greate17:46
git-harryjimbaker: https://review.openstack.org/#/c/434979/17:46
Syed__great **17:46
git-harryIt's been marked as -W17:46
jimbakerby sigmavirus, yeah we need to reverse that17:46
thomasemAdded notes to that effect on the review17:47
jimbakerin retrospect, a bit of settling in with a nonvoting gate would have been nice. but funct testing had been stable quite recently17:47
thomasemYeah. This is always a concern when executing in a different environment, though.17:48
thomasemI think in the future it'd be nice to see it pass there at least once before making it voting.17:48
jimbakerso i would say non-voting for a week or so might be the right way to do this17:48
jimbakeronce the gate starts *working* of course17:49
thomasemyep17:49
thomasemAlright, cool. Well, let's follow up with sigmavirus about that.17:49
thomasemAny other topics? Or do we want 10 minutes back?17:49
jimbakerthomasem, maybe cli testing?17:50
thomasemIntegration testing?17:50
jimbakerof course the vagueness of the action item for sigmavirus suggests that it is his forever & ever17:50
jimbakereg hamster wheel17:50
thomasemPretty much.17:50
jimbakerbut yes, integration testing17:50
thomasemWait, so you mean to tell me he doesn't want to do that forever?17:50
thomasemSo, how has integration testing typically been done in OpenStack, especially between client and API?17:51
jimbakerthomasem, i don't know. let's ask him? sigmavirus, it's ok if you work on that task forever? remember silence means yes17:51
thomasemCruel17:51
jimbaker;)17:52
jimbakerok, so yeah, i mean actually testing the client/CLI in some reasonably robust way against the api sever17:52
jimbakertox -e integration17:52
thomasemIs it a usual pattern for that to live in the client project, or API server?17:53
jimbakerwe could start with the generate fake data as a way of loading up fixture data, suitably modified to support the changes we make17:53
jimbakerso we decided not to make it a dependency on the api server. because circularity17:53
jimbakercraton itself should be tested via rest tests, as we now do in tox -e functional17:54
jimbakerthat's the only true contract it provides17:54
thomasemSo, then you'd tox -e integration in python-cratonclient project?17:54
thomasemAnd that would... set up a craton-api and go to town exercising the code paths, or would it be a mock craton API?17:55
jimbakeryes, and it can potentially take advantage of projects for suitable isolation17:55
thomasemAh17:55
thomasemYeah, generate a couple of projects specific to the integration test and then mutate those projects17:55
jimbakerwe already have some form of mock craton api testing going on the client. that's good, but we need stronger17:55
thomasemand all of their descendants.17:55
jimbakeri'm sure we can get some fun stuff going, but i just want to verify stuff works. such as the recent pagination stuff comes to mind17:56
jimbakerpassing sort_keys should be tested, and verified it goes end-to-end17:57
jimbakerhence tox -e integration17:57
thomasemI don't think anyone is going to disagree with that.17:57
jimbakercool. and again, silence means a chorus of resounding yeses ;)17:57
thomasemMy only concern is how the python-cratonclient project now has to know how to deploy a craton-api for testing.17:58
jimbakerthomasem, i'm ok if we put in a separate project as well17:58
thomasemI was imagining that's what, like, tempest tests did.17:58
jimbakerbut that's just extra stuff in all likelihood17:58
jimbakerso for tempest, that makes a lot of sense, because there are multiple projects17:59
thomasemAs there are here17:59
jimbakerright now, we just have one client. so until we grow more, easier to track in place17:59
jimbakerin one place17:59
jimbakercan always refactor by pulling out17:59
thomasemSure. I do anticipate it moving out, though. With a separate project, you can more easily manage versions and such that are being tested.17:59
jimbakergood points indeed18:00
thomasemBut, I'm not going to plant my feet over it18:00
thomasemAnd that may take up valuable time18:00
jimbakeryeah, i just want one test script that can grow over time18:00
thomasemSo, I appreciate where you're coming from.18:00
jimbakerand start with generate_fake_data.py, and start updating it18:00
thomasemHonestly, a lot of the stuff from our functional tests can apply here.18:01
thomasemJust would need to be leveraged by python-cratonclient18:01
thomasemSince that sets up a craton-api18:01
jimbakeri'm pretty sure we can just use in some fashion. it should be dockerized18:01
thomasemAnd has all of the logic for create/teardown18:01
thomasemand such18:01
jimbakerand it's available as an import, etc18:01
thomasemYeah, I guess it is.18:01
thomasemdidn't think about that18:02
thomasemhandy18:02
jimbakerthere's no reason the test harness in the integration testing cannot just use18:02
thomasemYep18:02
jimbakeryeah, those pieces can continue to live in the craton project18:02
thomasemSo, as long as we maintain that contract, the integration tests will be fine.18:02
thomasemSave for legitimate breakage. :P18:03
thomasemI'm going to end the meeting (over time)18:03
thomasembut we can continue this chat18:03
thomasem#endmeeting18:03
openstackMeeting ended Thu Feb 16 18:03:29 2017 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)18:03
openstackMinutes:        http://eavesdrop.openstack.org/meetings/craton/2017/craton.2017-02-16-17.02.html18:03
openstackMinutes (text): http://eavesdrop.openstack.org/meetings/craton/2017/craton.2017-02-16-17.02.txt18:03
openstackLog:            http://eavesdrop.openstack.org/meetings/craton/2017/craton.2017-02-16-17.02.log.html18:03
thomasemWell, well, well. Chaired my first OpenStack meeting today.18:03
thomasemHow'd I do?18:03
thomasemAnd I need to go take care of some errands... Oh boy.18:05
thomasembrb18:05
jimbakerthomasem, you did great18:06
jimbakerjust got pulled out at the end by my discussion with the insurance adjuster who was looking into my roof18:07
jimbakerwhich understandably i'm very much interested in being in good shape18:07
jimbakervs just getting torn up by the occasional 70 to 100 mph winds i get here because we live on the edge of the city - great views of the boulder county open space that this area is noted for, but nothing between us and the mountains to protect us!18:08
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503818:11
farid$ craton region-list --all18:12
faridERROR: list indices must be integers, not str18:12
faridwhat gives18:12
farid70-100mph winds? the humanity18:13
sigmavirusjimbaker: thomasem  https://review.openstack.org/435038 should be sufficient to fix up our functional tests18:15
sigmavirusnevermind18:16
jimbakersigmavirus, ack, hopefully we will see jenkins +1 momentarily18:16
sigmavirusstill can't get the service-ip18:16
sigmavirusjimbaker: we won't18:16
sigmavirusi watched it live18:16
sigmavirusit failed with the same issue18:16
jimbakersigmavirus, ok, np18:16
sigmavirusun workflowed my infra patch to make it non-voting18:17
sigmavirusyou should go nag openstack infra to approve it18:17
sigmavirus#openstack-infra18:17
sigmavirusI have an errand to run quickly18:17
jimbakerfarid, the chinook windstorms happen every few years here. but this winter, it has happened a few times. interestingly, such winds are always warm18:17
jimbakerso it's "an enough is an enough" frustration18:17
jimbakersigmavirus, acj18:18
jimbakerack18:18
*** VW has quit IRC18:21
*** VW has joined #craton18:23
jimbakerbrief discussion over on #openstack-infra18:37
jimbakerre fixing up the functional tests18:37
jimbakerhttps://review.openstack.org/#/c/435038/18:38
jimbakerspecific file: https://github.com/openstack-infra/project-config/blob/master/jenkins/data/bindep-fallback.txt18:38
jimbakeras to why our docker probe would succeed...  i don't know. i'm still suspicious of the specific logic, but i haven't had a chance to investigate18:39
*** VW has quit IRC18:43
openstackgerritJim Baker proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503818:46
jimbakerno luck with the change i made: http://logs.openstack.org/38/435038/4/check/gate-craton-tox-functional-ubuntu-xenial/20456fe/console.html#_2017-02-16_18_51_05_99772218:56
sigmavirusHey I have an idea, what if we don't use docker for our functional tests?19:06
jimbakerand just do it direct?19:06
sigmavirusYeah, let me see if I can figure out what we're doing with docker-py though19:10
jimbakersigmavirus, i believe i followed AndreaJ's instructions19:12
sigmavirusjimbaker: I see that :)19:12
jimbakeroops, AJaegar19:12
jimbakerso my doubt here is with respect to the docker client19:13
jimbakeri haven't had a chance to look at this, maybe every read from container_data['NetworkSettings']['IPAddress'] checks the current settings19:14
jimbakerbut certainly some suspicion around why that whole container probe is supposedly succeeding19:15
jimbakerand then immediately failing when it tries to run tests19:15
sigmavirusjimbaker: I skimmed docker-py's code19:15
sigmavirusI see where it's generating the log messages19:15
sigmavirusI want to see how we're using it19:15
sigmavirusIt seems like CI boxes are different19:16
jimbakerthere is quite a mix in bindep19:17
thomasemdocker-py has historically been pretty sensitive to docker versions, fyi.19:21
thomasemI remember getting back different responses from different versions of docker with it19:21
thomasemWhich, naturally, broke things.19:22
sigmavirushttps://github.com/docker/docker-py/blob/997e583ea9a7b33113edd91d5bee73d25d720448/docker/client.py#L30..L4019:26
jimbakerthomasem, that would make sense, i think docker-py is just a thin wrapper around the docker REST API (or whatever variant we call it, given it's streaming)19:26
* sigmavirus needs something with some power to it19:26
sigmavirusso my xenial box is using 1.11.219:26
sigmavirusand docker-py 1.10.619:26
thomasemMine's running 1.13.019:26
sigmavirusI'm addign logging to our functional tests19:26
sigmavirusand upating our functional test script19:27
sigmavirusGoing to nix Andreas' suggestion about our bindep file thoug19:27
sigmavirusgate should work as soon as our change merges19:27
sigmavirusto run the functional tests you'll need to do `check experimental`19:28
sigmavirusI'm going to hack on these till they work19:28
jimbakersigmavirus, awesome19:28
*** VW has joined #craton19:29
sigmavirusso yeah, I'll let you know when to start rechecking other stuff19:30
sigmavirusthe change is almost through the check queue19:31
sigmavirusIt's in the gate19:33
sigmavirusjimbaker: thomasem go ahead and recheck19:42
jimbakersigmavirus, so abandoning https://review.openstack.org/#/c/435038/ ?19:42
sigmavirusabsolutely not19:43
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503819:43
sigmavirusI'm going to continue using that to fix our functional CI19:43
sigmavirusbut until then19:43
sigmavirusjust recheck the rest of your stuff19:43
jimbakerok, got it19:43
sigmavirusso the Gate is using docker 1.12.3 and API 1.2419:47
sigmavirusah but now I see: http://logs.openstack.org/38/435038/5/check/gate-craton-tox-functional-ubuntu-xenial/0576d3e/console.html#_2017-02-16_19_45_14_19927519:47
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503819:52
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503820:03
openstackgerritThomas Maddox proposed openstack/craton master: RBAC-Lite for generic resources implementation  https://review.openstack.org/43497620:29
thomasemsigmavirus: I see that whenever there's permissions issues on the Docker socket.20:30
sigmavirusYeah20:31
sigmavirusBest I can find online is to log out and log back in but lol20:31
thomasemLol! I've always had to restart the Docker daemon after setting up perms.20:31
thomasemLike, I've always had to add my user to the docker group and then restart the daemon... no idea why?20:31
thomasemSeems like it ought to work as soon as you're in the group that has access to the socket.20:32
sigmavirusthomasem: exactly, doesn't seem to work20:53
thomasemLame20:53
*** VW has quit IRC20:57
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503820:57
jimbakerthomasem, i think we will implement RBAC before we mixin vars support for users21:00
jimbakerwhich will avoid the bootstrap problem in say this code, https://review.openstack.org/#/c/434976/4/tools/docker_run.sh21:00
jimbaker(so it's fine for now!)21:01
thomasemjimbaker: well, good thing, because... yeah :) Kinda need that to preserve what we had going on already until we do fix RBAC. :P21:01
thomasemLike proper fix.21:01
jimbakeryes21:02
thomasemSounds good to me.21:02
jimbakereach iteration of work shows how important this is; fwiw, see https://blueprints.launchpad.net/craton/+spec/craton-rbac-support21:02
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503821:03
jimbakeri made some additional progress on a local branch but foolishly didn't post it WIP. will get back to it21:03
thomasemYeah, the hoop jumping is going to get out of hand.21:08
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503821:11
openstackgerritIan Cordasco proposed openstack/craton master: Fix up functional testing  https://review.openstack.org/43503821:16
jimbakerthomasem, ok, the rbac-lite looks great, and i approved the change21:19
*** VW has joined #craton21:19
jimbakerwe will presumably have to recheck as necessary21:19
jimbakerthanks for some very nice cleanup there on that bug21:19
jimbakerand i'm going to get in my run. my really really late lunch run21:20
thomasemjimbaker: Thanks a 'mil!21:31
*** acabot has quit IRC22:48
faridany clue what I'm missing here? https://gist.github.com/faridsaad/c793828f8b5fad2d141fcf3a051e5f3522:50
faridlogs are empty :S22:50
faridallright don't know why it's not logging the error to the file, but here's what I got22:55
faridHTTP/1.0 400 BAD REQUEST\r\nDate: Thu, 16 Feb 2017 22:54:52 GMT\r\nServer: WSGIServer/0.2 CPython/3.5.2\r\nContent-Type: application/json\r\nContent-Length: 108\r\nx-openstack-request-id: req-b2b95017-7727-4c65-a6ff-e32d985ab1da\r\n\r\n{\"errors\": [\"Additional properties are not allowed ('sort_dir' was unexpected)\"], \"message\": \"Bad Request\"}\n22:55
faridso I guess the client is adding this sort_dir stuff in...22:56
faridyeah using curl I got an empty host-list which is what I expect...22:59
*** acabot has joined #craton23:01
*** mdorman has quit IRC23:42
*** mdorman has joined #craton23:50

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