Wednesday, 2017-04-05

*** VW has joined #craton00:08
*** VW has quit IRC01:25
*** VW_ has joined #craton01:25
*** VW_ has quit IRC01:26
*** VW has joined #craton01:26
*** VW has quit IRC09:31
*** VW has joined #craton09:32
*** VW has quit IRC11:58
*** VW has joined #craton11:59
*** VW has quit IRC12:47
*** VW has joined #craton12:47
-openstackstatus- NOTICE: The Gerrit service on http://review.openstack.org is being restarted to address hung remote replication tasks, and should return to an operable state momentarily12:50
*** VW_ has joined #craton12:50
*** VW has quit IRC12:52
*** VW_ has quit IRC13:26
*** VW has joined #craton13:26
*** VW has quit IRC14:02
*** VW has joined #craton14:29
*** openstackgerrit has joined #craton14:31
openstackgerritMichael Porras proposed openstack/python-cratonclient master: Add fields selector to <resource> show and list  https://review.openstack.org/45193214:31
jimbakeranonymike, thanks, i'm going to take a look at that patch15:06
anonymikejimbaker: Thank you!15:07
jimbakeranonymike, looks like some pretty easy fixes in the tox output, http://logs.openstack.org/32/451932/2/check/gate-python-cratonclient-python27-ubuntu-xenial/97523df/testr_results.html.gz15:19
jimbakerfixes to be done15:19
anonymikeyeah, that's what I've been working on :/ but I think the main functionality is good15:19
jimbakeranonymike, what is the syntax for specifying a specific variable to be included?15:27
jimbakercraton host-list --fields=id,name works15:27
jimbakerwas trying stuff like # craton host-list --fields=id,name,var:cell_capabilities15:27
jimbakeror will that be another patch?15:28
anonymikei thought we were holding off on that15:28
jimbakeranonymike, ahh, ok15:28
anonymikeyeah :/ was the other json path stuff figured out?15:28
jimbakerso let's do that as a separate patch then15:28
jimbakermakes sense to separate to me15:28
jimbakeranonymike, one thing: i suggest you add a note in your commit message on usage15:29
jimbakerexamples15:29
jimbakercan be a short example of what would go in the docs as well15:29
anonymikejimbaker: great idea15:29
jimbakeri also like how this works $ craton --format=json host-list --fields=id,name,variables15:31
anonymikeyeah the json response is really slick15:34
anonymikealso the double fields flag works --fields=name --fields=id,variables15:35
anonymikeargparse ++15:35
jimbakeryeah, argparse is pretty awesome. almost always you can make it do what you want with little fuss15:36
jimbakeri think the one thing it could really improve upon is built-in support for shell completion15:36
jimbakersurely someone has written that package for python...15:36
jimbakerwhile we are at it, better man page integration :)15:37
*** VW_ has joined #craton16:01
*** VW_ has quit IRC16:03
*** VW_ has joined #craton16:03
*** VW has quit IRC16:05
*** zz_pwnall1337 is now known as pwnall133716:14
pwnall1337jimbaker:  i pulled craton master16:14
pwnall1337my db reset script is failing now16:14
pwnall1337ERROR 1364 (HY000) at line 1: Field 'variable_association_id' doesn't have a default value16:14
pwnall1337https://gist.github.com/pwnall1337/9a532fb224d2fbe881948cb0a80a664916:15
pwnall1337not sure what changed16:15
faridanonymike: you ran into that at all ? ^16:19
anonymikelooking16:20
anonymikepretty sure I didn't change anything there16:21
pwnall1337i ran the reset script cleaned the db then unintalled/reinstalled craton and then ran it again but the default data fails16:22
pwnall1337the creation of project/users16:22
jimbakerpwnall1337, are you using dbsync bootstrap, plus the rest api for creation of projects/users?16:25
jimbakeryou do not want to use mysql directly at all in craton16:26
pwnall1337i guess things changed16:28
pwnall1337my script is a month old16:28
pwnall1337was the getting started guide updated?16:29
anonymikeyes16:29
anonymikebut nothing substantial on the back end was changed16:29
anonymikeat least not by me16:29
jimbakeranonymike, pwnall1337 saw the latest version of the alembic migration now enforcing this constraint16:30
jimbakerit is for good :)16:30
jimbakerotherwise inscrutable errors16:30
jimbakerand to be clear, one can use mysql directly in a pinch. but with this constraint added, we now enforce what the models have been assuming16:31
jimbaker(the inscrutability occurs when sqlalchemy models diverge from the underlying data - something i might talk about in the forthcoming osic talk i'm doing on sqlalchemy)16:33
jimbakerhttps://github.com/openstack/craton/commit/555d0c885692200b6ab3dbb3adf780784e38918316:33
*** VW_ has quit IRC16:40
*** VW has joined #craton16:41
anonymikepwnall1337: Im still working on getting some tests to pass but if you'd like to demo the ability to request specific fields for host-list you can run this version of the cratonclient https://review.openstack.org/#/c/451932/16:46
anonymikeOr I can since I have it running lol just not sure how it'd fit into the demo17:08
pwnall1337sounds good17:10
pwnall1337eating lunch atm17:10
pwnall1337bb in 2017:10
pwnall1337i need to get my db bootstrap working17:11
pwnall1337k im back17:17
pwnall1337i can't bootstrap anonymike17:22
pwnall1337https://gist.github.com/pwnall1337/72a97c7fa5fcd508705e3973f09505cc17:22
pwnall1337ahh17:23
pwnall1337it's formatting issue pasting from docs17:23
anonymikepwnall1337: did you get it?17:47
pwnall1337yes17:47
pwnall1337can you check pm17:47
*** pwnall1337 is now known as zz_pwnall133717:54
*** VW has quit IRC17:59
*** VW has joined #craton18:00
*** harlowja has quit IRC18:33
*** VW has quit IRC19:02
*** VW has joined #craton19:03
*** harlowja has joined #craton19:58
*** VW has quit IRC20:41
*** VW has joined #craton20:41
*** VW_ has joined #craton21:18
*** VW has quit IRC21:18
*** harlowja has quit IRC22:05
*** VW_ has quit IRC22:06
*** harlowja has joined #craton23:25

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