/srv/irclogs.ubuntu.com/2016/11/22/#juju.txt

=== CyberJacob is now known as zz_CyberJacob
=== thumper is now known as thumper-dogwalk
=== thumper-dogwalk is now known as thumper
hallynwhat pkg do i need to fix "_juju_complete_2_0: command not found" ?05:49
stublazyPower, skay_ : charms.reactive supplies an any_file_changed helper that works great here. It would also be quite possible to create a resource layer that sets states based on freshness of resources, similar to leadership.* or config.* states05:53
=== junaid1 is now known as junaidali
viswesnMe using juju 2.0.1-xenial-amd64 version and I am trying to run agent-metadata-url of juju bootstrab commad to set the value but I am getting output to specify the Clouds - http://paste.ubuntu.com/23515660/07:13
viswesnI think I am wrong somewhere;07:13
kjackalGoodmorning Juju World!08:34
=== zz_CyberJacob is now known as CyberJacob
=== markusfluer_ is now known as markusfluer
ionutbalutoiuHello guys! How much storage does one user on charm store have ?10:42
ionutbalutoiuI'm thinking about storage available for Juju resources.10:43
rick_hionutbalutoiu: a bit :) what are you thinking?11:21
ionutbalutoiuWe are writing Juju charms for Windows and have some installers (all have aprox 200MB in size) which I was thinking to upload as Juju resources. I was curious about the available storage.11:22
ionutbalutoiu200MB installers for one charm only*11:23
rick_h200MB would be ok11:31
rick_hionutbalutoiu:11:31
rockHi. I developed a charm which will pass the config data to the relation instead of touching nova.conf directly. Then config data will be catched by subordinatecontext . It will generate config from template in nova.conf. After that juju restart the nova-compute service.12:04
rockFirst time when we deploy our charm with one application name and added the relation to nova-compute , then juju modifying nova.conf and then restarting the nova-compute service three times.12:06
rockII has to restart only once. but it is restarting three times.12:07
rockAfter restarting nova-compute service only it is taking config values. But I was checked  1) service restart time and 2)nova.conf modification time  it was showing like service is restarted before modifying.12:11
rockWhy juju is restarting nova-compute service three times?12:11
=== Richard is now known as Guest50242
Guest50242I am still having problems with openstack0 and a conjureup0 interfaces with the same IP address during and OpenStack Mitika deployment with Juju and conjure-up12:49
Guest50242I had uninstalled openstack and my juju controller and models and reinstalled them.12:50
shruthimahi all, Can anyone please suggest how to create terms iam getting the following error http://paste.ubuntu.com/23516679/12:50
Guest50242I also ran  sudo apt update && sudo apt install conjure-up before re-installing12:50
shruthimahi all, Can anyone please suggest how to create terms iam getting the following error http://paste.ubuntu.com/23516679/13:30
shruthimahi all, Can anyone please suggest how to create terms with charm push-term ,iam getting the following error http://paste.ubuntu.com/23516679/13:35
rick_hmattyw: ^ did that get built into charm? I don't see it in the latest snap?13:52
mattywshruthima, rick_h what version of charmtools are you using? as far as I know it's only supported in the charmtools snap13:54
rick_hmattyw: so just got v2.2 rev 9 of charm13:55
shruthimamattyw: charm-tools 2.1.213:56
mattywrick_h, shruthima I will double check, but last I was aware it was definitely in the latest version of charmtools in the snap - but looks like I'll have to look into it13:57
shruthimamattyw: ok . can we use this link for creating terms for now https://docs.google.com/forms/d/1sOfp0a6KLY9kqnpPeGwHv_YQJv7LEbXH1CAV-xBaMjU/viewform?edit_requested=true14:01
mattywshruthima, yes you can - fill the form out and I'll get it setup - and I'll find out why it isn't in charm tools14:03
mattywshruthima, sorry for the trouble14:04
shruthimamattyw: no worries , thankyou . i have just filled the form how much time does it take to create the term14:05
mattywshruthima, I'll do it now14:07
shruthimamattyw: thank you so much  :)14:08
mattywshruthima, that's been done for you - it's ibm-wlp/114:13
shruthimamattyw: thanks a lot !!14:14
mattywshruthima, no problem, sorry charmtools wasn't working for you - I'm chasing that now14:14
shruthimaoh k14:15
skay_stub: thanks for the comment! I have a snap that I'm attaching as a resource because it's a private one. I know I can publish private snaps in the store, but I'm not sure how I'd provide authentication for a robot-type of account (generate an auth.json to get deployed as a secret? I haven't experimented with that) but attaching a resource is simpler.14:25
stubskay_: I think you would need to embed your own credentials , or at least creds of an account with access to update your snap (security issue)14:51
stubskay_: If you are dealing with snaps, have a look at the snap layer. Although it doesn't handle that use case (because I don't know how to handle it), it could be useful.14:53
stubskay_: (actually, it does support that use case. It allows you to attach snaps as a resource, so exactly what you are trying to do out of the box)14:54
skay_stub: I'm using your snap layer. It's useful. Since I don't want to hit the store, I'm checking for hte existence of the resource first14:54
skay_stub: it's a nice layer14:54
stubskay_: That is what the layer does. It uses the local resource if available, if not falls back to the store. We could add an option to turn off the fallback behaviour if it helps.14:55
skay_stub: turning off the fallback behavior would help. I'm doing it by hand for now. I have an install command that is checking when_not 'snap.installed.mysnap' and then it attempts to get the resource. if the resource isn't found, it returns and sets a maintenance status about waiting for the resource. otherwise it calls snap.install14:56
stubyup. You get nicer status messages that way, I see.14:57
skay_my install hook checks for the 'snap.installed.mysnap' state too14:58
skay_is there a way to get values from the metadata.yaml? right now I have the resource name hardcoded :(14:59
skay_I couldn't find that in the docs, so I don't know if it's available14:59
stubYes, there is a charmhelpers.core.hookenv method that loads the yaml and hands you a dictionary14:59
skay_oh nice. I missed that14:59
skay_doh14:59
petevgcory_fu: uh-oh. I get an error running matrix off of master, post your task rename: http://paste.ubuntu.com/23517167/15:05
petevgdigging into it now ...15:05
petevgcory_fu: weird. I think that it is because test_2.matrix still references pre-rename stuff. I thought that I saw that refactored in the PR ...15:06
cory_fupetevg: Looks like one of the yaml files still has "action" in it15:06
petevgcory_fu: yep. That was it. Did you not refactor test_2.matrix? Did something go wonky w/ the merge?15:07
petevgRegardless, going to push a fix shortly ...15:08
cory_fupetevg: I completely missed that file, sorry.15:08
hackedbellinilazyPower: so, just to inform you... The people here have decided to use taiga.io instead of readmine. Because of that I don't need to install redmine on juju anymore.15:09
petevgNo worries. I totally thought that I had seen the file in your PR.15:09
petevgcory_fu: quick PR for you: https://github.com/juju-solutions/matrix/pull/22 (fixes those test files)15:10
lazyPowerhackedbellini: ah ok. I'm still interested in fixing that at some point. Would you mind terribly linking me to your WIP?15:20
cory_fupetevg: The first one could be shortened to "matrix.tasks.glitch"15:20
cory_fuBut if you prefer the long form, it'll work, too, and I'll go ahead and merge it15:20
petevgcory_fu: I shortened it.15:21
cory_fuMerged15:21
petevgThank you :-)15:21
hackedbellinilazyPower: my WIP as in the changes I've made to the charm to make it work?15:53
hackedbellinilazyPower: what I di was: I changed docker-compose.yml to this:15:56
hackedbellinihttps://www.irccloud.com/pastebin/5l4ANfy3/15:56
hackedbelliniI fixed a the typo on the config where it was "posgres" to "postgres"15:56
hackedbelliniand I deployed in a xenial machine instead of a trusty, by adding the machine first, applying the 'docker' lxc profile and them deploying to it15:57
hackedbelliniah, I also had to build the charm again from the layer using your instructions15:57
petevgbcsaller, cory_fu: I rebased and updated that implicit leadership PR here: https://github.com/juju-solutions/matrix/pull/11/files  I think that I've addressed all the comments (unfortunately, selectors still need to be async, as digging leadership out of FullStatus requires a trip across the websocket; it's a quick trip, at least.)16:02
skay_would it be bad to call systemctl status everytime the status hook is called?16:06
marcoceppiskay_: probably not16:12
cory_fupetevg: What about using model.loop.run_until_complete() to make it synchronous?16:13
cory_fuCould even do that in libjuju and make it look like a property, perhpas16:13
petevgcory_fu: That feels incorrect to me -- if we're making an asynchronous call, we might as well just use the asyncio constructs in their simplest way.16:14
petevgThe only cost is that we don't get to type check the return. We immediately run that return through type checking for the next selector, however, so we still get immediate feedback on whether we did things correctly.16:15
cory_fupetevg: Yeah, that's fair.  I was just thinking that it was only async due to a bug in juju and we intend to make it a property in the future, so that we could maybe fake it for now until the bug is fixed?16:15
cory_fuEither way.  It was just a random thought16:16
petevgcory_fu: Cool. I have a feeling that this isn't the last thing that we'll need to reach out to the websocket for; making the selectors async makes them more flexible, without any really terrible downsides.16:18
cory_fuGood point16:18
lazyPowerhackedbellini: ack, thanks for the rundown.16:38
skay_I posted to suggest @any_resource_changed16:38
skay_it would be handy. meanwhile, is the way to check this using resource_get, if it returns a path, then call any_file_changed16:39
skay_I couldn't make a callable that returns a list of resource_get since that would not be a list of paths, it could be a list of False16:40
skay_or did I misunderstand?16:40
deanmanHi, trying to deploy to a private openstack environement and during bootstrapping procedure i can see that it's trying to reach 192.168.x.x address which is basically the subnet inside OS and not reachable outside. Am i doing something wrong?17:02
mattywrick_h, ping?17:13
rick_hmattyw: pong, otp what's up17:14
mattywrick_h, just following on from earlier, it looks like charm v2.2 (from the snap) does have the push-term command17:15
mattywrick_h, so I don't think there's anything to fix there17:15
rick_hmattyw: k, my question was going to be on the status of what we need for 1.2517:15
mattywrick_h, oooh, that's another question altogether, ping when you're not otp and we can chat17:16
rick_hmattyw: k17:16
hackedbellinilazyPower: thank you for your time! :)17:19
lazyPoweranytime17:25
justicefriesis there a command to move a model between users?19:31
cory_futvansteenburgh: Can you take a quick look at https://github.com/juju/python-libjuju/pull/1819:32
cory_futvansteenburgh: I'm wondering if we should do something similar for the other plan components, like units, machines, etc?19:32
bdxhey whats up guys20:39
bdxI'm getting this -> http://paste.ubuntu.com/23518738/20:39
bdxanytime I try to access my controller20:39
bdxI seem to be able to login  ... but anything past `juju login` returns ^20:39
bdxrick_h: sos20:40
bdxrick_h: what do I do when I get this -> http://paste.ubuntu.com/23518738/20:40
bdxdo I just forget about everything  that ever lived on that controller and start over20:41
rick_hbdx: looking20:41
bdxnot sure why juju is trying to use the 10.20.3.0 network20:41
bdx10.20.3.0/24 is the private ip20:42
rick_hbdx: I think that's juju the controller (api server) trying to contact the mongodb service20:42
bdxprivate address space20:42
bdxahh20:42
rick_hbdx: worth a check to see if mongodb is up and happy20:42
rick_hbdx: that port is the mongodb port20:42
bdxok20:43
bdxrick_h: what is the perferred method of restarting mongo?20:44
rick_hbdx: sudo service juju-db restart I think?20:44
bdxahh, thanks20:44
rick_hbdx: /me goes to dbl check the service name of the juju mongodb20:44
bdxrick_h: looks like that did the trick20:44
bdxok, I've got `juju status` returning successfully20:45
rick_hbdx: k, so that's the error, so the question now is why did mongodb bite the farm and is there something going on there20:45
rick_hbdx: so have to check the mongodb logs, syslog/etc for hints20:45
bdxrick_h: ok, I'll get a bug in about this later today20:46
bdxthanks for the quick rescue20:46
rick_hbdx: k, sorry for the trouble but glad you got back/running/debuggable20:46
rick_hnp, any time20:46
bdxno worries, thank you20:46
marcoceppirick_h bdx follow up, lets not make that error message so cryptic20:48
bdxtotally20:49
rick_hmarcoceppi: +1, will file that one now20:49
bdxmarcoceppi: rick_h: I've been having issues with juju closing ports on me20:49
bdxmarcoceppi: rick_h: its most likely intended, but its becoming an issue20:50
rick_hbdx: closing ports on you in what way? e.g. open-ports get closed later after expose is run?20:51
cory_futvansteenburgh: In libjuju, do you think that wait_for_new should, instead of watching explicitly for "add", watch for any event that indicates the entity is in the model and return it then?  Or is it important to make sure it only ever matches the "add"?20:51
bdxmarcoceppi: rick_h: for example, keystone only exposes port 5000, but I need to open up 35357, so I do that manually in the provider security group rules20:52
tvansteenburghcory_fu: i think there is an important use case for the latter, when you are creating something but don't know what the entity id will be20:52
cory_futvansteenburgh: I ran up against that on run_action.  It never saw an "add" event, and instead just saw a "change" which did add it to the model.  I worked around it by using _wait('action', action_id, None)20:52
cory_futvansteenburgh: True20:52
bdxmarcoceppi, rick_h: after an amount of time, juju will revert any changes I've make to the security group20:52
tvansteenburghcory_fu: yeah, that's why _wait was added20:53
cory_futvansteenburgh: But wait_for_new requires an entity_id, tho20:53
bdxsuch that only the ports specified by the charm can remain open20:53
tvansteenburghcory_fu: but it can be None20:53
rick_hbdx: ah, yes it's a security thing20:53
rick_hbdx: it's making sure things are kept up to the model defined20:54
cory_futvansteenburgh: Hrm.  That's not clear from either the signature nor docstring.20:54
tvansteenburghcory_fu: that's fair20:54
cory_futvansteenburgh: Perhaps it should be entity_id=None and if it's not None, we can watch for either "add" or "create"?20:54
cory_fuOr I could just keep using _wait() and stop complaining20:54
cory_fu:)20:54
bdxrick_h: so I should maintain custom charms for every charm I want a port open on that isn't specified by the charm?20:55
cory_futvansteenburgh: But I'm changing that section anyway, so...20:55
rick_hbdx: hmmm, maybe something like a port-opening subordinate atm?20:55
rick_hbdx: that declares it can open a range and then opening parts of that range when required? maybe via config?20:55
rick_hbdx: I don't recall how fine grained the ranged open-ports stuff works out20:56
bdxrick_h: totally ..... fck20:56
rick_hbdx: ? /me can't process that line20:57
vmorrisbdx, rick_h: https://jujucharms.com/u/caio1982/open-port20:57
tvansteenburghcory_fu: do what you think makes the most sense, i'll comment in the pr if i have a different opinion20:57
bdxvmorris: nice! thx!20:57
cory_fu:)20:57
rick_hvmorris: niiice, gotta love it when you dream it and it's there waiting for you20:58
vmorrisheh20:58
vmorrisi was curious to know myself20:58
* rick_h is always happy when something that doesn't work ootb has at least a chance to work via some method. Flexibility ftw20:58
bdxrick_h, marcoceppi: nothing is going my way today ... -> https://s21.postimg.org/srmeqmkhj/Screen_Shot_2016_11_22_at_1_04_28_PM.png21:03
bdxwas preparing for a manual provider production deploy this week21:03
bdxshot down, simply on the fact that RS doesn't support xenial yet21:04
bdxooooh, I an bootstrap juju 2.0 on trusty huh?21:04
bdx*can21:05
rick_hbdx: :/ ouch21:06
rick_hbdx: the issue is going to be making sure you have a lxd/lxc 2.0+ on trusty and to be honest it's not tested or beat on as well as xenial/lxd21:07
rick_hbdx: so you can go for it, but I'd also make sure to do some pre-lim testing and validating you can put together what you want with the containers on those hosts21:07
bdxrick_h: totally ... so not into doing any of ^ though .... I already know the anwser ... bunch of work towards technical debt21:09
rick_hbdx: /me checks version of lxd in trusty backports21:09
bdxrick_h: I don't need lxd in this21:10
rick_hbdx: ah ok21:10
bdxthis was suppost to be my first prod juju deploy too, it will have a lot of eyes on it21:10
bdxsuppose to *21:10
bdxthinking I should petition to wait it out maybe ..21:11
cory_futvansteenburgh: PR updated21:13
tvansteenburghcory_fu: k21:13
cory_fupetevg, bcsaller: https://github.com/juju-solutions/matrix/pull/21 updated21:15
petevgcory_fu, bcsaller: just a quick heads up: I made a new build of python-libjuju, and pushed it to the wheelhouse in matrix master. Pull to get something that includes both cory_fu and my fixes from today.21:46
cory_fupetevg: Did you update libjuju on matrix master?  Is it anything other than libjuju master?21:47
cory_fuOh, ha21:47
cory_fupetevg: That screws up my PR21:47
cory_fuProbably should have just waited for that PR to land21:47
petevgcory_fu: I had a build checked into the PR that I just merged, so it would have been screwed up anyway. Sorry.21:47
cory_fupetevg: No worries.  I can rebase21:48
petevgCool.21:48
kwmonroehey cory_fu petevg.. does this failure look familiar on NN install? http://paste.ubuntu.com/23519035/  subsequent hook retry works, but it seems to be an agent comm failure, so i'm not sure how/where the charm could handle that if the model didn't allow for hook retry.21:52
petevgkwmonroe: that error is not immediately familiar. If its succeeding on retry, I might have just missed it, though.21:54
cory_fukwmonroe: Wow, yeah.  I have not seen that, nor do I have any idea how to guard against it21:54
kwmonroeok.. beisner almost had me convinced to turn off hook retries.  what a silly thing to suggest ;)21:55
kwmonroeeventual success ftw21:55
cory_fubcsaller: Your comments were noted and addressed in https://github.com/juju-solutions/matrix/pull/2121:56
cory_fupetevg: I rebased away the conflict on the above PR21:57
cory_fupetevg: It still shows libjuju as changed, though, because I did fresh wheelhouse just to make sure it had the PR that tvansteenburgh merged a few minutes ago21:57
petevg@cory_fu: Cool. Merged.21:58
=== CyberJacob is now known as zz_CyberJacob

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