/srv/irclogs.ubuntu.com/2013/12/17/#juju.txt

InformatiQit seems that when destroying a mysql relation and adding it again the smae databse name is reused, is that expected?00:10
_bjorneand how i am fix that?00:12
InformatiQcharms are not as simple as I thought they were00:18
_bjorneand im need to make charms for get function in node2-XXX when node function good with juju status?00:20
_bjorneand see all others node with juju status?00:21
_bjornethis is happend when im install for the first time, for me that looks like bug in maas.00:21
_bjornethe first node run dist-upgrade and install lxc and mongodb and the rest of nodes have problem to read user-data.00:22
arosalesInformatiQ, _bjorne: US folks are about end of day but some folks in later time zones should be coming on line shortly00:37
InformatiQarosales: my eyes are getting blurry i'll end my day too00:38
davecheney_bjorne: hello01:22
davecheneylets start from the top01:22
davecheney11:20 < _bjorne> and im need to make charms for get function in node2-XXX when node function good with juju status?01:22
davecheneycould you explain a little more what you want to do01:22
davecheney_bjorne: ping02:14
lazypowerCan someone point me in the direction of a charm that consumes MongoDB so i can evaluate the relationship change hooks? I need some examples03:03
lazypowerHey this handy pane in the charm store solves that, nevermind.03:04
=== CyberJacob|Away is now known as CyberJacob
noodles775marcoceppi: So I've updated to amulet 1.1.2 and I still get the same error I mentioned last week (No such file or directory: 'precise/relation-sentry/metadata.yaml'). I'll fork and play around.09:18
noodles775http://paste.ubuntu.com/6587980/09:18
aquariusI have two subscrriptions in my Azure account. I deployed to the first subscription with juju, and now the Azure team have transferred all my VMs etc into the second subscription.09:23
aquariusHowever, I now can't connect to my VMs with the juju command line util09:23
aquariusit says "2013-12-17 09:22:01 ERROR juju supercommand.go:282 cannot obtain storage account keys: GET request failed: ForbiddenError - The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription. (http code 403: Forbidden)"09:23
aquariusI tried changing the "management-subscription-id" in ~/.juju/environments.yaml to be the new subscription ID but that hasn't helped.09:24
aquariuswhat do I need to do to fix this?09:24
aquariusaha! I need to edit .juju/environments/azure.jenv09:25
aquariusand now it works, hooray :)09:25
=== bloodearnest_ is now known as bloodearnest
=== xnox_ is now known as xnox
noodles775marcoceppi: https://github.com/marcoceppi/amulet/pull/311:25
marcoceppinoodles775: DOH, thanks13:02
noodles775np :)13:03
=== gary_poster|away is now known as gary_poster
marcoceppinoodles775: I'll merge this and bump to 1.1.313:07
noodles775marcoceppi: there's no rush releasing for me - I can work from trunk (I'll probably have other changes later).13:09
marcoceppinoodles775: cool, I'll wait till end of week then13:10
=== BradCrittenden is now known as bac
Informat1Qwhat does a website relation needs to do in the case the app is not scalable ?13:34
ashipikahi.. can somebody please explain which hook is run when i run destroy-service? or when i remove a unit?13:53
Informat1Qashipika: yo could always run juju debug-hooks unit and see what it wants to open there14:16
Informat1Qashipika: destroy-unit runs : database-relation-departed database-relation-broken and stop14:19
Informat1Qi assume all other destroy do the same14:19
ashipikathanks!14:20
Informat1Qmarcoceppi: if you feel like it you could look at my trac charm update14:20
marcoceppiashipika: destroy-service will break all relations, then execute the stop hook14:23
marcoceppiInformat1Q: I see it's in the queue, I'll review it shortly14:23
ashipikaexcellent.. so if i want to un-install anything this is the palace to do it14:23
jhfhey jcastro just fyi I am rotating back to liferay/juju goodness. gonna update the charm today with the latest LR release and see about implementing (or at least POC'ing) your idea from oscon14:26
X-warriorI have a subordinate charm (logstash-agent) i deployed it, and later I tried to add relation between it and one of my services... the subordinate service status on this service was pending for a long time, then I tried to remove the relation... but the subordinate keeps showing when I use juju status :S15:01
noodles775marcoceppi: If I have a tests/00-initial-setup amulet test, and want tests/01-config-changes , can amulet pickup recreate it's deployment based on juju status, or do they need to be in the same file for now?15:06
marcoceppinoodles775: the typical pattern for juju-test is to destroy and re-create before each test is run. juju-test can be configured to not do that, but they should be in the same file for now15:07
marcoceppinoodles775: if you wanted, you could express your setup in like a helper/setup.py file within the tests dir, to keep from copying a lot of code around15:08
X-warriorChecking the juju log file (the one names as logstash-agent) I see a lot of exec: /var/lib/juju/tools/unit-logstash-agent-0/jujud: not found15:09
noodles775marcoceppi: the helper/setup.py is a good idea - let me try that. Thanks!15:09
jcastrojhf, heya, I have some updates for you15:10
jcastrojhf, if you have an updated "charm-tools" doing a "charm add readme" will add a new template.15:10
jcastroI added places for you to put links to your webpage and a bunch of other stuff.15:10
jcastrojhf, also, the designer of the juju store has told me that your icon is too square. :) But I have an inkscape  template for you if you want to give it a shot.15:11
jhfhahahahaha15:11
jhftoo square. we can put your designers and our designers in a boxing ring and get some popcorn15:11
jhfcrap. the boxing ring would be square too15:12
jcastrodude ours makes up words ... He says it needs to be a squircle.15:12
jhfhahahahahahahahahaha15:12
jcastrohttps://juju.ubuntu.com/docs/authors-charm-icon.html has the template15:12
jhfI remixed our logo one time and got admonished bigtime15:12
jhfthey were all "this does not conform to branding" with a sad face15:12
jhfok thx I'll get cracking15:12
jhfand blogging once I make progress on a nice clustered/haproxy'd POC I've been meaning to do15:13
jhfwow. I thought you were kidding about squircles15:14
jcastroI never kid when it comes to squircles15:15
X-warriormarcoceppi: sorry to call you directly, but I'm stuck on this for a while. Are u busy? Could u give me some help?15:36
marcoceppiX-warrior: if you're getting jujud not found, something went wrong during deployment15:37
marcoceppiX-warrior: also, np on pinging me directly, I sometimes miss messages in here15:37
marcoceppiX-warrior: do you have the latest juju 1.16.5?15:37
X-warriornope I'm still at 1.16.315:38
marcoceppiI think this was fixed in 1.16.5, but I can't be certain15:38
X-warriormarcoceppi: should I do same way as last time? upgrade from 1.16.3 to 1.16.4 and then to 1.16.5?15:44
marcoceppiX-warrior: you should be able to jump directly to 1.16.5, since it's all patch changes. However, to play it safe you may want to go .4 => .515:45
marcoceppisinzui_: opinions on upgrading within the 1.16 line? ^15:45
X-warriormarcoceppi: already update it15:55
X-warrioris that --force option on 1.16.5?15:57
X-warriorI have this logstash-agent subordinate as dying and never goes away, and the same to the 'deployed' logstash-agent...15:58
X-warrior:S15:58
marcoceppiX-warrior: can you --force destroy those?16:00
X-warriorjuju destroy-service logstash-agent --force?16:00
X-warriorerror: flag provided but not defined: --force16:00
=== teknico_ is now known as teknico
marcoceppiX-warrior: is your local juju 1.16.5?16:04
X-warriorjuju version say it is at 1.16.516:04
marcoceppihuh16:05
X-warrior:S16:08
rick_h__sinzui_: ping, got time to chat sometime today?16:14
sinzui_rick_h__, in a meeting at the moment16:14
X-warriorand if I try to reploy to 'override' it, it shows that the service already exists :S16:14
rick_h__sinzui_: np, any time. No hurry at all. Even later in the week if that works.16:15
rick_h__arosales: also, can I nab a quick call if you get time about this azure stuff.16:17
=== freeflying is now known as freeflying_away
arosalesrick_h__, sure. I got time this afternoon if that works for you.16:19
rick_h__arosales: sure thing, thanks.16:20
arosalesrick_h__, cool gcal invite sent16:20
rick_h__arosales: thanks16:21
X-warriormarcoceppi: is the only solution to destroy the environment?16:22
=== freeflying_away is now known as freeflying
sinzui_X-warrior, marcoceppi , juju 1.16.x is compatible between all patch-levels (0 - 5). Juju will always pick the newest patch-level (1.16.5 as of today) when bootstrapping a deploying16:49
sinzui_X-warrior, marcoceppi  in CI we ensure the version under test by calling "juju upgrade-juju --version=1..16.<level>" which can downgrade as well as upgrade16:50
X-warriorsinzui_: well I did upgrade from .3 to .4 and then to .5 it worked16:53
X-warrior:D16:53
X-warrioranyway thanks16:53
X-warrior:D16:53
=== gary_poster is now known as gary_poster|away
=== jacekn_ is now known as jacekn
ekristenI see linux-lxc containers are supported18:24
ekristenare their plans to support docker?18:24
lazypowerekristen: there is already a docker charm if that helps. But hooking into docker from what I can tell is under active dev18:26
ekristencool and cool18:26
ekristenI’m trying to understand how juju works with respect to how servers get stood up18:27
lazypowerI have a question relating to using chef during my runtime of the charm hooks. Chef solo is getting executed beautifully, however the hooks are somewhat limited from what i can tell18:27
ekristenI see you can integrate with AWS18:27
ekristenis each service deployed a server? or does juju re-use a server for multiple charms?18:27
lazypowerI've got an issue where including gems that are present in the global gemsets, but not from within the juju executed chef-solo instance and I haven't been able to put my finger on why. I have debug output in a bug filed against the charm skeletong i used.18:27
lazypowerekristen: you can deploy multiple services to the same machine with the --to flag18:28
lazypowereg: juju deploy wordpress --to 118:28
lazypowerjuju deploy mysql --to 118:28
lazypowerhowever by default, it will deploy to seperate machines18:28
lazypowerhttps://github.com/Altoros/juju-charm-chef/issues/218:29
ekristenlazypower: how do new servers get setup and or when do new ones get added?18:29
lazypoweris the open debug output for chef18:29
lazypowerekristen: its alll provisioned by juju during the dpeloyment phase. hang on i have a quick 1:1 with a co woker and i'll come back ot this.18:29
ekristenlazypower: ruby is a pain18:30
ekristenlazypower: depending on how it is setup the gem might not beavailable to the environment that chef is running in18:31
ekristenbut it is available to your user18:31
lazypowerWell i want to point a finger at bundler18:31
* lazypower snaps18:31
lazypoweri bet thats it, i bet its shelling out chef-solo using bundler. so its not in the gemset18:32
lazypowerThank you!18:32
lazypowerekristen: so, there's a few methods you can add machines to your juju environment18:34
ekristenI found the initial part I was missing18:34
ekristenjuju bootstrap18:34
lazypoweryou can manually bootstrap them, or let the juju provisioner handle it for you. Which environment will you be running?18:35
ekristenAWS18:35
ekristenhow to I contorl instance sizes?18:35
lazypowerok, is that after you've tested using the local provider? or do you want to do all your testing in AWS?18:35
lazypowerusing the constraints, i found a good post on it, 1 sec and i'll fish it up for you18:35
lazypowerhttp://askubuntu.com/questions/52021/how-do-i-adjust-the-instance-size-that-juju-uses18:36
lazypowerekristen: ^ thats for you18:36
lazypowerfor example if you want to deploy a micro, its --constraints "cpu-cores=0"18:37
ekristenwell I’m on mac, but I could spin up a ubuntu image to do local testing on18:38
lazypowerMy suggestion is to either use vagrant, or if you have access to a ubuntu server on bare metal, go that route. LXC and the local provider makes testing a breeze18:39
lazypowerand the low cost alternative to using EC2 as your testbed18:39
ekristenlazypower: how does it handle scaling a web app and routing between multiple endpoints?18:39
ekristenor maybe it doesn’t?18:40
lazypowerrouting to multiple endpoints is dependent on your configuration, like if you're using haxproxy charm.18:40
lazypowerbut scaling is as easy as juju add-unit service-name18:40
ekristenso there are charms that I can use to build a relationship between multiple instances of a service?18:41
lazypowerand it handles scaling down in a similar fashion with juju remove-unit service-name18:41
lazypowerCorrect18:41
ekristen:)18:46
lazypowerekristen: i want to make sure i'm ot leading you astray. Relationships define that, and juju relationships are added on the service level18:51
lazypowerI'm fairly certain that machine level relationships are supported but may take some configuration. Perhaps someone else would like ot step in on that statement for validation?18:52
ekristenright, now is there a master juju server that gets created at bootstrap time?18:54
lazypowerThere is, the juju controller occupies machine 018:55
maxcanhey marcoceppi, lazypower, you both have a paper trail charm in the store and as far as I can tell, you're partners.  is one of them preferred?19:01
ekristenI keep getting “no public ssh keys found” when I try to bootstrap local19:14
ekristenbut I have a key19:14
_bjorneHello, why can im only see one node in juju status, that node runs dist-upgrade and install lxc and mongodb, and the other nodes is NOT run dist-upgrade and installing lxc and mongodb, that nodes cant find user-data.. only the first one can find it, have im doing some wrong or is that a bug in maas or juju?19:19
ekristenonce I expose something how to I get access to it? ie juju gui?19:20
bacekristen: 'juju status' will show its public ip address when it is started.19:20
=== gary_poster|away is now known as gary_poster
ekristenbac: I’m using local for testing19:22
ekristenso it has a 10 ip19:22
bacekristen: ok, can you go to that address in your browser?19:22
ekristenwhats the best way to get access to that since my network is no the 10 network, static routes?19:23
bacekristen: lxc will have created routes for the 10. network from the host machine19:23
ekristenk19:24
ekristenI’m not using the host system to connect though19:25
ekristenso I’ll have to setup some other routing19:25
_bjornewhy im alwas get this error: GET /MAAS/metadata//2012-03-01/user-data HTTP/1.1" 404 200 "-" "Python-urllib/2.7 from second node and up?!19:25
=== jasondotstar is now known as jclark_
=== jclark_ is now known as jasondotstar
ekristenhrm it won’t route my traffic right :/19:29
rick_h__arosales: in call19:30
arosalesrick_h__, joining19:30
lazypowermaxcan: my charm is a s ubordinate service and it configures the remote_syslog gem for arbitrary logging and rsyslog/syslogng out of the box19:34
lazypowermaxcan: so feel free to use my flavor of teh charm and file any bugs you run into. Its working like a dream here but I dont know what your particular setup is so all issues / comments welcome19:34
maxcanawesome19:35
maxcanalso, did you get my note the other day about getting a very rough MMS charm up on github?19:35
lazypowerI did not, i seem to have missed it19:35
lazypowerif you shoot me the link i'll watch the repository :)19:35
lazypowerand try to get it hooked into my juju managed mongodb stack here at work19:36
maxcanhttps://github.com/docmunch/mongodb-management-service-charm19:36
ekristenhow do I search for charms via the cli? or can I?19:36
lazypowermaxcan: hey i like the groudwork here19:38
_bjorneare that someone who now this: when you installing maas and juju, and begin to installs nodes, should nodes one after one, so i can see them in juju status? or is that only one node that coming there? or do need to do anything more for add the others nodes?`19:39
_bjornenone who now my question?19:41
maxcanlazypower: thank you sir19:46
maxcanare you referring to the DRY SVC_NAME variables and things like that?19:46
maxcanits because I wrote my internal charm that way so making new charms would be easy19:46
ekristenjuju seems to take a long time to stand up new charms with no feedback? system is sitting at 0.01 load average, nothing seems to be happening, is there a console or log that can be watched?19:47
ekristencan someone explain to me why I have 3 machines now locally one being raring, the other being precise and now one for oneiric? is that because I’ve chosen to deploy some apps from different repositories that require different distros?19:50
ekristenor is that an artifact of using the local lxc model vs AWS19:50
sarnold_oneiric_??19:51
ekristentest nodejs app?19:52
ekristenI’m just going by juju status19:52
marcoceppiekristen: lets take it one at a time. It seems you're using the local provider. You'll find logs for each of the units/machines in ~/.juju/local/log19:52
marcoceppiekristen: machine 0 will always be whatever version of Ubuntu your computer is, in this case raring. If you deploy a charm with an oneiric series, you'll get an oneiric machine. We recommend you not use oneiric charms unless you have to. Most all charms should be coded to use precise19:53
ekristenit error’d out anyways on the oneiric19:53
ekristenso I’ll stick to precise ;)19:55
ekristenis there docs on how relationships are defined? do they set environment variables in other apps?19:55
ekristenand thanks marcoceppi19:56
marcoceppiekristen: no, relationships are defined in the metadata.yaml file, and data is sent/recv using special juju commands19:56
marcoceppiekristen: https://juju.ubuntu.com/docs/authors-charm-interfaces.html19:59
ekristenbut doesn’t the relationship expose connection infromation?19:59
ekristenwhere does the node.js app look for the mongodb connection information once the relationship is established? maybe thats a better question?20:00
marcoceppiekristen: using relation-get to pull the data20:03
ekristenah20:03
ekristenso the app needs to know how to use relation-get20:03
ekristengotcha20:03
marcoceppiekristen: no, the charm needs to use relation-get20:03
ekristenok20:04
marcoceppiekristen: then it saves it to disk20:04
ekristenok20:06
ekristenmarcoceppi: so if had a webapp to deploy then I’d need to create a charm around it20:09
lazypowermaxcan: yeah your variable structure and your thought patterns in hte hooks make sense to me20:17
maxcansweeter words, a developer will never hear20:18
lazypowerFlattery, one of the many services i offer. I'll be here all week.20:18
ekristenanother question — if I am using AWS and I deploy my node-app or rails app and I scale it to 5, how are the apps not interfering with each other20:23
ekristenare they being put into lxc-containers? likewise if I stand up multiple mysql services20:24
ekristenlazypower: if I have an node app do I need to create my own charm or can I leverage teh node-app charm that already exists, it seems like I should be able to leverage the existing one?20:28
lazypoweryou can leverage the node-app charm as the framework tod eploy your application20:28
ekristenif I want my devs and stuff ot be able to setup their own environments in the own local setup, would I need to create my own custom charm and host it somewhere then?20:29
lazypowerekristen: if you deploy to aws and use unit-add to scale up your application, they all get their own application server unless you specify which unit to deploy to with --to, this may cause problems with some charms, it all depends on the underlying charm "recipe"20:29
lazypoweryeah, you can either have them deploy the charms from your local repository or push them to launchpad for deployment from there, it depends on your requirements.20:30
ekristenreally each gets their own ec2 instance :/20:30
lazypowerI hesitate to give you blanket answers ekristen because juju is very flexible.20:30
ekristenfair enough, I’m in the learning state right now20:31
lazypowerAgain, it depends on your needs and how hte charm recipe operates. I'm not 100% familiar with the node charm. I'd b emore than happy to review it with you later this evening if you will be around.20:31
ekristenok, well I’m going to dive into it more and learn about making charms20:40
ekristenanyone in here a node.js + juju kung fu expert?21:10
lazypowerYou'll yield better luck asking specific questions rather htan looking for someone thats an expert in the field :)21:10
ekristenfair enough, just looking for advice or docs, or lessons learned on deploying apps using juju21:11
marcoceppiekristen: we have a node-app charm21:14
ekristenI did see that, sorry, I’m coming from a PaaS mentality like Cloud Foundry, or OpenShift, this is definitely different, so I’m trying to understand how the whole thing works21:15
ekristenthe docs really do not talk about how charms are deployed, ie server per charm or do they share automatically, things like that21:15
marcoceppiekristen: so juju is not a paas. You deploy a charm as a service, then you can scale that service. If you want to deploy multiple node-apps you can, but they'll be on their own servers21:18
marcoceppiekristen: also, if you want to deploy cloud foundry, you can do that with juju too :)21:19
ekristenI get that, I’m honestly trying to figure out the best way forward for my company in terms of app deployment and scaling our apps in the cloud, I’ve used CF in the past, but its a pain to setup and supports a lot mroe then what we need right now21:21
marcoceppiekristen: well, let me know the specific questions you have, would be happy to help you sort them out21:24
ekristenmarcoceppi: is there any way to make juju deploy a service in lxc-containers on a machine, allowing you to more effectively utilize the hardware being provisioned?21:25
marcoceppiekristen: yes, it's still a little rough, but you can do it https://juju.ubuntu.com/docs/charms-deploying.html#deploying-to-machines21:27
marcoceppithumper: how is container support in juju w/t networking like now?21:29
ekristenmarcoceppi: the considerations at the bottom regarding working on containerizing everything is that just using lxc for everything or using docker?21:29
marcoceppiekristen: everything is with lxc at the moment. Support for other platforms is being added/considered21:30
marcoceppiekristen: but as it stands, the default action is always one machine per unit, unless you explicitly state containers21:31
ekristenmarcoceppi: ok, thanks, might I assume there is a way to specify instance size when deploying a unit?21:31
ekristenregarding aws specifically?21:31
marcoceppiekristen: yes, using constraints, https://juju.ubuntu.com/docs/charms-constraints.html21:32
* ekristen goes to read21:32
marcoceppiekristen: at the moment, most constraints are generic, so you say how many cpu-cores and memory you want, juju will find an instance type that matches21:33
ekristenoh interesting21:33
ekristenok21:33
thumpermarcoceppi: oh hai21:47
marcoceppio/21:47
thumpermarcoceppi: pretty much as it was, container networking still has work pending21:47
thumpermarcoceppi: works mostly on maas, but not too well on anything else21:47
marcoceppithumper: ah, gotchya. Same story with KVM re: networking?21:47
thumperyep21:47
thumperKVMs are now possible21:48
thumperbut communication is still limited21:48
marcoceppithumper: thanks for the update21:54
ekristenyes thank you21:55
ekristendoes juju support aws vpc?22:55
=== gary_poster is now known as gary_poster|away

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