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

=== freeflying_away is now known as freeflying
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
ZonkedZebraIs there a way to modify the config of a charm from within a hook?01:22
davecheneyZonkedZebra: no, there is no config-set hook command01:23
ZonkedZebradavecheney: best approach to auto load new code from a remote repo? cron? hooks? config bool that you set back and forth?01:24
davecheneyZonkedZebra: why not01:25
davecheneyjuju set revision=XXX01:25
davecheneywhich will fire the config-changed hook on your units01:26
ZonkedZebradavecheney: if I juju set to the value it already is does that trigger the config-changed hook?01:26
ZonkedZebra(The goal is to have production and staging that track the appropriate git branch with minimal intervention)01:27
davecheneyZonkedZebra: no01:29
davecheneyBuuuuuut, remember as a charm author, we do not guarentee that hooks will not be run only once01:29
davecheneyso they should be written to expect this01:29
ZonkedZebraZonkedZebra: yep, thats fine. I've got all the appropriate checks to make sure multiple runs don't cause issues. Just looking for the easiest way to poke it a little to have pull the new changes from git01:31
davecheneyZonkedZebra: why do you want config-set (sic?)01:32
davecheneyit smells like you are trying to tell someone else that the charm changed something01:32
ZonkedZebrai just created a config property that I would going to set to true, and then reset to false in config-changed01:35
davecheneywhat would it resetting to false mean ?01:36
ZonkedZebraThat i could consistently do "juju set app pull=true"01:36
davecheneyi'm not trying to troll btw, just trying to understand your problem to fit it into the (sometimes limiting) model that Juju offers01:36
davecheneywhat does pull=true do ?01:36
davecheneyie, why not just setup a cron on the unit ?01:37
ZonkedZebrait would fire config-changed (where git pull happens) and then set back to false to be ready to get pull=true set again01:37
davecheneyZonkedZebra: so, something would be cron'd on the client to setup pull=true ?01:38
davecheneywhy not just setup the cron on the unit ?01:38
ZonkedZebraNo, I would do that by hand01:38
davecheneyok, in that case i'd recommend01:38
davecheneynot pull=true01:38
ZonkedZebrado work, commit, do work, commit, juju set app pull=true01:38
davecheneybut revision=XXXX01:38
ZonkedZebraWould also work, but I would like the units associated with branches, not a particular rev, and as we discussed, if branch is already dev then set branch=dev would not trigger the pull01:39
davecheneysure, have two config setings01:40
davecheneybranch=... rev=...01:40
davecheneyif you just need a trigger01:40
davecheneyjuju set app rev=$(pwgen 100)01:41
davecheneyjust to set it to some random garbage01:41
* ZonkedZebra nods01:41
ZonkedZebradavecheney: that will do, thanks01:41
davecheneynp01:41
davecheneypwgen 100 may be overkill01:42
davecheneymaybe call the config valye nonce or trigger or something01:42
ZonkedZebradavecheney: timestamp so at least it will be slightly useful01:45
davecheneysuredate +%N01:47
davecheneydate +%N01:47
davecheneymaybe01:47
julianwa_davecheney:  hi, I use juju add-machine and OS installation failed due to some post install script failure. now I can't juju terminate-machine. the life-cycle is dying...  what can I do here?02:03
josehey marcoceppi, is it possible to get the postfix charm on the store before oct 1st?03:07
davecheneyjulianwa_: i'm sorry you got bit by this03:17
davecheneythis is an open bug/freature request03:17
davecheneyyour best bet is to delete the machine using aws or whateve ryou use03:18
davecheneythen ignore the broken record in the juju status03:18
davecheneyit's been a known issue for a long time03:18
davecheneyi'm trying to get it bumped up th epriority list03:18
davecheneybut please don't take that as a forward looking statement03:18
julianwa_davecheney: you mean leave the dying machine there? but the dying server will have same maas-name. is that ok?03:21
davecheneyoh, you're using maas03:24
davecheneyhmm03:24
freeflyinglol03:25
davecheneyjulianwa_: how did the machine get killed ?03:25
davecheneydid you use mass to kill it when the terminate-machine failed ?03:25
julianwa_davecheney:  not killed. one post-install script failed when juju add-machine. Then I execute terminate-machine03:26
julianwa_davecheney: it's still in MAAS03:26
davecheneyjulianwa_: are you Canonical ?03:27
julianwa_davecheney:  yes...03:27
davecheneylets talk in that other channel03:27
davecheneysorry folks, i'll post a wrap up03:27
davecheneywhen I figure out the problem03:27
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== defunctzombie_zz is now known as defunctzombie
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== defunctzombie is now known as defunctzombie_zz
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
=== CyberJacob|Away is now known as CyberJacob
fwereademarcoceppi, jcastro, ping07:30
=== freeflying_away is now known as freeflying
gnuoyhi, I've added a new unit to an existing juju deployment and when I do a juju status all the other machines report in fine but the new unit reports "agent-state-info: '(error: failed to list contents of container: juju-stagingstack-geonames"08:31
gnuoyI can query the juju-stagingstack-geonames"08:31
gnuoybucket fine and have downloaded bootstrap-verify, provider-state and the tools tgz without a problem08:32
gnuoyI tried removing the unit and adding another one but I get the same error08:32
=== CyberJacob is now known as CyberJacob|Away
=== freeflying is now known as freeflying_away
bloodearnestheya all - I've been getting "cannot log in to admin database" immediately after a bootstrap on Openstack10:30
bloodearnestthis is with 1.14.1 on raring10:30
marcoceppifwereade: pong11:54
fwereademarcoceppi, hey, I was pinging you as a possible evilnickveitch proxy, but I see he's online now11:55
marcoceppignuoy: I've not seen that error before, what provider are you using? What version of Juju?11:55
marcoceppifwereade: ack11:55
fwereadeevilnickveitch, ping11:56
evilnickveitchfwereade, hi11:56
gnuoymarcoceppi, openstack and 1.13.2-1 bzr revno 167011:56
marcoceppibloodearnest: is this /immediately/ after bootstrap, or after you can verify that the bootstrap is running via juju status11:56
fwereadeevilnickveitch, I was wondering if there was anything I could do to ease the passage of the docs I gave you a whileback?11:56
gnuoymarcoceppi, what object is it trying to access ?11:56
fwereadeevilnickveitch, a casual look seemed to indicate they weren't up yet11:56
marcoceppignuoy: I have no idea, did the machine come online?11:56
fwereadeevilnickveitch, if the problem is, say, that they're crap, I'd like to help make them less so :)11:57
evilnickveitchfwereade, oh, thanks for the offer - they are not, because I have taken the opportunity to include them in more of a restructure, but they will be up later today11:57
gnuoymarcoceppi, nova thinks its active, I'll try ssh'ing to it11:57
fwereadeevilnickveitch, ok, that's awesome, tyvm11:57
marcoceppignuoy: if you can ssh in to it, then you can get the /var/log/juju/machine-*.log file - should help shed some light11:57
evilnickveitchfwereade, no, they aren't crap at all :)11:58
evilnickveitchI will let you know when they go up, would be good to get your feedback11:58
fwereadeevilnickveitch, jolly good, i felt obliged to check ;p11:58
fwereadeevilnickveitch, cheers11:58
gnuoymarcoceppi, well it looks like I was looking in the wrong machine and the new machine never came. I'll have a dig around and see if  I can see why. thanks11:59
marcoceppignuoy: also, you might want to consider moving to 1.14.1 as it's the latest "stable"12:01
gnuoymarcoceppi, absolutely12:01
marcoceppiI noticed the environment was named "staging", but the latest dev will be 1.15 so 1.14.1 is the truely latests12:01
marcoceppiit should also be easier to upgrade between stable versions than dev releases when doing in-place upgrades12:02
* marcoceppi is so giddy about in-place juju upgrades12:02
bloodearnestmarcoceppi: I get that running juju status12:04
bloodearnestmarcoceppi: it times out after about 7min with "Unable to connect to environment "openstackshredder""12:04
marcoceppibloodearnest: that's interesting. Can you destroy then bootstrap again with `--debug -v` options, then run `juju status -v --debug`12:05
bloodearnestmarcoceppi: ack12:05
marcoceppibloodearnest: also, you have admin-secret set, correct?12:05
marcoceppibloodearnest: in your environments.yaml12:05
bloodearnestmarcoceppi: yep - freshly generated with generate-config12:06
marcoceppibloodearnest: excellent, if you could pastebin those when you get them that should help shed some light12:06
bloodearnestmarcoceppi: destroy fails: https://pastebin.canonical.com/98138/12:09
bloodearnestmarcoceppi: the --debug points at opendns issues12:09
bloodearnestsome kinda redirect issues12:10
marcoceppibloodearnest: that's annoying12:10
bloodearnestmarcoceppi: yeah - am trying from a canonistack instance I use for dev, but I'm having similar problems there too12:11
bloodearnestmarcoceppi: bootstrap output: https://pastebin.canonical.com/98139/12:24
bloodearnestmarcoceppi: status output: https://pastebin.canonical.com/98140/12:25
marcoceppibloodearnest: yeah, it's successfully connecting to the bootstrap, just not logging in for some reason :\12:26
=== bing is now known as Guest14737
bloodearnestmarcoceppi: for completeness, destroy output (3 lines): https://pastebin.canonical.com/98141/12:27
bloodearnestall this is done from a nother vm on the same OS environment12:27
marcoceppibloodearnest: I've not encountered this, not quite sure how to debug past here. You might find more information on the bootstrap node in /var/log/juju/12:28
bloodearnestmarcoceppi: don't know if it's related, but I can't ssh into the boostrap node - publickey denied12:35
marcoceppibloodearnest: well, that's also interesting12:35
bloodearnestmarcoceppi: in another env, I seem to be able to ssh in12:41
=== defunctzombie_zz is now known as defunctzombie
=== freeflying_away is now known as freeflying
Nelson111Assuming i joined the right ubuntu catch up..... hello geeks nerds and all :)14:15
=== defunctzombie is now known as defunctzombie_zz
jamespagemarcoceppi, charm-tools uploaded to saucy - got accepted16:40
sylvainghi jcastro i just send mail about bluemind and juju ;-)16:40
marcoceppijamespage: \o/ Thank you!16:40
jamespagemarcoceppi, hey np16:41
=== cmagina is now known as cmagina-away
marcoceppijamespage: the next step is to get charm-tools in to backports for precise, when I run requestbackport it says no published binaries in saucy. Is this just a waiting game?16:53
jcastroCharm Championship submission charm school on http://ubuntuonair.com in a few minutes!17:01
jamespagemarcoceppi, give it a chance to get into the release pocket17:08
marcoceppijamespage: ack, figured17:09
marcoceppijcastro: you need me there, or is this a Mims and you thing?17:09
arosalesHello were are getting kicked off on the charm school, "How to enter the Charm Championship."17:11
marcoceppijcastro: oh bugger. The new package removes charm-helper-sh, which is provided in saucy. I suppose that's going to be a problem during the backport req17:11
marcoceppijamespage: ^^, not jcastro17:11
marcoceppibah, that whole sentance is wrong17:12
marcoceppijamespage: oh bugger. The new package removes charm-helper-sh, which is provided in the precise version. I suppose that's going to be a problem during the backport req17:12
arosalesif you would like to follow along for the charm school it is at http://ubuntuonair.com/17:14
arosalesYouTube direct link is @ https://www.youtube.com/watch?v=c6wTtWDyXsc17:15
m_3sound went out completely :-(17:24
m_3I can't hear anything... gonna try to reconnect... sorry for the technical difficulties17:24
ktubilgisayarhi17:40
=== cmagina-away is now known as cmagina
zradminhas anyone else been trying to setup HA openstack with Juju? I've been following the guides posted and have my setup 90% there.... instances are launching and running but are not getting an IP from quantum at all. When I check the logs they just show APMQ messages succesfully crossing. anyone have similar issues?19:36
=== CyberJacob|Away is now known as CyberJacob
=== defunctzombie_zz is now known as defunctzombie
marcoceppizradmin: a few people have been setting up openstack, let me see if I can recall their names20:33
zradminmarcoceppi: thanks!20:38
marcoceppikurt_: were you the one working on deploying openstack?20:38
kurt_yup20:39
=== defunctzombie is now known as defunctzombie_zz
marcoceppikurt_: did you ever get far enough to experience quantum not assigning IP addresses?20:43
kurt_I'm finished and it all works for me.20:43
kurt_I had to manually configure quantam.20:43
kurt_marcoceppi: I could never get the charm to work out of the box20:45
kurt_I only allowed the charm to do the basic install, but did all post-configuration myself20:45
zradminkurt_: what was the post configuration? the charm i specified eth1 as extnet but it looks like something in juju changed so it uses alot of lxc bridges20:54
zradminkurt_: I have nodes with 2 nics, one on the "internal" switch and one on the "external" switch20:54
kurt_right - one nic should connect to your oam net, the other to you external lan20:55
kurt_zradmin - do you do evernote?  I've put it all in to that format so you can see20:55
zradminkurt: not currently but I can create an account real fast20:56
kurt_do that and I'll share the note20:56
zradminkurt: evernote username is zradmin :)20:56
kurt_k, hang on a sec20:58
kurt_Actually you may not need account20:59
kurt_see if you can see this20:59
kurt_https://www.evernote.com/shard/s244/sh/37674b81-51af-4579-9579-8058b4cf3a9a/aca1835adea4ca6cb52e7d0091ced91c20:59
zradminyup got it20:59
kurt_There you go21:00
kurt_that should answer your questions21:00
zradminthanks, I'll let you know how it turns out :)21:00
kurt_good stuff21:00
kurt_FYI - the process was shamelessly borrowed from Kentb on the security team21:01
=== defunctzombie_zz is now known as defunctzombie
zradminkurt_: hmmm it looks like it does the same thing I was doing in horizon to configure the ext_net, I created a new project and created the networks via commandline and am still having the same issue21:30
zradminkurt: this is what I get on the instance http://pastebin.ubuntu.com/6164559/21:32
kurt_zradmin: is your ext_net hooked up to a separate network?21:44
kurt_it looks like its trying to bring it up on eth0 instead of eth1 too21:44
zradminyeah it is set to configure to eth1, but when I do an ifconfig on the nova-compute node it doesnt show anything configured on eth121:45
kurt_you need to specify eth1 for the quantum charm21:45
zradminyeah i did that21:45
kurt_no ip address21:46
zradminthis is in the syslog on the node m7q49 dnsmasq-dhcp[2221]: DHCP packet received on qvo6a26ce05-ae which has no address21:46
kurt_are you certain your eth1 is alive and connected to a network other than your eth0?21:46
kurt_are you doing this with physical hosts or virtual hosts?21:47
=== defunctzombie is now known as defunctzombie_zz
zradminphysical, building on an m1000e blade21:48
kurt_so ensure your eth1 is actually wired to a second network.  you may need to test that part - because I think that's where your problem is21:49
kurt_also - are you specifying precise:grizzly?21:49
kurt_here - have a look at my local.yaml - make sure yours is similar21:50
kurt_http://pastebin.ubuntu.com/6164613/21:50
kurt_mine goes for a single node rather than multinode installation21:51
kurt_well, let me rephrase...21:51
kurt_I am going the non-HA route for now as proof of concept21:51
kurt_I installed on 6 virtual hosts21:51
zradminah i see it, my switch stack is messing up my vlans21:52
zradminits tagging the traffic on the port21:52
kurt_;)21:53
kurt_I need to take off for a while - I'll be back in an hour or so.21:54
kurt_ping me if you are still having problems after you figure out your tagging problem21:54
_mup_Bug #1232282 was filed: maas provider: bucket download failures not handled well <theme-oil> <juju:New> <https://launchpad.net/bugs/1232282>22:02
=== defunctzombie_zz is now known as defunctzombie
ZonkedZebraIs there a one liner to obtain the public address of a unit?22:16
marcoceppiZonkedZebra: uh, kind of22:21
ZonkedZebrajuju status api/0 | grep public-address | cut -d ":" -f 2 | tr -d " "22:21
ZonkedZebraSomething like that?22:21
marcoceppibasically, I would have used awk, but that's because I <3 awk22:21
* ZonkedZebra is not an awk user22:21
ZonkedZebraawk cleaner?22:21
marcoceppiZonkedZebra: that's highly subjective :P22:22
ZonkedZebrawhat would it be in awk?22:22
marcoceppiZonkedZebra: juju status wordpress/0 | grep -m1 public-address | awk '{print $2}'22:24
marcoceppi-m1 is to only do the first match, in case there are subordinates22:24
ZonkedZebraWorth learning I guess, After all, everything has awk22:24
marcoceppiZonkedZebra: awk is it's own language, but at the surface it's pretty easy to use22:25
sarnoldit's awesome for one-liners. beyond that I lose interest, hehe22:25
marcoceppiit's like vi/vim. You learn one basic flag and life is good, then when you need to dig deeper, you can22:25
marcoceppi(that flag is -F)22:26
sarnoldlol22:26
sarnoldyes, -F is awesome. :)22:26
marcoceppiI only learned of awks amazing depth about two years ago, up until then it was my go-to "cut"22:28
=== CyberJacob is now known as CyberJacob|Away
=== defunctzombie is now known as defunctzombie_zz
=== freeflying is now known as freeflying_away
kurt_see + awk are awesome23:08
kurt_sed + awk are awesome23:08
kurt_old as the hills but still as good as gold23:09
ZonkedZebraThis is a new error for me, "error: no relation id specified". Seems to be triggered by a call to relation-get. Ideas?23:14
ZonkedZebraIf only the hook tools had real documentation....23:15
ZonkedZebraProbably because I'm calling a script shared by multiple hooks23:18
ZonkedZebraWhats the common practice for sharing code/functionality between hooks?23:19
kurt_marcoceppi: ping23:33
zradminkurt_: i fixed the switch issue and restarted the compute node... but it still dosn't seem like traffic is going accross the bridge here's my interfaces: http://pastebin.ubuntu.com/6164893/23:38
kurt_zradmin: you've got a whole lot more on my quantum-gateway than I do23:40
kurt_did you use my local.yaml as your deployment template?23:40
kurt_here are my interfaces23:41
kurt_http://pastebin.ubuntu.com/6164899/23:41
zradminyeah my settings for those charms match up23:42
zradminhmm I dont have a br-ext23:43
kurt_again - you must be having some issues with your eth123:53
kurt_a bridge can't be created23:53
kurt_look for hints in /var/log/syslog or dmesg23:54
zradminyeah im still looking into it... i hope something isn't wrong with that test node23:54
kurt_try to manually create the bridge23:54
zradminty23:54
kurt_once you can manually create the bridge, you should be golden23:55
kurt_maybe you have some spanning tree issues?23:55
kurt_zradmin: look in dmesg to see what's happening - look at my entries around br-ex23:58
kurt_http://pastebin.ubuntu.com/6164928/23:58

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