/srv/irclogs.ubuntu.com/2014/04/01/#juju.txt

=== timrc is now known as timrc-afk
=== timrc-afk is now known as timrc
=== timrc is now known as timrc-afk
josehey guys, do you think a dnsmasq charm would be suitable for the charm store?05:16
=== vladk|offline is now known as vladk
davecheneyjose: sure06:01
davecheneybut it sounds like a subordinate06:01
davecheneywell, maybe06:01
davecheneyit could be either06:01
=== CyberJacob|Away is now known as CyberJacob
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== axw is now known as axw-afk
=== axw-afk is now known as axw
=== overm1d is now known as overm1nd
overm1ndhi guys, how I deploy a machine from a juju client on a different architecture (like juju on ARM -> to a amd64)?10:58
=== Overmind is now known as overm1nd
overm1ndhazmat I opened an issue for juju-docean here: https://github.com/kapilt/juju-digitalocean/issues/1711:42
overm1nddon't hate me :P11:42
hazmatoverm1nd, no worries.. so that's a failing of the plugin, easy to address as well.11:43
overm1nd:)11:44
hazmatoverm1nd, interesting though. i didn't bother with arch.. because there is only one arch on docean11:53
hazmatoverm1nd, but it sounds like your running into juju wanting to use the client arch when provisioning?11:53
overm1ndyes11:54
hazmatcool, easy fix.. one moment11:54
overm1ndi 'm using juju from an ubuntu on arm11:54
overm1ndand if I don't use the arch parameter it fails11:55
overm1ndbecause the are no upload tools for my environment of course11:56
hazmatoverm1nd, i pushed a fix to git.. i'm not sure if that's enough though.12:01
hazmatoverm1nd, if it still errors (it will be a different place) please attach the new traceback to the issue12:02
overm1ndgreat, let me check12:04
overm1ndhazmat I updated the issue12:19
=== psivaa is now known as psivaa-lunch
hazmatoverm1nd, yeah.. reproduced12:20
hazmatoverm1nd, new version and test pushed12:23
overm1ndin pip or github?12:24
hazmatoverm1nd, github12:24
overm1ndok12:24
=== timrc-afk is now known as timrc
overm1ndhazmat updated12:49
overm1ndstill some problems but I don-t know if is related to the juju/docean12:49
hazmatoverm1nd, docean occassionally messes up i've noticed.. i've had a stuck instance with them before and had to contact support, some sort of issue with their hypervisor.. they extended credit for it.12:50
hazmatonly happened once in roughly 150 instances launched12:50
hazmatoverm1nd, that looks like the instance is stuck booting.. ie it never comes up before the ssh timeout.12:51
hazmathmm12:51
hazmatactually that's different, pre the ssh check12:51
hazmatthat looks like it never launched12:52
hazmatoverm1nd, contact support its just a bad instance it looks like.. the plugin gives up if the api doesn't get to 100% completion on a start instance action within 3.5 m12:53
bachey benji i saw you held the charmworld 'maintainers field' card for a while.  did you produce anything worth passing along to me as i start it?12:53
overm1ndok hazmat12:54
overm1ndthx12:54
benjibac: no, not really.  I found that the existing "maintainer" field was intended to support a list of maintainers so I spent several hours trying to get that to work, but then I found out that it had been decided beforehand that the field name must be "maintainers"12:55
overm1ndI will start another machine in the mean time12:55
hazmatoverm1nd, sounds good12:55
bacbenji: ok, thanks12:55
overm1ndmmm another machine  stucked13:00
=== cmagina-away is now known as cmagina
marcoceppibenji: there was some discussion on the list about having the metadata.yaml file support both maintainer and maintainers13:00
marcoceppibac: ^13:00
overm1ndit-s the plugin I think hazmat13:01
bacthanks marcoceppi13:01
hazmatoverm1nd, unlikely..13:08
overm1ndI tri to bootstrap a machine from thre panel13:09
overm1ndtry+13:09
overm1ndlet's see13:09
hazmatoverm1nd, looks like digitalocean api and console is just broken atm13:14
hazmatoverm1nd, http://www.digitaloceanstatus.com/13:15
overm1ndahah right13:15
hazmatthat's from a few days ago13:15
overm1ndI cannot start a droplet even from the panel13:15
hazmatoverm1nd, yeah.. i just verified this is universal on #digitalocean13:16
overm1ndgood to know the plugin should work13:17
=== psivaa-lunch is now known as psivaa
=== rogpeppe2 is now known as rogpeppe
hazmatoverm1nd, its working again.. but it might be too slow for the plugin13:37
hazmati'll have to add timeout as a cli param i think13:37
gnuoymbruzek, I have a charm that's waiting for review. I just wanted to check it wasn't being skipped over on the assumption an IS person was going to review it. If its in the queue thats fine and I'll get back in line :)14:38
gnuoyoh, its the content-fetcher one14:38
mbruzekHello gnuoy.  Let me check where it is.14:39
gnuoythanks14:39
gnuoyBug#129672014:40
_mup_Bug #1296720: Bug to track submission of content-fetcher charm to charm store <Juju Charms Collection:New> <https://launchpad.net/bugs/1296720>14:40
mbruzekgnuoy, The Review Queue can be found here: http://manage.jujucharms.com/tools/review-queue14:40
jcastromarcoceppi, lazyPower, mbruzek: hey so you guys now how rails and node need a git URL to deploy an app right14:40
jcastroand for rails it's one of pavel's branches.14:40
* lazyPower nods14:40
jcastroI was thinking about filing a bug that we should include a Hello World app for each of those charms14:40
jcastroso that we can test them14:40
lazyPowerjcastro: good plan14:40
gnuoymbruzek, ah, I didn't know about that page (or maybe I forgot)14:40
mbruzekgnuoy  I see your request in there, and it looks like it is in the middle.14:40
jcastrolike, if you don't have a node app handy how can we test the node charm, etc.14:41
gnuoymbruzek, thats fine, thanks14:41
lazyPowerjcastro: make sure you include the specs on what you want it to do, as in, if it should have a database dependency14:41
jcastroyeah14:41
lazyPoweror be a stand-alone app14:41
lazyPowerbut i'd be game for buliding a hello-world rails app for the charm14:41
mbruzekgnuoy It is in the proper place, we have many reviews to do.  Someone will get to it hopefully soon.14:42
gnuoysounds good, thanks14:42
lazyPowergnuoy: I'll try to get some reviews in tonight when i'm at the hotel. Is this charm review blocking work for you?14:44
gnuoyhi lazyPower, no its not blocking us. We have a few places we're going to use it when reviewed but its not zOMG urgent14:45
gnuoyand thanks14:45
lazyPowerOk. Just checking :) if its actively blocking you from moving forward and its urgent - feel free to ping me direct and I'll promote it on my list.14:45
jcastrognuoy, and if someone from your team(s) wants to help us dig through this queue ... :)14:45
gnuoyjcastro, yeah, fair point14:46
lazyPowerjcastro: <314:46
gnuoyDo you have a set procedure to work through for a review ? Must pass charmproof and work on provider x & y etc?14:51
jcastrognuoy, https://juju.ubuntu.com/docs/reference-reviewers.html14:51
gnuoythanks14:51
gnuoyI'm a fan of Bug#1277652. Would a charm be bounced for missing default values ?14:55
_mup_Bug #1277652: charm proof should not warn for missing default values <Juju Charm Tools:New> <https://launchpad.net/bugs/1277652>14:55
lazyPowergnuoy: if it comes up in charm proof, it should be noted in the review14:56
lazyPowergnuoy: anything above i, warns are not blockers but warrant call-outs14:57
gnuoyack14:57
webbrandonyeah auto complete working with service names!  thank you15:11
webbrandonlittle things that make the difference sometimes15:11
=== sputnik1_ is now known as sputnik13net
=== roadmr is now known as roadmr_afk
=== vladk is now known as vladk|offline
tvansteenburghi am a charm that exposes the website interface, and i'm in a relation with haproxy. in a config-changed event, my port changes. how do i inform haproxy?18:07
=== johnweldon is now known as jcw4
=== vladk|offline is now known as vladk
lemaoola! Is there a juju roadmap available somewhere? I am curious to know what is in store for Juju in the future.18:36
sarnoldworld domination of course :)18:37
avoine1lemao: maybe you will find what you want in here: http://summit.ubuntu.com/uds-1403/meeting/22208/juju-core-update-for-1404/18:40
avoine1and here: http://summit.ubuntu.com/uds-1403/meeting/22207/juju-gui-update-for-1404/18:41
=== avoine1 is now known as avoine
lemaosarnold: :-) sounds good as long as 'do no evil' is part of the roadmap18:42
lemaoavoine: thanks18:46
webbrandonI think `juju status` should show any hook that is running.  My set new config takes awhile and it would be nice to see if the hook is done.18:49
arosalestvansteenburgh: hello18:50
tvansteenburgharosales: o/18:50
arosalestvansteenburgh: is relation changed what you are looking for?18:51
marcoceppitvansteenburgh: you need to invoke relation-set out of band18:52
marcoceppitvansteenburgh: which requires you to know the relation_id18:52
arosaleslemao: http://summit.ubuntu.com/uds-1403/meeting/22209/state-of-the-juju-ecosystem/ is also a good one in adtion do the ones sarnold caleld out18:52
sarnoldheh, it was avoine who was useful :)18:53
arosalesah yes, avoine, sorry I read that wrong18:53
tvansteenburghmarcoceppi: so you're saying the user would be responsible for doing that if he changed the website port?18:53
marcoceppitvansteenburgh: during relation-changed, you'll want to record JUJU_RELATION_ID and JUJU_REMOTE_UNIT somewhere18:53
marcoceppitvansteenburgh: no, it's doable in the charm18:53
tvansteenburghok18:54
arosalesmarcoceppi: would this be a good use case for juju run?18:54
marcoceppiarosales: no, this is something the charm should do18:54
marcoceppithe user initated the change with juju set, no need to make them /also/ do juju run18:54
marcoceppitvansteenburgh: so once you have those, you can use relation-set from outside of a relation hook18:54
arosalesI thought a charm could do "juju run"18:54
marcoceppiarosales: maybe?18:54
tvansteenburghoh ok, so i can call relation-set from inside my config-changed handler?18:55
marcoceppiIdk, only know about the client side juju run18:55
marcoceppitvansteenburgh: yeah, relation-set -r JUJU_RELATION_ID key=val JUJU_REMOTE_UNIT18:55
arosalesya I need to confirm that feature18:55
tvansteenburghmarcoceppi: excellent, thanks18:55
Fishy__Has anyone seen when booting nodes off a MAAS server.. node makes it halfway though the boot...   then times out?19:06
Fishy__Filename: pxelinux.0     tftp://192.168.4.1/pxelinux.0................ Connection timed out (http://ipxe.org/4c126035 )19:07
lemaoarosales: thanks.19:08
lemaoone feature I am looking for is the ability to manage application state while starting/stopping juju charms. e.g. backup a db schema before decommissioning a juju charm and machine and vice versa19:09
=== roadmr_afk is now known as roadmr
=== vladk is now known as vladk|offline
lemaois is possible to achieve the above with juju as it is? I basically don't see a start/stop life cycle event20:23
mbruzeklemao the start is called by juju after install, and stop is called by juju just before destroy20:35
mbruzeklemao I would back up stuff in the  *relation-departed hook.  That is what it is inteded for iirc20:36
mbruzekOther than calling start and stop from within  a hook I don't believe you can make juju call start or stop on your own.20:38
mbruzekFeel free to chime in if someone knows differently.20:38
lemaombruzek: I see. My ultimate goal is to be able to provision a whole environment without ever having to manually log in to the env machines. This is trivial in the common case, but trickier to get done right when dealing with out-of-place upgrades or decommissioning customer tenants etc20:38
lemaombruzek: So I may have existing data when provisioning an environment X that I want to pre-populate before the service runs20:39
mbruzekYour comment above was about backing it up?20:39
lemaombruzek: yes, that is part of it.20:40
mbruzeklemao, My suggestion for that approach is to have a configuration option that points to the data.  The install hook could install the software but leave it unconfigured until the user sets the configuration value with the pre-populated data20:41
lemaombruzek: If I am upgrading an existing env X from 1.0 to 2.0, I will need to backup all services (the ones that have data), launch env Xv2 and restore the data there20:41
mbruzekSo your config-changed hook would finish the install and load the pre-populated data20:41
mbruzekAgain I think config-changed hook is where you want to concentrate on.20:42
mbruzekAll this sounds like input from the user.20:42
lemaombruzek: I basically want to make sure that I am not trying to squeze something out of juju that was not really part of the requirement.20:42
mbruzekjuju deploy lemao-charm20:43
lemaombruzek: that is great. I really like the devops in the large approach that juju takes20:43
mbruzekjuju set lemao-charm version="1.0"20:43
mbruzekDo some stuff, time to upgrade20:43
mbruzekjuju set lemao-charm version="2.0"20:43
mbruzekconfig-changed hook is called20:44
mbruzekIn the config-changed hook you could save the data to a directory and when the new software is installed it could load from the same directory.20:44
lemaombruzek: I see. This would take care of the inplace upgrade. But I guess I could achieve the same with an out-of-place upgrade, right? I.e. in a stop hook, save the data, deploy the charm, and on start hook restore it.20:46
mbruzeklemao, As I said stop is called when juju is destroying that machine.20:47
mbruzekSo if you saved the data on that system, there would be no way to get it back.20:47
mbruzekfrom that system20:47
mbruzekYou could dump it to a database and reload from a database relation20:48
lemaombruzek: is there a stopped state as opposed to running or destroyed?20:48
mbruzekNot that I am aware of.20:48
lemaombruzek: One where the services and/or machines are not running but the service state (config/relations) are persistent (I guess stored as a bundle)20:49
mbruzeklemao, I do not know of something like that.  You would have to push the data off the machine and grab it back20:50
lemaombruzek: ok. thanks for the information!20:52
mbruzeklemao, anytime, and good luck!20:52
lemaombruzek: one additional question (unrelated to the above), if I may20:53
mbruzeklemao, shoot20:53
lemaombruzek: For a typical webapplication, I assume the common practice is to model tomcat as a charm and my-web-app also as a charm and have them related to each other.20:54
lemaombruzek: so I could have N webapp charms related to the tomcat charm.20:55
mbruzeklemao, There is already tomcat7 charm out there.20:55
lemaombruzek: yes, I saw that. but is this how people are deployment webapps, for instance, using juju?20:56
mbruzekyou can create a subordinate charm, that deploys the web app to the same machine as tomcat.20:56
mbruzekhttps://juju.ubuntu.com/docs/authors-subordinate-services.html20:56
mbruzekI wrote a charm that does this for OpenMRS.20:57
mbruzekhttp://manage.jujucharms.com/charms/precise/openmrs20:57
mbruzekthere is also a j2ee-deployer charm that has not landed in the store20:58
mbruzekhttp://manage.jujucharms.com/~robert-ayres/precise/j2ee-deployer20:58
mbruzektake a look at those20:58
lemaombruzek: thanks a million! Will do.20:59
mbruzeklemao, you are welcome21:00
=== CyberJacob is now known as CyberJacob|Away
lemaome again ... :-) What would be the best way to add support for additional AWS features such as RDS, VPC, ELB, etc? As a provider or as a charm?21:46
lemaowhen deploying a charm to an amazon environment an EC2 machine is automatically provisioned. Is it  possible to have juju launch an RDS instance instead?21:47
=== hatch__ is now known as hatch
=== hatch__ is now known as hatch
Valduarehows it going guys22:48

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