/srv/irclogs.ubuntu.com/2017/04/27/#juju.txt

kjackalGood morning Juju world!07:13
afellowHello everyone!07:18
afellowI have question about juju and maas  207:19
afellowis Juju already compatible with maas 2?07:19
afellowI am asking because I have problem bootstrapping maas2 cloud07:19
afellowI get the following error during the process07:19
afellowERROR cmd supercommand.go:458 new environ: Get http://localhost:5240/MAAS/api/1.0/version/: dial tcp 127.0.0.1:5240: getsockopt: connection refused07:19
afellowIt want to use 1.0 API version instead of 2.007:20
afellowI need to add that I use juju 1.2.1 and maas 2.1.307:24
afellowDid anyone had similar problem and solved it?07:25
=== salmankhan1 is now known as salmankhan
=== frankban|afk is now known as frankban
magicaltroutmorning folks10:08
magicaltrouttrying to bootstrap some test nonsense10:08
magicaltroutjuju-wait fails when I try and run the sample bundletester -t cs:bundle/wiki-simple10:09
magicaltrouton the matrix readme10:09
magicaltrout  File "/usr/local/lib/python2.7/dist-packages/juju_wait/__init__.py", line 102, in juju_exe10:09
magicaltrout    if not shutil.which(juju):10:09
magicaltroutAttributeError: 'module' object has no attribute 'which'10:09
magicaltroutanyone got any sane ideas?10:09
SimonKLBmagicaltrout: old python version=10:11
SimonKLBhttps://docs.python.org/3/library/shutil.html#shutil.which10:12
SimonKLB"New in version 3.3."10:12
magicaltroutyeah SimonKLB10:17
magicaltroutbut as I have python 3 installed10:17
magicaltrouthow do I tell juju-wait to use it ?:)10:17
magicaltroutor more to the point, whats the ubuntu way of making python3 the default, 2.7 still seems to be /usr/bin/python10:18
magicaltroutwhich is whats in the shebang10:18
SimonKLBhmm, looks like the latest version has python3 https://git.launchpad.net/juju-wait/tree/juju_wait/__init__.py10:19
SimonKLBperhaps the wait plugin needs an update10:19
magicaltroutoh yeah so it does10:19
SimonKLBmagicaltrout: since it's installed under python2.7 the shebang might not be considered when it's executed10:26
SimonKLBnot sure how the plugins are being run, but if they are not executed standalone then that might be the problem10:26
magicaltroutthanks SimonKLB I fixed that by just changing the shebang in the plugin10:44
magicaltroutbundletester is completely hosed on my xenial install though10:44
magicaltroutbugg@tom-laptop2:~/Projects/charms/layer-gitlab/tests$ juju api-endpoints -e aws1:admin/default10:46
magicaltroutERROR unrecognized command: juju api-endpoints10:46
magicaltroutno idea what its trying to do there but it doesn't like it10:46
magicaltroutsome juju2.0 thing I guess10:52
SimonKLBmagicaltrout: you dont run 2.0?10:59
magicaltrouti do run 2.010:59
magicaltroutthats why i'm confused10:59
magicaltrouti just pip2 installed bundletester10:59
magicaltroutlike all the docs say10:59
SimonKLBhave you tried the charmbox docker container?11:00
magicaltroutbut it doesn't like my juju install, which was apt and now snapd to check11:00
SimonKLBit comes pre-packaged with all the test-stuff11:00
magicaltroutI've not11:00
magicaltrouti'll give it a spin11:00
SimonKLByea do it! i'm using it all the time when building/testing charms, it's very handy11:01
magicaltroutmuch improved it seems SimonKLB11:12
magicaltroutthanks for the hint11:12
SimonKLBgreat np :)11:12
magicaltrouthttps://jujucharms.com/q/gitlab so here's another gripe about the charmstore12:15
magicaltroutI get (kinda) why you'd not want to return gitlab recommended and gitlab non recommended12:16
magicaltroutbut if you have gitlab and gitlab-server12:16
magicaltroutsurely you need to do a wildcard search there by default? people are full on searching blind12:16
magicaltroutwatch last nights video rick_h. Good show, thanks for the demo! :)12:21
rick_hmagicaltrout: awesome12:21
magicaltroutalright13:40
magicaltroutnext testing error cause clearly i'm doing something fully moronic13:40
magicaltroutwhy is bundletester trying to test my tests.yaml?13:40
petevgcory_fu: I think that I've figured out where those timeouts were coming from when running matrix against JaaS. I replaced the asyncio.wait_for calls with simple awaits, and got a traceback: http://paste.ubuntu.com/24466731/13:45
petevgcory_fu: it looks like this is happening when we first try to open the socket connection, before we can get at redirect_info, if there's any present.13:46
petevgcory_fu: I think that a retry might be the most sensible thing to do -- what do you think?13:46
cory_fuInteresting.  So you think the wait_for for the timeout was somehow masking the connection error?13:46
petevgcory_fu: yes. I think that we were creating a future, but not checking the exception status on it.13:47
petevgcory_fu: regardless, I think that we've made python-libjuju much more enthusiastic about raising errors, so I think the reasons for wrapping add_model in a wait_for may have gone away.13:48
cory_fupetevg: We don't have access to any future that wait_for creates.  There doesn't seem to be any way to check for an exception with wait_for13:48
petevgcory_fu: ugh. All the more reason not to use it, I think ...13:48
cory_fupetevg: The wait_for was there to prevent the connection from hanging indefinitely13:49
cory_fuIt seems to be the only way to enforce a timeout13:49
cory_fuI guess we could roll our own wait_for using create_task and asyncio.sleep13:49
petevgcory_fu: I think that we may not need it at all -- we've got higher level timeouts wrapped around matrix in the CI tools, and it looks like the native timeouts work pretty well.13:50
lazyPowermagicaltrout: bugs on charmbox welcome <3 thats my ugly baby :)13:50
cory_fupetevg: Hrm.  I was thinking for other code that uses libjuju13:50
magicaltroutcharmbox is fine lazyPower many thanks13:51
petevgcory_fu: this code was in matrix, anyway :-)13:51
magicaltroutcomapred to trying to run tests on my own machine13:51
cory_fupetevg: Oh, well fine then13:51
cory_fu:)13:51
petevgcory_fu: python-libjujuj provides that monitor class to get around the cases where you aren't going to hear abotu a timeout.13:51
lazyPowermagicaltrout: indeed, and it insulates you from dependency bloat running tests, thats why we created it.13:51
lazyPowerdoing revq on your laptop shouldn't leave you with 800+ dependencies installed.13:51
magicaltrouthehe13:52
magicaltroutso there seems to be a missing document14:03
magicaltroutcause i couldn't find this a few months ago and gave up then14:03
magicaltrouthow do you get stuff into the review queue these days?14:03
magicaltroutactually via the app itself or some other method?14:03
magicaltroutoh yeah, request a review, conundrum solved14:04
magicaltroutStart your review by saying "Thanks", no matter what the outcome of the review is going to be.14:07
magicaltroutIf you recognise somebody you've worked with on IRC, thank them.14:07
magicaltroutlol14:07
magicaltroutI understand why thats written down, but it does make me chuckle14:07
admcleodmagicaltrout: you should totally google 'conundrum etymology'14:08
* magicaltrout did and is thoroughly confused14:10
magicaltrouttime for biscuits14:10
rick_hmagicaltrout: :)14:27
admcleodmagicaltrout: mostly it as because of the pendantic thing that i was amused14:27
magicaltroutneed to test config setting in amulet15:01
magicaltroutcan I look at a file on the unit to check settings?15:01
magicaltroutah sentry file_contents it seems15:04
kjackalpetevg: is there a bundletester flag to disable matrix tests?15:21
petevgkjackal: there isn't. You can not have matrix installed, though, and it will skip it.15:21
kjackalpetevg: I want them but in case I want to exclude them how do i do that?15:21
magicaltrout--dontrunthecrazyshit15:21
kjackalcrazy petevg! Right magicaltrout?15:22
petevgkjackal: best thing to do right now is to temporarily rename the matrix executable. You should file a ticket against bundletester, though, because it's not that hard to add a flag :-)15:22
kjackalpetevg: you said I can do a "pip unsinstall matrix" right?15:23
petevgkjackal: it depends on what you did to install it in the first place.15:24
petevgkjackal: I haven't pushed the pypi package, though, so it's unlikely that pip will work.15:24
petevgkjackal: if you're in cwr-ci, matrix is just part of the image; probably renaming the executable is the way to go.15:24
petevgLocally, I usually just have it installed in a venv, so it's easy to turn on and off :-)15:25
petevgcory_fu, kwmonroe: simple but brutal solution for "matrix is too green", which was caused by us not cleaning up a health check after we hit an internal timeout. I'm just yanking the timeout, because we handle that at a higher level in cwr-ci, anyway: https://github.com/juju-solutions/matrix/pull/12916:43
kwmonroepetevg: bundletester didn't use the -z, so i think what you've done is reasonable.  are there any other callers that i should check (for -z) off the top of your head?16:47
petevgkwmonroe: I don't think that anybody was using "-z". It had a default timeout internally.16:47
petevgkwmronoe: ... and that timeout was basically just there for cwr-ci ... which now has its own timeout wrapped around matrix, anyway, complete with model cleanup.16:48
petevgkwmonroe, cory_fu: The other piece of the puzzle is that I got rid of a major source of hangs by adding that Monitor class to the python-libjuju connection. Matrix should basically never just sit there anymore. (At least, never sit there once it has managed to put its test suite together, which is the part that the timeout covered, anyway.)16:53
kwmonroeawesome petevg!16:54
=== frankban is now known as frankban|afk
=== mup_ is now known as mup
=== zeus is now known as Guest24728
=== mimizone_ is now known as mimizone

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