/srv/irclogs.ubuntu.com/2018/04/19/#juju.txt

aperez900907Hello, any work in progress to integrate the new lxd cluster features in the juju orchestration system?  for example deploy charms to the cluster lxd 3.0 with abstraction on the host target and autoscale?  thanks01:17
thumperaperez900907: yes work is in progress01:23
thumpernot autoscale though01:23
aperez900907cool, any detail if will be support on xenial release o the 18.04 ?01:25
thumperthere will be a two phase support...01:25
thumperphase one, which we are hoping to get into 2.4 of Juju, is using existing lxd provider, but if you are on a machine that is part of the cluster, it just uses the cluster01:26
thumperphase two is supporting remote clusters and dealing with machines as "zones"01:26
aperez900907cool01:26
aperez900907any chance to support autoscale in the future given limits metrics?01:28
aperez900907xenial will be support in the new phases??01:29
=== mwhudson is now known as Guest60520
=== Guest60520 is now known as mwhudson_
thumperyes xenial will be supported01:57
thumperunlikely that juju itself will autoscale, but that doesn't mean someone won't write something on top01:57
kelvinliu_veebers:  is out citest running on py3 or py2?02:32
veeberskelvinli_: py2, p3 should pretty much be supported but I don't think that's been verified yet02:33
kelvinliu_i saw py3 in makefile for testing jujupy, but seems assess*.py are all py2?02:34
veeberskelvinli_: aye, all assess are py2, there is some new stuff that is py3, but I can't recall off the top of my head.02:34
veeberskelvinli_: from memory jujupy/* is all py compatable. There was a test that was py3 that required that, but at this stage the assess scripts are assumed to be py202:35
veebersthat being said I don't believe that would be a big job to get it over the line to all be py3 compat (not that that helps you right now :-))02:35
kelvinliu_veebers: acceptancetests/jujupy/workloads.py breaks on py3.02:38
kelvinliu_veebers: ic, thx. I will test it more to see how it goes.02:39
veeberskelvinli_ d'oh, that'll be my fault. That's a recent addition (well, code move around) that I didn't make py3 compat02:39
kelvinliu_veebers: i found an import error at `wait_condition.py`02:40
veeberskelvinli_: as in it's broken regardless of py2/py3?02:43
kelvinliu_veebers: no, it's an incorrect import path02:45
veeberskelvinli_: oh, that's not good. I imagine that's my fault too with a recent change :-\02:45
kelvinliu_veebers: would you mind to have quick hangout?02:45
veeberskelvinli_: sure thing, lets use the standup one02:46
kelvinliu_yup cool02:46
stubadmcleod_: That would be https://bugs.launchpad.net/juju-core/+bug/1557769 and https://github.com/juju/docs/issues/1409 , which will never be fixed with the old API. The new Juju 2 network stuff will always give you IP addresses (network-get, egress and ingress addresses on relation data, etc.)03:18
mupBug #1557769: private-address returns name, not ip <canonical-is> <manual-provider> <network> <Charm Helpers:In Progress by stub> <juju:Fix Released> <juju-core:Invalid> <juju-core 1.25:Won't Fix> <PostgreSQL Charm:Fix Released by stub> <Telegraf Charm:Triaged> <cassandra (Juju Charms03:18
mupCollection):Fix Released by stub> <https://launchpad.net/bugs/1557769>03:18
stubWell, it could be fixed in charm helpers (FSVO fixed) if someone approved that old MP and landed it in the git repo. But all charms need to be updated with newer networking anyway, to support cross model relations.03:19
stubI think the only valid use of using the private-address now is in a peer relation, and that is probably lazyness on my part.03:20
stubcory_fu, wallyworld : I found pulling the necessary addresses from the relation easier in practice than using network-get, especially converting an old RelationBase implementation to an Endpoint (which was really easy, and much nicer)03:23
wallyworldstub: fair enough. ostensibly, network-get info should be the same as what's put into the relation data bag03:25
stub(which is charmhelpers.core.hookenv.ingress_address(...) and charmhelpers.core.hookenv.egress_subnets(...) )03:27
stubYeah, just when writing charms relation-get gives you what you need, while network-get requires a bit more digging to get the bits you need out of the document.03:28
wallyworldstub: that i agree with from what little i've been directly exposed to in that area. i guess network-get is sometimes needed outside of a relation context03:31
stubyeah, I'll need it when updating Cassandra (what IPs it binds too is quite complex for customer related reasons, but will be much much better with network spaces and network-get)03:36
=== mwhudson is now known as Guest18633
=== Guest18633 is now known as mwhudson_
=== mwhudson is now known as Guest42456
=== Guest42456 is now known as mwhudson_
=== frankban|afk is now known as frankban
jammanadart: any chance you could have a look at https://github.com/juju/juju/pull/8625 ?07:20
parlosGood Morning07:25
jammorning07:46
manadartjam: Looking now.07:54
jamthere is also https://github.com/juju/juju/pull/8627 if you're interested in a slightly orthogonal but very related08:13
manadartjam: Doesn't look like there are any new OCI provider changes. Want to jump on that call for a quick chat about this?08:18
jammanadart: sure08:18
jamespagestub: hey - I've pushed vault 0.9.6 up to the candidate channel in the snapstore; 0.10.0 is in edge as well08:50
jamespagestub: that's testing ok on a pure bionic deployment including pgsql 1008:52
wallyworldjam: here's a small PR to update catacomb to use tomb.v2. part of the work to get our deps all uptodate and consistent across all out repos https://github.com/juju/juju/pull/862809:17
jamwallyworld: shouldn't we be passing the func() into tomb.Go() rather than creating a goroutine that only exists until done is closed?09:20
jamwallyworld: specifically, we are closing "done" when our loop exits, but that's exactly the same time that we would be having the loop exit09:22
jamis it just that func() wasn't returning an error?09:22
jameg, func() error vs func() ?09:22
stubjamespage: Cool. Releasing 0.9.6 to stable should be fine. What were you thinking about 0.10.0 ? I'm leaning towards stable too, rather than juggling channels with zero-dot versions09:33
jamespagestub: I think so - there is not a huge diff to 0.10.009:34
* stub investigates running the mojo charm tests with an alternative snapstore channel09:34
jamespagestub: ok so.... the changes we've been landing into the vault charm are appearing under cs:~openstack-charmers-next/vault09:36
jamespagestub: that will include at some time today support for a 'channel' configuration option09:36
jamespagewhich superceedes the hardcoding of 'stable' in layer options09:36
cnfhi jamespage :P09:37
jamespagehey cnf09:37
stuboh, ta. That will be enough for me or tom to tweak our bionic CI tests09:37
cnfhow are things?09:37
jamespagecnf: busy as always09:38
cnfhehe, that's not bad, is it?09:38
jamespagestub: if you can give me a +1 on the 0.9.6 I'll shove that to stable, and then promote 0.10.0 to candidate09:38
jamespagecnf: nope!09:38
stubI haven't come up with a good solution for alternative channels with the snap layer. Maybe a snapchannel config option added standard, and a layer.yaml option to hardcode which snaps that applies to.09:39
stubjamespage: It is working fine for me in devmode09:47
stubjamespage: It looks like there are going to be cli incompatibilities with 0.10. I'm still leaning towards a single stable channel though.09:49
stub(0.9.6 is working fine I mean)10:15
jamespageCynerva, ryebot, cory_fu: https://github.com/juju-solutions/interface-etcd/pull/12 if you have cycles - modelled on something similar in the rabbitmq interface10:30
jamespagestub: ta - promoting to stable10:30
jamespagestub: if you're interested - https://review.openstack.org/#/q/project:openstack/charm-vault is the queue of landed and inflight changes10:41
jammanadart: something I just ran into, bug #1765342. I'm not sure how I feel about it yet.11:26
mupBug #1765342: 2.4 enable-ha complains about no address w/ unstarted machines <enable-ha> <juju:Triaged> <https://launchpad.net/bugs/1765342>11:26
jambut "juju enable-ha && juju enable-ha" complains about not having IP addresses for the machines that are just starting11:26
jamnote that would also happen for "juju enable-ha -n3 && juju enable-ha -n5", and I'm a little concerned if they have controllers that are broken during startup.11:27
jammanadart: also, when you get a chance, https://github.com/juju/juju/pull/862711:30
manadartjam: Ah, yes. It knows the controller is there, but it has no addresses yet. Hmm. Doosie.11:31
wallyworldjam: thanks for review, your idea is much better, my brain just didn't see the simple way. PR updated11:57
jamwallyworld: lgtm with a small caveat, would we want to return the error rather than always returning nil? but either way I think its correct. I think the difference is that we probably wouldn't ahve to call .Kill() if we returned the error from runSafely12:08
jambut I'm happy landing as is, as well.12:08
wallyworldjam: thanks ok, i'll take a look and see if that change works12:08
wallyworldjam: yeah, we do need the Kill() as we need to pass that through to the embedded tomb (otherwise tests hang/timeout). I think I did try a variant of that in my testing and concluded I needed the Kill()12:14
jamwallyworld: are we doing a beta2 or an RC1? I'd like to create a milestone in LP for bugs12:14
jamwallyworld: the calling tomb isn't the embedded tomb, and they aren't linked? k12:15
wallyworldjam: *I* think we'll need another beta12:15
wallyworldwe can always rename the milestone?12:15
jamwallyworld: probably12:15
jamworst case we rename the targets and delete one we never released.12:15
wallyworldi'm hopeful we won't need beta2 but we always seem to12:16
wallyworldthe calling tomb is the embedded tomb, but the tests fail, i can dig in a bit to see why12:17
wallyworldit may be to do with that the catacomb's tomb is not embedded but an attribute of the catacomb struct12:19
wallyworldand so the outer Kill() is needed12:19
elmaciej_Hi! I have simple question I guess - how can I get using reactive current IP of the machine on which I'm deploying - I need to pass it as variable to some command12:51
jamelmaciej_: I don't know the reactive function offhand, the juju command would be "network-get". to get the address to advertise for other applications to use. grepping that from reactive may point you in the right direction.12:56
jamhttps://github.com/juju/juju/pulls/8631 for a fairly straightforward logic fix12:56
jammanadart: externalreality_ ^^12:56
jamballoons: want to give a go/no-go on https://github.com/juju/juju/pulls/8607 (stripping built binaries)12:57
elmaciej_jam: Thanks, I'm looking how to use this from reactive as I'm using docker layer12:57
jamelmaciej_: I'm pretty sure they wrap the function, I just don't know the name of it.12:57
balloonsjam, sure12:59
elmaciej_jam: looks like there is from charmhelpers.contrib.openstack.utils import get_host_ip13:18
stubIs there a .deb of charm-tools for bionic tucked away in a PPA somewhere?13:22
jamhml: it looks like in the container you can do "apt install eatmydata && sudo echo "/usr/lib/*/libeatmydata.so > /etc/ld.so.preload"13:22
jamhml: you can do web searches for 'libeatmydata' and/or 'eatmydata' to see if it helps.13:22
hmljam: ty13:22
balloonsjam, thanks. hml, is worth just tacking that on and kicking off a run to see if it helps without us doing more work. If so, :-)13:35
jammanadart: thanks for catching the %2 thing. It was the *whole point* of that patch, and I just hadn't finished turning the test into its final form and seeing it actually pass.13:38
manadartjam: Cool.13:39
jammanadart: 8627 has the updated test and update math.13:44
manadartjam: Approved it.13:48
jammanadart: thanks13:48
balloonshml, so can your ci-test PR land?13:59
hmlballoons: if i can get an approval  ;-)  - i do want to squash the commits if folks are finished with the viewing14:01
balloonshml, my approval still stands :-) If you've addressed Chris's bugs, I'm still +114:01
balloonss/bugs/comments14:01
hmlballoons: it’s not showing as approved in github - yes, i’ve addressed all comments etc14:01
balloonsohh, maybe I didn't +1. In which case, I'll fix14:02
balloonshml, feel free to merge once you are happy with commits14:07
hmlballoons: thx14:07
balloonshml, also feel free to add to functional tests and push once it lands. Thanks!14:07
hmlballoons: will do14:07
admcleod_stub: so what if i dont have a relation?14:21
cory_fuwallyworld: When you're around, can you please take a look at and test https://github.com/johnsca/juju-relation-mysql/pull/414:39
cory_fuwallyworld: It should resolve that issue you were hitting.14:40
jamballoons: manadart: https://github.com/juju/juju/pull/8632 removes all the 'enable-ha to demote a machine' code.16:17
jamballoons: your email client did the strange formatting again16:18
balloonsjam I know.. I feel stupid for not using the web client. I forgot until just after I sent16:18
balloons2.4 notes are especially terrible. I'm sorry16:18
balloonsI think it's the conversion from gdoc to plain text formatting I enforce in my client16:19
balloonsThe message looks fine in draft..16:19
=== frankban is now known as frankban|afk
elmaciejHi! It's actually stupid question - does anyone installed charm-tools package on windows on pycharm19:30
cory_fuelmaciej: One of the folks from CloudBase might have, but I don't know any of their IRC handles.  Is there a specific issue you're hitting?20:12
elmaciejcory_fu: yes, I cant do pip install charm-tools, it's failing20:12
cory_fuelmaciej: Can you pastebin me the error?20:13
elmaciejcory_fu: I have vm with all setup done on ubuntu but just checking , here is the error https://pastebin.com/swxWvFV920:14
elmaciejcory_fu: same thing worked on ubuntu well. and also under ubuntu on windows it's working fine20:15
elmaciejcory_fu: I'm demoing something tomorrow and just want to "sell" idea that you can develop and build charm on any platform20:18
elmaciejoffcourse juju works on windows so you can deploy , but just checking if "you can develop" too statement is tru20:19
cory_fuelmaciej: To be honest, I'm not sure that pip installing charm-tools would be enough to develop anyway.  You would also want https://github.com/juju/charmstore-client20:24
cory_fuI really don't understand that error from pip, though.  I wish it gave some indication on where the invalid character came from20:25
elmaciejyea, but funny thing is I can do charm-build on my windows using built-in ubuntu subsystem. Just stupid IDE don't wont work as it requires to import packages to compile20:25
elmaciejcory_fu: anyway thanks for you time, if I'll find solution I'll paste it here20:26
cory_fuelmaciej: Thanks!20:32
balloonsthumper, can I get a quick look at https://github.com/juju/juju/pull/8633. I'd like to land it with the failing tests to unblock CI runs (I believe)20:49
balloonsveebers, ^^ 1.25 enablement21:02
veebersballoons: LGTM, looks to be largely bringing the 1.25 makefile up to speed with recent changes.21:06
cory_fuwallyworld: Did you see my request to review https://github.com/johnsca/juju-relation-mysql/pull/4 ?  I tested it with the Ghost charm and it seems ok, but I wanted to make sure it resolves the issue you were hitting without introducing any others22:44
wallyworldcory_fu: hey, sorry i didn't yet, looking23:02
wallyworldthanks so much for fixing23:02
wallyworldwe'll test today asap23:02
cory_fuwallyworld: Thanks.  Unfortunately, I'm well past EOD but if it tests ok, I'll merge it first thing tomorrow.23:07
wallyworldcory_fu: no worries at all. timeones suck. enjoy your evening, will leave a comment in the PR23:07

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