/srv/irclogs.ubuntu.com/2014/01/20/#juju-dev.txt

benonsoftwareHiya, I'm wondering if there's anyway to make juju launch spot instances?02:55
thumpero/ bigjools03:38
=== jtv1 is now known as jtv
jammorning dimitern06:59
dimiternmorning06:59
jamdimitern: 1:1?07:30
dimiternjam, sorry, coming07:34
jammorning fwereade09:01
jamrogpeppe: 1:1?09:01
fwereadeheya jam09:01
rogpeppejam: just going there09:02
wallyworldfwereade: hi, i need to add a SetAddresses() api to machiner. most of the other machiner apis are plugged in via common structs since the api is applicable to machine or unit. But SetAddresses appears exclusive yo machine, even though unit does have SetPrivateAddress, SetPublicAddress. Are those latter 2 apis sticking around? Should they be refactored to SetAddresses?09:10
fwereadewallyworld, those unit methods are due for retirement at some point, because unit addresses *themselves* are due for retirement -- a unit's address will be determined by its machine09:16
wallyworldfwereade: that's what i was hoping :-)09:16
fwereadewallyworld, (and likely what network it might be on, but that's a distinct issue)09:16
fwereadewallyworld, one thing that needs to be considered09:17
fwereadewallyworld, is how we handle identifying those networks09:17
fwereadewallyworld, (if you look at state.Address, you will see a network field)09:17
wallyworldfwereade: is is for the local provider which currently creates a container and we don't currently record the address09:18
fwereadewallyworld, and it's not clear how the machine agent is to infer this09:18
fwereadewallyworld, so in that case it's actually easy, it goes on the "private" network09:18
wallyworldfwereade: so the use case is initially limited, but when this is fixed, juju ssh etc will work for local rpovider, since we will know the address09:19
fwereadewallyworld, I understand why it's important09:19
fwereadewallyworld, but I also want to keep all my machine agents acting the same way09:19
fwereadewallyworld, and we need to figure out exactly how this overlaps with addressupdater09:20
wallyworldsadly, we can't quite do that fully cause the address updater causes Addresses() on the provider and the local provider cannot get the container's address09:20
wallyworldthe only way i could see was for the container to write the address info to cloud storage and Addresses() would read it from there, but yuk09:22
fwereadewallyworld, nah that's perfectly horrible, we shouldn't do that ;p09:22
fwereadewallyworld, (hmm; lxc-attach?)09:23
wallyworldmaybe, but cannot be done for kvm outside container09:23
wallyworldwe really, really want to remove "not implemented" from Addresses()  for local provder but i don't see how it is possible :-(09:24
wallyworldsux to have to do it different for local provider09:24
wallyworldhappy to consider viable options we haven't thought of09:25
fwereadewallyworld, hold on, given the total control we have over the situation, can we not literally carve out a range on our container network and assign the addresses ourselves09:25
wallyworldfor local provider do we really have the ability to do that?09:26
fwereadewallyworld, I guess not if people are using their own bridge, bah09:27
wallyworldand not if we want local provider containers to be exposed externally09:27
fwereadewallyworld, we don't want *that*09:27
wallyworldok, so just access from local machine09:27
fwereadewallyworld, but the forces there are very similar tothe forces involved in exposing non-local-provider containers09:28
fwereadewallyworld, so I really think we need to come up with some model that really covers all the cases, at the moment it feels like there's a big fuzzy boundary somewhere around containers09:28
wallyworldi think so yeah09:28
wallyworldi'd be happy to defer any work to the folks working on container addressibility09:29
fwereadewallyworld, haha :)09:30
fwereadewallyworld, I'm really keen on you doing this stuff, but it would be good if you could sync up on it with mgz and/or dimitern09:30
wallyworldif it ovrlaps greatly with non local provider containers, no poin me doing it09:31
wallyworldandrew is actually doing it too09:31
fwereadewallyworld, well, that's what I want to discover, possibly we can chat about it at standup time?09:31
dimiternwallyworld, we haven't started actual work on the containers yet, just preliminary prereqs, like changes to goose (goamz to follow)09:31
wallyworldok, if i'm still awake, i'm in nz :-)09:32
fwereadewallyworld, my suspicion is that there is a chunk of work that could be done by either group and that it's important to figure out what that chunk is and who's best placed to do it09:32
wallyworldyeah09:32
fwereadewallyworld, it might alternatively just be a matter of defining exactly how juju builds up a picture of the network by paying attention to *both* agent- and provider-supplied addresses09:33
fwereadewallyworld, that might be best of all, even09:33
wallyworldi think andrew was experimenting with doing something with jujud09:34
fwereadewallyworld, oh yes?09:34
fwereadewallyworld, (btw, I hope the sprint is going nicely)09:34
wallyworldjujud runs inside container, gets addresses, calls machiner.SetAddresses()09:34
wallyworldyeah it is, lots of talking today, plus hacking09:35
wallyworldfwereade: if you wanted to discuss, perhaps we can have a chat before standup with whoever, so i can get some sleep?09:36
fwereadewallyworld, dimitern: that sgtm -- I'd like mgz involved though, so please sleep whenever you need: I think I can represent your interests adequately ;)09:38
wallyworldok :-)09:39
wallyworldfwereade: if i'm not around, can you pop me a quick note so we can see what the outcome is?09:39
fwereadewallyworld, will do09:39
wallyworldi'll try and stay09:40
mgzmorning10:03
jammgz: mumble?10:06
mgzit's not happy for some reason....10:07
jammgz: g+ works fine for me, so whatever works for you10:07
mgzneed new mumble version it seems, updating10:07
mgzjam: okay, I'm on10:09
eagles0513875_hey fwereade  :D dimitern10:26
dimiterneagles0513875_, hey man! :)10:27
eagles0513875_dimitern: missed you at the meeting on saturday :)10:27
dimiterneagles0513875_, well, it would've been a bit difficult to attend - i'm back home in sofia10:27
eagles0513875_dimitern: well we have it recorded. :)10:28
eagles0513875_dimitern: hows the weather there10:28
dimiterneagles0513875_, getting better despite the forecast - 12-14ish and sunshine10:28
eagles0513875_cooler then here for sure10:29
eagles0513875_sunny and warm here already10:29
dimiterni know :) don't tease me hehe10:29
eagles0513875_dimitern: not trying to if its this warm now I'm predicting a super hot summer10:32
dimiterneagles0513875_, and diving!10:32
eagles0513875_i dont dive but this is off topic for this channel :)10:33
eagles0513875_i would like to start contributing to juju and I would like to work to potentially and eventually try my luck at becoming part of the juju dev team10:33
dimiterneagles0513875_, yep10:33
eagles0513875_what would be a good bug for me to start off with10:33
dimiterneagles0513875_, great!10:33
dimiterneagles0513875_, well, there are some docs to read, in the source /doc10:34
dimiterneagles0513875_, you can pull the source from lp:juju-core with bzr and try setting up so you can run the unit tests locally10:34
eagles0513875_already have core installed but don't have my linux laptop atm10:35
dimiterneagles0513875_, and before all, you'll need to get golang packages and setup your GOPATH10:35
eagles0513875_ok10:35
* eagles0513875_ taps fingers patiently on the desk waiting for my mom to come back with the car and my laptop lol10:35
dimiterneagles0513875_, you can use virtualbox or something similar and run ubuntu in a vm10:35
eagles0513875_dimitern: in the case of my laptop i would prefer taking advantage of the full performance it can give me10:36
eagles0513875_dimitern: im also thinking of working with my vps provider to allow ubuntu users to easily use juju on their vps's10:37
dimiterneagles0513875_, that's a great idea, please do10:38
eagles0513875_:)10:39
jamrogpeppe: fwereade, mgz: standup ?10:46
mgzI joined just now, and there was no one there...10:47
frankbancore-devs: morning all. I saw "juju switch" in trusty just returns the default environment name. The output no longer is "Current environment: x". Should we consider this the new behavior? Should we expect this change in saucy too?11:08
TheMuefrankban: it is the change based on https://bugs.launchpad.net/juju-core/+bug/119324411:25
_mup_Bug #1193244: juju env could be friendlier to scripts <improvement> <juju-core:Fix Released by themue> <https://launchpad.net/bugs/1193244>11:25
TheMuefrankban: is in with 1.1711:26
frankbanTheMue: yes I know. I saw that juju-core is in trusty/universe. the juju stable ppa for previous series is still on 1.16.5. So I guess this change will also land there, right?11:29
TheMuefrankban: hmm, here I don't know the planning, sorry11:34
frankbanTheMue: ok thanks11:35
dimiternjam, reviewed https://codereview.appspot.com/54270043/11:42
* dimitern is afk for a while11:44
eagles0513875fwereade: ping16:12
eagles0513875hey fwereade16:44
fwereadeeagles0513875, linked here for the convenience of any other potential lurking contributors: http://bazaar.launchpad.net/~go-bot/juju-core/trunk/view/head:/CONTRIBUTING16:46
eagles0513875:D16:46
dimiterni have proposed a long chain of mostly simple CLs which will lead to the the firewaller server-side API soon, if anyone can take a look I'd appreciate it: (in order) https://codereview.appspot.com/54620043/, https://codereview.appspot.com/52840044/, https://codereview.appspot.com/54630043/,https://codereview.appspot.com/54640043/, andhttps://codereview.appspot.com/54650043/17:53
eagles0513875dimitern: i have a crazy idea I would like to run by you if you dont mind18:06
dimiterneagles0513875, sure18:07
eagles0513875dimitern: im thinking of potentially making linux desktop users that work in cloud environments a GUI interface that interfaces with juju to make deployments easier instead of needing command line18:07
eagles0513875what do you think18:07
dimitern:)18:08
dimiterneagles0513875, have you seen Juju GUI ?18:08
dimiterneagles0513875, https://jujucharms.com/ for a demo18:08
eagles0513875dimitern: yes Its good but lacking i think18:10
eagles0513875dimitern: what i was thinking was more of an application one installs on their laptops and can manage deployments that way18:10
dimiterneagles0513875, well, it's open source, you can fork it and change it as you need18:10
eagles0513875good point18:11
eagles0513875dimitern: i want to do work that would be beneficial to juju as a whole as well as potentially allow me to get hired and join the team :)18:11
dimiterneagles0513875, and what you're talking about might be achieved with a "web application" that runs the gui in a browser frame, but has an icon and a setup18:11
eagles0513875dimitern: there is one problem lets say your internet to the outside is down18:11
eagles0513875then what18:11
dimiterneagles0513875, sure, i understand18:12
eagles0513875very hypothetical situation in a datacenter environment but y ou are kinda screwed when it comes to deplooyments18:12
dimiterneagles0513875, you'll need internet to interact with a juju environment anyway18:12
eagles0513875good point18:12
dimiterneagles0513875, even if it's a private cloud, unaccessible from outside public18:12
eagles0513875im having fun with the local provider on my laptop18:13
dimiterneagles0513875, you still need a connection to it, and can deploy the gui there18:13
eagles0513875is there a way though to shutdown a machine and any instances18:13
dimiterneagles0513875, sweet! does it work? :)18:13
eagles0513875yes :)18:13
eagles0513875i found a corner case regarding ssh though18:13
eagles0513875it seems though the local provider and im not sure about any other cloud providers that you have to have the .pub ssh key in the .ssh folder18:13
eagles0513875with out it it gives an error18:14
dimiternwell, if you use juju destroy-machine XXX in a local environment, that will shutdown the container18:14
eagles0513875then i would need to destroy the environment then18:14
dimiternyou'll need A ssh key somewhere, if it's not in ~/.ssh/, you can specify it in the environments.yaml18:14
dimiternno, you can destroy individual machines, without taking down the whole env18:15
eagles0513875dimitern: this is on my laptop what happens if i need to shut it off18:15
eagles0513875will my system take down the machine as well and bring it back up on boot up18:15
dimiternjust so in a local env, any "machine" you can see is actually an lxc container running on your machine (machine 0 is the only "real" one)18:15
eagles0513875dimitern: O_o what cropped up for me is this. i dont have my .pub in the .ssh folder on my local machine but on a remote server in its .ssh which tbh i dont see why you really need your .pub key if you are deploying to other things besides the local provider18:16
eagles0513875ahh ok :)18:16
dimiternhmm.. that's a fair question - I think there was some work done to restart any containers at boot time18:16
dimiternyou can certainly try rebooting without destroying you local env and see if it comes back up after18:17
dimiterni think it should (we're using local upstart jobs for the agents)18:17
eagles0513875ok :)18:18
eagles0513875im guessing fwereade has gone to eat so ill have to continue on the ssh issue i managed to unearth tomorrow with him18:18
eagles0513875dimitern: btw mlug has our own irc channel lug-mt18:19
dimiterneagles0513875, ah, 10x - i'll try lurking there from time to time :)18:20
eagles0513875no problem18:20
eagles0513875dimitern: how can i deploy to my local provider using the juju charms site18:26
eagles0513875or do i need to deploy juju-gui in a container on my laptop18:26
dimiternyeah, you'll need to deploy the juju-gui charm in your local env, and then use it to deploy stuff18:27
dimiterni think you need to expose it as well, so you can access it through a browser18:27
dimiterncheck the juju-gui docs if in doubt18:27
eagles0513875dimitern: ok :) i think the example will gave it was exposed to the internet :)18:28
eagles0513875dimitern: i have a question though the install of the os in regards to 12.04 is it a full install or a minimal install  of ubuntu installing only features that are needed18:28
dimiternwhich os install?18:29
dimiternin a container?18:29
eagles0513875yes18:29
eagles0513875of precise18:29
eagles0513875i think over all deployment speeds can be improved by using a minimal install no?18:30
dimiternit just acts like precise, but it uses the same kernel as your host (which appears as precise)18:30
dimiternit's a minimal system18:30
eagles0513875ahh ok18:30
eagles0513875seems a bit slow to setup the containers etc18:30
eagles0513875even when william was deploying to hpc or ec218:30
dimiterninitially yes, but I think we cache some stuff18:30
eagles0513875oh ok :)18:31
dimiternbut don't take my word for it - try it out (I think there were plans for speeding up local env deployments, but i'm not 100% sure we did it yet)18:33
dimiterni'm signing off for today18:35
dimiterng'night all18:35
fwereadeeagles0513875, fwiw, we need the public key to authorize on the instances we deploy, so you can ssh to them if you want to18:44
wallyworld_fwereade: hi, you around?20:03
thumpero/ fwereade20:12
thumperfwereade: we need coffee20:12
thumperwallyworld_, axw and thumper afk to get it20:12
thumperback20:20
fwereadewallyworld_, thumper, hey guys20:42
thumperfwereade: hey20:43
wallyworld_yello20:43
fwereadethumper, wallyworld_, how's it going?20:43
wallyworld_did you want to talk about azure?20:43
wallyworld_peachy20:43
wallyworld_now that we have had coffee20:43
fwereadewallyworld_, yeah, we probably should20:43
fwereadeI'm slowing down pretty badly myself20:43
wallyworld_should != want :-)20:43
wallyworld_we can do it tomorrow20:43
wallyworld_we have enough work to do today20:43
thumperyeah, getting the proxy stuff done today hopefully20:44
fwereadeyou know what, I think I'll take that as an answer and go to bed20:44
wallyworld_ok :-)20:44
fwereadeyou rock guys :)20:44
wallyworld_i might see you for the standup, if not tomorrow :-)20:44
wallyworld_nighty night20:45
thumperfwereade: ack, sleep well20:45
thumperaxw, wallyworld_: review plz https://codereview.appspot.com/54720043/22:28

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