/srv/irclogs.ubuntu.com/2012/06/12/#juju.txt

roy-feldmanHey Marco - juju bootstrap is working now with my Maas node, without any changes!00:01
roy-feldmanin KVM00:01
roy-feldmanBut I had to something a little odd, which may be a MaaS problem00:02
roy-feldmanBasically I had to PXE boot it twice, and I had to select a boot option on the second boot00:03
marcoceppi_roy-feldman: that's...odd - but I'm glad it works!00:06
roy-feldmanAfter the initial PXE boot, I got the network error I described00:07
roy-feldmanThen I started guest again, and hit F12 and selected the virtio boot option, not the default boot option which PXE boot00:08
roy-feldmanIt seems that MaaS is not completing the PXE boot in one step00:10
roy-feldmanAlso, the start button in the MaaS interface is a "noop"00:10
roy-feldmanNow I do have a Juju question00:12
roy-feldmanI can see my MaaS node when I do juju status00:12
roy-feldmanI have done a juju deploy and juju expose of mysql00:14
roy-feldmanHow long should it take for local mysql charm to transition from pending to running?00:15
marcoceppi_roy-feldman: depends on how beefy your machine is. Think of it as having to install the Ubuntu OS, install the juju working parts, then deploy the charm and install the charm.00:16
roy-feldmanI am running a beefy i7 laptop .. I wouldn't think it would take very long00:16
roy-feldmanIt doesn't matter if the machine is already running with a OS?00:17
roy-feldmanThis was not a cold deploy00:17
marcoceppi_roy-feldman: not sure, I've typically enlisted machines from the PXE boot screen00:17
roy-feldmanI have done it the other way00:18
roy-feldmanI entered the Mac address to Maas00:18
roy-feldmanThen I booted the machine which registered it with MaaS00:19
roy-feldmanIn my case, I had to boot it twice00:19
marcoceppi_roy-feldman: but did the machine have the Ubuntu OS yet?00:19
roy-feldmanYes00:19
marcoceppi_See, I'm not sure what happens here since MaaS builds it's own images to use00:19
marcoceppi_So I'm not sure if it's going to wipe/re-install or what00:20
roy-feldmanDuring the second boot it appeared to install the latest server packages00:20
roy-feldmanPerhaps.  In any case I hope to soon have better model of how MaaS + Juju work then I have now. ;-)00:22
roy-feldmanAny suggestions on how I can see what is going on, what logs I can be looking at?00:23
roy-feldmanLooking at the output of Juje debug-log, I see a series messages starting with "ProviderInteractionError: Unexpected Error interacting with provider: 409 CONFLICT"00:27
roy-feldmanI think that would explain why my mysql instance is not coming up00:27
roy-feldmanShould I file a bug report?00:28
marcoceppi_huh, 409 CONFLICT means MaaS doesn't have any nodes for Juju to use00:29
roy-feldmanMaybe I shouldn't have my only maas node running if I want to deploy a charm00:29
marcoceppi_roy-feldman: you'll need at least two MaaS nodes to bootstrap and deploy with Juju00:30
marcoceppi_One for the Bootstrap node and one for the charm you wish to deploy :)00:30
roy-feldmanI do have two nodes00:30
marcoceppi_Oh00:30
marcoceppi_What does the MaaS dashboard show?00:30
roy-feldmanIf you mean I have a node for the MaaS server and another for deployment00:30
roy-feldmanHold on00:30
roy-feldmanIt show that I have one node which has been allocated00:32
marcoceppi_And that's it?00:32
roy-feldmanThere were 0 nodes when I installed MaaS00:33
marcoceppi_How many nodes do you have available?00:33
roy-feldman100:34
roy-feldmanDoes juju require its own MaaS node?00:36
roy-feldmanI assumed that I could run Juju at the native level to interact with MaaS.  Am I wong?00:37
lifelessroy-feldman: you can indeed00:38
lifelessyou'll need a MaaS controller, and then a Juju control node, running on a MaaS provisioned node00:38
roy-feldmanI missed that in the configuration steps00:39
roy-feldmanThe setup of the Juju control node00:39
roy-feldmanWhere is that documented?00:39
lifelessits what juju bootstrap does00:40
roy-feldmanSo I need a free MaaS node when I run Juju bootstrap00:41
roy-feldman?00:41
roy-feldmani.e. So are you saying that every time I run juju bootstrap with a maas envrionment, I need an available Maas Node for the juju controller?00:43
roy-feldmanWhat is the best way to rollback my juju deployment and go back to adding additional MaaS nodes?00:45
roy-feldmanShould I do a destroy-environment?00:46
lifelessyes, thats what I'm saying00:48
roy-feldmanthanks00:48
lifelessuhm, you shouldn't need to destroy it, just add more nodes so it can get them when you go to deploy a charm00:48
roy-feldmanAnd its Ok to simply cntrl-c out of my original juju deploy and expose?00:49
roy-feldmanNo need to do any housecleaning?00:49
roy-feldmanThe one that never completed because there wasn00:50
roy-feldmanwasn't an available node00:50
roy-feldmanBTW, shouldn't juju expose give some kind of message if there aren't sufficient nodes to complete the action?00:52
lifelessplease file a bug abou that00:53
roy-feldmanwill do00:53
lifelessI agree it would be good to do so, I don't know why it didn't... may be a MaaS bug, for instance.00:53
roy-feldmanLooking at the trace, it looks like the loop is in juju00:54
roy-feldmanSpecifically juju/agents/provision.py00:54
roy-feldmanIt just keeps retrying00:55
lifelessyou could leave it where it is and add nodes, if it keeps retrying when a node comes available it will succeed ;)00:56
roy-feldmanThanks again for all the help, I will try again with more nodes and see what happens and I will file a bug report about juju provision00:57
* negronjl is done for the night01:41
bkerensaSpamapS, marcoceppi: http://www.omgubuntu.co.uk/2012/06/ubuntu-12-10-development-update-103:51
bkerensayou got questions about juju ^ :P03:51
=== almaisan-away is now known as al-maisan
=== tobin_ is now known as tobin
=== tobin is now known as Guest74089
=== Guest74089 is now known as tobin__
=== garyposter is now known as gary_poster
jimbakerat usenix config mgmt summit today in boston, will be talking later on "service orchestration with juju"13:16
niemeyerjcastro: ping13:19
niemeyerjimbaker: Sweet13:19
jimbakerniemeyer, it's a good lineup of speakers from chef, bcfg2, cfengine, vmware13:22
=== al-maisan is now known as almaisan-away
themiwiHi all. Is there an easy way to get essentially the output of `getconf getconf _NPROCESSORS_ONLN` of the remote host in a *-relation-changed hook? Or should I use `n=$(ssh $(relation-get hostname) getconf _NPROCESSORS_ONLN)`?14:52
m_3themiwi: you could pass that as a relation variable... one side would do `relation-set num-cpus=$(...)` and the other side does `relation-get num-cpus`14:56
m_3themiwi: that can usually be inferred by instance-type though.. depends on provider.  Also you might take a look at constraints in the juju docs.14:58
m_3all depends on what you're trying to do... passing relation variables works fine though14:59
negronjl'morning all15:34
imbrandonmorn15:34
negronjlhi imbrandon15:34
m_3negronjl: yo15:34
negronjl'morning m_315:35
twobottuxaujuju: Is juju specific to ubuntu OS on EC2 <http://askubuntu.com/questions/149952/is-juju-specific-to-ubuntu-os-on-ec2>15:53
SpamapSI love the askubuntu bot16:33
SpamapSreally.. fantastic idea16:33
m_3SpamapS: yeah, me too... can we answer it here?16:52
jcastroimbrandon: you don't need to add "new-charm" anymore, just setting the status Does The Right Thing(tm)16:53
jcastroalso dude, awesome job on the RPMs!16:53
jcastrohas anyone tried them yet?16:53
imbrandonumm not sure16:53
imbrandoni just put the word out a few hours ago16:53
imbrandonso no feedback yet16:53
jcastroyou blog it or need me to?16:54
imbrandoni'm about to blog about that and my new "download for ubnutu" button soon, so shuld get some16:54
imbrandonsoonish16:54
jcastrok, poke me and I'll syndicate it on cloud.u.c16:54
imbrandonyour more than welcome to , more ppl read yours i think16:54
imbrandonll16:54
imbrandonkk16:54
imbrandoni'm pretty sure my whole juju category is syndicated already16:55
imbrandonon cloud.u.c16:55
imbrandoni'll make sure tho16:55
jcastrono I need to post it, it doesn't automatically publish16:55
imbrandonahh, kk16:55
SpamapSm_3: no, how would it give you credit? ;)16:55
imbrandonSpamapS: loging to the bot via api :)16:56
=== koolhead17|zzZZ is now known as koolhead17
SpamapSimbrandon: good luck with that16:59
SpamapSsounds like a yak to be shaved later16:59
m_3hmmm... travelng to nepal lately?17:00
imbrandonSpamapS: heh17:00
adam_ghazmat: ping17:05
hazmatadam_g, pong17:06
adam_ghazmat: looking at snapshot.py of charm runner for the first time... is clean_juju_state() something that can be easily adpated to work with a non-local environment?17:08
hazmatadam_g, about to get into a meeting..17:08
hazmatadam_g, the state cleaning yes, the storage cleaning no17:08
hazmatadam_g, we don't have a provider storage method for killing files17:09
adam_ghazmat: if i wanted to just script around it via ssh/paramiko, i'd just be deleting the related files from the web storage right?17:09
hazmatadam_g, what provider?17:10
adam_gMAAS17:10
adam_gactually, i wouldn't even need to do that. ive got local access to the MAAS server17:10
hazmatadam_g, if its maas, i'd check if they have an api for deleting files and just sniff ~/.enviroments.yaml by hand for the creds to delete the files17:10
adam_ghazmat: ill start there, thanks17:10
m_3negronjl: yo... gotta sec?17:47
negronjlm_3: sure17:47
m_3g+?17:47
negronjlm_3: sure .. give me a sec.  I'll invite you when I'm there17:48
m_3ok17:48
negronjlm_3: started invite sent17:49
themiwim_3: Sorry, got interrupted and then had to dash away to catch the train. Yes, passing this information as a relation variable to override the default would be great. However, I'd like to also provide a sensible default choice which is not just a pessimistic 1.18:20
m_3whoohoo... jim's talk/demo went well18:53
SpamapSsweet19:01
jcastronice19:01
SpamapSthemiwi: interesting problem you're trying to solve. In what case is it important to know the *remote* CPU count for service configuration?19:03
SpamapSthemiwi: either way, you don't have to provide a default. Just keep running your changed hook until the other side has *set* that value.19:03
SpamapSthemiwi: the changed hooks can ping-pong back and forth a few times.19:04
themiwiSpamapS: I'm trying to cook up a charm for the Sun Grid Engine (SGE), where the master/head node needs to know the number of slots it can allocate on the compute node.19:04
themiwiSpamapS: yes, that's what I'm going to do now. I set it in the *-relation-joined hook of the compute charm and the keep querying it in the *-relation-changed of the head charm19:05
SpamapSthemiwi: perfect :)19:21
SpamapSthemiwi: wi would have thought grid engine would have its own RPC to talk to its nodes and figure things like CPU's out19:22
SpamapSanyway.. time to find nourishment19:22
themiwiSpamapS: I suppose it could, but the thing with cluster administration is, that administrators want to be able to adjust every tiny detail and would probably hate such automatisms...19:23
SpamapShah19:24
SpamapStweakers19:24
themiwiSpamapS: ;-) yep. they take pride in squeezing every single flop from their clusters.19:26
* m_3 is a card carrying tweaker19:30
themiwiAnother question: Whenever a relation is added, the variable nodecpus is set to the number of processors/cores of the slave. so far so good. however, the master needs to maintain a *sum* of all node cpus. Where would I store this persistent information?20:22
m_3themiwi: juju doesn't choose this for you... I'd stick it in a map or db on the filesystem (we often use /var/lib/juju/ to house such things).  some folks like facter.. there're lots of options.  key is that this map will update over time as nodes die and/or join20:26
m_3themiwi: hooks xxx-relation-changed, xxx-relation-departed, and xxx-relation-broken will have to recalculate that number over the lifetime of the cluster20:27
themiwim_3: was just wondering whether i could do something like "unit-set cpucount $ncpus"...20:27
themiwim_3: but maintaining a simple text file containing that figure is also no problem.20:28
m_3themiwi: relation-list is useful here20:28
m_3themiwi: oh, so config allows you to set stuff from the command line too...20:28
m_3there's a config-changed hook20:28
themiwim_3: sure. writing these charms is quite intricate and the documentation rather scarce, it seems :-)20:28
m_3and then `juju set var=value` commands20:28
m_3yeah... some are really easy... some really hard... depends on the service20:29
themiwiespecially keeping things straight with all that ping-ponging between xxx-relation-changed hooks is a bit daunting20:30
m_3yes20:30
=== marcoceppi_ is now known as marcoceppi
m_3it's super-powerful though20:31
m_3it's auto-negotiation for config params that you usually have to set manually or in config scripts20:32
themiwisure, but you also have to be super-careful20:34
imbrandonits a one time investment though :)20:57
imbrandonor should be ... heh20:57
m_3maybe once per long-term release :)20:57
imbrandonright20:58
imbrandon:)20:58
jcastroimbrandon: heya21:01
jcastrohazmat never got your ubuntufication of the sphinx template21:01
jcastrocan you hook him up so our docs look awesome?21:01
jcastrohazmat: this is handy btw, http://jujucharms.com/tools/store-missing21:02
jcastronice one on that one21:02
imbrandonjcastro: sure21:06
imbrandonjcastro: yea i hadent sent it to anyone really yet21:06
imbrandonlike the download button ? heh u should pimp it a lil for me :)21:07
jcastrono, you said you styled the stuff for juju.ubuntu.com/docs21:07
jcastrothe sphinx stuff21:07
imbrandondoing it now, is there a reason not to just do a merge req , i mean i dont mind sending them directly to hazmat , but just curious21:08
imbrandonand yes thats what i said "sure" to, and then added the bit about the button21:09
imbrandon:)21:09
imbrandonbut yea, let me dig that branch up its burried in my ~/Projects folder and then i'll pass it arround , give me ~30ish min21:09
jcastrowell remember I was like "show daniel too a bunch of other ubuntu stuff uses sphinx"21:09
imbrandonyup yup21:09
jcastrono rush or whatever21:09
hazmatimbrandon, just do a merge request21:10
jcastroI just happened to be talking about it with kapil21:10
hazmatimbrandon, my only concern is if it requires updates to the installation21:10
imbrandonhazmat: cool cool , yea i dont mind, was just like ummm ? heh21:10
imbrandonnah21:10
imbrandonits just some new files in _templates21:10
hazmatimbrandon, the build should cron update and run automatically, so as long as there aren't any new sphinx extensions it should just work as a mp proposal21:11
imbrandonthats about it, dont even think the biuld rules need updates21:11
imbrandonif i rember right21:11
imbrandonyup yup21:11
imbrandonbtw it does use the html build target right ?21:12
imbrandonas far as whats published21:12
imbrandonnot like the all-in-one html or something weird21:12
jcastroSpamapS: ok so like brandon is winning with his packages. :)21:17
SpamapSjcastro: I can't do anything to thwart the Debian NEW queue21:22
imbrandonhahah i'm sure SpamapS will mucho win in the end, i actually had alot of help unknowingly from hazmat doing the footwork over at pypi.python.com a while back21:25
imbrandonso i cheated :)21:25
imbrandonSpamapS: btw your interview over at omg is on fire, there are over 200 ppl current viewing it and a ton of positive twitter comments ( despite some of the "ohh its not desktop" idiots )21:29
imbrandonbeen like that for like 3 or 4 hours now21:29
SpamapSimbrandon: heh cool. :) #2 this week21:31
koolhead17SpamapS, :)21:45
imbrandonSpamapS: ugh , can we ( read: you ) rename jitsu binary to juju-jitsu ? hehe ( i know i know probably not ) ... there is a conflict with another deployment tool named jitsu and both dont like to live in bin/jitsu at the some time heh21:49
imbrandonno biggie though, lets just hope that I'm not most ppl and have both installed , or want to at least21:49
imbrandon( the other jitsu is the Joyent's tool to deploy and manage http://no.de and http://jit.su accounts21:50
imbrandonfor nodejs )21:50
SpamapSimbrandon: oh there's another jitsu?21:54
imbrandonyea21:54
imbrandoni found out the hard way21:54
SpamapSwhy does node.js take all the best names21:54
imbrandonheh21:54
imbrandoni went to install juju-jitsu and it was like ummm there is somethign there already21:54
imbrandoni looked and rembered21:55
imbrandonheh21:55
imbrandoni was like damn!21:55
SpamapSnode also conflicts withs ome broke ass old AX25 packet thing caled node21:55
imbrandonbut yea its probably a corner case21:55
imbrandonheh21:55
SpamapSnot really a corner case21:55
SpamapSI can see them conflicting21:56
SpamapSthere ought to be a single registry for bin names21:56
imbrandonreally its used as a wrapper anyhow, so if it was just named juju-jitsu for the bin21:56
imbrandonit would probably be fine21:56
imbrandonmostly* a wrapper21:56
SpamapSI want it called jitsu21:57
SpamapStyping juju-jitsu sucks21:57
imbrandoncuz once youve done juju-jitsu wrap-juju , it wont matter tho :)21:57
imbrandonand only rename the bin not everything :)21:57
imbrandoni dont really care, but i did run into it today heh21:57
SpamapSI'd be willing to relent and do jjitsu21:57
imbrandonheh21:58
imbrandonjj :) that would make a good alias, /me adds to .bash_profile21:58
imbrandoni wanna add real alias support too btw, like hub has for git , you just "alias git=hub" in bash_profile and go on about your business21:59
imbrandonits sweet21:59
imbrandonthats one of those $sometimes things22:00
imbrandonactually its more like .... eval "$(hub alias -s)"22:01
imbrandonbut still, same thing, just works if you use zsh or any shell22:01
negronjlSpamapS, jcastro, m_3:  Do we know which day is the Charm School planned for during Velocity ?22:48
SpamapSnegronjl: did we decide to do one w/o the conference blessing?22:49
negronjlSpamapS: not sure yet, hence the question :)22:49
SpamapSnegronjl: IIRC, it was rejected by them22:50
negronjlSpamapS: ah.  thx23:07
SpamapShttp://packages.qa.debian.org/j/juju.html23:31
m_3negronjl: nope... dunno23:48
negronjlm_3: thx23:51
imbrandonSpamapS: saweet23:52
imbrandon:P23:52
imbrandonSpamapS: here, this one is all for you :) http://www.brandonholtsclaw.com/blog/2012/juju-everywhere#comment-55557294923:53
imbrandonMr Spaleta23:54
SpamapSOur biggest fan23:55

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