/srv/irclogs.ubuntu.com/2015/12/01/#juju.txt

adam_gwhat is jujud serving on port 17070 and where does it log?01:03
adam_gattempts to create an lxc container in a kvm hang waiting for a response for the lxc rootfs01:03
adam_goh, nvm. there it goes01:11
jaceknis it possible to write a charm that can be deployed as principal but in other deploymetns as subordinate? Or do I need to write two separate charms?10:39
rick_h_jacekn: since you have to change metadata.yaml you have to have two11:00
rick_h_jacekn: I think with the new layers system you could reduce a ton of duplicate code across the two charms though11:01
rick_h_jacekn: but you'd probably end up with two branches, one for the subordinate and one for the non-sub charm so you can merge/back and forth11:01
jaceknrick_h_: hmm that's what I throught. It's a bit annoying because of two codebases to maintain11:02
jaceknthanks11:02
rick_h_jacekn: yes, the new publish workflow allowing you to keep the two charms in branches of the same repo will help some11:02
rick_h_jacekn: but agree, annoying. What service is it if I can ask?11:03
jaceknrick_h_: I'm trying to write a collectd charm that can work as subordinate but also as principal so that it can relate to graphite server11:05
jaceknrick_h_: I want subordiante because it's much more convenient in bigger environments, deploy once and just add relations11:05
rick_h_jacekn: gotcha11:06
sparkieg`jacekn: if all you need is a relation to graphite, then you can keep it as "just" a subordinate?11:09
sparkieg`jacekn: subordinates can relate to more than just the unit their co-deployed on11:10
jaceknsparkieg`: oh I did not know that was possible. So how do I stop that subordinate service from being deployed on the graphite server when I add relation?11:12
sparkieg`eugh, what kinda of hell is going on with my nick11:13
sparkieg`brb11:13
sparkiegeekjacekn: so in metadata.yaml specify the interface without the scope set to container11:15
sparkiegeekjacekn: example: https://api.jujucharms.com/charmstore/v4/trusty/landscape-client-12/archive/metadata.yaml11:15
sparkiegeekthat might be a bit misleading because we only had an experimental server charm that implemented the other side of the relation, but AFAIK it Worked™11:17
jaceknoh wow if that works it would be nice, thanks11:18
jaceknI'll try this method11:18
bloodearnestsparkiegeek, jacekn: that totally works, we do it with logstash-forwarder charm I think11:38
bloodearnestwe also relate subordinates together, which apparently was never supposed to work (I was surprised when it did), but is very useful11:38
jaceknbloodearnest: relating subordinates kind of works but I found it unreliable11:39
bloodearneste.g. conn-check subordinate charm relates to nrpe subordinate charm in order to setup conn-check as a nrpe check11:39
jaceknyeah but if you change config that propagates data throug relations that can cause problems, I saw many stale services where I had to recreate relaions to get things fixed11:40
bloodearnestjacekn, orly? How so? We havn;t seen any problems (although upstream did break it dev release a while back, but the fixed it quick enough)11:40
bloodearnestjacekn, interesing. In the conn-check<->nrpe relation, we just use it for a) we know nrpe is installed/configured and b) grab the nagios_host_context for the nrpe script11:41
jaceknbloodearnest: it was very visible with nrpe-external master, change something in one subordinate that relates to n-e-m and checks are not always updated11:41
bloodearnestit's not really 2 way relation11:41
bloodearnestjacekn, interesting11:42
jaceknbloodearnest: so if it works for you great, maybe you don't trigger conditions that cause problems11:43
bloodearnestreactive question: I have a test_requirments.txt file in my later, which I use in tox to run install deps for my tests. But charm build does not like that I have this file, says it should be in a base layer11:44
bloodearnests/later/layer/11:44
bloodearnestis there somewhere else it should be?11:45
bloodearnestI don't really want to add test deps to wheelhouse.txt?11:45
marcoceppijacekn: that's how the current nrpe charms work, etc12:10
jaceknmarcoceppi: yes I'm just saying that it's unreliable, on multiple occasions things got stale or hooks were not triggered for me12:12
marcoceppijacekn: reactive framework should help with that12:13
bloodearnestreactive tactics question: how do I specify a tactic to use? I'm trying to use the wheelhouse tactic from the latest charm-tools release, but I seem to be using copy tactic, afaics13:08
bloodearnests/reactive/build13:11
bloodearnestactually, I am totatally not sure which tactic I'm using, but no wheelhouse dir is being built, so I assume non wheelhouse13:23
lazypowerhmm13:31
lazypowerbloodearnest : lets follow up with cory_fu when he comes in. I haven't used the wheelhouse tactic yet13:31
lazypowerbut i know he put some work into that last week13:32
bloodearnestlazypower, it looks like it should auto-detect the tactic from the files present?13:32
lazypowerbloodearnest: indeed - there are also tactic overrides you can specify13:33
lazypowerbut i'm not sure what the expected behavior is with wheelhousing deps. it sounded like it was automagic13:34
bloodearnestlazypower, ah! I did an upgrade, but charm-tools 1.9.3 is kept back for some reason. Manually installing...13:35
lazypowerah that'll od it13:36
lazypower*do13:36
bloodearnestlazypower, now we're cooking on gas13:38
lazypowerbam!13:38
cory_fubloodearnest: Did the update fix the "should be in a base layer" issue with test_requirements.txt?  You should be able to have that alongside wheelhouse.txt14:16
bloodearnestcory_fu, I think so, yes14:26
cory_fuOk, good14:35
gnuoyjamespage, do you have any feelings about https://code.launchpad.net/~gnuoy/charms/trusty/openvswitch-odl/tox/+merge/27912614:36
gnuoybeisner, ^14:36
jamespagegnuoy, that will do unit tests and lint by default14:39
beisnergnuoy, so the test runner didn't recognize that make target name as a unit test, because it disregards make target name and searches for one that looks like the unit test instead.14:46
beisnerit is that way because make target names sometimes vary across charms, though we have now normalized at least the os-charms14:47
PrabakaranHi mbruzek, This is regarding Platform Symphony Readme.md file, as per the recent comment received from you suggesting "Readme.md file should telll the juju user Juju users that they have to pay for the platform symphony software before they can download it”15:24
PrabakaranSo I have mentioned in the README.md file “For details on Platform Symphony usage and its benefits please visit [Product Page.] [product-page]  For information on purchasing, please visit IBM Fix Central][fixcentral]. To acquire and download Platform Symphony, login to fixcentral as an entitled user. If the user doesn’t have entitlement, they won't be able to see fixes in fixcentral.”15:24
PrabakaranIs it suffices to go or should I mention more details on this?15:25
mbruzekHello Prabakaran.  I have an IBM account and tried to follow the steps in the README.  When I attempted to download Platform Symphony I was presented with an error message15:26
mbruzekPrabakaran: so my account was not "enabled" to download the software, which if I were a user would be frustrating and I don't know how to solve that problem.15:27
mbruzekPrabakaran: I got the error message: "No applicable IBM support agreement found for one or more of the products you selected."15:27
mbruzekI don't know how to get an agreement or resolve that download error15:28
mbruzekonly by reading the readme.15:28
PrabakaranMatt, if user don't have entitlement, they won't be able to see fixes in fixcentral for the updates so anyone who wants to try this out has to already be a paying symphony customer15:28
Prabakaran if they are a paid symphony customer, they should be able to see the fp on fixcentral15:29
Prabakaran So I have mentioned in the README.md file “For details on Platform Symphony usage and its benefits please visit [Product Page.] [product-page]  For information on purchasing, please visit IBM Fix Central][fixcentral]. To acquire and download Platform Symphony, login to fixcentral as an entitled user. If the user doesn’t have entitlement, they won't be able to see fixes in fixcentral.15:30
PrabakaranIs it suffices to go?15:31
mbruzekPrabakaran: But I have a user ID on fix central so I assumed that I could download that software, I could not and there was no clear path for me to get that software.  I don't think the current readme was sufficient15:31
mbruzekPrabakaran: Someone using Juju and interested in this Platform Symphony would need clear instructions on how to get it.15:32
mbruzekPrabakaran: my point is *I* was not able to figure it out and I don't think others will be able to.15:33
Prabakarank then i will include more information on how to get entitlement to download these fixpacks when users is getting error while downloading fp.15:34
Prabakarani will include these information in readme with required links15:35
mbruzekPrabakaran: I would mention this earlier near the top, so the reader has a chance to understand what is required here.  REading from top down it was not clear.15:35
mbruzekPrabakaran: the rendered README is here: https://jujucharms.com/u/ibmcharmers/ibm-platform-symphony15:36
mbruzekPrabakaran: most of the charms either have the software included or they download the software for the user.  It should be clear that this one is a little bit different and requires more set up.15:37
mbruzekPrabakaran: it was not accurate that a user will need to create an "apt repository" because the software needs to be hosted on a HTTP server such as apache.15:39
PrabakaranStill i have not pushed my readme changes to trunk branch to clarify with you i was asking wherther it is suffices to go...I will mention more detail on getting entitlement with the link as discussed15:41
Prabakarannow i will be removing the apache config part as i am implementing juju action on this.15:42
mbruzeka juju action to download the software?15:42
Prabakaranya15:43
lazypowerIt seems like that should be charm config, not an action15:43
lazypowerconsider teh scenario15:43
mbruzekPrabakaran: How will an action prevent the need for an http server?15:43
lazypoweryou've deployed the service, and you get a message in juju status that you have to now `juju action do ibm-platform-symphony/0 download-software`15:44
lazypowerwhat's this doing? why isn't the charm doing this for me automatically? I've input all the requested configuration, the rest should 'just work' (tm)15:44
mbruzekPrabakaran: I am not clear on the change to an action.15:44
lazypowermbruzek: i agree, there are unresolved technical questions, and workflow resons that is not a good path forward.15:45
PrabakaranI was referring SFTP implemention using download action to the install packages from an SFTP server that can be setup in your network.  "juju action do <unit name> download username=<sftp user> password=<sftp password> packagedir=<full path to repository directory> host=<sftp host name>"15:49
Prabakaranso i will be changing readme also accordingly15:50
mbruzekPrabakaran: An action is a one time thing, and is not traditionally used to install the software.15:50
mbruzekPrabakaran: My understanding is the user would still need to host the Platform Symphony software *somewhere* after they purchased and downloaded it.15:51
mbruzekPrabakaran: and they would still need details like that in the charm.15:51
mbruzekhow to set up sftp server15:52
mbruzekPrabakaran: I would keep that information in the configuration so the charm could be deployed from both the GUI and the command line.  Currently the GUI does not provide a way to run actions on a charm.15:53
PrabakaranK ...i have one more question also... set –e was used as per your advise using “|| true” but unfortunately though I was getting non-existant error so in some places I was forced to used set +e. Is there any alternative way to alternative methods in order to resolved this non-existant error?15:59
mbruzekPrabakaran: the charm used "set +e" in the majority of the code, defeating the best practice for bash scripts.  I would isolate the error commands down a little more and only use "|| true" where absolutely necessary.  Check the commands for options to "force" or return without error (silent perhaps), but I understand some will not have the option.  If you can't isolate those commands use if, then, else to prevent the command from being called.  If [ f16:04
mbruzekPrabakaran: this is a very common pattern in the charms.  The trick to writing good idempotent charms is to figure out what causes the error and use appropriate code blocks to avoid these errors/problem.16:05
PrabakaranCan anyone help me how to deploy openjdk layer charm available in the link https://github.com/juju-solutions/layer-openjdk as i am not able to find the deployment steps in the README.md file.16:17
PrabakaranHi kwmonroe16:17
Prabakaranhow to deploy openjdk layer charm available in the link https://github.com/juju-solutions/layer-openjdk as i am not able to find the deployment steps in the README.md file.16:18
lazypowerPrabakaran: that's a layer, and is not necessarily deployable by itself16:18
lazypowerPrabakaran: that's intended to be a runtime layer, as in a lower layer in a layered charm. You would include it in a layers.yaml file in your charm layer and subscribe to the events raised by the openjdk-layer16:18
lazypowerPrabakaran: There's been a lot of info published about this recently, let me fetch you some links16:19
lazypowerhttps://jujucharms.com/docs/stable/authors-charm-building16:19
lazypowerhttps://insights.ubuntu.com/2015/10/29/now-youre-charming-with-layers/16:20
lazypowerhttp://blog.dasroot.net/2015-charming-2-point-oh.html16:21
lazypowerPrabakaran ^16:21
lazypowerall three are excellent reads on the subject16:21
PrabakaranThanks for the links lazypower .. i have already tried to deploy this openjdk using charm build command16:22
Prabakarani was not able to check the openjdk service up and running16:22
lazypowerPrabakaran: well its not a service, its just installing the JVM/JRE16:23
Prabakaranwondering wherther i followed correct steps while deploying16:23
lazypowerPrabakaran: this isn't fully ready for release yet i dont think. there's noi Readme in the layer repository16:23
lazypoweri know this is being worked on by folks over at IBM, WildFly, and a couple others to provide a java abstraction layer16:23
lazypowergiving folks the ability to mix/match pick/choose their componentry when charming and target a JVM16:24
lazypowerkwmonroe is currently out of office, but should be returning later today16:24
PrabakaranI am working on IBM Java SDK for charming with layers. For implementation i referred OpenJDK layer, i want to deploy and check IBM Java layer charm is working or not. So for my understanding i want to test how openjdk works. Could pls help me on this?...16:31
mbruzekPrabakaran: Do you get a jvm when you deploy the openjdk charm after building it?16:33
mbruzekPrabakaran: it may not be *running* but is it on the system somewhere?16:33
PrabakaranAfter deployment in the container i was able to see openjdk was up and running but when sshd into the container java -version command is not working16:36
mbruzekPrabakaran: Perhaps java is not set up for the user.  Search for the java binary file16:37
Prabakarank16:40
roadmrheya folks! I'm playing with the leadership feature and hooks. Is there a way to force a leader change without destroying the currrent leader unit?16:43
roadmrI don't care which unit ends up being leader, just want a new one to be elected16:43
rick_h_fwereade: ^ any idea there please?16:43
fwereaderoadmr, you could ssh in and stop the unit that's currently leader (`sudo stop jujud-unit-foo-123`); wait for failover; and start it again?16:47
fwereaderoadmr, you can see when that's happened with `juju run --service foo is-leader`16:48
fwereaderoadmr, let me know if that helps16:49
roadmrfwereade: sure thing, trying it right now16:50
roadmrfwereade: so it mostly works with one exception: I wanted to test the current leader getting the leader-elected hook so, so it can remove some files that should only exist on the leader16:54
roadmrfwereade: if I stop the agent and restart it, the former leader comes back thinking it's still leader (I mean, is-leader says False, which is correct, but it never got the leader-changed event so my hook which manages the files never fired)16:55
=== sg is now known as Guest56867
fwereaderoadmr, maybe I misunderstand: shouldn't you do that on the leader-settings-changed hook? getting that should indicate that you're definitely not leader16:56
roadmrfwereade: maybe; I'm just learning how/when these hooks fire :) so you're saying only the leader will get leader-elected?16:57
fwereaderoadmr, exactly16:57
fwereaderoadmr, https://jujucharms.com/docs/1.25/authors-charm-leadership might be helpful16:57
roadmrfwereade: right, I probably misread that to  mean that all units would get leader-elected and should call is-leader accordingly to see if they are or not16:58
roadmrfwereade: so in my scenario, when the former leader rejoins, it should get leader-settings-changed? are events queued for unresponsive units?16:59
fwereaderoadmr, yeah, leader-settings-changed will be one of the first hooks that executes17:00
roadmrfwereade: great, that should do it then! ok, mangling my charm, give me a couple of mins...17:00
fwereaderoadmr, FWIW, if you're interested: all the queueing actually happens on the unit agent -- when it wakes up it asks the state server how the world should look, and then decides what hooks need to run to bring your unit up to date17:01
roadmrfwereade: that sounds nicer than a queue of events in the state server17:02
fwereaderoadmr, so if a counterpart changes relation settings 10x while you were down, you'd just see a single change when you woke up17:02
fwereaderoadmr, yeah, exactly17:02
roadmrhaha, sounds like me slamming "juju set blah" :)17:02
geethaHi, I am trying to use HAProxy as reverseproxy for my charm, but my charm is using SSL and will automatically redirect to https, when I try to access my charm through HAProxy, its giving me HTTPS connection error.17:03
beisnerjamespage, gnuoy - i can't file a bug against https://bugs.launchpad.net/charms/+source/openvswitch-odl/+filebug -- probably due to ingestion/namespace thing.17:10
beisnerjamespage, gnuoy - openvswitch-odl test is failing with:  http://paste.ubuntu.com/13602264/17:10
beisnerjamespage, gnuoy - added as a card in place of a bug for now.17:12
gnuoybeisner, I've seen that bug before17:13
gnuoymaybe it was in another charm17:13
beisnergnuoy, indeed, tcp:172.17.113.167:6633 tcp:172.17.113.167:6633 != tcp:172.17.113.167:663317:15
beisneri've not dug into it, just wanted to raise a bug to get it on the radar.  not sure if it's a test bug or a charm bug yet.17:16
mbruzekgeetha: It should be possible to set up haproxy with https17:16
mbruzekgeetha: I have not done this personally but I know there are configuration options for the ssl_key17:17
mbruzekgeetha: I would read up on haproxy and ssl or HTTPS for more information such as:  https://www.digitalocean.com/community/tutorials/how-to-implement-ssl-termination-with-haproxy-on-ubuntu-14-0417:19
mbruzekgeetha: If the charm does not do something you need you can branch it, fix the code and submit the improved code to help make the haproxy charm better, but I suspect it does work with https, just needs to be configured properly.17:21
geethambruzek, there is no configuration option for https in HAProxy charm. could you please suggest me how to configure https in HAProxy charm.17:26
mbruzekgeetha: As I said earlier, I have not done this before.  You will have to read up on the charm's readme, a quick glance shows ssl_key and ssl_cert configuration options.17:30
mbruzekgeetha: a Google search shows me another doc http://seanmcgary.com/posts/using-sslhttps-with-haproxy17:33
=== JoshStrobl is now known as JoshStrobl|AFK
roadmrfwereade: it works \o/ using leader-settings-changed was the missing link. On coming back, the former leader correctly updates its files to be just a follower :) Thanks so much for your help!17:48
lazypowergeetha: It sounds like we need to file a bug against eth HAProxy charm17:56
lazypowergeetha: I don't beleive the haproxy charm supports ssl out of the box in its current form17:56
lazypowerah disregard, mbruzek si correct17:58
lazypowerit accepts a base64 encoded certificate / key in the haproxy charm configuration. Which will ssl terminate the proxy frontend.17:58
fwereaderoadmr, excellent, glad to help18:24
adam_gusing the local kvm provider, is it possible to use a locally modified image instead of one fetched from simplestreams?19:26
=== JoshStrobl|AFK is now known as JoshStrobl
rick_h_adam_g: 'local kvm provider'? you mean lxc?19:28
adam_grick_h_, no, i mean the local provider /w 'container: kvm'19:28
rick_h_adam_g: ah ok19:28
rick_h_adam_g: no, it's not built in to do that atm19:29
adam_grick_h_, bummer19:29
rick_h_adam_g: there's plans to use lxd and enable some of that for dev in the future but not here yet19:30
rick_h_adam_g: and tied to lxd vs kvm19:30
adam_gah19:30
lazypowerrick_h_: correct me if i'm wrong, but if you're using MAAS you can specify one of the custom images?21:32
rick_h_lazypower: if you build streams from that image list21:32
lazypowers/you can/cant you specify/21:32
rick_h_lazypower: see https://jujucharms.com/docs/1.24/howto-privatecloud21:33
lazypowerYeah, i thought so. And thats right, gotta write streams for it21:33
* lazypower nods21:33
lazypowerok, cool cool, thanks rick_h_  :)21:33
rick_h_lazypower: np21:33

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