/srv/irclogs.ubuntu.com/2012/03/21/#juju-dev.txt

flacostehazmat: jimbaker: bcsaller: if any of you is around, would one of you be available to help poor bigjools with the problems we are having making the maas provider work?00:52
* bigjools makes puppy dog eyes00:53
* SpamapS can try to help00:55
SpamapSI doubt I can offer quite the same level of code introspection as them.. but I *did* write a provider many moons ago00:55
bigjoolsheh00:56
bigjoolsSpamapS: ok thank you. my problem is that  the provisioning agent craps out when it tries to deploy stuff.  Let me try to pastebin a log.00:57
bigjoolswe are confused about system/instance/resource/ etcetc IDs.00:57
bigjoolsthe current branch is here, FWIW: lp:~julian-edwards/juju/maas-system-id00:57
flacosteSpamapS: thanks00:59
SpamapSbigjools: I noticed that there was some stuff missing from other places in the code today too. Providers aren't nearly as self-contained as they should be01:04
bigjoolsSpamapS: :(01:04
SpamapSbigjools: pulling your branch now. What exactly can I help with?01:09
bigjoolsSpamapS: I am trying to get my prov agent log, one sec01:11
SpamapSbigjools: just an FYI, you need to add maas to juju/unit/address.py01:12
SpamapSbigjools: but I do not know if that is for sure your issue. Most likely not. ;)01:13
bigjoolsSpamapS: ok thanks01:13
fwereade_bigjools, based on the error robbiew forwarded earlier, I would look askance at MaasProvider.get_machines01:14
bigjoolsSpamapS: so here's a snippet of log: http://pastebin.ubuntu.com/893090/01:14
bigjoolsyeah basically the same as that email01:14
bigjoolsfwereade_: hi!01:14
fwereade_bigjools, the description was basically that it was trying to shut down machines that it shouldn't even know about, right?01:14
fwereade_bigjools, heyhey :)01:14
fwereade_bigjools, that implies that the PA is getting more machines than it should back from provider.get_machines01:15
bigjoolsfwereade_: well that AND the fact it was shutting down something that was not running (maas returns the 409 CONFLICT for that)01:15
bigjoolsfwereade_: ah that is useful, thanks01:15
fwereade_bigjools, it will only ever try to shut a machine down if the provider tells it it exists01:15
flacostebigjools: could it be that get_nodes() doesn't limit itself to the nodes that have been acquired?01:16
fwereade_bigjools, of all those machines which exist, any which correspond to a machine state will be saved01:16
fwereade_flacoste, sounds very likely01:16
bigjoolsflacoste: yeah could be01:16
bigjoolsI need to debug this01:16
fwereade_flacoste, orchestra had to make that distinction01:16
bigjoolson an internet connection that has some b/w01:16
fwereade_bigjools, best of luck01:18
SpamapSit does look like get_machines shows all machines01:18
bigjoolsok I'll look into that, thanks for the advice guys!01:18
fwereade_bigjools, I'm afraid I have to sleep now01:18
fwereade_bigjools, a pleasure, glad to be of service :)01:19
SpamapSbigjools: each of the other providers uses something to filter out the list of all machines that can be seen w/ the service+creds to just the ones pertinent to this environment01:20
bigjoolsright01:20
SpamapSbigjools: for orchestra it was mgmt class, for ec2 the group is used01:20
bigjoolsI assumed it was just asking about all nodes passed01:20
flacostebigjools: so in our cases, returning the nodes associated to the user is probably fine01:21
flacostealthough01:21
flacostewe might need to introduce a new environment key01:22
bigjoolsflacoste: how so?01:22
flacoste(in case a user, wants to start two separate environments)01:22
flacostejuju bootstrap; juju bootstrap01:22
flacosteboth with the same credentials01:22
SpamapSYou need something to tag each node. One maas may host many envs for many users.01:22
flacosteSpamapS: we are multi-tenant already01:23
flacostebut not sure multi-env per user yet01:23
SpamapSthe potential to break your juju environment just by manually starting a node is a bit high though01:23
SpamapSif nothing else, prefix the names01:23
SpamapSor allow an optional filter in the environment configuration01:24
SpamapSbut anyway01:24
bigjoolsI need to understand what juju needs here, I am not sure yet.  But let me come back to that when the other stuff is working01:24
SpamapSsounds like the problem is in hand01:24
SpamapSAnyway, to test this hypothesis one should be able to try it out with a maas that only has juju nodes01:25
hazmatbigjools, ping02:51
* hazmat backtracks02:51
bigjoolshazmat: hey02:53
hazmathi bigjools just backtracking through the logs02:53
hazmatit sounds like orchestra is returning something via the api that it shouldn't02:53
bigjoolsyou mean maas?02:54
bigjoolsyeah - we think get get_machines call is returning the wrong things, it's not filtering properly02:54
hazmatbigjools, yup i mean the resource uri vs the node url seem to be two different concepts. anyways.. i'm around for  a few hrs.. if you need any further debugging02:54
bigjoolshazmat: great, thanks!02:55
* bigjools relocating03:15
rogpeppemornin' all09:26
rogpeppeTheMue: sorry i didn't take any pictures or record anything at all from last night!09:27
rogpeppeTheMue: but it was interesting, and a good time was definitely had.09:27
fwereade_heya rogpeppe09:30
rogpeppefwereade_: heya too09:30
fwereade_rogpeppe, TheMue: laura's off school and cath has to go out, I will be away for a couple of hours09:31
roubihi09:31
rogpeppefwereade_: lots of tunnels just after kings cross so communication will be patchy...09:32
roubiwhy i can't see09:32
roubidiscussions09:32
roubitaking place in this channel09:32
TheMuerogpeppe: moin09:33
TheMueroubi: which kind of discussion do you expect?09:34
roubiquestions that every body ask about juju09:34
wrtpfwereade_: lots of tunnels just after kings cross so communication will be patchy anyway...09:35
TheMuewrtp: so you're in the train?09:35
wrtpTheMue: i am09:35
wrtpTheMue: again!09:35
TheMuewrtp: ic ;)09:35
wrtpTheMue: i said hi to Eleanor and Erik for you BTW09:37
TheMuewrtp: great, thx09:37
wrtpTheMue: at least... i said hi to *an* Erik!09:38
wrtpTheMue: (the one that gave the talk)09:38
TheMuewrtp: that's exactly the right one09:38
TheMue;)09:38
wrtpTheMue: i'm not sure he remembered your name though - they do *many* startup gatherings...09:39
TheMuewrtp: that's one of the problem when you so far only had electronical contact with nicknames09:41
wrtpTheMue: yeah09:41
* wrtp can now run the environs/ec2 tests without accessing the internet. yay!10:12
TheMuewrtp: great10:13
fwereade_hazmat, ping, I'm getting a horrible feeling that we need to hit the "placement" key as well13:05
fwereade_hazmat, it really doesn't feel like an access setting ;) :(13:06
niemeyerHeya!13:32
fwereade_heya niemeyer13:43
fwereade_niemeyer, I think I'm missing some context on placement policies13:44
fwereade_niemeyer, why did they become env-level only, when we use to have deploy --placement?13:44
fwereade_used to have^^13:44
niemeyerfwereade_: They may be set both in the environment and in the service, right?13:45
niemeyerfwereade_: I mean, constraints can13:46
fwereade_niemeyer, *constraints* can13:46
niemeyerfwereade_: Yes, and that's the real placement.. --placement IIRC is a hack to allow re-use of machine 013:46
fwereade_niemeyer, it seems that *actually* placement ought to be a constraint, but not one I'd fully appreciated13:47
fwereade_niemeyer, OK, this is another point of potential pain13:47
fwereade_niemeyer, do we wish to retain that hack in some form?13:47
fwereade_niemeyer, given that we currently have no other way to express it, my guess is "yes", but..?13:48
niemeyerfwereade_: What's the potential pain?13:48
fwereade_niemeyer, it *also* seems that they *cannot* be set on the service13:49
fwereade_niemeyer, but perhaps I'm blind there13:49
fwereade_niemeyer, that it's a non-access setting that currently lives in environments.yaml13:49
niemeyerfwereade_: Placement policy sounds orthogonal to constraints and to environment settings13:49
niemeyerfwereade_: Sorry, yes, not to environment settings13:50
fwereade_niemeyer, yeah, local policy overrides constraints13:50
niemeyerfwereade_: Why is it tricky?13:50
fwereade_niemeyer, which I think matches intuitive intent13:50
niemeyerfwereade_: Sounds like a normal setting that should go into set-env13:50
fwereade_niemeyer, yeah; it's just something else we have to warn people about :(13:50
niemeyerfwereade_: We need to warn them about only one thing13:51
niemeyerfwereade_: Settings in environments.yaml are being moved onto the environment itself13:51
niemeyerfwereade_: We don't need a separate warning for each setting13:51
fwereade_niemeyer, this is true, but the required actions are different for different settings13:52
fwereade_niemeyer, "default-series" and "placement" are both "use bootstrap/set-env"; the ec2 ones are "use constraints"13:52
niemeyerfwereade_: That's fine.. we can easily document the distinction in a wiki page, and have both the email note and the error from juju pointing out to it13:53
niemeyerfwereade_: We also don't have so much variation13:53
fwereade_niemeyer, ok, that sounds good then13:53
niemeyerfwereade_: Can we please call placement as "placement-policy" on the way to that?13:53
fwereade_niemeyer, sounds like a good idea to me13:54
niemeyerfwereade_: I might even call that as debug-placement-policy, but YMMV ;)13:54
fwereade_niemeyer, sorry, paralysed myself wishing we'd implemented it as deploy/add-unit --force-machine=013:59
fwereade_niemeyer, I'm not quite sure that debug works myself13:59
fwereade_niemeyer, but then again I'm not sure I have the best perspective on how people are using it14:00
niemeyerfwereade_: This option was never intended to be visible/widely used14:03
niemeyerfwereade_: Some clever people may be using it to fine tune specific tests and deployments in good ways, but it spoils much of the reasoning why we have juju14:05
fwereade_niemeyer, I guess we would have got rather more blowback from making it harder to use back whenever it was it disappeared from the unit-adding commands14:05
fwereade_niemeyer, I'm not sure it does, it feels at least 50% like a reasonable temporary workaround to what remains one of juju's drawbacks14:06
niemeyerfwereade_: It's not a reasonable workaround at all, IMO, except in those very specific circumstances14:06
fwereade_niemeyer, I guess the question is "how do we quell the ire of those who *are* using it"14:07
niemeyerfwereade_: Having everything sitting on machine 0, next to ZooKeeper, in ways that can't ever be uninstalled...14:07
fwereade_niemeyer, this is true, it does suck14:08
niemeyerfwereade_: Hold on.. I wasn't suggesting removing it..14:08
niemeyerfwereade_: We need this behavior for the local provider case.. that's why we have it14:08
fwereade_niemeyer, well, the behaviour is fine for that; you seemed to be saying it was a mistake to have it available at all on ec214:09
niemeyerfwereade_: That's not what I said.. the option is just not intended to be very visible or widely used14:10
fwereade_niemeyer, anyway, ok, understood14:10
fwereade_niemeyer, we just move it exactly like default-series14:10
niemeyerfwereade_: It's fine to have it in EC2.. bcsaller made some very good use of that while developing some of the local provider stuff14:11
niemeyerfwereade_: Since he was able to test the LXC deployments straight in EC214:11
fwereade_niemeyer, cool, sorry misunderstanding :)14:11
niemeyerfwereade_: That's why I'd name it debug-placement-policy14:11
niemeyerfwereade_: This causes the environment to behave in very awkward ways if one doesn't know what's going on14:12
niemeyerfwereade_: But it's fine if you're really into it14:12
fwereade_niemeyer, the "debug" in there implies dev-only, rather than "what you should do for openstack" for example14:13
fwereade_niemeyer, which IIRC was a lot of the motivation for it initally(?)14:13
niemeyerfwereade_: You shouldn't do that for openstack, unless you're Adam :)14:13
fwereade_niemeyer, rabbitmq with mysql14:13
fwereade_niemeyer, haha14:13
niemeyerfwereade_: There's a sequence of events that requires using it in a precise way. This is much closer to "debugging" than to being a "juju feature"14:15
fwereade_niemeyer, I agree it's awkward; just fretting that it may have become a de facto feature14:15
niemeyerfwereade_: For Adam, it has :)14:16
niemeyerSpamapS, m_3: Is anybody else using the placement hack these days?14:16
* rogpeppe is back on a proper internet connection again.14:18
niemeyerrogpeppe: welcome back to modernity14:20
rogpeppeniemeyer: actually i felt quite futuristic controlling ec2 instances from on a train :-)14:21
niemeyerrogpeppe: That's quite amazing indeed :)14:21
rogpeppeniemeyer: managed to push out two merge requests too. better when the signal was better, usually in a station.14:21
rogpeppeniemeyer, fwereade_, TheMue: https://codereview.appspot.com/5866049/ and https://codereview.appspot.com/5864047/ if you fancy taking a look.14:27
* rogpeppe is very much enjoying having lbox do prerequisites properly!14:28
m_3niemeyer: not sure14:29
m_3doubt it14:29
niemeyerm_3: Cheers14:29
niemeyerfwereade_: ^14:30
fwereade_niemeyer, m_3: thanks :)14:30
m_3np14:30
niemeyerfwereade_, hazmat: Just had another round on https://codereview.appspot.com/5849054/14:34
SpamapSniemeyer: the placement hack has been unavailable to us since --placement was removed14:44
SpamapSHey question..14:44
SpamapSif you remove default-image-id ... how do private clouds work?14:45
niemeyerSpamapS: It's actually been available all along.. but thanks, that answers the question as well14:45
SpamapSniemeyer: heh, ok.. I'll take your word on that. I never knew it was.14:48
niemeyerSpamapS: Adam said it was important for his use case, so we just moved it..14:50
niemeyerSpamapS: He said it was fine, as long as it was available14:50
niemeyerSpamapS: The question about private clouds is a good one14:51
niemeyerfwereade_, hazmat: ^14:51
niemeyerSpamapS: We need a proper way to map series > image in those as well14:51
SpamapSI suspect the simplest way will be to set image id on each deploy.14:53
SpamapSbut thats ... tedious :-P14:53
fwereade_niemeyer, *that* is plausibly an env access setting, now I come to think of it14:53
niemeyerfwereade_: Yeah14:54
fwereade_niemeyer, and SpamapS' observation does make me all nervous about forcing automated image selection on people now14:54
fwereade_(again)14:55
niemeyerfwereade_: Do you have any suggestions that do not involve having "deploy cs:~fwereade/oneiric/mongodb" deploying it in Precise?14:56
fwereade_niemeyer, no, I don't14:57
fwereade_niemeyer, I would suggest that the people sophisticated enough to use custom image ids are demonstrably comfortable in less-comfortable environments14:59
niemeyerfwereade_, SpamapS: The proper way is likely to have e.g.14:59
niemeyerimages:14:59
niemeyer    precise: <image id>14:59
niemeyer    oneiric: <image id>14:59
niemeyer    ...14:59
fwereade_niemeyer, arch? hvm?14:59
niemeyerfwereade_: arch is an issue.. hvm doesn't exist outside of ec215:00
fwereade_niemeyer, true, but that's another way of saying "it exists"15:00
fwereade_niemeyer, it'll all be against the ec2 provider...15:01
niemeyerfwereade_: Yeah, you're right15:01
niemeyerhmm15:01
fwereade_niemeyer, IMO the cost of persisting the hack until 12.04.1 is outweighed by the benefit of offering an actual transition path for anyone who is using it15:02
niemeyerfwereade_: precise: {id: <id>, constraints: <matching constraint expression>}15:02
niemeyerfwereade_: ?15:02
fwereade_niemeyer, hmm, that could work, but it feels kinda icky15:03
niemeyerfwereade_: Forget "persisting the hack".. let's describe it in terms of having series not working15:03
niemeyerfwereade_: I don't care about the hack.. I care about series not working15:03
fwereade_niemeyer, ok15:04
fwereade_niemeyer, what I want is for everyone who needs it to run their own local uec-images :)15:04
fwereade_niemeyer, ie, same data format and url %s-able by series name15:04
fwereade_niemeyer, that makes it an env access setting, the isers are responsible for advertising sane images, and we're done15:05
niemeyerfwereade_: That's a plausible idea. We just have to reduce the burn of setting it up, and we also need to think about the fact that non-real-EC2 deployments don't have pretty pre-defined classes of machines15:05
fwereade_niemeyer, heh, I wish I could remember who told me that basically all openstack deployments reuse instance names (even if they don't perfectly match capabilities)15:06
fwereade_niemeyer15:06
fwereade_niemeyer, actually it's not just uec-images data: it *is* the capabilities of the instances, assumptions about what instance types can run what images are hardcoded :(15:07
fwereade_niemeyer, however I don't think even amazon publish that data in a usefully-consumable format15:08
niemeyerfwereade_: We do..15:08
fwereade_niemeyer, it's a tradeoff that seemed sensible given the constraints I was operating under15:09
niemeyerfwereade_: But we can't publish it for arbitrary deployments that have their own image ids and their own capabilities15:09
fwereade_niemeyer, oh wait, did I totally miss the meaning of "we do"?15:09
niemeyerfwereade_: seemed sensible? was operating under? I think you missed it :)15:10
niemeyerfwereade_: Canonical publishes details for images in EC215:10
fwereade_niemeyer, if you're saying that we publish uec-images: yes, I know :p15:10
niemeyerfwereade_: No, we publish the data that you said Amazon doesn't15:10
fwereade_niemeyer, details of instance types?15:11
fwereade_niemeyer, which ones require HVM images, etc?15:11
fwereade_niemeyer, which one's it's OK to start with an i386 image15:12
fwereade_niemeyer, it's the fact that even if the *names* match, private "ec2"s might have (say) m1.smalls that are 64-bit only15:12
niemeyerfwereade_: Yes15:12
niemeyerfwereade_: http://uec-images.ubuntu.com/query/precise/server/daily.txt15:12
fwereade_niemeyer, I see lots of image data there in exactly the format I was asking for15:13
niemeyerfwereade_: You need to know whether the instance is amd64/i386/ebs/hvm..15:13
fwereade_niemeyer, I see nothing about instance types15:13
fwereade_niemeyer, yes15:13
fwereade_niemeyer, ebs we assume everywhere so I really have no option but to punt on that for now at least15:14
niemeyerfwereade_: This is still relevant as it gives us which ones are ebs or not15:14
fwereade_niemeyer, how is any of that information useful to me, as juju, running against a private cloud and attempting to determine whether or not it is appropriate for me to start a c1.medium with an i386 image?15:15
niemeyerfwereade_: The constraints part of the picture must be provided by the provider15:16
niemeyerfwereade_: This is already the case for the constraints mechanism you're implementing to exist at all15:16
fwereade_niemeyer, agreed15:16
fwereade_niemeyer, this information will indeed need to be exposed by the provider15:17
niemeyerfwereade_: This is solving the other half of the problem.. given you know what constraints a machine is under, what image?15:17
niemeyerfwereade_: I'll have lunch while I think a bit more about the issue :)15:18
fwereade_niemeyer, that is not a problem in need of a solution15:18
fwereade_niemeyer, we do that already15:18
niemeyerfwereade_: Is it not?  That's great.. so what's the answer to SpamapS question?15:18
niemeyer<SpamapS> if you remove default-image-id ... how do private clouds work?15:18
* niemeyer => lunch15:18
fwereade_niemeyer, SpamapS: if I have my way, private clouds will work as follows15:19
fwereade_niemeyer, SpamapS: (1) they have to publish uec-images format image data just like uec-images, and must specify the url in the env access settings15:20
fwereade_niemeyer, SpamapS: (2) they have to [somehow] publish instance-type data in a format we can interpret15:21
fwereade_niemeyer, SpamapS: if we remove default-image-id now, we utterly crush any current efforts to play with juju in private openstack clouds (right?)15:22
fwereade_niemeyer, SpamapS: if we focus on it, we *can* come up with a sensible way to import the required information by 12.04.1, and we can IMO bear the risk of sophisticated users telling juju to do bad things in the meantime15:23
fwereade_niemeyer, SpamapS: it now seems clear that default-instance-type and default-image-id are both critically important for this use case -- without d-i-t you're forced to use the ec2 instance types, and without d-i-i you're completely helpless15:25
fwereade_niemeyer, SpamapS: is this approaching the tipping point at which we say "ok, we really actually cannot break this now, however much we'd like to"?15:27
niemeyerfwereade_: What's the suggested behavior of "cs:~fwereade/precise/mongodb" vs. "cs:~fwereade/oneiric/mongodb"?15:45
hazmateek.. du -hs machine-agent.log15:57
hazmat163G    machine-agent.log15:57
niemeyerhazmat: Holy crap15:58
niemeyerrogpeppe: You have a couple of (trivial) reviews15:58
hazmatniemeyer, yeah.. zk client debug loggin is a bit verbose ;-)15:58
hazmati can dev/null it, the alternative is attach a pipe, and filter/rate-limit messages into python logging16:00
rogpeppeniemeyer: thanks a lot16:00
hazmatit seems like it goes into a tail spin of errors/warnings when it has trouble connecting16:00
fwereade_niemeyer, look up an appropriate image at a url based on series; use other constraints to pick an appropriate image from that data source16:04
niemeyerhazmat: Sounds fine to dev/null it16:04
niemeyerfwereade_: I mean for 12.0416:05
fwereade_niemeyer, we loudly and anrgily warn that default-image-id is deprecated every time we parse env.yaml16:05
niemeyerfwereade_: Sorry, I mean what's the plan for supporting multiple series in 12.0416:06
fwereade_niemeyer, in private clouds, we don't have one16:06
fwereade_niemeyer, for everyone else, they just have to stop using those keys16:06
fwereade_niemeyer, well, that one specific key16:06
niemeyerfwereade_: Ok, I can buy into that as an intermediate step16:07
rogpeppeniemeyer: thanks for the LGTM on https://codereview.appspot.com/5857049/. it's got https://codereview.appspot.com/5864047/ as a prerequisite BTW in case you'd overlooked that one.16:07
fwereade_niemeyer, cool16:08
fwereade_niemeyer, I'm certainly not advocating that it should live on in 12.04.116:08
fwereade_niemeyer, however, since d-i-i was the driver for a lot of this, we should check response sanity for the other keys16:09
niemeyerrogpeppe: I didn't overlook it.. just didn't get there16:09
rogpeppeniemeyer: np16:09
fwereade_niemeyer, d-i-t is I think helpful in the private cloud use case; aws users can just retire it when they feel ready16:10
niemeyerfwereade_: I think d-i-t is --constraints, isn't it?16:11
niemeyerfwereade_: If it is still useful after constraints, we're doing something wrong16:11
fwereade_niemeyer, it is, but it makes aws-specific assumptions about the nature of the instance types it exposes16:11
niemeyerfwereade_: Really? Why?16:11
niemeyerfwereade_: I thought we had non-AWS needs in mind the whole time16:12
fwereade_niemeyer, I am only aware of one place that publishes that information, and it's a github project that I'm reluctant to pull and parse at runtime16:12
niemeyerfwereade_: Which means constraints is broken16:12
niemeyerfwereade_: It must be finished16:13
niemeyerfwereade_: default-instance-type is a constraint like any other16:13
niemeyerfwereade_: cpu=N arch=X etc16:13
fwereade_niemeyer, default-instance-type is a bad name: what it really is is force-instance-type16:14
niemeyerfwereade_: Huh!?16:14
fwereade_niemeyer, that is the effect it has always had16:14
niemeyerfwereade_: "default" in there should really be *default*16:14
niemeyerfwereade_: Because there's no other way to select the instance type16:14
niemeyerfwereade_: Constraints should entirely obsolete the need for default-instance-type16:15
niemeyerfwereade_: Or we're doing something wrong16:15
fwereade_niemeyer, the wrong thing that we are doing is encoding assumptions about AWS in the environment16:16
niemeyerfwereade_: Such as?16:16
fwereade_niemeyer, cc2.8xlarge requires an HVM image16:17
niemeyerfwereade_: We don't have that in the environmen, do we?16:17
fwereade_niemeyer, t1.micros can be started with i386 and amd64 images16:17
fwereade_niemeyer, are you aware of any other place to get that information?16:17
niemeyerfwereade_: Sorry.. we're using "environment" in different ways16:17
niemeyerfwereade_: It's not an environment setting16:18
fwereade_niemeyer, developing the infrastructure to distribute it ourselves seemed a touch overambitious for a small compnent of a feature I had |1 month to do16:18
niemeyerfwereade_: EC2 knowing that in Amazon a t1.micro is i386 sounds quite ok16:18
fwereade_niemeyer, hence hardcoded assumptions like the above16:18
fwereade_niemeyer, right16:18
fwereade_niemeyer, can we make that assumption about instance types available in private clouds?16:18
niemeyerfwereade_: No.. didn't we go over that already?16:19
fwereade_niemeyer, a consequence of that is that constraints are "broken", as you put it, in certain private-cloud situations16:19
niemeyerfwereade_: This has to be provided by the provider16:19
hazmateven private openstack environments they typically do have something mapping to the instance types from ec2, but the definitions are more ad hoc user defined. there is a way via the native api to query out those capabilities.16:19
hazmatthis discussion sounds familiar16:20
fwereade_hazmat, that is good to know16:20
fwereade_niemeyer, hazmat: does anything like that exist for AWS (apart from that github project)?16:21
hazmatfwereade_, but the mapping is not always complete for ec2 types16:21
hazmatfwereade_, just that project the boto author did as far as machine parsable ones16:21
hazmatfwereade_, we could see if smoser/someone could set that up on cloud-images16:21
niemeyer<niemeyer> fwereade_: EC2 knowing that in Amazon a t1.micro is i386 sounds quite ok16:21
fwereade_hazmat, it's not just serving it; it's updating it etc16:22
hazmatbut we'd also need to start distinguishing in the ec2 provider on how to query capabiiltiies based on impl (ostack/aws)16:22
niemeyerfwereade_: We can also offer a document16:22
fwereade_hazmat, it feels like a pretty serious responsibility to take on16:22
niemeyerfwereade_: Similar to uec-images16:22
hazmatfwereade_, really? https://github.com/garnaat/missingcloud setting up a cron job?16:22
niemeyerfwereade_: You mean, providing data about which instance types exist?16:23
hazmatfwereade_, oh its hand written you mean?16:23
fwereade_niemeyer, as I said, I rejected that option as being unrealistic in the time we had available16:23
TheMueniemeyer: todays watches of service and unit are build with callbacks. any already existing concept on how to handle it in go? or shall i use the idea of a watcher like rog and i already outlined a few days ago?16:23
fwereade_niemeyer, perhaps I was wrong there16:23
niemeyerfwereade_: Which option? Sorry.. it feels like there are wires being crossed all the time16:23
niemeyerfwereade_: I'm a bit lost16:23
fwereade_niemeyer, yeah, I'm losing track a bit16:23
fwereade_niemeyer, I feel that it is inappropriate to depend on someone else's AWS data in an automated way16:24
niemeyerfwereade_: We can publish that information16:24
fwereade_niemeyer, and that taking on the responsibility of publishing it ourselves would be excessively painful16:25
fwereade_niemeyer, and that even if that were not the case (I guess it isn't)16:25
niemeyerfwereade_: Why?16:25
niemeyerfwereade_: Canonical published the whole *operating system* that people are using16:25
niemeyerfwereade_: I can't see how publishing which instance types are availalbe is a problem16:25
fwereade_niemeyer, that my prospects of getting all that set up and out of my hair in the course of december 2011 was unrealistic16:26
fwereade_niemeyer, if we provide it we have to keep up with the amazon announcements and always remember to update16:26
niemeyerfwereade_: Yep16:26
niemeyerfwereade_: Changes in instance types are nowhere close to frequent16:27
fwereade_niemeyer, which IMO makes it only less likely that it will be something that we will remember to do in a timely way16:27
fwereade_niemeyer, and makes a certain juju-update-dependent lag in access to latest instances acceptable16:28
niemeyerfwereade_: Nothing too bad happens if it takes an entire month to be updated, really16:28
niemeyerfwereade_: This is a non-issue in the context of things we've been talking about.. let's see what are the actual issues we have to decide now16:29
TheMueniemeyer: e.g. my watch question above. *scnr*16:31
TheMueniemeyer: ;)16:31
fwereade_niemeyer: basically, given that we cannot discard d-i-i -- and that doing so was the primary motivation for dropping a sudden format change on our users -- can we perhaps entirely avoid inflicting an env.yaml change on them until sometime after 12.04?16:31
fwereade_niemeyer, by keeping d-i-i for a while we'recommitting to another change down the line16:32
fwereade_niemeyer, by making d-i-i and d-i-t act as though "default" meant "force", we can preserve existing behaviour for everyone, and make constraints accessible to all who can give up those keys16:33
niemeyerfwereade_: Sorry, this whole conversation is flying well above my head16:33
niemeyerfwereade_: default is default, not force16:33
niemeyerfwereade_: constraints are broken, as you describe16:34
niemeyerfwereade_: You're asking to not change environment, but I don't know what you mean by that16:34
niemeyerfwereade_: We need a call16:34
fwereade_niemeyer, sounds good16:34
niemeyerTheMue: Not a good time, sorry16:35
TheMueniemeyer: yeah, ic, followed your discussion with one eye16:35
TheMueniemeyer: will port state/auth first16:35
fwereade_niemeyer, invited on g+16:35
niemeyerfwereade_: Uh oh16:37
niemeyerUh oh.. again16:44
rogpeppefwereade_, niemeyer: do you know anything about the way that admin_identity is used to make acls, by any chance? i'm seeing an "invalid acl" error, which i'm presuming is from StateHierarchy.initialize.18:05
rogpeppejimbaker: ^18:05
rogpeppei don't see any traceback18:06
rogpeppethis is how juju-admin initialize is being invoked:18:07
rogpeppejuju-admin initialize --instance-id='$(curl http://169.254.169.254/1.0/meta-data/instance-id)'  --admin-identity=sham --provider-type='ec2'18:07
rogpeppei'm wondering if admin-identity needs to be in a particular format18:07
rogpeppeah, got it!18:08
rogpeppewonderful how explaining things to people so often solves the problem...18:09
rogpeppe(not that it's solved for definite yet - waiting for the machine to boot now)18:09
rogpeppedammit, i was wrong.18:15
rogpeppei think i've seen it now though...18:18
niemeyerOk.. off the call with fwereade_, talking to mthaddon about store now18:24
rogpeppedammit, i wrote that function once and can't find it! anyone know of a way to grep through all files in all branches in a bzr history? the bzr-grep plugin doesn't seem to do it.18:28
niemeyerhazmat: It'd be good to have a call at some point today/tomorrow with you, fwereade_, and myself, to sync up on that conversation18:30
niemeyerhazmat: Mainly clarification of the whole series/etc conversation18:31
hazmatniemeyer, i'm game for it now if you'd like18:31
niemeyerhazmat: fwereade_ just stepped out for some family time after about 2h of phone call18:31
niemeyerhazmat: We both need a break before diving into it again18:32
rogpeppeah, found bzr-search and found my code!18:32
hazmatniemeyer, ic fair enough, i hadn't realized, i'm around whenever you guys are ready18:32
hazmatniemeyer, also the unit-stop spec could use a review, just pushed the latest18:32
niemeyerhazmat: Aweomse, will have a look18:34
hazmatniemeyer, i liked awsum ;-)18:35
hazmatand thanks18:35
niemeyerhazmat: Me too.. I also found funny the way it was ignored :)18:35
niemeyerhazmat: Like "OMG, stop the bikeshed!" :)18:36
hazmathmm.. where oh where do we sync settings18:40
hazmatah there it is.. deploy18:42
* niemeyer perceived fwereade_ seems to have been hit by the network bug in Precise too19:10
niemeyer[niemeyer@gopher ~]% ps auxw | grep chromium-browser | wc -l19:12
niemeyer1019:12
niemeyer[niemeyer@gopher ~]% killall chromium-browser19:12
niemeyerchromium-browser: no process found19:12
niemeyerWhy oh why19:12
* niemeyer invokes awk powers to do a trivial action.. poor normal users19:13
rogpeppeall tests pass. woop woop.19:20
rogpeppewe have lift off19:20
rogpeppeniemeyer: a happy note to end the day on: https://codereview.appspot.com/586805119:25
* rogpeppe is off for the day. see y'all tomorrow.19:25
niemeyerrogpeppe: Neat!19:41
niemeyerhazmat: I'm on the stop spec, btw19:42
niemeyerhazmat: Delivered20:08
niemeyerjimbaker: Any progress on the specs?20:09
niemeyerjimbaker: and in their implementation?20:09
niemeyerrogpeppe: Uh oh. I'm wondering if having pre-req support is a good idea. I'm starting to feel like we're getting tiny changes that are completely independent being piled up on unrelated changes.20:12
niemeyerNow I'm getting two messages when I post a message in Rietveld.. eventual consistency is rocking our world :)20:31
fwereade_niemeyer, hazmat: so, it turns out discussion of instance types and environment key deprecation is an excellent family insomnia cure; who would have guessed?20:32
fwereade_niemeyer, hazmat: that is to say I have time for a chat :)20:32
niemeyerfwereade_: Hehe :)20:32
niemeyerfwereade_: I'm game as well20:32
niemeyerhazmat?20:32
jimbakerniemeyer, i've been working on two branches re impl, relation-id and relation-hook-context (to manage the contexts associated with using -r in the relation hook commands spec)20:40
niemeyerjimbaker: I was just reading that spec, actually20:41
jimbakerniemeyer, i'm going to do another round on the spec for relation-ids (what was called relation-info)20:41
jimbakerniemeyer, good, i hope it's in the direction you like20:41
niemeyerjimbaker: Is there anything else being said in addition to "relation-get needs to support the -r <relation id> argument"?20:41
jimbakerniemeyer,not so much. most of the spec in relation-hook-commands-spec is to describe various scenarios through an example; and to address such details as the specifics of the caching of the relation hook contexts that are read in -r20:45
jimbakerread in with -r20:45
jimbakerand how the order they are written out20:45
niemeyerjimbaker: Cool20:47
niemeyerjimbaker: I don't think the ordering is important, btw20:48
jimbakerniemeyer, sounds reasonable20:48
jimbakerniemeyer, the ideal scenario is that uses a ZK multi20:49
jimbakerin which case, it goes away20:49
jimbakerhowever, one counterpoint is that does make it easier to test against log output corresponding to relation changes, if any20:50
jimbakerso perhaps just an impl detail20:50
niemeyerjimbaker: Right20:51
hazmatniemeyer, i was just chatting with jim and looking over the wip impl. he's out at the moment though,20:56
hazmatniemeyer, fwereade_ i'm up for the chat20:56
jimbakerhazmat, i'm around right now20:57
niemeyerhazmat: He seems alive and kicking :)20:57
hazmatjimbaker, doh.. yeah i had written that message before i went away myself20:57
jimbakerand was just chatting with niemeyer re the relation-hook-commands spec20:57
fwereade_hazmat, niemeyer: heyhey20:58
hazmatfwereade_, niemeyer  g+ invites out21:00
niemeyerhazmat: Just give me a couple and will be with you21:01
niemeyerjimbaker: Review delivered21:07
fwereade_hazmat, would you follow up the warning thread with a precise and reassuring explanation of what you're planning re env settings? I fear missing some nuance ;)22:41
fwereade_hazmat, and am a touch sleepy ;)22:42
hazmatfwereade_, ack, and get some sleep22:49
hazmatniemeyer, incidentally i noticed there's an lbox bug on milestone selection, it always selects the newest milestone afaics, instead of the oldest open milestone23:34

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