/srv/irclogs.ubuntu.com/2013/09/19/#juju.txt

blairbobtw thanks for your help00:00
blairbo$ ls /var/log/upstart00:02
blairboconsole-setup.log       module-init-tools.log           rsyslog.log00:02
blairbocontainer-detect.log    mongodb.log                     ureadahead.log00:02
blairbodbus.log                network-interface-eth2.log      ureadahead-other.log00:02
blairbojuju-db-juju-local.log  procps-static-network-up.log00:02
blairbolxc-net.log             procps-virtual-filesystems.log00:02
=== andreas__ is now known as ahasenack
blairbosorry should have pastebin'd that.. my bad.  http://pastebin.com/Emu7v3Z800:13
marcoceppiblairbo: weird. `juju destroy-environment` and re-bootstrap00:20
marcoceppiblairbo: see if that helps00:20
blairbomarcoceppi: will do. stand by00:20
blairbomarcoceppi: result - http://pastebin.com/Eu1D5qcv00:23
marcoceppiblairbo: how does juju status look now?00:24
blairbomarcoceppi: status - http://pastebin.com/hw4GJc9b00:24
marcoceppiblairbo: looks better, try deploying something now00:25
blairbomarcoceppi: which is how it looked before I deployed mysql last time.. let's give this a shot..00:25
marcoceppiblairbo: what's the deploy command you're using?00:26
blairbomarcoceppi: juju deploy wordpress (local is the default environment in my environments.yaml file)00:29
marcoceppiblairbo: k00:30
blairbomarcoceppi: then "juju deploy mysql", then00:30
blairbo"juju add-relation mysql wordpress"00:30
marcoceppiblairbo: how's that going now? getting and oddness in juju status?00:31
marcoceppiblairbo: also, what does `juju version` say?00:32
blairbomarcoceppi: same oddness - http://pastebin.com/hw4GJc9b version is 1.14.0-precise-amd6400:33
marcoceppiblairbo: old link00:34
=== defunctzombie is now known as defunctzombie_zz
blairbomarcoceppi: oops - http://pastebin.com/8p7Z5is900:37
marcoceppiblairbo: this is a bug then, I'm still using 1.13.3 so I can't confirm atm00:38
blairbomarcoceppi: I am not opposed to starting from bare metal again. Should I revert?00:38
marcoceppiblairbo: you could try 1.13.300:41
blairbomarcoceppi: are you on precise?00:42
marcoceppiblairbo: no, raring on this machine00:42
=== defunctzombie_zz is now known as defunctzombie
blairbomarcoceppi: ok. I'll give that a shot. I'm also having a hard time with my 2nd and 3rd NICs on precise - they refuse to pull an IPV4 address from DHCP.00:43
=== freeflying is now known as freeflying_away
sarnoldblairbo: what's your /etc/network/interfaces look like?00:47
sarnoldblairbo: (I think the juju lxc provider requires all lxc guests to be on the same NATted bridge, so those extra nics may not even be useful to you as you're intending to use them..)00:48
blairbosarnold: they're not configured for auto intentionally - I am trying to get them up manually to no avail.  http://pastebin.com/RwJGPfp400:54
sarnoldblairbo: Wouldn't you want some "iface eth1 inet dhcp" and "iface eth0 inet dhcp" lines in there, even without the 'auto' bit, so 'ifup eth0' or 'ifdown eth1' works?00:55
blairbosarnold: yes, that would make life easier00:55
sarnoldblairbo: of course if you just leave them out entirely, I'd hope you could run 'ifconfig eth0 up ; dhclient -i eth0 -whatever-else-is-needed...'00:55
blairbosarnold00:59
blairbosarnold: sorry, itchy pinky finger - no love on the dhclient as before01:00
sarnoldblairbo: aww. :/01:00
blairbosarnold: did the same thing to me during the OS install01:01
blairbosarnold: i'm thinking it may be a 32/64 bit issue with the hardware, as they are on PCI slots01:02
blairbopardon the OT01:02
sarnoldblairbo: hrm, seems unlikely to me, 64 bit support isn't exactly new.. :) hehe -- maybe check ethtool output for those other nics? maybe check the dhcp server logs if you can get to those?01:05
=== freeflying_away is now known as freeflying
=== thumper-gym is now known as thumper
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== freeflying is now known as freeflying_away
=== thumper is now known as thumper-afk
=== tasdomas_afk is now known as tasdomas
=== freeflying_away is now known as freeflying
=== Guest81313|Away is now known as CyberJacob
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== thumper-afk is now known as thumper
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== kentb-out is now known as kentb
=== tasdomas is now known as tasdomas_afk
=== defunctzombie_zz is now known as defunctzombie
kentbis there a way to cap constraints in juju, like for CPU memory, etc? I know that it'll work off minimums, but, wasn't sure if there was a way to say "don't pick this machine if it's got more than this amount of memory" for example.17:44
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
sidneikentb: it will start from the minimum in constraints and try to pick the smallest one that satisfies the constraints17:56
kentbok17:56
sidneikentb: note that there were bugs at some point that caused it to pick a random number of cpus for example if you only informed mem constraint17:57
sidneikentb: the 1.14 release has the fixes17:57
kentbsidnei: ah ok...all the more reason to upgrade :)  Thanks17:57
sidneithe actual bug was for openstack, where it only sorted by mem and then picked whatever was at the top17:58
kentbok. that also explains things, too17:58
ZonkedZebraSo I'm writing a charm and using juju-log extensively. Where does one see that output. debug-log shows the hook is being called but I don't see the messages passed to juju-log anywhere18:04
kentbone more question...for juju-bootstrap I believe you have to do a sync-tools prior to bootstrapping. If you are stuck behind a firewall that makes sync-tools difficult, is --upload-tools acceptable, especially if all you're doing is testing / non-production work?18:06
=== defunctzombie_zz is now known as defunctzombie
marcoceppiZonkedZebra: that goes in /var/log/juju/unit-*.log on the machine18:16
marcoceppikentb: --upload-tools is meant only for dev, maybe fwereade could explain more about --upload-tools18:17
marcoceppikentb: I'm still confused by --upload-tools and sync-tools, other than we recommend sync-tools18:17
kentbmarcoceppi: ok, yeah, I figured sync-tools is what is strongly advised to use.  That said, is there a way to get the tools source from elswhere, put them on your firewalled-off machine and point juju locally to those tools?18:19
marcoceppikentb: --upload-tools will build the tools locally on your machine, so you need a go build environment, IIRC, to use it18:20
marcoceppikentb: but it could be an alternative18:20
kentbmarcoceppi: ok got it18:20
ZonkedZebramarcoceppi: I see things like "juju.worker.uniter modes.go:109 awaiting error resolution for "config-changed" hook" but i don't see any of the actual messages I'm passing to juju-log18:38
jaywinkbeen wondering about juju logging too, on bootstrap phase. I see in the code (running development version) lots of logging calls in various parts but no idea where the log goes.. any ideas? :)18:43
ZonkedZebra /var/log/juju on each node has some log files. as well as juju debug-log seems to collect some log data from across all nodes18:46
jaywinkZonkedZebra, don't even have /var/log/juju but I haven't bootstrapped yet :)19:09
jaywinkthere are logging calls in the bootstrap phase too19:10
ZonkedZebraadding -v to any command should up the console logging but enough to figure out whats going on19:10
kurt_marcoceppi: have you messed with getting the vnc console set up on openstack-dashboard, or no of someone who successfully has?19:14
marcoceppikurt_: no idea19:18
marcoceppiZonkedZebra: you don't see any juju-log data?19:18
ZonkedZebramarcoceppi: I see some, thinks that error seem to log the error message, but only if I'm currently debug-hooks19:19
marcoceppiZonkedZebra: if you're running debug-hooks and your hooks are in bash, just add `set -ex` to the top of the script19:19
marcoceppiZonkedZebra: it'll be super verbose19:20
jaywinkZonkedZebra, oh thanks, didn't know about -v, don't see any mention of it with "juju help" :P19:39
marcoceppijaywink: if you run juju help bootstrap you should see all the options19:40
marcoceppijaywink: bah, it's no there. -v and --debug are two additional options you can use19:40
marcoceppithat are global, but not in any of the command line help files19:40
jaywinkmarcoceppi tnx a lot more verbose now :)19:41
ZonkedZebramarcoceppi: thanks. Any experience or advice on deployment ssh keys (using git)19:49
marcoceppiZonkedZebra: how so? Like placing SSH keys on a service/unit19:49
ZonkedZebrayep, bust way to provide a key to all nodes and to be used with the git clone/pull19:50
marcoceppiZonkedZebra: via a configuration option19:51
marcoceppijuju set <service> deploy-key=`cat ~/.ssh/the-key-you-want`19:51
AskUbuntuHow can I debug a juju client command? | http://askubuntu.com/q/34765119:51
ZonkedZebraand then have the script write out the key file, use it, then delete it again?19:51
ZonkedZebrascript=charm19:52
marcoceppiZonkedZebra: just store the key in your users home directory on the charm, so during your hooks/config-changed hook, do something like this:19:53
marcoceppiZonkedZebra: http://paste.ubuntu.com/6129743/19:54
ZonkedZebraokay, but wouldn't that conflict if I run multiple services on the same node? they all run under the ubunutu user yes?19:57
marcoceppiZonkedZebra: they all run as the root user, and yes if multiple charms are co-located, we dont' recommend co-location of services until containerization is fixed19:58
ZonkedZebramarcoceppi: fair enough. thanks19:59
marcoceppiZonkedZebra: if that's a problem, just save the file as ".ssh/${$JUJU_UNIT_NAME/\//-}"20:00
marcoceppiinstead of id_rsa, you'll just need to make sure you specify that key file as the one to use for git cloning20:01
marcoceppiZonkedZebra: that'll take something like "service-name/0" to "service-name-0" which is a friendier file name20:01
=== tasdomas_afk is now known as tasdomas
=== tasdomas is now known as tasdomas_afk
adam_ghazmat, around?20:29
kentbmarcoceppi: so what exactly are the tools that get sync'ed / uploaded prior to bootstrapping?  Is it just API-related, internal-to-juju stuff?20:37
zradminhas anyone had issues with the glance charm working properly?20:43
=== CyberJacob is now known as CyberJacob|Away
ZonkedZebramarcoceppi: is there an easy way to pass files along with the charm to use as templates instead of embedding them in the bash script?20:51
marcoceppikentb: it's the actually uploading juju client to be installed on all the machines. The juju client for the services is uploaded and dpeloyed from the storage to keep the same version between machines20:52
marcoceppiZonkedZebra: you can use things like cheetah20:52
ZonkedZebramarcoceppi: link?20:53
marcoceppiZonkedZebra: there's a few charms that do that20:53
marcoceppiZonkedZebra: there's an old bash charm helper hanging around that does this20:54
marcoceppiZonkedZebra: https://github.com/marcoceppi/discourse-charm/blob/master/lib/file.bash20:57
marcoceppiZonkedZebra: but that gives you the cheetah formatting20:59
marcoceppiZonkedZebra: here's an example template file, you just use $VARIABLE in the file https://github.com/marcoceppi/discourse-charm/blob/master/contrib/upstart/discourse-sidekiq.conf.tpl21:00
kentbmarcoceppi: excellent. just what I needed...thanks!21:06
=== defunctzombie is now known as defunctzombie_zz
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== kentb is now known as kentb-afk
hazmatadam_g, yes22:11
adam_g hazmat i merged darwin into lp:juju-deployer earlier in the month, noticed some more changes hitting darwin since.  any chance we can move development to lp:juju-deployer? not sure what needs to happen in LP22:15
hazmatadam_g, ic.  i think its just a question of getting the word/out announcement, and then updating the various ppa/pkg builders to point to the new origin. there's still a few new merge proposals in the queue against darwin, getting those merged, and we can either unlink the series or point the series to trunk also on lp.22:17
=== freeflying is now known as freeflying_away

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