=== 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 | ||
noodles775 | tvansteenburgh: 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 |
---|---|---|
skay | hi, 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 me | 14:04 |
lazyPower | skay: we actually use bundles for that purpose | 14:13 |
lazyPower | skay: 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 |
skay | lazyPower: oh, ok. I'll play around with that and look at the code it generates. | 14:16 |
lazyPower | skay: http://paste.ubuntu.com/8761147/ | 14:18 |
lazyPower | skay: 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 |
skay | lazyPower: thanks | 14:19 |
lazyPower | skay: 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 |
kwmonroe | skay: 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 |
skay | kwmonroe: thanks. I did find that one and download it just now (searched for bundles and it popped right up) | 14:21 |
skay | thanks both! | 14:22 |
lazyPower | kwmonroe: nice follow up | 14:22 |
kwmonroe | thanks lazyPower. nice initial outreach. let's see if we can pat each other's backs all day long. | 14:22 |
lazyPower | kwmonroe: hit me with your best shot :D | 14:23 |
kwmonroe | i'm over it | 14:23 |
lazyPower | someone's feeling spunky today | 14:23 |
kwmonroe | caffeine is a helluva drug | 14:24 |
khuss | my 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 |
lazyPower | khuss: is your mass-controller node able to reach the internet? | 14:31 |
khuss | lazyPower: the maas controller is able to reach the internet | 14:32 |
lazyPower | khuss: ok, i ask because there is a curtain proxy on all nodes that routes through your controller. | 14:32 |
lazyPower | khuss: have any logs we can look at? | 14:33 |
khuss | lazyPower: i tried by making the controller both DHCP and DNS | 14:33 |
khuss | lazyPower: also by making it just the DHCP server | 14:33 |
khuss | lazyPower: which log files? | 14:33 |
khuss | lazyPower: i suspect it could be the proxying issue. but not sure how to debug it | 14:34 |
lazyPower | khuss: is this a VMAAS setup with KVM machines or are you running bare metal? | 14:34 |
khuss | lazyPower: bare metal on Dell PowerEdge | 14:35 |
khuss | lazyPower: when the commissioning fails, the nodes gets powered down | 14:35 |
lazyPower | hmm i'm not sure, i'm poking around in my maas logging directory for the logs we'd be interested in | 14:35 |
lazyPower | 1 moment | 14:35 |
tvansteenburgh | noodles775: jenkins is still fubar | 14:36 |
lazyPower | i'm far from a maas expert, but i've got some experience in troubleshooting a vmaas setup (ie: my own) | 14:36 |
khuss | lazyPower: thanks | 14:36 |
tvansteenburgh | noodles775: fwiw your tests all pass for me on lxc | 14:36 |
tvansteenburgh | noodles775: i can't even bootstrap on ec2 atm | 14:36 |
lazyPower | khuss: maybe ask in #maas as well | 14:36 |
lazyPower | khuss: yeah i forget where the logs are located :( sorry i wasn't much help. | 14:38 |
khuss | lazyPower: ok.. tx for trying | 14:38 |
lazyPower | skay: 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 you | 14:48 |
lazyPower | i'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 |
skay | lazyPower: *nod* | 14:49 |
kwmonroe | mbruzek: 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 |
mbruzek | kwmonroe: sure. | 15:11 |
mbruzek | I always point people to my lamp tests | 15:11 |
mbruzek | http://bazaar.launchpad.net/~ibm-demo/charms/trusty/lamp/trunk/view/head:/tests/10-deploy-test.py | 15:12 |
mbruzek | kwmonroe: ^ | 15:12 |
kwmonroe | cool mbruzek - thanks! | 15:13 |
mbruzek | Documented like it should be | 15:13 |
kwmonroe | i see that. but you got a thing against whitespace? | 15:13 |
* tvansteenburgh chuckles | 15:14 | |
mbruzek | There is whitespace in there | 15:15 |
mbruzek | Just not very much | 15:15 |
kwmonroe | :) just giving you grief. it's probably faster this way. | 15:15 |
mbruzek | this test does not go into config, sorry kwmonroe | 15:17 |
mbruzek | kwmonroe: Here is another example | 15:18 |
mbruzek | http://bazaar.launchpad.net/~charmers/charms/precise/tomcat/trunk/view/head:/tests/10-configured-deploy.py | 15:18 |
mbruzek | kwmonroe: line 124 where the code calls unit.file_contents | 15:19 |
kwmonroe | nice mbruzek - those help alot | 15:20 |
wwitzel3 | is 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 |
natefinch | wwitzel3: edit the charm and throw in a line that errors out | 17:46 |
natefinch | wwitzel3: pretty trivial to write a test charm to use | 17:47 |
wwitzel3 | natefinch: yeah, I was just chekcing to make sure there want something like fail-install-charm .. before i went and tweaked one to do that | 17:48 |
aisrael | Is there a way to file a bug against a PPA in launchpad? | 17:48 |
lazyPower | aisrael: just the project unfortunately. | 18:06 |
aisrael | lazyPower: 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 | ||
jrwren | Can 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 | ||
lazyWeekend | jrwren: ping | 23:55 |
fuzzy | tvansteenburgh: <3 | 23:56 |
tvansteenburgh | fuzzy: :( | 23:56 |
fuzzy | It's ok, I still love ya :) | 23:56 |
fuzzy | Happy Halloween | 23:56 |
jrwren | lazyWeekend: ! | 23:56 |
tvansteenburgh | you must think i'm blowing you off by this point, but i'm really not. it's been a really bad week | 23:56 |
fuzzy | Not at all | 23:57 |
fuzzy | I can only assume you are as busy as me | 23:57 |
tvansteenburgh | if that's the case then i feel sorry for you :) | 23:57 |
fuzzy | it won't always be like this | 23:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!