[00:43] <hazmat> SpamapS, sweet!
[00:44] <hazmat> SpamapS, i think you meant cs:~clint-fewbar/oneiric/munin-node ;-)
[00:44] <hazmat> hmm.. that brings up some interesting questions that the implementation doesn't take into account
[00:45] <hazmat> namely subordinate charms from one series deployed onto a primary of a different series
[00:45] <hazmat> niemeyer, ^
[06:26] <SpamapS> hazmat: re the series question for subs.. it would be pretty stupid of people do that IMO. ;)
[06:27] <SpamapS> hazmat: perhaps we can just trust people to make wise decisions.
[06:30] <_mup_> Bug #981387 was filed: juju status does not respect JUJU_ENV <juju:New> < https://launchpad.net/bugs/981387 >
[07:21]  * SpamapS feels like a mad scientist right now.. creating a puppetmaster and puppet subordinate charms
[07:46] <hazmat> SpamapS, nice
[08:01] <SpamapS> got certificate signing working
[08:02] <SpamapS> time for sleep
[08:02] <SpamapS> subordinates are so awesome
[08:02] <SpamapS> bcsaller: seriously, ^5 on getting this done
[08:03] <bcsaller> SpamapS: really nice to hear :)
[08:11] <jkyle> I'm following the 12.04 guide on wiki.ubuntu.com/ServerTeam/MAAS/juju. It's a bit out of date, should I install from the ppa or from the repository?
[08:22] <melmoth> Morning juju !
[08:32] <gua> jkyle: i'm not 100% on this, but https://juju.ubuntu.com/ says if you have 11.10 then use the repos one, which might be fine for 12.04
[09:15] <melmoth> Is there a way to have juju choose a given flavor/arch/ vms instances instead of picking the default one define in environment.yaml ?
[13:19] <shazzner> question
[13:19] <shazzner> would something like rsnapshot make a good charm?
[13:21] <shazzner> or maybe an rsnapshot frontend
[13:21] <shazzner> hmm
[13:27] <shazzner> I suppose rsnapshot would defeat the purpose of juju, which seeks to encapsulate services
[13:27] <shazzner> so you don't have to hoard over precious config files
[13:28] <shazzner> irc is a great scratch pad for talking to yourself :p
[15:10] <SpamapS> melmoth: yes, that is called constraints
[15:10] <SpamapS> melmoth: https://juju.ubuntu.com/docs/constraints.html
[15:10] <SpamapS> melmoth: you will need the latest juju from the PPA for that.
[15:11] <SpamapS> shazzner: rsnapshot is still useful I think
[15:11] <SpamapS> shazzner: it would be a fantastic subordinate charm.
[15:11] <melmoth> hmm SpamapS any idea how can i chekc if there s an "image-type" constraint of some sort ?
[15:12] <melmoth> i would like to be able to change the defautl-image-id, i see there s a ec2-instance-type constraint, but it s not the thing i want to choose
[15:13] <SpamapS> melmoth: they're listed at that url
[15:14] <SpamapS> melmoth: image id is not used, and default-image-id is not recommended unless you're using a private cloud, since juju will automatically look up the arch/release/region/etc. to find the official ubuntu image for you
[15:20] <melmoth> what i would like is, to be able to get a vm matchin a given release/arch so that  s what i need.
[15:20] <melmoth> the idea would be, you work in support, you got a core file you need to run gdb on. What you want is access to a machine with the same os version/arch and lib version as the one
[15:20] <melmoth> used to generate the core
[15:21] <SpamapS> melmoth: right, --constraints "arch=amd64" cs:oneiric/foo
[15:22] <SpamapS> melmoth: the release is determined by the charm
[15:22] <SpamapS> melmoth: so that charms can be written without lots of conditional logic for changes between releases, they're maintained as a branch per release of Ubuntu.
[15:23] <melmoth> hmmm.
[15:23] <melmoth> i would love to be able to call a charm with arguments.
[15:23] <melmoth> or may be, should i write a on the fly charm generator script ? :)
[15:24] <imbrandon> i think you might be missing some other subleties if you want to do that
[15:26] <melmoth> oh, i m sure i missing a lot of juju subtelty. I only start to look at it seriously today
[15:26] <imbrandon> a charm really isnt a machine, its most like a service that runs on that macine, so you arent deploying ubuntu your deploying apache , apache detaermines if it wants ubuntu or not
[15:29] <imbrandon> now with your given example above, i think one step higher in the feed chain may be what your looking for, as in MAAS
[15:30] <melmoth> hmm, havent looked at it right now (but i though it was to deploy bare metal boxes)
[15:30] <imbrandon> or a combo of MAAS for the OS/lib versions then a charm with gdb tools etc
[15:32] <imbrandon> melmoth: yes , but your wanting to manuipulate the bacre metal os features, so it makes sense, juju is service orchastration , there is a fine line, but i think your gonna end up with a combo of them
[15:34] <melmoth> i need to think about it. but there sure seems to be something that wants to be use there.
[15:34] <imbrandon> e.g. if i need to provision a i386 box with glibc5++ thats a MAAS task , if i need gdb with all its goodies setup thats a juju task :)
[15:35] <imbrandon> but juju will happlily setup an os underneith its self
[15:36] <imbrandon> if needed, just what it needs though, maybe not what you do
[15:37] <melmoth> i was just thinking of having a way to have the installed box get a copy of the "customer" /etc/apt-sources.list and dpkg -l to re apt-get everything it can.
[15:37] <melmoth> plus gdb and all debug symbols package on top of that
[15:38] <imbrandon> melmoth: yea i mean dont get me wrong, it probably could be wrangled into doing it, just as MAAS could probably do a little orcastration
[15:38] <melmoth> (wich is also why i was hoping there was a way to give arguments to a charm)
[15:38] <imbrandon> i was just giving ya another piece to the puzzle :)
[15:38] <melmoth> that s good, i need to look at maas anyway.
[15:39] <imbrandon> and you can give it options
[15:39] <imbrandon> i wouldent say arguments
[15:39] <imbrandon> but charms have options
[15:40] <imbrandon> juju set blah -e amazon
[15:40] <imbrandon> or something like that
[15:43] <imbrandon> and dont forget that maas and juju work as a team, so dont try to shove it all in one or the other either :) there is some gray area IMHO , but also i'm still very new to this too, only been charming about a month now
[15:46] <melmoth> i ll need to talk about it with the support guys anyway :)
[15:46] <melmoth> i think there s a beer calling for me downstair...will be back later on
[15:46] <imbrandon> :)
[15:48] <SpamapS> melmoth: charms can have arguments, defined by config.yaml
[15:50] <SpamapS> hrm we need to move this out of drafts..
[15:50] <SpamapS> https://juju.ubuntu.com/docs/drafts/service-config.html
[15:50] <SpamapS> been implemented for about 9 months :)
[15:50] <imbrandon> SpamapS: its so nice to be back on linux, i forget how easy it is to setup everything, like i've got my zend studio back installed, dev env's going , my ~/Projects git tree back etc etc etc , if i could just get used to the damned hotkeys again
[15:50] <SpamapS> melmoth: anyway that details it
[15:50] <SpamapS> imbrandon: :-D I know, I felt the same way
[15:51] <SpamapS> any puppet fans, check out cs:~clint-fewbar/oneiric/puppetmaster and cs:~clint-fewbar/oneiric/puppet .. subordinates ftw :)
[15:51]  * SpamapS disappears
[15:51] <imbrandon> l8tr
[16:54] <melmoth> thanks for the url !
[18:13] <jkyle> good place to ask maas+juju questions?
[18:15] <jkyle> I've got a maas server up, registered two nodes, they pxe booted. But now I'm stuck. they show as "commissioning" in the maas webui, but the docs say I have to click "accept and commission". An option that does not exist in my UI
[18:15] <jkyle> https://wiki.ubuntu.com/ServerTeam/MAAS/AddNodes
[18:23] <imbrandon> i dont see where it says to click accept and commision, it looks like under the heading where it says "In order to use Juju you have to Accept & Commission the nodes for use." there is a "add node"
[18:24] <imbrandon> pictured
[18:25] <imbrandon> jkyle: in other words your fine, they will finish commissioning hopefully and you read an extra word in there in panic :)
[18:26] <jkyle> imbrandon: check the very bottom image
[18:26] <jkyle> imbrandon: "Click the Accept & Commission button"
[18:26] <jkyle> with image
[18:26] <imbrandon> sure thats once you can click on them
[18:26] <imbrandon> you have not made it that far have you ?
[18:26] <jkyle> they were pxe'd last night, and my ILOM shows it's completed successfully and has a prompt
[18:27] <imbrandon> ahhh
[18:27] <jkyle> imbrandon: yep, that's teh step I'm at. I've added them, I have 2 nodes in a list, I pxe booted them, they've installed 12.04...but web ui still has them in "commissioning" mode
[18:28] <jkyle> I suspect the network isn't set up right, but I don't know how to get shell access to the node (e.g. default username/passes)
[18:28] <jkyle> tried ubuntu/ubuntu
[18:28] <imbrandon> i doubt you can at this point, leaste i would hope not
[18:29] <imbrandon> have you tried rebooting the webuinode ?
[18:29] <imbrandon> force it to refresh
[18:31] <jkyle> just restarted. no effect.
[18:32] <imbrandon> fun, might poke robbie when he is around but i'm guessing its not a network issue as maas controls all that
[18:32] <imbrandon> its just plain dhcp
[18:33] <jkyle> imbrandon: true, but I'd wager maas makes a lot of assumptions...like a flat network. mines a bit more complicated. I tried to see what ip was served by doing a dig @localhost <hostname set in maas>
[18:33] <jkyle> but it doesn't resolve
[18:34] <imbrandon> jkyle: well that is likely the issue then maas controls the network
[18:34] <jkyle> as it stands, I can't even delete the nodes (button grayed out).
[18:34] <imbrandon> if it dont you end up with this :)
[18:34] <jkyle> so, it'd be helpful to get into the node's shell and manually fix the network (and confirm that's the issue) then I can integrate some post flight scripts knowing what the problem is ;)
[18:35] <jkyle> guess single usermode is always an option hehe
[18:35] <imbrandon> i highkly doubt thats possible, if it is its a glaring security hole
[18:36] <jkyle> the passwd hash is in the preseed. I bet dollars to donuts that the default pass is somewhere in the maas settings file
[18:36] <imbrandon> really though to confim it just spin it up with  it controlling the network like it wants
[18:36] <imbrandon> jkyle: i'm sure
[18:37] <jkyle> imbrandon: it's not that maas is not controlling the network config, it's that my network is not a flat network
[18:37] <imbrandon> right, i dont see the diffrence here, put it on its own
[18:37] <imbrandon> it dont matter what your current setup is, i'm not talking about that
[18:38] <imbrandon> just isolate maas and see if thats the issue
[18:40] <imbrandon> trying to figure out too many variables at one time will give you grey hair, get maas working the way IT wants to, then if you want to try and intergrate it into a non standard setup cool, but you konw the ropes at that poit
[18:40] <imbrandon> point*
[18:40] <imbrandon> see what i'm getting at ?
[18:42] <imbrandon> anyhow its the weekend and i'm the only chicken in the house atm it seems, sorry cant be much more help than that, but yea short of a MAAS dude poppin up i'd break it down to the simplest terms instead of trying to smash into a node, thats just my 0.2c
[18:43] <imbrandon> should just have to unplug, reconf the ui and re-pxe boot, hour-ish
[18:43] <imbrandon> pxe install dont take long
[18:49] <jkyle> imbrandon: yeah, I getcha. quicker to boot to single user though than reconfigure switch and router profiles
[18:50] <imbrandon> :)
[18:51] <jkyle> interestingly enough, when I rebooted the node, it loaded the _old_ OS. even though it was showing a 12.04 prompt. maas must use a headless boot as a holding phase or something
[18:54] <jkyle> pxe stops at: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[19:11] <jkyle> might have to fall back to just cobbler and my own scripts for initiali orchastration
[19:11] <SpamapS> jkyle: IIRC, maas works like orchestra, and they shouldn't install the OS until you've bootstrapped with juju
[19:12] <jkyle> SpamapS: what I'm stuck at is the node is booted, it's in the maas interface, but it just says "commissioning" and the docs don't reflect the options I have at this point
[19:12] <jkyle> e.g., it says click "Accept & Commision" button before moving forward with juju...but no such button exists
[19:13] <jkyle> I'll just move forward a bit and assume it's not necessary...see if juju just "works"
[19:15] <SpamapS> jkyle: perhaps the docs are out of sync w/ late changes
[19:21] <jkyle> k, I'm at juju status here: https://wiki.ubuntu.com/ServerTeam/MAAS/Juju
[19:21] <jkyle> juju status returns "Could not find AWS_ACCESS_KEY_ID"
[19:22] <imbrandon> is your env still type ec2 ?
[19:22] <jkyle> juju status -e maas returns => Invalid environment 'maas'
[19:22] <imbrandon> ppa juju ?
[19:23] <SpamapS> jkyle: dpkg -l juju, you need at least bzr504
[19:23] <jkyle> ah, my bad, dropped an 's' on the environment conf
[19:25] <jkyle> I have 504
[19:26] <SpamapS> jkyle: I'd recommend trying the PPA. The version in the PPA *should* land in 12.04 before the release, and has a number of minor fixes for the maas provider.
[19:27] <jkyle> alrighty, now I get: juju environment not found: is the environment bootstrapped?
[19:27] <jkyle> SpamapS: I'm using the ppa version
[19:27] <imbrandon> so is it bootstraped ? heh
[19:28] <jkyle> well, I've followed all the directions to date
[19:28] <SpamapS> jkyle: I'm guessing your environments.yaml is not quite right
[19:28] <jkyle> I copied and pasted from https://wiki.ubuntu.com/ServerTeam/MAAS/Juju and replaced with the appropriate values
[19:29] <imbrandon> it return success ? when you ran juju bootstrap -e maas ?
[19:30] <jkyle> lemme take it from the top. I probably missed a step
[19:30] <jkyle> :P
[19:31] <SpamapS> jkyle: if the docs are wrong, please do suggest fixes (or just edit the wiki directly :)
[19:32] <jkyle> I get this from bootstrap => Unexpected Error interacting with provider: 409 CONFLICT
[19:32] <jkyle> and, whaddya know, bug with my _exact_ situation hehe: https://answers.launchpad.net/maas/+question/193473
[19:33] <jkyle> I'll totally edit if i figure out what's amiss
[19:34] <jkyle> are maas and juju tightly coupled?
[19:34] <jkyle> that bug describes what I had yesterday, with teh start node button. but the latest maas update removes the start button. now just a grayed out delete
[19:37] <SpamapS> jkyle: they should be independent, though juju is the only way to acquire/provision nodes in maas right now IIRC
[19:37] <jkyle> maybe I should just fall back on cobbler and play with juju or chef
[19:38] <jkyle> maas looks promising, but without docs to back it it's a guessing game
[19:39] <imbrandon> true, its still only days old too :)
[19:40] <jkyle> I'll be hanging with some maas folks @ the Openstack conference
[19:43] <SpamapS> jkyle: the maas folks often hang in here of #juju-dev
[19:45] <Daviey> jkyle: conflict usually means you don't have enough nodes, or you haven't accepted the enlistment in the webui
[19:45] <Daviey> ie, not enough nodes in Ready state
[19:45] <jkyle> yeah, I was talking with the package maintainer yesterday. very helpful
[19:45] <jkyle> Daviey: right, problem is...there's no button to accept them ;)
[19:46] <Daviey> jkyle: yes there is :)
[19:46] <SpamapS> Daviey: backscroll, he's run into some confusion in the docs
[19:46] <Daviey> ah
[19:46] <SpamapS> jkyle: Daviey can help you :)
[19:47] <imbrandon> \o/
[19:48] <jkyle> https://bugs.launchpad.net/maas/+bug/981845
[19:48] <_mup_> Bug #981845: "Accept & Commission" button does not exist <MAAS:New> < https://launchpad.net/bugs/981845 >
[19:48] <Daviey> jkyle: Remember that MAAS isn't yet included in a supported release.. So be fair :)
[19:48]  * imbrandon trails off to provision 10 servers in hp cloud and start a ndb charm maybe
[19:48] <jkyle> Daviey: oh, I realize I'm on the bleeding edge of the bleeding edge
[19:48] <Daviey> jkyle: ok.. i know your problem :)
[19:50] <jkyle> Daviey: even as new as it is, so far it's easier to grok than crowbar when the information is found :)
[19:50] <Daviey> sudo mount /var/lib/maas/ephemeral/precise/server/amd64/20120328/disk.img /mnt/ ; sudo chroot /mnt ; sudo apt-get update ; sudo apt-get install cloud-init ; exit ; sudo umount /mnt
[19:50] <Daviey> restart the node.
[19:51] <SpamapS> Daviey: oh I think I saw that bug.. pre-seed is messed up?
[19:51] <Daviey> jkyle: super!
[19:51] <Daviey> SpamapS: No.. it's a self fixing bug at release time.
[19:51] <Daviey> :)
[19:52] <Daviey> SpamapS: We can't make people update the daily ephemeral image on a daily basis, so we are using milestones.. The most recent milestone is beta-2, which doesn't have a recent enough cloud-init.
[19:52] <Daviey> So when final is canned, it'll fix itself.
[19:52] <jkyle> on a side, there could be issues with pulling images from ephemeral for some companies
[19:53] <jkyle> I mean for the bootstrap phase. are there plans to pull those in locally?
[19:53] <Daviey> jkyle: right.. next cycle we are going to make it so it can run entirely offline.
[19:53] <SpamapS> Daviey: *ahhhhh*
[19:53] <Daviey> (TBD at UDS>)
[19:54] <Daviey> jkyle: it's a one time process, right.. it only imports them when you run command.  You could work around it if needed, by importing from usb media, or something
[19:55] <jkyle> apt-get update fails on most of the mirrors

[19:59] <SpamapS> Expires header problems. :-P
[19:59] <SpamapS> ok, back to my Saturday
[19:59] <SpamapS> jkyle: good luck :)
[20:01] <jkyle> thanks!
[21:26] <melmoth> hmm, stuck too with https://answers.launchpad.net/maas/+question/193473 (and me too, i did not have a Accept & Commission button)