/srv/irclogs.ubuntu.com/2014/10/31/#juju.txt

=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54 is now known as kadams54-away
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== marlinc_ is now known as marlinc
=== underyx|off is now known as underyx
noodles775tvansteenburgh: Hi there. Let me know if you managed to sort out the auto-test issues. I've got a branch I'd love to land for elasticsearch (I've tested it locally, as well as manually upgrading some deployment scenarios): https://code.launchpad.net/~michael.nelson/charms/trusty/elasticsearch/firewall_optional/+merge/240211 (it's got a prereq branch which is also approved)10:29
skayhi, new here. need to write a charm to deploy a django stack (apache, postgres, gunicorn) and would like to look at an existing charm for this as an example to emulate. I'm using python-django for the django part. the postgres part seems straightforward. the apache2 (and I wnat to do haproxy at some point, but small steps) is not at all as obvious to me14:04
lazyPowerskay: we actually use bundles for that purpose14:13
lazyPowerskay: if you have juju-gui deployed, you acn visit your gui instance and build the bundle in your env, or you can model a deployment on jujucharms.com at zero cost to you (kind of a drafting tool really) then export the bundle and deploy to your provider.14:14
skaylazyPower: oh, ok. I'll play around with that and look at the code it generates.14:16
lazyPowerskay: http://paste.ubuntu.com/8761147/14:18
lazyPowerskay: thats just drag n drop stuff - you can get more detailed with the deployment like placing your django and postgres instances in lxc/kvm containers on a single host to cut down on costs, and deploy haproxy to the host machine handling your web routing - thus effectively placing your entire stack in a single machine.14:19
skaylazyPower: thanks14:19
lazyPowerskay: stay tuned, early next week i'll have a video tutorial published about a new charm hazmat has in the works to do software defined networking to do cross-host container communication so you can do density with your deployments in lxc and scale out.14:20
kwmonroeskay: you may also want to look at https://jujucharms.com/bundle/django/2/example-single/ -- fair warning: i've never deployed this bundle, but it at least looks close to what you want..14:21
skaykwmonroe: thanks. I did find that one and download it just now (searched for bundles and it popped right up)14:21
skaythanks both!14:22
lazyPowerkwmonroe: nice follow up14:22
kwmonroethanks lazyPower.  nice initial outreach.  let's see if we can pat each other's backs all day long.14:22
lazyPowerkwmonroe: hit me with your best shot :D14:23
kwmonroei'm over it14:23
lazyPowersomeone's feeling spunky today14:23
kwmonroecaffeine is a helluva drug14:24
khussmy maas nodes are stuck in "commissioning" state. Looks like the node is not able to update packages. Any ideas on debugging this problem?14:29
lazyPowerkhuss: is your mass-controller node able to reach the internet?14:31
khusslazyPower: the maas controller is able to reach the internet14:32
lazyPowerkhuss: ok, i ask because there is a curtain proxy on all nodes that routes through your controller.14:32
lazyPowerkhuss: have any logs we can look at?14:33
khusslazyPower: i tried by making the controller both DHCP and DNS14:33
khusslazyPower: also by making it just the DHCP server14:33
khusslazyPower: which log files?14:33
khusslazyPower: i suspect it could be the proxying issue. but not sure how to debug it14:34
lazyPowerkhuss: is this a VMAAS setup with KVM machines or are you running bare metal?14:34
khusslazyPower: bare metal on Dell PowerEdge14:35
khusslazyPower: when the commissioning fails, the nodes gets powered down14:35
lazyPowerhmm i'm not sure, i'm poking around in my maas logging directory for the logs we'd be interested in14:35
lazyPower1 moment14:35
tvansteenburghnoodles775: jenkins is still fubar14:36
lazyPoweri'm far from a maas expert, but i've got some experience in troubleshooting a vmaas setup (ie: my own)14:36
khusslazyPower:  thanks14:36
tvansteenburghnoodles775: fwiw your tests all pass for me on lxc14:36
tvansteenburghnoodles775: i can't even bootstrap on ec2 atm14:36
lazyPowerkhuss: maybe ask in #maas as well14:36
lazyPowerkhuss: yeah i forget where the logs are located :( sorry i wasn't much help.14:38
khusslazyPower: ok.. tx for trying14:38
lazyPowerskay: the bundle i linked is subject to a bug i just discovered -it exported "null" and .nan in the keys for postgres - which will fail a deployment for you14:48
lazyPoweri've got people looking into it, but treat that as the worst case example - the bundle you fetched from teh store will not have this behavior.14:48
skaylazyPower: *nod*14:49
kwmonroembruzek: can you point me to docs or a test.py that does something besides assert that deployment worked?  i want budnletester to twiddle config, but am not sure of the syntax.15:10
mbruzekkwmonroe: sure.15:11
mbruzekI always point people to my lamp tests15:11
mbruzekhttp://bazaar.launchpad.net/~ibm-demo/charms/trusty/lamp/trunk/view/head:/tests/10-deploy-test.py15:12
mbruzekkwmonroe: ^15:12
kwmonroecool mbruzek - thanks!15:13
mbruzekDocumented like it should be15:13
kwmonroei see that.  but you got a thing against whitespace?15:13
* tvansteenburgh chuckles15:14
mbruzekThere is whitespace in there15:15
mbruzekJust not very much15:15
kwmonroe:)  just giving you grief.  it's probably faster this way.15:15
mbruzekthis test does not go into config, sorry kwmonroe15:17
mbruzekkwmonroe: Here is another example15:18
mbruzekhttp://bazaar.launchpad.net/~charmers/charms/precise/tomcat/trunk/view/head:/tests/10-configured-deploy.py15:18
mbruzekkwmonroe: line 124 where the code calls unit.file_contents15:19
kwmonroenice mbruzek - those help alot15:20
wwitzel3is there a good way to force a charm in to an error state? or do we have a testing charm that fails for certain hooks?17:43
natefinchwwitzel3: edit the charm and throw in a line that errors out17:46
natefinchwwitzel3: pretty trivial to write a test charm to use17:47
wwitzel3natefinch: yeah, I was just chekcing to make sure there want something like fail-install-charm .. before i went and tweaked one to do that17:48
aisraelIs there a way to file a bug against a PPA in launchpad?17:48
lazyPoweraisrael: just the project unfortunately.18:06
aisraellazyPower: Thanks!18:08
=== CyberJacob|Away is now known as CyberJacob
=== fuzzy is now known as Ponyo
=== kadams54 is now known as kadams54-away
=== lazyPower is now known as lazyWeekend
jrwrenCan anyone using mongodb charm and relating it to other charms via database relation, please ping me.?23:11
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
lazyWeekendjrwren: ping23:55
fuzzytvansteenburgh: <323:56
tvansteenburghfuzzy: :(23:56
fuzzyIt's ok, I still love ya :)23:56
fuzzyHappy Halloween23:56
jrwrenlazyWeekend: !23:56
tvansteenburghyou must think i'm blowing you off by this point, but i'm really not. it's been a really bad week23:56
fuzzyNot at all23:57
fuzzyI can only assume you are as busy as me23:57
tvansteenburghif that's the case then i feel sorry for you :)23:57
fuzzyit won't always be like this23:58

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