/srv/irclogs.ubuntu.com/2016/08/16/#juju.txt

=== menn0 is now known as menn0-afk
=== natefinch-afk is now known as natefinch
bjfhow do i set the http/https proxy in juju 2.0 ?02:36
=== menn0-afk is now known as menn0
=== zz_CyberJacob is now known as CyberJacob
=== rogpeppe is now known as rogpeppe1
=== frankban|afk is now known as frankban
stokachubjf: juju set-model-config http_proxy=<url> https_proxy=<url>12:22
stokachuhttps://jujucharms.com/docs/master/models-config12:22
lazyPowermiken - I cannot speak authoritatively, but it appears that either its missing its own network config, or something is already bound to the ip/port its trying to bind to13:17
bjfstokachu, yeah, thanks, found it13:38
shruthimaHello Team , We are developing a new charm for IBM Installation Manager on Z platform. As already an IM charm exist in charm store as ibm-im, What would be the charm name for IM on Z?14:34
rick_h_shruthima: does the Z charm need to do things a lot differently such that it can't be made to work on Z?14:34
rick_h_shruthima: ideally, we'd have the single ibm-im charm and if it was deployed on Z would do the right things to work there, if on power do those things, etc. So the end user can't use it incorrectly and there's no confusion between "which similarly named thing do I use?"14:35
shruthimaminor changes but similarly we have 3 more products we have do on Z which requires more changes , so we want to know what name can be given to Z platform charms if charm exist already14:37
rick_h_shruthima: you can add a -z to the name or the like. I'd just like to encourage that things work as widely as possible without potentially causing confusion to users.14:38
shruthimais ibm-im-z can be fine ?14:38
mbruzekActually rick_h_ we talked about this at the meeting with the IBM developers15:00
lazyPowerThat seems counter intuitive to have a charm per platform15:00
lazyPoweri would think your original suggestion was more correct rick_h_, where there is a lsb_release check at the very beginning, and you can adjust based on states from there15:01
mbruzekrick_h_: The ecosystems team talked about this at length and think that they can add z-support on the series boundary but need to support all platforms in a new charm.15:01
lazyPower@when('z-series'); @when_not('ibm-im.installed')  -- #perform z-series steps     @when('ppc64le'); @when_not('ibm-im.installed')  -- # perform ppc steps15:01
rick_h_mbruzek: lazyPower k, I'll leave you all to work it out with folks.15:02
mbruzekshruthima:   to avoid juju user confusion the charm should have the same name.15:02
lazyPowerthanks rick_h_  <315:02
shruthimaok thanku mbruzek ,lazypower and rick_h_15:04
=== natefinch is now known as natefinch-afk
=== natefinch-afk is now known as natefinch
Prabakaranhi mbruzek/ kwmonroe , Good Morning.. I have pushed ibm spectrum symphony to charm store under cs:~ibmcharmers stream but it is not reflecting under charm store. Could you please check and advise on this?16:36
mbruzekwhat revision number?16:37
Prabakarancs:~ibmcharmers/ibm-spectrum-symphony-storage-016:37
Prabakaranthis is supported on both trusty and xenial16:37
bdxicey: ping16:43
rick_h_Prabakaran: did you publish the revision?16:44
Prabakaranyes i did16:45
Prabakarani remember16:45
rick_h_Prabakaran: and granted everyone permissions?16:45
Prabakaranyes i did16:46
fuzszJust like to share the difficulties of using Google Cloud. It seems to like to change the external IPs from underneath the user and without the IPs to the controller machine your bonked until you go and update them.17:02
fuzszOnly way I found this was using the --debug flag on `juju list-models`17:02
fuzszAnd checking that the IPs match the local configuration controllers.yaml17:02
fuzszI've noticed juju automatically tags each machine with metadata specific to juju, so can't it just auto-negotiate the IP change by using the tags to find the controller?17:04
rick_h_fuzsz: interesting, can you file a bug on that please?17:05
fuzszSure. But the github repo doesn't seem to have bugs anymore?17:06
fuzszI've also found a workaround. Google App Engine allows setting a static ip address to a machine.17:07
rick_h_fuzsz: right, https://bugs.launchpad.net/juju-core is the bugs17:07
fuzszAny reason why launchpad can't sync with GitHub API to allow for bugs on the juju repository? Just an opinion; I'm not a fan of launchpad.17:08
Prabakaranthanks rick_h_ .. i tried giving charm grant ... i am able to see my charms now17:11
PrabakaranHello Team, I have 3 charms let’s say A, B and X. Out of which A, B are principle charms and X is a subordinate charm. Here X is a subordinate charm to charm A. So I will be adding relation between A and X like17:21
PrabakaranJuju deploy add-relation A X17:21
PrabakaranIn this scenario if X wants perform some operation on charm B17:21
Prabakaranhow would I relate these charms? Whether I need to add relation like17:21
Prabakaran1, juju add-relation A B   2, Juju add-relation X B ( Subordinate charm may sit into principle charm B, if so , I don’t want this to happen) Could someone explain me this scenario in detail?17:22
Prabakaranhi cory_fu17:33
Prabakarancan you please help me on the question?17:33
cory_fuPrabakaran: Hello17:33
PrabakaranHello Team, I have 3 charms let’s say A, B and X. Out of which A, B are principle charms and X is a subordinate charm. Here X is a subordinate charm to charm A. So I will be adding relation between A and X like17:33
PrabakaranJuju deploy add-relation A X17:34
PrabakaranIn this scenario if X wants perform some operation on charm B17:34
Prabakaranhow would I relate these charms? Whether I need to add relation like17:34
Prabakaran1, juju add-relation A B   2, Juju add-relation X B ( Subordinate charm may sit into principle charm B, if so , I don’t want this to happen) Could someone explain me this scenario in detail?17:34
cory_fuPrabakaran: Ok, sure.  It's basically what you suspected; you add a relation from X to B, and it should be a normal relation (i.e., not scope: conntainer) and then it will work just fine17:35
Prabakarancan u give me some hint on metadata.yaml file on these?17:36
cory_fuPrabakaran: As an example, you can look at https://jujucharms.com/apache-hadoop-plugin/  It is subordinate (the hadoop-plugin relation) and has non-subordinate relations as well (namenode, resourcemanager)17:37
cory_fuThe metadata.yaml file, of course, is at https://api.jujucharms.com/charmstore/v5/apache-hadoop-plugin/archive/metadata.yaml17:37
Prabakarank i will refer this.. I tried all these i was getting some issue.. I suspect it is becused of the provide /requires in the metadata.yaml file only. can u help me with the requires/provides section of metadata.yaml on this scenario for A, B and X.17:41
Arjunhi17:42
=== Arjun is now known as Guest30800
cory_fuPrabakaran: Ah, yes.  provides / requires for subordinates is confusing.  The principle charm should provide the scope:container relation and the subordinate should require the scope:container relation.  For the non-subordinate relation (between B and X), which side provides and which requires doesn't matter as much, so should just be whatever makes the most sense.  If X is using some functionality that B gives, then B would provide and X would17:44
cory_furequire.  But X could also provide something for B to require if that makes more sense for your specific use-case.17:44
Prabakarank let me send u pastebin link can u correct if i am wrong in this scenario?17:46
cory_fuIn the case of the apache-hadoop-plugin, the NameNode, for example, provides DFS services to the plugin, so on the plugin all the relations are requires, but it could be that the subordinate relation was requires (has to be) and the other relations could be provides17:46
cory_fuSure17:46
=== redelmann_ is now known as redelmann
Prabakaranhi cory_fu , below are the metadata.yaml files can you please correct me if I am wrong? I will correct it now only. Here I am using mysql-charm and mysql-root interface. X – Subordinate Charm - http://pastebin.ubuntu.com/23062310/ A – Principle Charm - http://pastebin.ubuntu.com/23062312/ B (mysql) - Principle Charm - http://pastebin.ubuntu.com/23062316/17:55
Prabakarancorrect me on the metadata.yaml file of X charm and A charm17:56
cory_fuPrabakaran: Ok, just remove "scope: container" from the mysql block in the X (i.e., delete line 14)17:56
cory_fuThat should be all you need to do17:57
Prabakarank cory_fu .. i did changes.. i am deployin now i wil let you know how it goes18:00
cory_fuOk18:00
bdxcharmers: I seem to be at an impasse with my reactive consul/consul-agent charms, I'm so close I feel .... would someone mind taking a look at consul/consul-agent for me?18:02
cory_fubdx: Sure thing18:02
cory_fubdx: link?18:03
bdxcory_fu: https://github.com/jamesbeedy/layer-consul-base, https://github.com/jamesbeedy/charm-consul-agent, https://github.com/jamesbeedy/charm-consul18:03
bdxcory_fu: http://paste.ubuntu.com/23062337/18:04
bdxcory_fu: what appears to be happening, is my 'consul.connected' state doesn't seem to be getting recognized by the vault charm -> https://api.jujucharms.com/charmstore/v5/~chris.macnaughton/trusty/vault-0/archive/reactive/vault.py18:05
bdxsuch that vault never writes out the config.hcl .... I've been messing around with the consul-agent container relation .... taking it in and out of container scope, but I don't think thats what my problem is18:06
bdxthe built charms are at https://jujucharms.com/u/jamesbeedy/consul/0, https://jujucharms.com/u/jamesbeedy/consul-agent/4, https://jujucharms.com/u/jamesbeedy/vault/418:10
cory_fubdx: The interface layer that's registered for consul-agent on interfaces.juju.solutions is https://github.com/ChrisMacNaughton/juju-interface-consul and that has an empty provides.py18:13
cory_fuI don't know if that's causing your problem (shouldn't, unless you're rebuilding the vault charm), but it's certainly an issue18:15
bdxoh ... I am rebuilding the vault charm18:15
bdxoooo18:15
Prabakarancory_fu: I am able to add relation it is working fine but i am not able to perform any operation on the mysql database by Subordinate charm X18:15
cory_fuThen that's your issue18:15
bdxcory_fu: you are the man!18:15
cory_fubdx: :)18:15
cory_fuPrabakaran: What do you mean by "perform an operation"?  Do you mean using the relation interface, or do you mean that mysql itself is giving you errors?  Can I see a copy of the errors?18:16
bdxcory_fu: I wonder why that ended up getting commented out lol?18:16
bdxicey:^?18:16
cory_fubdx: No idea.  Definitely looks wrong18:17
bdxgood grief18:17
Prabakarani will be running database quries on mysql charm using subordinate charms18:17
cory_fuPrabakaran: Ok, so the queries are failing?  That sounds like an issue with the reactive code, not the relations18:18
Prabakaranit is working on principle charm mode18:19
Prabakarani will give u my sample code... it is very simple and it wil not take much time .. can u please check and tel me is there any issue .. i can correct it now only18:20
cory_fuSure18:20
bleepbloopAny ideas why on juju 2.0 beta12 after rebooting my state machines I am getting `health ping failed: connection is shut down` and no output from juju status?18:22
cory_fuPrabakaran: Are you trying to access the same database from both the principle and the subordinate?  I think each relation to the mysql charm gives you a separate database, username, password, etc.  You might need to use the mysql-shared interface instead.  Or, if you really want the subordinate to act on behalf of the principle, then the DB info can be explicitly passed from the principle to the subordinate over their shared (scope:container)18:22
cory_furelation18:22
cory_fubleepbloop: It sounds like the juju services aren't coming back up, but I have not heard of that being an issue.18:24
cory_fubleepbloop: Beta 15 is out now, so you could possibly try that.  Otherwise, you might be better off asking in #juju-dev18:25
cory_fuUnless one of the core devs is on here and can chime in18:25
bleepbloop@cory_fu: Okay, thanks. I was considering upgrading to juju beta 15 but I was a bit concerned about doing it when things were broken18:26
bleepbloopI'll ask in juju-dev and see if they have a comment18:27
Prabakarancory_fu: I am performing database operation on subordinate charm side only. below are the code files can you please correct me if I am wrong? I will correct it now only. Here I am using mysql-charm and mysql-root interface.18:39
PrabakaranSubordinate Charm  https://code.launchpad.net/~prabacha/charms/trusty/sampledatabase/trunk Principle Charm - https://code.launchpad.net/~prabacha/charms/trusty/sampleprin/trunk Mysql database principle charm: https://code.launchpad.net/~prabacha/charms/trusty/mysql/trunk18:39
cory_fuPrabakaran: If you are only performing database operations in the subordinate, why does the principle need a relation to mysql at all?18:41
Prabakarancorrect18:42
Prabakarani think i can remove that part18:42
Prabakarani can add relation between mysql and sampledatabase (subordinate) charm18:43
Prabakaranif so, any changes in the metadata.yaml file18:43
=== zerick_ is now known as zerick
PrabakaranLet me give u what are the juju  commands i ran..18:46
cory_fuPrabakaran: Just remove the mysql block from the requires section18:46
PrabakaranJuju deploy mysql18:50
Prabakaranjuju deploy sampledatabase18:50
Prabakaranjuju deploy sampleprin18:50
Prabakaranjuju add-relation sampledatabase sampleprin (As per the code It should show status as “waiting for mysql relation”)18:50
Prabakaranjuju add-relation mysql sampledatabase18:50
Prabakaranthese are the deployment command i ran18:50
Prabakaranhere mysql and sampleprin are principle charms18:51
Prabakaranand sampledatabase is a subordinate18:51
PrabakaranPost deployment sampledatabase subordinate charm doesnt perform any database operation on mysql charm cory_fu18:53
Prabakarancory_fu: do you want me to remove the mysql block from the requires section?18:54
cory_fuPrabakaran: It shouldn't really matter, but it just confuses things if the principle isn't going to interact with mysql anyway18:55
cory_fuI don't see anything that looks wrong with the subordinate charm code, though.  I'm deploying it now18:56
Prabakarank let me know if it goes fine for you18:58
Prabakarancory_fu:18:58
cory_fuPrabakaran: Ok, I got the ACCESS DENIED error when it tries to do the GRANT.19:06
cory_fuPrabakaran: Did you modify the mysql charm?  Why do you have a copy of it in LP instead of deploying it from the store?19:06
Prabakaranyou deploy mysql charm from the link19:06
Prabakaranya19:06
Prabakaranthis is related to mysql-root interface.. i have give pull request for the same that is y keeping local copy instead19:07
cory_fuI see.  Re-testing with your branch now19:08
Prabakarank sure19:08
cory_fuPrabakaran: Ok, with your mysql branch it works.  What is the problem, then?19:12
Prabakaranis it working fine?19:13
Prabakarancory_fu: i am referring my LP links19:13
cory_fuPrabakaran: Yes, they deployed fine and the relations were ok.  I didn't get any charm errors19:13
cory_fuAnd the code in the charms looks fine19:14
Prabakarank r u following any orders of running deployment commands19:14
Prabakarancan you paste all the command that u ran19:14
Prabakaranduring deployments19:14
Prabakaranjuju commands19:15
Prabakarancory_fu:19:15
cory_fuPrabakaran: http://pastebin.ubuntu.com/19:17
Prabakarancory_fu: link is empty19:18
cory_fuPrabakaran: ha.  Sorry about that.  http://pastebin.ubuntu.com/23062540/19:18
Prabakaranwhich version of juju that you are using?19:19
Prabakarancory_fu:19:19
cory_fu1.2519:19
Prabakaran1.2519:20
Prabakarani am using 2.019:20
cory_fuOk, let me try it in that19:20
Prabakarani am tried in 2.0-beta15-xenial-ppc64el19:21
Prabakarancory_fu: exactly19:21
Prabakarancory_fu: It is time for me to sleep ... can you please let me know the status on juju 2.0 deployment ? If it goes fine send me the all details with deployment command to this email prabacha@in.ibm.com.19:37
cory_fuPrabakaran: Ok, just finished deploying on 2.0-beta15 and it worked fine.  I don't have access to Power machines, though.19:37
Prabakaran:)19:38
cory_fuPrabakaran: The deployment commands were basically the same: http://pastebin.ubuntu.com/23062578/19:38
Prabakaranthank you so much cory_fu i wil also try the same19:38
cory_fuOk.  Have a good night!19:38
Prabakaranthanks againg cory_fu for your patience19:39
cory_fuNo problem19:39
mikenlazyPower: Thanks for the reply... actually it was just https://bugs.launchpad.net/bugs/161348920:23
mupBug #1613489: juju service names limited to 66 characters <pyjuju:Invalid> <https://launchpad.net/bugs/1613489>20:23
=== mup_ is now known as mup
cory_fuIs there a way to attach a resource from a URL so that I don't have to download it locally only to re-upload it to the controller?20:48
cory_fuIt's a rather large file on S3 and I'm deploying to AWS20:48
jrwrencory_fu: not that I know of, but doing the attach from an ec2 instance should make that reasonably fast.20:50
mayurisapreHow can I add-unit of a service from another running charm of a service?20:50
mayurisapreIf I have a relation between these 2 services20:50
cory_fujrwren: Hrm.  But that would require setting up and configuring Juju 2 on the instance.  Though I suppose that shouldn't be too hard with charmbox20:52
cory_fumayurisapre: Applications can't add or remove units on their own.  You'd have to grant them access to the Juju API by giving them the auth token, and that's not recommended20:53
jrwrencory_fu: copy .local/share/juju to a new ec2 instance?20:53
cory_fujrwren: Isn't there a share command to send credentials?20:54
jrwrencory_fu: not in 2.0 beta14, but things are moving quickly. maybe it does now.20:54
cory_fuHrm.  I thought that was something that had been around for a while20:54
cory_fujrwren: I'm thinking of add-user and register.  Doesn't that provide access pretty easily?20:58
=== natefinch is now known as natefinch-afk
cholcombeis there a guide to what is supposed to or allowed to be in the layers.yaml file?21:07
cholcombes/layers/layer/g21:07
=== wolverin_ is now known as wolverineav
cory_fucholcombe: The basic layer README covers pretty much everything, I think: https://github.com/juju-solutions/layer-basic/blob/master/README.md21:10
cholcombecory_fu, thanks :)21:10
cory_fuHrm, no, I'm wrong.  It's missing some21:11
cory_fuThis has more: https://github.com/juju/charm-tools/blob/master/doc/source/build.md#layeryaml21:11
cory_fuWe need to consolidate that21:11
cory_fuLooks like that was started, but needs a bit more work: https://jujucharms.com/docs/devel/reference-layer-yaml21:12
cholcombecory_fu, i see.  yeah charm build was telling me to add a repo field to my layer.yaml but i didn't know what it wanted in that field21:14
cory_fucholcombe: The message telling you to add it should give you an example.  It just wants the link to the repo for the layer, so that `charm pull-source` knows what to fetch.21:15
cholcombecory_fu, all i saw was this: build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.21:16
cholcombeso repo: url: blah21:16
cory_fucholcombe: Hrm.  Was your layer not a bzr or git repository, or perhaps it hadn't been pushed yet?21:17
cholcombeyeah it was  a git repo that i hadn't pushed yet21:17
cory_fuAh, I see21:17
cory_fuWell, anyway, it's not required, just strongly suggested, thus why it's yellow21:17
cholcombei added it :)21:18
cholcombecory_fu, question about the apt layer if you've used it.  i added 2 sources to the layer.yaml options: apt: packages: install_sources.  It only seems to set the first one and skips the second21:53
cholcombei can paste my layer.yaml21:53
cory_fucholcombe: install_sources is actually a config option, since it might be changed by the user at deploy time22:03
cory_fucholcombe: It's documented pretty well in the README, I think: https://git.launchpad.net/layer-apt/tree/README.md22:05
magicaltroutlazyPower: i've double booked you again =/22:06
magicaltroutffs22:06
lazyPowermagicaltrout - i'm off tomorrow and was coming in for the meeting anyway22:06
cory_fuSo, you'd want to override the default for install_sources in config.yaml, but set the apt: packages: in layer.yaml22:06
lazyPowerlets cancel and reschedule22:06
cholcombecory_fu, i'll mess around with it some more22:06
magicaltroutfair enough i was gonna suggest later in the day22:06
magicaltroutbut that works22:06
lazyPowermagicaltrout - hows friday? you busy mid-day friday?22:06
cholcombecory_fu, i see22:06
lazyPower(mid-day utc)22:06
magicaltroutfriday is good, can you do 3pm BST or is that too early?22:07
* lazyPower googles 3pm BST22:07
lazyPoweryou bet, thats 9am for me22:08
magicaltroutcool shoot for then, the west coasters are still fetching coffee at that time22:09
lazyPowermagicaltrout - moved, thanks for following up :)22:09
lazyPowerwe'll eventually make this happen22:09
lazyPowerlike all things :P22:09
magicaltroutyeah sorry about that, this is what happens when you book meetings with a blind m an22:09
lazyPowerwell, i'm glad you're recovering well, i see you've adapted to the TTD workflow pretty well22:09
lazyPowers/pretty well/quickly/22:10
magicaltrouthehe22:10
magicaltroutwe'll see, got worse today when they took the contacts out, but then is supposed to imrpove  quicker from now on22:10
magicaltroutso by friday i might actually be able to see a screen ;)22:11
magicaltrouti have my JPL slack zoomed at 180% currently to read it ;)22:11

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