/srv/irclogs.ubuntu.com/2016/10/26/#juju.txt

=== CyberJacob is now known as zz_CyberJacob
anrahhello! Is there a way to deploy bundle using local repository on Juju 2.006:32
anrahapparentely juju-deployer does not work with Juju 2.006:32
zeestratanrah: Do you mean local bundle, local charms in the bundle or both?06:33
zeestratJuju 2.0 just uses "juju deploy" now for everything06:34
zeestratBoth bundles and charms06:34
anrahboth06:36
anrahi have set JUJU_REPOSITORY env-variable and trying to deploy my bundle06:37
anrahERROR cannot deploy bundle: cannot resolve URL "local:xenial/my-charm-0": unknown schema for charm URL "local:xenial/my-charm-0"06:37
zeestratI haven't used the env-variables a lot, however when I point to local charms in the bundle I use "charm: /dir/to/charm"06:39
zeestratThen when deploying a local bundle, "juju deploy ./name-of-bundle.yaml"06:39
anrahright, I'll try that06:41
anrahAs in 1.25 juju-deployer was way to go after setting JUJU_REPOSITORY env-variable to tell juju where the charms can be found06:41
zeestratGotcha.06:43
kjackal_Good morning Juju world07:06
anrahzeestrat: thanks! that works07:35
zeestratanrah: Glad to hear. I see that there's no example of a bundle using local charms in https://jujucharms.com/docs/stable/charms-bundles so I'll put in a bug.07:37
anrahyep, I don't know whether that local:xenial would be better approach than setting the path directly07:38
=== frankban|afk is now known as frankban
=== Guest59736 is now known as ahasenack
=== ahasenack is now known as Guest33774
=== petevg is now known as petevg_afk
=== Guest33774 is now known as ahasenack
=== ahasenack is now known as Guest66764
=== zz_CyberJacob is now known as CyberJacob
vmorrisgood day all13:40
vmorrisi've got a bunch of maas machines here, and am currently trying to deploy openstack charms to them, but i'm running into a DNS problem (LXD containers will not start also, with similar symptoms)13:46
vmorrishere's a glance error, for example: ERROR glance DBError: (pymysql.err.InternalError) (1130, u"Host 'u33-maas-machine-2.maas' is not allowed to connect to this MySQL server")13:46
vmorriscinder is seeing similar issues... any idea what's going on?13:47
vibolhello ?13:54
vmorrishi13:55
viboli just comming to ask what happen if the juju controller node fail ? ... can we install a new controller and connect to and existing bootstrap node ?13:56
vibolOhh i'm sorry..13:56
vibolThis is not rute to discuss the Juju Problem here ?13:57
vibolrude*13:57
rick_h_vibol: so we suggest you run the controller in HA mode so that you have more than one13:57
rick_h_vibol: there's a new feature in development that's partially implemented in 2.0 and coming in 2.1 that allows migration of a controller13:57
rick_h_vibol: but you still need a controller active to perform the migration13:57
rick_h_vibol: our next step is to allow you to dump your controller in the migration format, so that you could, in theory, import into a fresh controller somewhere like I think you're looking for, but it's not currently available.13:58
rick_h_vibol: there is a backup/restore function that uses a db dump method right now13:58
vibolcorrect me if i'm wrong "juju ensure-ha" is increase availability on bootstrap node only ? not the controller itself ?13:58
rick_h_vibol: so the bootstrap node is just the first node of the controller13:58
rick_h_the API server/database store13:59
rick_h_vibol: enable-ha will add additional api endpoints and replicate the db across the controller nodes13:59
vmorrisrich_h_ I pretty much sorted that problem out from yesterday.. got a new one today :/13:59
rick_h_vmorris: doh!13:59
vmorrishttps://paste.ubuntu.com/23383695/13:59
rick_h_vmorris: heading into the team standup but will look in a sec13:59
vibolthank you @rick_h13:59
vmorristhanks14:00
vibolDid the juju ha function work well on manual environment ?14:01
vmorrisrick_h_: for when you get back .. here's a longer trace14:06
vmorrishttps://paste.ubuntu.com/23383729/14:06
vibolvmorris are u being using juju in a production ?14:07
vmorrisvibol: it's a large test organization14:07
viboldo you deploying with maas ?14:08
vmorrisyes14:08
viboldid you run openstack as well on your testing ?14:09
vmorrisyes, that's my team's primary focus14:10
vibolohh.. ! :)14:10
vibolI'm interest on Ubuntu platform. including maas, juju, ubuntu openstack14:11
vmorrisrick_h_: just some more information: https://paste.ubuntu.com/23383751/14:11
vibolbut it seem i'm low on budget to test and environment.14:11
viboland virtual environt work not really good with that14:11
vmorrisi'm using kvm guests in maas.. it's a chore to setup14:13
vibolI'm sorry vmorris. But did you run both juju and maas on HA environtment ?14:22
vmorrisvibol: no, it's notha14:26
vmorrisnot ha*14:27
rick_h_vmorris: hmm, so this is the charms/relations not playing nice?14:27
vmorrisrich_h_: yes, it seems like the charms are picking up the hostname from the machine their running on, but not being able to resolve this to the DNS server in MAAS14:27
rick_h_vmorris: oic are these in containers or just the root maas nodes?14:27
vmorrisalso, i'm unable to start any LXD containers, for a similar reason i think14:28
vmorristhese are in the root node, i'd put them in containers if i could14:28
rick_h_vmorris: yea, there's a bug in that which is fixed in the upcoming 2.0.1.14:28
rick_h_vmorris: we're looking to get that released this week and I'd be curious if that helps you or not14:28
vmorristhis is juju 2.0.1?14:28
rick_h_vmorris: yes14:29
rick_h_vmorris: we had a container dns issue with 2.0.0 that we quickly updated and will have in the release this week for 2.0.1 that makes me wonder if this is part of that14:29
vmorrisokay rick_h_, i'll watch for it14:30
vmorristhanks :)14:30
rick_h_vmorris: I'm trying to find the issue/fix to see if there's a work around to unblock you here sec14:31
spungeHi guys, is there somebody here that could help me out for a sec? I'm running into a issue with juju bootstrap..14:32
magicaltroutgo spunge go!14:34
spungeim trying to bootstrap juju locally in a lxd container14:34
vmorrisrick_h_: symptoms here https://bugs.launchpad.net/juju-core/+bug/163290914:34
mupBug #1632909: ceilometer-api fails to start on xenial-newton (maas + lxd) <maas-provider> <uosci> <OpenStack AODH Charm:New> <juju:Triaged> <juju-core:Triaged> <ceilometer (Juju Charms Collection):New> <https://launchpad.net/bugs/1632909>14:34
vmorrisbut don't see any work around14:34
spungei'm not using the default lxd bridge14:34
vmorrisah but that's juu 1.25, oops14:34
spungebridge ip is 192.168.122.23014:34
spungeERROR cmd supercommand.go:458 new environ: creating LXD client: Get https://192.168.122.1:8443/1.0: Unable to connect to: 192.168.122.1:844314:35
spungebut juju is setting up a client for 192.168.122.114:35
spungehow do i point it at the correct ip?14:35
spungejuju 2.0.0-xenial-amd6414:35
rick_h_spunge: https://bugs.launchpad.net/juju/+bug/163474414:36
mupBug #1634744:  bootstrap fails with LXD provider when not using lxdbr0 <bootstrap> <lxd-provider> <juju:Confirmed> <https://launchpad.net/bugs/1634744>14:36
magicaltroutthey called him rick_h_ they keeper of the launchpad links.... rick hhhhhhh!14:37
rick_h_vmorris: I think it might be https://bugs.launchpad.net/juju/+bug/161609814:37
mupBug #1616098: Juju 2.0 uses random IP for 'PUBLIC-ADDRESS' with MAAS 2.0 <4010> <cpec> <juju:Fix Committed by dimitern> <https://launchpad.net/bugs/1616098>14:37
spungeDamn, how could i have missed that page :/14:37
spungethanks so much!14:37
rick_h_spunge: np, sorry you're hitting the issue. It's something we need to get working better.14:37
* rick_h_ is an expert in the ways of breaking juju unfortunately :P14:38
rick_h_well, at least in how users create new ways of using things that don't quite work out yet. :)14:38
magicaltroutits the laws of programming isn't it. You write a piece of code that you expect to get used in way X, and the user regardless of knoweledge will always use way Y14:39
magicaltroutits just the rules14:39
rick_h_we're good at following rules!14:40
vibolI though everybody comming for maas and juju because openstack14:41
vmorrisrick_h_: i'm not sure that's the same.. I'm getting the IP addresses in the MAAS DNS set properly, but the openstack charms are passing their /etc/hosts (eg. 127.0.0.1) to the mysql relation14:44
vmorrisguessing here, but mysql then sets the permit for 127.0.0.1, and then denies connection from hostname14:44
deanmanrick_h_: Is this container DNS bug also affecting proxy in some way ?14:56
rick_h_deanman: not that I'm aware of.14:56
deanmankwmonroe: Unfortunately skipping --development didn't solve my proxy problem. I did see the proper agent version though in the logs compared to previous runs. :-(14:58
deanmanI simply cannot understand why it would not be able to check/download image and boot a new LXD http://paste.ubuntu.com/23382970/15:02
kjackal_kwmonroe: cory_fu I am almost done for today. Let me know what is there to turn green for tomorrow15:16
kwmonroekjackal_: i think we'll be in good shape after the ganglia/rsyslog bits15:18
kwmonroebut i'll let you know at my eod what's left15:18
kwmonroedeanman: bummer!!  is there anything in /var/log/lxd/lxd.log that's related to image fetching?  also, can you curl this from you host machine?  https://streams.canonical.com/juju/images/releases/streams/v1/index.json15:20
deanmankwmonroe: guest machine running bootstrap command or inside the controller running on LXD ?15:21
deanmankwmonroe: cause it seems first time guest is able to dowload image but subsequent image retrieval operation is iniated inside the LXD controller.15:22
deanmanthis is from guest VM ->http://pastebin.com/vRJ0kX1s and this is from inside LXD controller http://pastebin.com/yuhH2wdr15:27
deanmankwmonroe: this is lxd.log from guest VM -> http://pastebin.com/F1BeksJY and this is the one from inside LXD controller http://pastebin.com/nRF08QXn15:32
kwmonroeok deanman, so we're back to super weird.  i have no idea why there would be any difference between a controller container and a charm container :/15:34
kwmonroedeanman: try this:  juju deploy -m controller cs:xenial/ubuntu15:34
kwmonroemaybe ^^ that'll tell us if it's a model issue, or a generic unit-spawning issue15:35
deanmansorry please disregard last logs, it was from a fresh environment where i was trying a different proxy but haven't issued yet a deploy15:35
deanmankwmonroe: this is lxd.log from LXD controller http://pastebin.com/Jx9jfU8f15:40
deanmanlet me remove unit deploy and re-run it with your command15:40
deanmansame behavior, it will try download images at least 3 times and then decides to say state is down and will print this "machine-0: 15:44:04 ERROR juju.provisioner cannot start instance for machine "2": image not imported!"15:44
deanmanbrb15:49
bdxhttps://www.elastic.co/v516:35
bdxits all GA now16:35
rick_h_bdx: <3 congrats!16:35
bdxhaha16:35
bdxlazyPower: ^16:35
bdxthey were chasing you guys16:36
rick_h_bdx: hah, sorry thuoght this was your thing you were working on16:36
bdxits about to be ... devs over here are abitious to have the new v5 elasticsearch16:38
bdxgeehh, ambitious*16:39
marcoceppibdx: we've been re-writing the elasticsearch charm, I can share our initial stuff later this week if you want to help get some testing in16:41
bdxmarcoceppi: that would be awesome16:42
vmorrisbdx: it's about time ... been waiting on that release for awhile :D16:55
=== frankban is now known as frankban|afk
=== Guest66764 is now known as ahasenack
=== ahasenack is now known as Guest21645
lazyPowerbdx ;) yuuuuuup17:41
kwmonroehey cory_fu, i'm almost done pushing temp xenial bits, but have a make test error on rsyslog:  http://paste.ubuntu.com/23384895/18:51
kwmonroecory_fu: can i mock open differently to get this passing?  here's where the trouble starts:  http://bazaar.launchpad.net/~bigdata-dev/charms/xenial/rsyslog/trunk/view/head:/unit_tests/test_hooks.py#L14318:51
cory_fukwmonroe: Hrm.  So, in Python3, f.read() should return a byte string (b'').  I don't see where the test is defining what is returned by the mock open's result's read function, though18:54
cory_fukwmonroe: Try changing the mock_open line to mock_open(read_data=b'foo')18:55
kwmonroecory_fu: you are the wind beneath my wings.  that worked.. rev'd bundle is on the way.18:57
lucacomehi, is there a function that watches for new file attached to a charm?20:22
lazyPowerlucacome - in terms of juju resources?20:25
lucacomeyes20:25
lazyPowerlucacome - if so, when you `juju attach` a new resource, it runs upgrade-charm and config-changed20:26
lazyPowerjust like you issued `juju upgrade-charm`20:26
vmorristrying to deploy a charm into lxd where the model has apt-*-proxy and *-proxy set to a custom squid host (ipv4), and seeing something odd...20:27
lazyPowerlucacome if you're looking for examples, we've got some extensive work in the kubernetes charms to handle resource management.20:27
lucacomeuh...didn't know that20:27
lazyPowerlucacome - np, let me fish up a link 1 sec20:28
lucacomesure20:28
lucacomethanks20:28
lazyPowerlucacome - https://github.com/juju-solutions/kubernetes/blob/master-node-split/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py#L4120:28
vmorrisjuju.downloader is trying to connect to the api server over ipv6 (this would be okay) but it's going out and hitting my proxy server (not okay)20:29
lazyPowerlucacome - and we handle new resources here: https://github.com/juju-solutions/kubernetes/blob/master-node-split/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py#L2020:29
lazyPowervmorris - you'll likely need to set the NO_PROXY model config20:29
vmorrisoh hmm20:30
lucacomethanks lazyPower20:30
lazyPowerlucacome - no problem :) Happy to help. Let me know how you get along with resources. My team was an early adopter of the feature so we've got your back if you hit a snag. find either myself or mbruzek  or ping the list if we aren't around.20:31
mbruzeklucacome: hello.20:32
lucacomehello20:33
mbruzeklucacome: The TL;DR on resources is we always want the charm to work. So if for some reason the resource is not available the charm should install the apt package (if available) or use status-set to inform the Juju operator what resource is needed.20:34
vmorrislazyPower: i'm afraid that didn't work, would i need to redeploy the machine to pick up the model config change?20:34
lazyPowervmorris i think thats the case, but i'm not certain.20:34
lazyPowerkwmonroe - do you know if proxy model-config options are changed post-deployment if they are then registered on the machine?20:34
mbruzekvmorris: lazyPower: I do think the model-config options are set at deploy time.20:35
lazyPowermbruzek - i thought that was the case. Thanks for confirming.20:36
vmorrisokay, i added a machine following the change to the model config, having set no-proxy for jujucharms..com but this doesn't seem to help20:37
vmorrishttps://paste.ubuntu.com/23385323/20:38
vmorristhe ipv6 address that it's trying to connect to is the lxd host machine, but i'm seeing the http request hit my external proxy server :/20:38
vmorrisi do have the apt-*-proxy and http|https|ftp-proxy options set to that external squid20:40
vmorrisactually, the ipv6 address that the LXD container is trying to connect to get to the API server is the v6 address on one of the juju-controller interfaces, so i guess that's fine... and here's the real strange thing - that address was already automatically in the no-proxy environment variable on the container, so why's it hitting my external squid proxy?20:50
lucacomeI don't understand why the @when_not_installed is triggered 5 times20:55
lucacomeI think I'm missing something...20:56
lucacomesorry @when_not('packet.installed')20:56
vmorrisso maybe i'm seeing a regression of this issue https://bugs.launchpad.net/juju/+bug/155620721:02
mupBug #1556207: 1.25.4: Units attempt to go through the proxy to download charm from state server <landscape> <juju:Fix Released by dooferlad> <juju-core:Fix Released by dooferlad> <juju-core 1.25:Fix Released by dooferlad> <https://launchpad.net/bugs/1556207>21:02
lazyPowerlucacome - a pastebin or link to your code would be helpful21:11
lazyPowerlucacome - that + the output of a "charms.reactive get_states" being run on that unit21:12
vmorriscould it be that juju-downloader worker isn't honoring the no_proxy environment variable when it's ipv6?21:16
cholcombeseems my wheelhouse has some prereq's that need to get installed before pip3 will work.  Can I though those in the apt dependencies and be assured they'll install before wheelhouse?21:50
cholcombei'm going to skip wheelhouse and just use the apt layer instead21:57
lutostagcholcombe: yes the apt dependencies are force installed before the wheelhouse is installed22:37
cholcombelutostag, nice22:38
=== CyberJacob is now known as zz_CyberJacob

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