/srv/irclogs.ubuntu.com/2014/03/20/#juju.txt

=== CyberJacob is now known as CyberJacob|Away
themonkI am facing a problem, my conf.tmpl file has some variable comes from config.yaml and last 2 are comes from relation problem is after relation joined if i change configuration then those 2 relation dependent variable gone missing. how do i solve this? need help04:13
=== OutOfControl is now known as benonsoftware
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|away
=== vladk|away is now known as vladk
=== thumper is now known as thumper-afk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== CyberJacob|Away is now known as CyberJacob
=== JoseeAntonioR is now known as jose
=== vladk|offline is now known as vladk
_sEBAs_some soul, can tell me why through juju debug-hooks the `config-get' commands like are not working?08:08
_sEBAs_please :P08:09
_sEBAs_Im trying to debug a hook, but its impossible if it can even run the charm commands like "config-get"08:09
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
yolandahi jamespage, stub09:00
jamespagehey yolanda09:01
stubSo rather than extending the PostgreSQL db relation to be able to specify multiple databases and users, and return multiple passwords to the clients, I was thinking just using multiple relations would be better09:01
stubEach relation stays simple, one database and user. If your charm needs two, it opens two relations and gets exactly the same information. Less work probably as it doesn't need to decode the more complex data structures.09:02
stubThis also means other charms, like the pgbouncer connection pooler, don't need to be updated to support extensions09:03
yolandajamespage, i think it could have sense and looks cleaner actually09:04
jamespageok - this sounds reasonable09:04
yolandawe can apply that to postgresql alternative at the moment, not touch mysql09:05
stubIf it is going to cause scheduling issues, or it just isn't going to work, we can proceed with yolanda's work mimicing mysql's interface. But it will mean compatibility issues with pgbouncer, and we might want to flag the interface extensions as experimental or temporary.09:07
yolandastub, i think that at the moment we are fine implementing new approach, postgresql is a new feature so we can work on the best approach09:09
stubOk. Let me know how you go or if you want any help. I'd rather be an enabler than a blocker :)09:10
jamespageyolanda, stub: sorry - ended up with two kids for a minute then!09:11
jamespageyolanda, lets take this approach - its different to mysql BUT this should only apply in the nova-cloud-controller charm09:12
jamespageall other charms really only need one db access09:12
yolandayes, it's an special case09:12
jamespageyolanda, nova-compute and quantum-gateway might think they do but they don't09:12
yolandawhat do you mean?09:12
=== thumper-afk is now known as thumper
=== FourDollars_ is now known as FourDollars
jamespageyolanda, those two charms I think request multiple db's11:01
jamespageyolanda, I noticed this during ssl-everywhere - they don't need them11:01
jamespagenova-compute does not need the db connection at all in later releases11:01
jamespagequantum-gateway just needs nova11:02
jamespageyolanda, I fixed both of these in the ssl-everwhere branches - we have alot to land still11:02
yolandajamespage, so is that better to use ssl everywhere as base?11:02
jamespageyolanda, not yet11:03
yolandawell, dealing with nova-c-c at the moment11:03
jamespageyolanda, get that up on branches and we can then review for the other ones11:11
yolandajamespage, currently working on personal one: lp:~yolanda.robla/charms/precise/nova-cloud-controller/postgresql-alternative11:12
jamespageyolanda, +1 that's fine11:12
yolandadoesn't look bad but i have to deal with the neutron postgres settings, still pointing to sqlite11:12
=== vladk is now known as vladk|away
=== vladk|away is now known as vladk
=== vladk is now known as vlad|lunch
=== vlad|lunch is now known as vladk|away
jamespageyolanda, I proposed https://code.launchpad.net/~openstack-charmers/charm-helpers/active-active/+merge/21128512:19
jamespageI think that's good now12:19
yolandacool! it has been hard12:19
yolandadid you do any more updates?12:19
yolandajamespage, also, about automatically detecting rabbit failures and switch, it works much better on icehouse. In havana i only see nova-compute to work fine12:28
jamespageyolanda, yeah - I think the kombu in 14.04/icehouse is better at dealing with this12:28
=== vladk|away is now known as vlad|lunch
=== vlad|lunch is now known as vladk|away
=== vladk|away is now known as vlad|lunch
=== vlad|lunch is now known as vlad|
=== vlad| is now known as vladk|offline
=== vladk|offline is now known as vladk
=== cmagina-away is now known as cmagina
jamespageyolanda, infact I'm going to merge the active-active branches into the icehouse branches to test13:36
yolandaok13:45
yolandathe way i tested it is using icehouse for rabbit, and havana for the others13:45
=== vladk is now known as vladk|offline
timrcHow do I debug: 2014-03-20 15:03:42 ERROR juju.cmd supercommand.go:293 environment has no bootstrap configuration data -- I'm using a fresh config ala juju generate-config and the juju switch'ing to 'local'15:04
TugHi, I found out about juju very recently, looks promising! I have a few questions of my own (so from a juju newbie)15:12
Tugfor instance I'm wondering about the capablities of the local provider15:13
TugIt probably won't virtualize a load balancer like the one cloud providers usually have (ELB on AWS) right ?15:14
timrcstrace to the rescue15:15
Fishy_So say I want to use MAAS to deploy a group of servers, and then put 3 or 4 juju LXC containers on each... is this sane, or is mixing MAAS and LXC not good15:33
Fishy_or do I do an open stack thing15:34
Fishy_and bake that on top of MAAS servers15:34
Fishy_basically i think I can turn all of my apps into charms, which is good. trying to figure out how to design the rest15:36
Fishy_10% will need to run directly on the hardware.  90% I want to run in LXC, on servers that get set up via MAAS or some kind of magic15:37
bloodearnestTug: correct, in fact no environment type can "install" SaaS like ELB. Charms can have support for it explicitly, but I don't think that would work in local provider15:39
bloodearnestTug: but the future roadmap has the idea of "virtual charms", which are in your environment and act as a gateway/proxy to SaaS, to you can relate to it, configure it, etc15:40
Tugbloodearnest, interesting !15:41
Tugbloodearnest, for now a classic charms won't be able to do any network configuration if I use a local provider or vagrant right ?15:41
bloodearnestTug: can you clarify what you mean by network configuration? Some things are likely possible, others not15:43
Tugok let's take an exemple, the mongodb cluster charm15:44
Tugyou have to somehow configure each shard and mongos etc15:44
Tugso each machine has to be aware of the global configuration I guess15:44
bloodearnestTug: so, mongodb-cluster is a "bundle" that deploys 5 services using the same charm (mongodb), but configuring and relating them differently15:46
bloodearnestTug: the relations add the ip/port config between machines, and each services config controls overall settings for the service15:47
Tugbloodearnest, ok thx for the explanation15:47
bloodearnestTug: so in terms of ip address, there's nothing you need to do, except maybe expose some ports externally15:48
Tugok so juju would be able to configure this for each vagrant vm automatically ?15:48
TugI guess it works like the MAAS15:49
bloodearnestTug: yes, that would work on vagrant/lxc/whatever15:50
Tugcool, I have to try it then!15:51
bloodearnestTug: the relevant provider implementation knows how to setup local networking15:51
TugThx, bloodearnest15:51
bloodearnestTug: your welcome15:51
bloodearnestyou're*15:51
bloodearnestFishy_: sounds like you want the manual provider in 1.1715:52
bloodearnestFishy_: and deploying LXC containers on MAAS controlled machines should work fine15:52
Fishy_but i only want 1 environment right?15:52
bloodearnestFishy_: yes - type: manual15:52
bloodearnestFishy_: you add machines/lxcs to it manually15:53
Fishy_okay15:53
bloodearnestand then do juju deploy --to=<machine id>15:53
Fishy_" This is useful if you have groups of machines that you want to use for Juju but don't want to add the complexity of a new OpenStack or MAAS setup"15:53
Fishy_but im ok with an openstack or MAAS setup15:53
Fishy_I just need to sometimes deploy to hardware, sometimes to LXC15:53
Fishy_and I want the hardware to be set up by something, like MAAS15:54
bloodearnestFishy_: currently, non-manual single environment can only deploy to a single type of vm abstraction15:54
bloodearneste.g openstack, ec2, azure, local container (on same machine, lxc or kvm)15:55
bloodearnestFishy_: to mix and match within one env, you will need the manual provider I think15:55
Fishy_ok so if I go manual, I will need to do all the LXC stuff myself?  what it does in local for me already15:55
bloodearnestyes, I'm afraid15:55
bloodearnestFishy_: local provider will only deploy on the local machine AFAIK15:56
Fishy_maybe better to just run 2 environments?15:56
Fishy_and call switch a lot?15:56
timrcThis documentation: https://juju.ubuntu.com/docs/config-LXC.html seems at odds with today's reality15:56
timrcfor example sudo juju bootstrap for local is met with an error claiming you should not bootstrap as root15:57
bloodearnestFishy_: it's generally better to have 1 env per "service" I think15:57
bloodearnestFishy_: e.g. we have maybe 20+ production environments15:57
Fishy_well we have 20 services... 1 needs bare metal, 19 can be on LXC15:58
bloodearnestvarying from a half dozen machines to 40 or so15:58
Fishy_its different things15:58
bloodearnestFishy_: yes, ours are all different services. The do interact, but not via juju (yet)15:58
Fishy_i would just have prod and qa... and then the two types mentioned15:58
Fishy_hum15:59
bloodearnesttimrc: yeah, that's for 1.16, sounds like  you're on 1.1715:59
Fishy_i dont need interaction via juju15:59
Fishy_i just need the machines set up15:59
bloodearnestFishy_: in that case I suggest one env per service15:59
bloodearnestFishy_: we have 2 per service - staging and prod15:59
timrcbloodearnest, Correct.. 1.17.4-trusty-amd6416:00
Fishy_okay so a MAAS service can deploy 20 nodes for me...  5 of those bare metal to install my perf apps, and 15 of them future VM hosts..  how do I do the VM host step?  Make a charm that sets up an openstack or something?16:01
timrcbloodearnest, How do environments.yaml and environments/*.jenv's jive? The local.jenv file was completely empty and I had to add things by hand... bootstraping is still crashing and burning atm, but I feel like I'm missing some fundamental step here16:01
bloodearnesttimrc: don't mess with environments/*,jenv - they are autogenerated and used for introspecttion by tools16:02
Fishy_or I guess I could just make everything MAAS.. but then deploy 5 apps to the same MAAS server.. but that seems against the juju style16:02
bloodearnestFishy_: there is a well tested openstack set of charms that we use on MAAS to deplpoy openstack16:03
Fishy_oh okay so I could make my MASS VM host guys use openstack16:03
bloodearnesttimrc: for 1.17, just do juju bootstrap, it will prompt for sudo when needed16:03
Fishy_then my openstack environment hits that ?16:03
bloodearnestFishy_: sounds right16:03
Fishy_will that use LXC?16:04
timrcbloodearnest, I didn't want to mess with it but when I went to bootstrap it said their was not bootstrap-config data16:04
Fishy_under the covers16:04
timrcbloodearnest, and the local.jenv file was empty :(16:04
bloodearnestFishy_: I believe openstack can use lxc as a machine type, yes16:04
bloodearnestFishy_: but it defaults to kvm16:04
bloodearnestFishy_: there was a thread about this recently on the juju mailing list16:05
Fishy_or is there an alternative to openstack16:05
Fishy_that will use lxc16:05
bloodearnesttimrc: try juju destroy-environment local --force && juju bootstrap16:05
bloodearnestFishy_: not that I know of16:06
Fishy_openstack bundle is 19 charms16:07
Fishy_that seems pretty intense16:07
bloodearnestFishy_: openstack is notoriuosly difficult to deploy. Juju is the one of the easiest ways atm, AIUI16:08
bloodearnestFishy_: the manual provisioning is not so difficult to use16:08
Fishy_ya okay that is sounding better16:08
Fishy_i just like how simple local is16:08
Fishy_i want to apply that to many machines16:08
bloodearnestFishy_: say you spin up 30 lxc containers across your cluster16:09
Fishy_i always know what box what app will run on16:09
bloodearnestcreate a manual juju env16:09
Fishy_so when app A needs to deploy, I know I want it on VM host 12316:09
bloodearnestFishy_: right, so --to is your friend16:10
Fishy_ya16:10
timrcbloodearnest, I got some very informative: ERROR exit status 1's16:10
bloodearnestFishy_: it's the only way to get fine grained control on placement16:10
bloodearnesttimrc: lols, I get those too sometimes. A bootstrap should still work even when the env is not destroyed 100%, it will just pave over16:11
timrcI wish16:12
Fishy_it does blow up hard if you are in the .juju directory16:12
Fishy_when you destroy16:12
Fishy_and try to re-bootstrap16:12
timrcjuju bootstrap16:12
timrcERROR environment is already bootstrapped16:12
timrcso it looks like it can't actually destroy the environment16:12
bloodearnestFishy_: caveat - the manual provider is considered beta, AIUI16:12
bloodearnesttimrc: so, I've had this on occasion16:13
timrcthis worked reasonably well a year or so ago16:13
timrcI guess a lot has changed16:13
bloodearnesttimrc: rm -rf ~/.juju/local/*16:13
Fishy_kind of thinking MAAS now, and just shove 5 apps to the same host and forget about vms16:13
bloodearnesthas worked for me in getting juju to recognise that the env is really actuall dead16:13
Fishy_going in circles..16:13
timrcbloodearnest, Oh, I've done that... that will get the bootstrap to start but dies after mongodb db... I'll check the log.. seems to be a bit of a mess16:14
bloodearnesttimrc: nasty.16:14
Fishy_mongoDB is a mess, I am in the process of migrating away ;)16:14
bloodearnesthave you done an update recently? 1.17.5 is out16:14
timrcbloodearnest, well I updated today and got 1.17.416:15
bloodearnesttimrc: right, 1,17,5 must not be in trusty yet16:15
bloodearnesttimrc: so I have encountered this issue of mongo just dieing before16:16
bloodearnestbut don't know the fix16:16
=== whit is now known as _^_-whit-_^_
Fishy_can look in mongo logs?16:18
timrcapt-get --purge mongodb-server :)?16:20
timrcer purge*16:20
timrcwell canonistack is back, I think, so I'll switch back to that... really wish I could get lxc/local provider working16:26
Fishy_installing juju actually crashed on me on day 116:27
Fishy_becuase I had mongodb already installed16:27
Fishy_it totally crapped the bed16:27
Fishy_but I blame mongo16:28
bloodearnestFishy_: so some one just posted to the juju list descriing some thing similar to your problem - was that you? :)16:36
Fishy_yes17:28
Fishy_no offense but i wanted hivemind thought17:29
Fishy_see what else we are missing17:29
bloodearnestFishy_: oh no offense taken, there are many people more qualified that me to answer your questions :)17:43
rick_h_lies bloodearnest or bust!17:45
=== timrc is now known as timrc-afk
hazmatgeekmush, ping17:48
hazmatgeekmush, wondering if we can do an interactive session.. i think theres's something getting lost in the translation17:49
geekmush?17:54
hazmatgeekmush, re do plugin17:54
geekmushI havent' had time to swing back around to juju yet, sorry.17:54
sfeoletimrc-afk: 1.17.5 should fix your local provider issues17:55
sfeoletimrc-afk: need to add the juju/devel ppa17:55
hazmatgeekmush, sorry, i was thinking about a different gh ticket... and conversation17:55
geekmushhazmat:  heh, no problem … I was kinda wondering … then, again, I *could* have been sleep juju'ing ..  :)17:56
Fishy_im going bold and switching to dev17:58
Fishy_seems more interesting17:58
marco-travelingFishy_: it's pretty stable, and great to use of you are just trying out18:00
marco-travelingFishy_: but if you are doing production deployments use stable because that has an upgrade path18:01
Fishy_ya i need to figure out if juju is the right path still18:01
Fishy_before I start prod18:01
marco-travelingFishy_: then use devel18:01
marco-travelingit's got all the features coing in the next stable18:01
Fishy_So tell me about upgrade..  is the idea you update the core binary in your charm, but without blowing away and recreating the entire VM?18:04
=== timrc-afk is now known as timrc
timrcI (seemingly) randomly started getting: 2014-03-20 18:03:19 WARNING juju.environs open.go:258 failed to write bootstrap-verify file: cannot make Swift control container: failed to create container: 595054e0e7b048cb87887a0b3d7bc663 when I attempt to bootstrap to an openstack provider... has anyone seen this? I currently have 1.16.5-trusty-amd64 but same thing with 1.17.4 -- I juju init'ed a fresh JUJU_HOME... the folks that manage swi18:16
timrcft don't seem to think its a problem on their end... at least other users are not reporting the prolem18:16
=== timrc is now known as timrc-afk
=== timrc-afk is now known as timrc
=== msx is now known as Guest63512
onreaWhat is the public address of Wordpress when installed by juju?20:08
onrea==> http://askubuntu.com/q/436975/15240520:08
onrealazyPower: ^20:08
lazyPoweronrea: your AU question references discourse, and you're asking about wordpress20:10
lazyPoweri'm confused on which you want answered20:10
onreaIt's because people are not familiar with Discourse20:10
onreaHowever, I'm trying with wordpress, too. same result20:11
onreaThey will pass the question when see 'Discourse' in the title!20:12
=== thumper is now known as thumper-physio
=== BradCrittenden is now known as bac
lazyPowerhatch: something went awry with this installation of discourse that onrea posted about however - his port 80 was never opened... i dont see anything about a hook error20:38
lazyPoweri suspect what happened is it ran into an error, and it was juju resolved without any actual intervention being done.20:38
hatchlazyPower oh I didn't even notice that - I just assumed that he was running local so it couldn't open it20:39
lazyPowerit will open it regardless if its done, you'll still see it int he status output20:39
hatchlazyPower ahh I see your comment, cool I'll take a look in a second20:40
hatchupvoted20:43
hatchthanks for expanding20:43
lazyPowerthanks for the upvote :-)20:59
dpb1hi -- in ec2, I'm boostrapping with some storage created in the same region.  It's attaching to my bootstrap node automatically.  Is this expected?21:03
=== thumper-physio is now known as thumper
marco-travelingthe discourse charm is broken21:13
marco-travelingthere's is a reason why it's not in the store yet21:14
lazyPowermarco-traveling: ah that would explain it21:16
marco-travelingit's not compatible with latest upstream21:16
lazyPowerit has a rev installation target though right? and defaults to that tag?21:18
lazyPoweriys been about 4 months since i dove into it last21:18
marco-travelingyes. so you could use it with an older working version21:18
lazyPowerok ill ammend the comment to reflect those details after dinner21:19
lazyPowerty marco21:19
lazyPowerdpb1: well, that is odd.21:46
lazyPowerdpb1: i cant say that I have bootstrapped with storage in teh same region though - you mean an EBS volume provisioned, but "free" in the listing right?21:46
=== cmagina is now known as cmagina-away
dpb1lazyPower: ya, that's right22:03
dpb1lazyPower: has to be in the same AZ even22:03
lazyPowerok, let me see if i can reproduce22:04
lazyPowerwhat version of juju are you on?22:04
=== Overmind is now known as overm1nd
_2_Heben2Mario22:10
_2_Heben2Mario22:10
marco-travelingLuigi22:13
marco-travelingLuigi!22:13
=== vladk|offline is now known as vladk
=== marrusl is now known as marrusl_afk
=== marrusl_afk is now known as marrusl
lazyPowerdpb1: well, it didnt auto map for me22:23
dpb1:(22:24
dpb1I'll see if I can get it more reproducable...22:31
lazyPowerdpb1: stable or unstable series of juju?22:31
dpb11.16.x22:35
lazyPowerok, i'm running the unstable series too, so that's another factor to consider.22:35
=== vladk is now known as vladk|offline
dpb1lazyPower: thx, I appreciate you trying.  I'll reply to that email thread if I find anything more concrete.22:38
lazyPowerdpb1: np. happy to help22:57
davecheneymarco-traveling: o/23:07
davecheneywhat would it take for you to promulgate the mysql charm for trusty23:08
davecheney?23:08
marco-travelingdavecheney: tests23:08
marco-travelingdavecheney: I've almost got them all written, should be landing next week23:08
marco-travelingthen we just need to run the tests against a trusty bootstrap23:09
marco-travelingand if it passes I can promulgate23:09
marco-travelingdavecheney: but as for physical limitations, there are none23:09
marco-travelingwe /could/ do it right now23:09
davecheneymarco-traveling: /would/ you do it for me ?23:11
davecheneyI have environments which have not valid precise images23:11
davecheneyso I need trusty charms23:11
marco-travelingdavecheney: ehhhhhhhh I would love to, really I would, but it kind of flys in the face of the whole "no trusty charms without tests"23:20
marco-travelingdavecheney: what about another charm, like memcached, rabbitmq-server, mediawiki, etc?23:20
marco-travelingthose have tests that we could spin up against a trusty series23:21
davecheneymarco-traveling: i'll take anything you have23:23
davecheneyright now i ahve the ubuntu charm23:23
davecheneyand that a convicing demo doth not make23:23
marco-travelingdavecheney: sure, I'm on an airplane right now, but I can have about 4 or 5 charms promulgated to trusty after they pass tests on trusty tomorrow morning (which kind of sucks for you) so maybe tonight if I have the energy for it23:29
sarnoldheh, 'traveling' is quite specific then :)23:30
davecheneymarco-traveling: oh right23:30
davecheneyyou literally are traveling23:30
davecheneywhatever you can promulgate would be awesome23:30
davecheneycurrently of course deploying  from local:23:30
marco-travelingdavecheney: while we're here, can you verify if float is a valid configuration type?23:30
davecheneymarco-traveling: good question23:31
davecheneymy intial answer is no23:31
davecheneyonly because I've never seen it used23:31
marco-travelingits' in the docs, but I don't trust that23:31
marco-travelingyeah, mine as well23:31
marco-travelingI thought it was only int, string, bool23:31
* marco-traveling would love enum23:31
davecheneymarco-traveling: i'd bet a small developing enconomy that any instances of floats are actually "0.1"23:31
davecheneylemmie check23:32
davecheneymarco-traveling: looking at the code23:34
davecheneyints, bools, strings23:35
davecheneyand maps and lists composed of those primatives23:35
marco-travelingdavecheney: cool, I'll update the docs23:35
davecheneymarco-traveling: let me test this23:35
davecheneybut yes, no floats23:35
davecheneythey should be expressed as strings23:35
marco-travelingdavecheney: wait, what? we can do lists?23:35
davecheneythe net effect will be almost the same23:35
marco-travelingdavecheney: sure, I get that23:35
marco-travelingbut what is this maps and lists you speak of23:35
davecheneymarco-traveling: it's the same logic that ingests environments.yaml23:36
josehey marco-traveling, do you know if there's a way for a charm related to another one to say 'hey, I want you to generate another user named abc'?23:36
davecheneythey aren't available inside metadata.yaml23:36
davecheneysorry23:36
davecheneyi mean you can write them23:36
davecheneybut it won't validate23:36
davecheneyand won't make it through config-get23:37
marco-travelingdavecheney: oh, right, i see23:37
marco-travelingdavecheney: I'll open a feature request for an ENUM config option, doubt it'll go anywhere, but having strict set of values would be nice imo23:37
marco-travelingjose: you could do that in the interface, if you create one23:38
josedo you have an example? trying to do that for postfix and the reddit charm I will *try* to write23:38
marco-travelingjose: so, if you're creating an interface, just have a key that accepts either a comma seperated list of users23:38
marco-travelingthen the charm can chop the list up and figure out which which isn't created and which has, etc23:39
joseis that possible in Bash?23:39
marco-travelingjose: yes23:46
joseI'm checking the relation docs atm, I just found out about relation-set23:46

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