Wednesday, 2017-03-01

*** VW has quit IRC00:01
*** VW_ has quit IRC00:02
*** VW has joined #craton00:27
*** VW has quit IRC00:32
*** VW has joined #craton00:42
*** VW has quit IRC00:43
*** VW has joined #craton00:43
*** Syed__ has quit IRC01:05
*** VW has quit IRC01:28
*** VW has joined #craton02:01
openstackgerritOpenStack Proposal Bot proposed openstack/craton master: Updated from global requirements  https://review.openstack.org/43921204:05
openstackgerritOpenStack Proposal Bot proposed openstack/python-cratonclient master: Updated from global requirements  https://review.openstack.org/43923104:15
*** pwnall1337 is now known as zz_pwnall133704:25
*** VW has quit IRC05:13
openstackgerritMerged openstack/python-cratonclient master: Updated from global requirements  https://review.openstack.org/43923106:07
*** sigmavirus has quit IRC06:52
*** sigmavirus has joined #craton06:53
*** sigmavirus is now known as Guest5315306:54
suloo/09:02
openstackgerritsulochan-acharya proposed openstack/craton master: Allow resolved vars in details list calls  https://review.openstack.org/43917509:13
sulohey git-harry, when you get some time can you take a look at https://review.openstack.org/#/c/439175/ please09:25
git-harrysulo: will do09:44
openstackgerritsulochan-acharya proposed openstack/python-cratonclient master: Add filter params to host-list command  https://review.openstack.org/43954911:44
*** Guest53153 is now known as sigmavirus12:10
*** sigmavirus has quit IRC12:10
*** sigmavirus has joined #craton12:10
*** ChanServ sets mode: +o sigmavirus12:10
*** VW has joined #craton12:44
*** VW has quit IRC12:48
*** VW has joined #craton12:49
sigmavirusthomasem: sulo are we requiring that hosts be in a region or can they just be in a cloud?13:05
sulosigmavirus: so far we are assuming region13:05
sigmavirussulo: okay, just making sure13:06
*** VW has quit IRC13:24
*** VW has joined #craton13:30
*** VW has quit IRC14:11
thomasemHaha, yeah. Good question.14:17
faridmorning guys14:22
thomasemhihi farid14:29
*** tojuvone has quit IRC14:44
*** VW has joined #craton14:45
openstackgerritIan Cordasco proposed openstack/python-cratonclient master: Relax requirement of region-id for hosts and cells  https://review.openstack.org/43962914:48
sigmavirussulo: jimbaker git-harry ^14:49
*** VW has quit IRC14:52
*** tojuvone has joined #craton14:53
sigmavirusHow much do we hate people self-approving things?15:00
sigmavirusAt this point, I honestly feel like a +1 from thomasem is good enough for me to self-approve things =P15:00
sigmavirusI'm also looking through our client reviews and seeing other things that could have been approved sooner15:01
openstackgerritMerged openstack/python-cratonclient master: Add filter params to host-list command  https://review.openstack.org/43954915:04
openstackgerritMerged openstack/python-cratonclient master: Fix help messages for resource-listing commands  https://review.openstack.org/43235415:09
sigmavirusthomasem: I'm confused by the current state of your client vars patch15:09
thomasemsigmavirus: I think it's been carte blanche until this deliverable. And, I appreciate your comment! :P15:13
thomasemsigmavirus: I'm a bit confused about it myself. I'm in the process of making it generic for other sub resources according to jimbaker's comments. I added a Variable class and extended Resource to understand that when it encounters "variables" when parsing "info" in _add_details, that it'll send that payload to a different handler to add a list of Variable objects to the resource at self._variables.15:15
thomasemI am just fixing that change up and then going to push it up. I believe that's more in-line with what you were suggesting?15:15
sigmavirusI just commented with what I was suggesting15:15
thomasemLooking!15:15
sigmavirusgit-harry: ping15:15
*** VW has joined #craton15:16
git-harrysigmavirus: yep?15:16
sigmavirus https://review.openstack.org/438561 is this dependent on a server change? If so, you can add "Depends-On: <change-id>" so the tests reflect the true status of the patch15:16
git-harryNo, it's not. That side of it has already merged.15:16
sigmavirusAh okay15:17
sigmavirusDo you want a hand with those tests?15:17
sigmavirusI'm wary to refactor our client test suite as much as I'd like to with our deadline coming up and some large changes that need to be landed15:17
* sigmavirus brb15:18
openstackgerritMerged openstack/python-cratonclient master: Relax requirement of region-id for hosts and cells  https://review.openstack.org/43962915:19
git-harryNo, I'm fine thanks15:20
thomasemsigmavirus: excellent, that's pretty close to what I have now, minor tweak.15:20
thomasemThanks for the clarification.15:21
thomasemI'll just go with name/value for now. We can add audit stuff later on.15:21
thomasemSince... well, we don't have anything for that. :P15:21
thomasemThe patch I put up yesterday was more exploratory, so that's very helpful. I unraveled a lot of "how the hell does this work?"15:22
openstackgerritMerged openstack/craton master: Updated from global requirements  https://review.openstack.org/43921215:24
thomasemjimbaker: sigmavirus: It seems there's some disagreement between y'all on how we should work with build_url regarding how generic we make this, whether we use variables_key, or some other method of specifying the subresource for the path?15:29
thomasemIn my local patch, according to jimbaker's comment on the already known conventions, I actually did an enumeration of SubResourceTypes that map to the key to be added.15:29
thomasemActually, let me clean it up a bit and push it up so y'all can see what I have.15:30
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703215:32
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703215:34
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703215:37
thomasemI honestly feel like we're overcomplicating this whole thing a bit, but that's probably due to lack of context.15:39
thomasemEspecially for right now - trying to make the CRUDClient methods generic... when we implement labels, it's going to mean now we have to differentiate the arguments to set_subresource, since that'll be a list for labels, and a dict for variables15:40
thomasemI think delete/get will remain the same, though, as long as we have handlers for each type of return from the API.15:41
thomasemBut, I do feel like I'm getting randomized on things not yet decided on for this patch, so I'd like for us to agree so I'm not just going back and forth.15:42
thomasemFor me, personally, I'm more inclined to go with something simpler now and we can change as need arises. I do wonder if we're not trying to solve for problems we don't yet know we'll have.15:44
thomasemBut, again, could be lack of context on my part.15:44
sulothomasem: i thought you were already doing that15:44
thomasemDoing what?15:45
sulothomasem: simplyfying the code15:45
sigmavirusthomasem: I'm already confused as to why you're adding methods to the formatters classes, that seems like a complication too =)15:45
thomasemsigmavirus: I removed those15:46
sigmavirusah okay15:46
* sigmavirus looks at new patch before commenting further15:46
thomasemYeah... I would prefer the formatter know how to parse the variables15:46
thomasemAnd, keep in mind, this is a pretty rough representation. I didn't see the need to polish when there seems to be a divide on some details.15:47
* sigmavirus nods15:48
thomasemSo, 1) variables_key or subresource passed in (I'd prefer an Enum for this)? 2) path_arguments or regular arguments? 3) Generic get/set/delete_subresource, or more concrete?15:48
faridhey guys I have a meeting overlap with the sync today, which I think I can get out and come back to but if I don't show up please proceed as usual :)15:49
sigmavirusOkay15:49
sigmavirusI think I know where things are going awry15:49
thomasemHmm?15:49
sulofarid: ok15:50
thomasemAnd we can hop on Vidyo or whatever helps, too.15:50
faridsulo: victor confirmed he'll come too, he mentioned being interested in knowing overview of the architecture of craton, which components it uses and such... if not during maybe after the demo15:53
sulofarid: rgr that15:53
faridI mentioned I think it's straight out python flask + mysql which he said if that's it that's all he needed to know15:53
faridthink at some point he heard zookeeper and other stuff in there15:53
faridso wanted to find out.15:53
sulofarid: its in the diagram but we dont have in un use15:53
sulofarid: at this point its out of the picture15:54
faridah gotcha, ok I understand where he got it from now then15:54
suloso py + flask + sql is prettymuch it15:54
faridawesome, we'll mention it then15:55
sigmavirusthomasem: yeah, so in all candor I think there needs to be a bit more flexibility in the crud module rather than subclassing15:58
sigmavirusI'm trying to untangle that right now15:58
sigmavirusActually a Vidyo call might make sense in Craton-Recordable15:58
*** jovon has joined #craton16:00
thomasemSee you there16:00
jimbakerright, zookeeper is specifically for job board support in taskflow, which iirc, sulo demoed how to use in the summer. very much not required for cmdb16:15
jimbakersigmavirus, thomasem, sounds good about getting that crud resource work done. also i do not want  to delay current support for vars to attempt to future proof, just asking questions now in case they seem relevant16:17
thomasemjimbaker: yeah, we had a chat. Going to try going for something more generic in the resource itself with subresource_managers to build the URL that way.16:24
jimbakerthomasem, sounds good16:24
thomasemsigmavirus is sending over a little patch that he hacked on a bit to kind of point out what we're going for.16:25
jimbakerthomasem, also in terms of those specifics: the reason why not variables for everything is precisely because of differences like sets (for labels) and triples (for scoped assignments for rbac)16:26
jimbakerso good push back on the api considerations16:26
thomasemjimbaker: gotcha16:31
openstackgerritsulochan-acharya proposed openstack/craton master: Enable vars resolution in cells and regions  https://review.openstack.org/43969516:33
sulo^^ enabling resolved vars in regions and cells .. pls review16:34
jimbakersulo, thanks16:40
jimbakersulo, just to fix the minor pep816:41
openstackgerritsulochan-acharya proposed openstack/craton master: Enable vars resolution in cells and regions  https://review.openstack.org/43969516:42
suloi vidyo working for everyone ? its not for me.16:57
faridhttps://bugs.launchpad.net/python-cratonclient/+bug/166710916:57
openstackLaunchpad bug 1667109 in Craton's Python Client "Allow environment export from client" [Undecided,New]16:57
sigmavirusjimbaker: would it help if I took over https://bugs.launchpad.net/craton/+bug/1668308 ?16:58
openstackLaunchpad bug 1668308 in craton "orphan variables on host delete" [High,Confirmed] - Assigned to Jim Baker (jimbaker)16:58
*** VW_ has joined #craton16:59
*** VW has quit IRC17:02
*** VW_ has quit IRC17:03
*** VW has joined #craton17:04
sigmavirusfarid: is that a priority?17:05
sigmavirusdid vidyo die for everyone else?17:06
sigmavirusor just me?17:06
faridsigmavirus: it's in the milestone, had committed to and just noticed it's unassigned17:06
git-harryyup17:06
faridyeah died for me too17:06
jimbakeryes, died for me17:06
sigmavirusfarid: I'll take it then17:06
jimbakerso maybe vidyo dying is a sign17:06
faridsigmavirus: I just pinged cloudnull about it and he's going to take a glance at it, maybe y'all can chat ?17:07
sulovidyo hasnt worked for me for last 30 mins17:07
jimbakeri cannot rejoin17:07
faridsince he (tmk) hasn't worked with craton in the past but is available to help this week17:07
faridyeah can't rejoin either17:07
faridwonder if aws is at it again17:07
jimbakergit-harry, sigmavirus, thomasem - let's revisit this question later about resolution17:08
jimbakeri think it needs a spec :)17:08
thomasemmmmkay17:08
thomasemAgreed.17:08
thomasemAlso, Vidyo said it didn't want us.17:08
faridlooks like it's working now17:08
*** VW has quit IRC17:08
jimbakerand that hurts :)17:08
thomasemIt does. I feel the rejection.17:08
jimbakerso for those in that call just now, we are just to going keep in on #craton. or just work on our tasks17:09
* sigmavirus is going to shovel his fiancee a path out of the garage17:11
farido/17:11
openstackgerritgit-harry proposed openstack/python-cratonclient master: Add devices-list to support /v1/devices  https://review.openstack.org/43856117:13
suloso is vidyo working for anyone ?17:18
*** Syed__ has joined #craton17:18
*** VW has joined #craton17:34
*** VW has quit IRC17:43
*** VW has joined #craton17:45
openstackgerritgit-harry proposed openstack/python-cratonclient master: Add devices-list to support /v1/devices  https://review.openstack.org/43856118:01
*** VW has quit IRC18:12
thomasemsigmavirus: mmm shoveling snow. How fun.18:13
* thomasem has zero experience doing this.18:14
sigmavirusI come from NJ where noreasters are common18:18
sigmavirusSo Wisconsin snow is not that bad18:18
sigmavirusWent from 1-2 blizzards a year to snowing at sometimes once a week18:18
sigmavirusThe worst part here is the temperatures that drop below -10F18:19
thomasemOuch18:26
thomasemI can only complain about the other extremes here. :P18:28
*** VW has joined #craton18:33
sigmavirushttps://blog.cloudflare.com/quantifying-the-impact-of-cloudbleed/18:37
sigmavirusOh we get temps over 90 but that's like a few days a year18:37
sigmavirusIt's pretty great18:37
sigmavirusI'll take the extreme cold over the extreme heat18:37
thomasemI have to agree, but I say that having never had to deal with anything under 10F18:37
*** VW has quit IRC18:38
thomasemBut this getting to 110F during the summer... yeah.18:38
thomasemStep outside and you have a heat stroke.18:38
thomasemAnyone know off the top of their head what's swallowing tracebacks in the CLI when things go wrong? Is it just a flag or something I can flip?18:39
thomasemtracking down problems with nothing but messages is a bit difficult. :P18:39
sigmavirusYeah, that's another thing I need to work on (repeatable --debug flag)18:40
thomasemLol18:40
* thomasem throws it on the pile18:41
thomasemhttps://bugs.launchpad.net/python-cratonclient/+bug/166673418:41
openstackLaunchpad bug 1666734 in Craton's Python Client "Support debug logging for client/CLI" [High,New]18:41
*** VW has joined #craton18:43
*** harlowja has quit IRC18:43
jimbakersigmavirus, yeah, that would be a nice thing to have for sure18:44
jimbaker--debug18:44
*** harlowja has joined #craton18:46
jimbakeras for the specifics in that bug report, that's merely a suggestion on what to do18:46
openstackgerritMerged openstack/craton master: Enable vars resolution in cells and regions  https://review.openstack.org/43969518:50
*** VW_ has joined #craton18:59
thomasemhttps://bugs.launchpad.net/python-cratonclient/+bug/166673419:00
thomasemWhoops, sorry.19:00
openstackLaunchpad bug 1666734 in Craton's Python Client "Support debug logging for client/CLI" [High,New]19:00
*** VW_ has quit IRC19:01
*** VW_ has joined #craton19:01
*** VW has quit IRC19:03
thomasemHmmm... well now the VariableManager needs a resource_class19:04
thomasemWhich leads us back to the implementation jimbaker had before19:05
thomasemsomewhat19:05
thomasemsigmavirus: got a moment for Vidyo?19:06
thomasemWe might want to expose variables in a more controlled manner rather than making them attributes of a resource class.19:14
thomasemvariables = cc.projects.get(args.id).variables.get()... thinking about after that how we'd want to interact with variables.19:16
thomasemvariables.items() is easy, since I can just access self._info19:17
*** VW_ has quit IRC19:19
*** VW has joined #craton19:20
cloudnulljimbaker: thomasem: antonym: sigmavirus: do any of you have a craton install I can point to for some of this client work ?19:22
cloudnullor should i kick my own?19:22
cloudnullIE is there a dev deploy I can beat on ?19:22
thomasemcloudnull: I would kick my own. You can pull the craton repo and run it locally: https://gist.github.com/jimbaker/e74a7b98bc60519033fd455a22163ad219:22
thomasemif you have Docker19:23
thomasemit's pretty straightforward19:23
thomasemThere's also this little thing for setting up creds for use with a test deployment https://gist.github.com/jimbaker/9089e381af38d9db6bc4af59baed6d47#gistcomment-200836119:24
thomasemcloudnull: ^^19:24
cloudnulldo we have a db dump that I can use or should i run the "generate_fake_data.py" script ?19:25
thomasemcloudnull: generate_fake_data.py works decent enough for development. Might be useful to use the script that zz_pwnall1337 and sulo were using.19:26
thomasemWith the inventory data19:26
cloudnullwhere's that ?19:26
thomasemBut I'm unfamiliar with that set up at the moment.19:26
cloudnullok19:26
thomasemhopefully one of them can point you to it.19:26
cloudnullkk19:26
thomasemBut, to start, generate_fake_data.py should get you goign.19:26
sigmavirusthomasem: sorry, did not hear your ping19:26
thomasemgoing*19:27
sigmavirusI can vidyo19:27
thomasemsigmavirus: All good!19:27
thomasemOkay, excellent. Craton-recordable?19:27
sigmavirusomw19:28
antonymcloudnull: yeah, i have one you can poke on19:29
*** VW has quit IRC19:31
*** VW has joined #craton19:32
*** VW has quit IRC19:37
*** VW has joined #craton19:37
*** VW has quit IRC19:38
*** VW has joined #craton19:38
faridcloudnull: on importing ansible facts, since craton has a key-value variable feature, have any thoughts on nested properties the ansible hostvars has ? zz_pwnall1337 stopped by to ask and suggest importing all vars as a single key/value pair blob but I don't see that helping when trying to filter across multiple clouds19:42
sigmavirusoh thomasem that's the other thing ^19:43
sigmavirusvariables could be simple key=value19:43
sigmavirusor they could be more complex like key={"subkey": "subvalue"}19:43
sigmavirusso there's so much fun to be had19:43
thomasemYeah... are we doing something more than top-level formatting? :)19:44
thomasem(except JSON, of course)19:44
thomasemOh... right, so I'll have to actually account for that when assembling the dict, huh.19:44
thomasemOh boy!19:45
sigmavirusthomasem: well, as it is currently formatted, it looks kind of awful too19:45
sigmavirusYou could always do some kind of pretty-printing for the value19:45
thomasemThat's true.19:46
cloudnullthomasem: sigmavirus: it's not uncommon to see something like this """{'other': {'stuff': [1, 2, 3, 4, 5, {"blah": 12, "stuff": ["haha12"]}]}, 'things': 'A'}""" coming from ansible facts and user defined variables.19:47
cloudnullespecially if we take from core19:47
cloudnullin long format -- http://cdn.pasteraw.com/4wauhrlm3dj1z713seziozask3h70vu19:49
sigmavirusthomasem: to be clear, for the variable formatter we'll likely also want to rename the table column names19:49
thomasemsigmavirus: what to?19:50
sigmaviruscloudnull: you and I have that problem where we can write syntactically valid JSOn without problem19:50
sigmavirusthomasem: so right now it's "property" and "value" by default19:50
thomasemRight19:50
sigmavirusI'd think "Variable" and "Value" or something would be decent19:50
thomasemAhhh, right.19:50
sigmavirusjust because we can19:50
cloudnullsigmavirus: ++ i wrote it then looked at it and thought maybe i should expand it19:50
thomasemGotcha lol19:50
sigmavirusso just .configure(dict_property="Variable")19:50
thomasemCool19:51
cloudnullfarid: I'm not super familiar with the json table scheme in mysql so im not 100% on it's capabilities.19:51
thomasemI'm assuming we want {"key": Variable("key", {"sub-key": Variable("sub-key", "value")})}?19:51
cloudnullif it can store nested data then great!19:51
cloudnullotherwise i don't know if there's an option other than using a blob19:51
thomasemAnd not {"key": Variable("key", Variable("sub-key", "value"))}19:52
cloudnullpsql, cassandra, mongo, couchdb, etc dont have an issue with this.19:53
cloudnullbeing that we're using sqlalchemy it may be worth taking a look at psql ?19:53
cloudnullare we saying that craton does not work with complex variables at this moment in time?19:54
* cloudnull not trolling, honestly asking19:54
*** VW_ has joined #craton19:55
*** VW_ has quit IRC19:58
*** VW_ has joined #craton19:58
*** VW_ has quit IRC19:58
*** VW_ has joined #craton19:59
*** VW has quit IRC19:59
*** VW_ has quit IRC19:59
*** VW has joined #craton20:00
*** VW has quit IRC20:01
*** VW has joined #craton20:01
jimbakercloudnull, right now this is more of a function of our usage of sqlalchemy_utils.types.json, which is a third party package for sqlalchemy20:02
*** VW has quit IRC20:02
*** openstackgerrit has quit IRC20:03
jimbakerit's support for json is better on postgresql. it could be made better on mysql, especially given mysql 8 when it gets released20:03
*** VW has joined #craton20:03
jimbakerrelational db support for json has steadily been increasing, so that's a good long term trend for us. currently mysql 5.7 does have decent support for json indexing, but mysql 8 does improve that quite a bit20:04
jimbakergetting it closer to postgres20:05
*** harlowja has quit IRC20:08
*** openstackgerrit has joined #craton20:29
openstackgerritIan Cordasco proposed openstack/craton master: Update schema definition for network interfaces port  https://review.openstack.org/43983220:29
* sigmavirus shakes fist at clouds20:30
sigmavirusstop snowing damnit20:31
thomasemWhat'd I do?20:31
thomasemOhhhhhhhh20:31
thomasemYou mean actual clouds.20:31
* sigmavirus thought that was vague enough to elicit entertaining responses20:32
* sigmavirus is happy to have been right20:32
thomasem:P20:34
* thomasem was happy to oblige20:34
thomasemMan, you go so long without writing anything recursive and it's like an atrophied muscle.20:35
thomasemThat took way longer than it should have.20:35
sigmavirusthomasem: yeahhhhhhh, I know what you mean20:35
sigmavirusI haven't made a tree in long enough that I can't remember how to balance them20:36
* sigmavirus wouldn't make it through customs20:36
thomasem... had to restart. All of a sudden my keyboard was on the fritz?20:51
cloudnulljimbaker: so tl;dr no?20:52
openstackgerritsulochan-acharya proposed openstack/craton master: Fake data: Generate child container per host  https://review.openstack.org/43984620:55
*** harlowja has joined #craton21:01
*** harlowja has quit IRC21:01
*** harlowja has joined #craton21:01
openstackgerritsulochan-acharya proposed openstack/craton master: Fake data: Generate child container per host  https://review.openstack.org/43984621:11
*** VW has quit IRC21:26
*** valw has joined #craton21:42
jimbakercloudnull, short answer, yes, it's just json. long answer, we can always improve how we work with json21:42
cloudnullso we do support complex vars?21:43
cloudnullIE http://cdn.pasteraw.com/4wauhrlm3dj1z713seziozask3h70vu21:43
cloudnull or are vars limited to key=value21:45
cloudnullwhere value is a string or int21:45
jimbakervalue is arbitrary json21:47
jimbakercloudnull, the only thing we do is that variables can be thought of as a dictionary of unicode keys mapping to json values21:49
jimbakerthis allows us to do various things, including in the future, with respect to "top level keys"21:50
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703221:50
jimbakersuch as the override model we have, based on ChainMap (and possibly extended, see https://bugs.launchpad.net/craton/+bug/166505021:51
openstackLaunchpad bug 1665050 in craton "Support alternative variable overrides" [Undecided,New]21:51
thomasemerrr... git review is blowing up :(21:54
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703221:54
thomasemthere it goes21:54
*** valw has quit IRC21:54
cloudnull^ that is what i was looking for .21:56
cloudnullseems like now it will support complex vars.21:56
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703221:56
cloudnullassuming that patch works.21:56
* cloudnull has not pulled it yet21:56
cloudnullthanks thomasem :)21:57
faridnice21:57
thomasemcloudnull: Are you referring to my VERY WIP patch? :D21:58
cloudnullyup21:58
thomasemOh, you bet!21:58
thomasemI was fixing up the nested dict handling21:58
cloudnullthat patch has been the question i've been trying to get an answer to.21:58
thomasemOhhhhhhhhh21:58
* cloudnull maybe was not using the right words21:59
thomasemYeah. It's been a bit of a journey getting this to work with the OpenStack client way of doing things. :P21:59
thomasemSo, hoping we can put this one to bed in the next day or so.21:59
thomasemBut, I'll spare you my rants.22:00
thomasemFor now, at least.22:00
thomasem:P22:00
thomasemheyyy https://gist.github.com/thomasem/12cf2a299eb0ebc5cf06f59175555bf422:03
thomasemwinning22:03
thomasemcloudnull: ^^22:04
thomasemIs that what you were wondering22:04
faridnice thomasem , looks solid... will there be a capability to search/filter on thomas.what.on's value?22:05
*** VW has joined #craton22:05
thomasemI do not know, actually. I suspect we'll want to, do not know if that's implemented yet, though.22:06
thomasemfarid: ^^22:06
faridcool I think that's something that we need to figure out22:06
thomasemYeah, I think that'll be important. Would appreciate jimbaker's thoughts22:06
faridsince we'll be importing ansible facts, I think it's useful to be able to query say the list of hosts that have a particular disk manufacturer or things like that22:07
faridsure22:07
thomasemOh, yep!22:07
cloudnull-qq https://github.com/openstack/craton/blob/master/etc/craton-api-conf.sample#L11 are we binding to 8080 as the default port ?22:07
thomasemcloudnull: yep22:08
cloudnullif so swift will not be happy.22:08
cloudnullhttps://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample#L322:08
jimbakerfarid, yes for now; and more so once the var search takes in account resolution22:08
cloudnullis there a non-openstack conflicting port we indend to use ?22:08
thomasemcloudnull: Is this deployed alongside swift or something?22:08
cloudnullyea. i was trying to run in an osa cloud22:09
cloudnullwhich had swift22:09
cloudnull**has22:09
jimbakerfarid, so right now, we can search for an entity if the var is set for that entity22:09
jimbakereg in the gist thomasem posted, i can search for matching projects22:09
thomasemcloudnull: We can configure it however we want, furthermore if you're running in Docker, you can map however you like also.22:09
jimbakerwith https://bugs.launchpad.net/craton/+bug/1661226, which is modestly difficult, but doable, anything under that project could be searched by that project var22:10
openstackLaunchpad bug 1661226 in craton "Filter by variables lacks resolved variables" [Critical,Confirmed] - Assigned to Jim Baker (jimbaker)22:10
cloudnullessentially trying to get it running along side of all of the rest of the infra in a real env22:10
cloudnullsure.22:10
jimbakerfarid, hope that helps!22:10
cloudnulljust curious if we've thought about using a port that does not conflict with other openstack projects.22:10
thomasemcloudnull: Yeah, I mean, I'd change the default. 8080 is a pretty standard default port.22:10
thomasemBy default? Probably not. But, I don't see a problem with doing so.22:10
faridit does thanks jimbaker22:11
cloudnullagreeded. just pointing out that as an openstack project we might want to ensure we're not conflicting with others.22:11
cloudnull8080 may be fairly stock/standard. but its the default for the swift proxt22:12
cloudnull**proxy22:12
antonymprobably should be a port registry for openstack projects heh22:13
cloudnullgetting craton as part of https://docs.openstack.org/liberty/config-reference/content/firewalls-default-ports.html may be a good idea22:13
antonymhah22:13
cloudnullyou're welcome :)22:14
* cloudnull is a helper22:14
thomasemcloudnull: gotcha.22:16
thomasemantonym: lol yep!22:16
cloudnullpretty https://docs.openstack.org/newton/config-reference/firewalls-default-ports.html22:16
cloudnullmore up-to-date that is22:16
thomasemO_O so pretty22:16
thomasem:P22:17
jimbakeryeah, 8080 is one of those things that we assume, really you're going to change it, right? unless you are in docker and completely own your port space22:17
cloudnulladding craton somewhere there would likely be a good thing22:17
cloudnulljimbaker: not really. most folks will deploy with the defaults. like me.22:17
cloudnulland if they add craton to an openstack cloud they'll run into this issue22:18
cloudnullits easy to change22:18
cloudnulljust pointing out the conflict22:18
antonymyeah, same, more collisions with 808022:18
cloudnullthat is an "openstack cloud" as defined by defcore. so swift is present.22:19
cloudnullhad i not had swift i would not be here typing this22:19
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703222:25
jimbakeruh oh, default passwords and all.... :)22:27
jimbakeryes, we can do a better deployment guide!22:27
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703222:27
jimbakerand agreed about adding our port in the openstack registry22:27
cloudnullare there default passwords within the app?22:28
jimbakeryes, 'craton'22:28
cloudnull:\22:28
jimbakerbut only used by docker startup22:28
jimbakercraton itself doesn't know about it22:29
cloudnullok.22:29
jimbakerit's the responsibility of the deployer to do the right thing here when setting up mysql (or db of choice)22:29
cloudnullso the db-sync will use that as a default password ?22:30
jimbakerhttps://github.com/openstack/craton/blob/master/tools/docker_run.sh#L2422:30
cloudnullah , ok . only in the docker run22:30
cloudnullif I run craton in !docker i should not have to worry about that tomfoolery22:30
jimbakercorrect22:31
jimbakerdocker stuff is only for us devs. and possibly helpful as a working guide to deployment for others22:31
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703222:31
thomasemYeah, I still haven't gotten to it, but I intend to write a compose setup and some initial documentation to iterate on for how we think this thing ought to be deployed.22:33
jimbakerright, that's a good longterm plan. something we can discuss with deployers to see what makes most sense22:34
thomasemYeah. I'm really interested in the sort of feedback we're already getting from cloudnull regarding sane defaults for deployment22:35
thomasemAmong other things that we'll likely get as we get some proper run time with this thing.22:36
openstackgerritThomas Maddox proposed openstack/python-cratonclient master: WIP: CLI and client support for get/set/delete of resource vars  https://review.openstack.org/42703222:38
thomasemI stripped out the peripheral refactoring in that change to focus on the issue at hand.22:39
thomasemIt was getting in the way of focusing on the problems the patch is really trying to solve.22:39
thomasemAnywho, I'm burnt for the day. I'll catch y'all tomorrow. Have a lovely evening!22:42
jimbakerthomasem, thanks, i will take a look. do have a good evening, and some relaxation!22:52
cloudnullwhat is this about https://github.com/openstack/craton/blob/master/tools/docker_run.sh#L38-L4623:06
cloudnullis this when keystone is not present ?23:06
antonymi think that's just for demoing stuff from the docs23:08
cloudnullso i should not need that irl23:08
cloudnull?23:08
antonymhttps://github.com/openstack/craton/blob/master/doc/source/docker-install.rst23:08
antonymthis doc references those23:08
antonymyeah, i'd imagine you wouldn't need it for a deployment23:09
cloudnullso the default docker file calls that23:09
cloudnullwas just curious23:09
antonymi guess its to let you immediately play and test23:10
antonymdid they change githubs colors or do i just need to take a breather23:11
cloudnullno they changed it23:11
antonymhah, no blog post or anything23:11
antonymit's like bugging my eyes23:12
cloudnullok i think im online finally in an osa deployment.23:24
cloudnullima write all of this up as a role/playbook23:25
openstackgerritKevin Carter (cloudnull) proposed openstack/craton master: Move craton to a non-conflicting  https://review.openstack.org/43990923:30
openstackgerritKevin Carter (cloudnull) proposed openstack/craton master: Move craton to a non-conflicting port  https://review.openstack.org/43990923:30
cloudnullsorry spam added tag23:30
*** VW has quit IRC23:39
*** jovon has quit IRC23:52

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