Monday, 2014-03-03

*** saju_m has joined #openstack-climate06:31
*** chandankumar_ has quit IRC06:45
*** chandan_kumar has joined #openstack-climate06:51
*** chandan_kumar has quit IRC06:55
*** YorikSar has joined #openstack-climate07:00
*** YorikSar has quit IRC07:36
*** YorikSar has joined #openstack-climate07:37
*** YorikSar has quit IRC07:41
*** YorikSar has joined #openstack-climate07:42
*** bauzas has joined #openstack-climate08:15
*** saju_m has quit IRC08:40
*** saju_m has joined #openstack-climate08:43
*** saju_m has quit IRC09:02
*** chandan_kumar has joined #openstack-climate09:03
openstackgerritA change was merged to stackforge/climate: Enable verbose logging in devstack  https://review.openstack.org/7711409:21
openstackgerritA change was merged to stackforge/climate: Adding/Handling DB specific exceptions  https://review.openstack.org/7475109:24
*** saju_m has joined #openstack-climate09:34
bauzasYorikSar: DinaBelova: I got a question about XML support in API09:51
bauzasDinaBelova: there is a thread about deprecating XML in Openstack APIs09:52
bauzasDinaBelova: do you agree with this ?09:52
bauzasDinaBelova: YorikSar: my concern is about https://review.openstack.org/#/c/71011/6/climate/api/v2/middleware/parsable_error.py09:52
bauzasDinaBelova: YorikSar: L7109:52
bauzasDinaBelova: YorikSar: I'm doing some post-parsing support for XML rendering09:52
bauzasDinaBelova: YorikSar: if we say we won't support XML, I could just place a statement saying to use JSON09:53
DinaBelovabauzas, \o09:53
bauzasDinaBelova: YorikSar: but that's only for errors09:53
bauzasDinaBelova: YorikSar: as WSME supports natively both formats09:53
bauzasDinaBelova: \o09:54
bauzasDinaBelova: YorikSar: or I can provide a Pecan hook for deprecating XML09:54
bauzasDinaBelova: what do you feel about it ?09:54
DinaBelovafirst of all, I now have no clear idea if I'm ok or not with XML api  deprecation :)09:55
bauzasDinaBelova: there was a TC decision to deprecate XML09:55
DinaBelovaI'm reading this thread now09:55
DinaBelovaah, yes09:55
bauzasso the YorikSar's comment is worth it09:55
DinaBelovaok, probably some hook for deprecating is ok, but really we need YorikSar to also agree with that :)09:56
DinaBelovalet's wait for him :)09:56
bauzasYorikSar: ? :)09:56
bauzaswell, the Pecan hook would just say like 'NotImplemented'09:56
bauzasas it's a new API :)09:57
DinaBelovayes, I also think that09:57
bauzasok, while waiting YorikSar feedback, working on other things09:57
DinaBelova+109:58
DinaBelovaI'm preparing answer to Joe in mailing thread :)09:59
bauzasyup, saw it09:59
YorikSarbauzas, DinaBelova: Hello, guys :)10:09
YorikSarbauzas: I think, there's nothing to deprecate since there's no Climate API v2 yet.10:09
DinaBelovaYorikSar, 'guys' is usually used for mail audience :)10:09
DinaBelovaI'm girl :)10:09
DinaBelovaso use 'folks'10:09
DinaBelova:)10:09
YorikSarDinaBelova: Oh, you're my buddy anyway ;P10:10
DinaBelova:D10:10
bauzaswhat's up, peer ? ;-) :D10:10
bauzasYorikSar: I got your point about XML10:11
bauzasYorikSar: API v1 was supporting XML10:11
YorikSarbauzas: So we can just say that v2 doesn't support XML and that's it. We might want to cut XML support out of v1... But I don't think there is support for XML there.10:11
bauzasYorikSar: ok, so we need to force a hook to deny XML then10:11
bauzasYorikSar: do you agree with it ?10:12
YorikSarbauzas: You mean, finter out calls with explicit Accept: application/xml header?10:12
YorikSar*filter10:12
bauzasYorikSar: that would be a Pecan hook with a before() processing, where requests having this header would be returned as non-valid, yes10:13
bauzasYorikSar: if we leave as it is, XML support is there10:14
YorikSarbauzas: Hm... I think, we can invert this logic: pass only requests that have "Accept: application/json" or no "Accept:" header at all.10:14
bauzaswell, ok, that's matter of having a glass with either half-empty or half-full :)10:15
bauzasYorikSar: but taking your comment :)10:15
YorikSarbauzas: In fact, I think that even if XML requests won't be denied it won't harm us. Just some undocumented unsupported functionality.10:15
bauzasok, implementing it, and getting rid of that if branch10:15
bauzasYorikSar: DinaBelova: what do you think about it ?10:16
bauzasDinaBelova: unsupport XML support for responses with 200/300 codes10:16
bauzasDinaBelova: and non-supported rendering layouts for >400 error codes10:16
bauzasthat means I can just get rid of the if branch , without doing anything10:17
DinaBelovaI think it's ok - I mean we do not ensure XML support, we ensure json10:23
DinaBelovaif XML is working that's great, but we don't give any guaranties10:23
*** saju_m has quit IRC10:25
bauzasDinaBelova: ok10:26
*** saju_m has joined #openstack-climate10:42
*** saju_m has quit IRC11:11
*** saju_m has joined #openstack-climate11:25
*** jd__ has left #openstack-climate12:44
*** chandan_kumar has quit IRC12:48
*** chandan_kumar has joined #openstack-climate12:49
*** saju_m has quit IRC12:52
*** chandankumar_ has joined #openstack-climate12:54
*** chandan_kumar has quit IRC12:57
*** chandan_kumar has joined #openstack-climate15:42
*** chandan_kumar has quit IRC16:03
*** chandan_kumar has joined #openstack-climate16:16
*** bauzas has quit IRC16:57
*** chandan_kumar has quit IRC17:25
*** bauzas has joined #openstack-climate17:34
*** jogo has joined #openstack-climate18:39
jogoo/18:42
DinaBelovajogo, \o18:48
DinaBelovabauzas, btw, you're here?18:48
bauzasDinaBelova: yup, I'm here :)18:49
DinaBelovaIt looks like our European time zone is nothing for us :D18:49
DinaBelovaOnce I notices, that it was 2 AM for me, and somehow I did not want to sleep communicating with our Intel folks :D18:50
jogoDinaBelova: this is Joe Gordon18:50
jogoso perhaps I am missing something18:50
DinaBelovajogo, ok, so may you say, what moments are suspicious for you?18:51
DinaBelovamaybe that's some kind of misunderstanding between us :)18:51
jogoIn its current state. I don't see how Climate can guarantee that an instance will be available, and allow that resource to be used in the interam.18:51
DinaBelovacurrently we've taken resources for VM from common pool by creating it and giving it shelved state - we've taken resources from compute node instance is running on18:53
DinaBelovaour first idea, frankly speaking, was about some special state for Vm in Nova DB18:53
DinaBelovawithout real VM created18:53
jogoso amazon can do this because they can delete a class of VMs at will (spot instances)18:53
jogowithout that concept I don't see how you can do this18:54
DinaBelovabut that was not really good idea - 'cause we needed to have much changes in Nova18:54
DinaBelovam-m-m18:55
DinaBelovaprobably I can't get your point clearly18:55
bauzasjogo: I discussed that point with phil18:55
bauzasjogo: he wanted to propose some implementation of spot instances18:56
DinaBelovaoh, I got it18:56
DinaBelovajogo, it was really good mailing thread about that18:56
jogobauzas: that would be cool but without spot instances I don't see the point18:56
bauzasjogo: yey18:56
bauzasjogo: I agree with the fact that spot instances can be implemented on the Nova side18:57
bauzasjogo: the idea is not to implement features from Nova18:57
bauzasjogo: but only provide some way to schedule them18:57
jogobauzas: without spot instances I don't see the point of climate18:57
DinaBelovajogo, that's why we have current view of Climate18:57
DinaBelovajogo, we have not only instances ;)18:58
bauzasjogo: why do we need spot instances for this ?18:58
bauzasjogo: that can be a contract about starting an instance on a best-effort mode18:58
jogobauzas: so my understanding is: lets say my cloud has resources for 10 VMs18:58
jogoI reserve 3 for a week from now, and now my cloud only has space for 7 instances.18:59
jogobauzas: we have that today, nova boot is best effort18:59
jogono need to have somethign else18:59
DinaBelovajogo, if we speak about immediate reservations - yes, it looks so19:00
DinaBelovabut we're working on different lease concepts19:00
DinaBelovaas said on our wiki19:00
jogowith spot instances, I now have a class of VMs that I can delete to make space19:00
jogoDinaBelova: I don't follow what is differnt19:00
bauzasjogo: maybe it's unclear that Climate boots instances later than when asked19:00
jogowhy can't i just make a cron job to do 'nova boot'19:00
jogobauzas: that part is clear, but i don't see the point19:01
jogosleep 2.days ; nova boot19:01
jogoor cron job19:01
jogoetc19:01
bauzasjogo: agree with this point19:01
jogoor teach heat about that19:01
bauzasjogo: but how are you sure that the boot will succeed in 2 days ?19:01
DinaBelovajogo, probably there will be not enough space in your cloud19:02
DinaBelovaif you'll use cron19:02
jogobauzas: I am not sure19:02
jogobut with the current version of climate your just doing nova boot ; nova shelve; nova boot19:02
jogoor whatever it is19:02
jogocan't heat / cron etc do that19:02
DinaBelovajogo, currently it looks so for VMs, yes19:03
jogowhen shelved I an still consuming a space on my cloud19:03
DinaBelovabut heat/cron won't do that for more compex use cases19:03
jogoso lets ignore insances for now19:03
DinaBelovawith guarantees, different notifications, etc.19:03
jogohow do you want a reservation for a volume to work?19:03
jogoDinaBelova: and  Ican just do a sleep 30; heat stack start19:04
jogoetc19:04
bauzasjogo: at the moment, the idea would be to do as for compute nodes19:04
bauzasprovided we consider cinder-volumes as dedicated to Climate19:04
bauzasjogo: the idea would be to keep track of the requests19:05
bauzasjogo: and only allocate the volumes when needed19:05
DinaBelovajogo, and frankly speaking smth like that should be node for instances too19:05
DinaBelovabut that's difficult question that needs to be discussed19:06
DinaBelovaidea of Climate is to give time management opportunity - and of course, current version definitely should be improved19:07
DinaBelovabut we're working on it, and will continue working19:07
SergeyLukjanovjogo, re instances - the usecase is to be able to request instance that you'll need in 3 days for 2 weeks, to receive corresponding notifications when vm will be ready, when it'll be time to remove it (to make you able to extend lease) and to have pre-removal snapshot of vm; all of this operations are managed by climate and idea is to support such reservation for different resources including complex ones like heat stacks19:07
bauzasjogo: DinaBelova: I have to step off19:08
DinaBelovabauzas, don't leave me :D19:08
bauzasjogo: DinaBelova: dinner time, ttyl19:08
DinaBelovaok, have a nice time19:08
bauzaswell, I placed an order :)19:08
bauzasshould have time for discussing in 1h or so19:08
DinaBelovajogo, as I have 23 PM now, I'm dreaming about taking a shower :) Won't you mind to continue discussion in 30 mins? :)19:11
jogoDinaBelova: to be continued then19:12
DinaBelovaщл19:12
DinaBelovaok*19:12
jogoSergeyLukjanov: so without spot instances, climate can be implimented with:19:12
jogosome sort of cron as a service (or task engine?), heat, nova (shelving etc).19:13
SergeyLukjanovjogo, heh, are you saying that nova could be implemented by a wrapper for kvm or any other hypervisor?19:14
jogoso I would like to see a clear story of what a reservation means in cinder, swift etc for the incubation discussion19:14
jogoSergeyLukjanov: that is what it is19:15
jogo(in one sense)19:15
SergeyLukjanovjogo, :)19:15
SergeyLukjanovjogo, good point about cinder/swift/etc resources reservation explanation19:16
SergeyLukjanovjogo, re cron as a service - the profit of having separated service to have an api with the way to take info about reservations, ability to prolong them and etc.19:17
jogoSergeyLukjanov: also a clear explination abouot why I am wrong and this can't be done with just heat+cron(task engine?)+etc19:17
jogoSergeyLukjanov: why does that need its own API?19:18
jogoah hhttps://wiki.openstack.org/wiki/Mistral19:18
jogohttps://wiki.openstack.org/wiki/Mistral19:18
jogoMistral+Heat19:19
SergeyLukjanovjogo, IIRC folks are planning to use Mistral for cron tasks someday19:19
jogoyeah the wiki agrees with you19:20
SergeyLukjanovjogo, you need to store info about reservations somewhere, you should be able to prolong reservations and etc.19:20
SergeyLukjanovI'm not Climate dev, so, I could be wrong somewhere....19:20
jogoSergeyLukjanov: lets take the use case of: I want to boot a VM for 4 hours every morning19:20
jogoand I cannot risk having it not boot19:20
jogoso I need something to boot my VM, config, shelve it. unshelve in the AM and 4 hours later reshelve19:21
jogoif I want to change that I can just update the mistral workbook19:22
jogoDinaBelova: when you get back ^19:22
DinaBelovajogo, I'm almost here. It looks like mistral won't help much with physical reservations and energy efficiency19:54
bauzasjogo: DinaBelova: I'm back19:58
bauzasjogo: as DinaBelova said, we're also implementing compute nodes reservations within Climate19:59
DinaBelovaat least, now :) we're also planning storage nodes as one more physical reservation :)19:59
bauzasjogo: of course, everything can be done on a deferred way using a cron19:59
bauzasjogo: but can't you think this is not an elegant solution ?20:00
bauzasjogo: I can't hardly see how we could ensure tenancy isolation with only crons20:00
jogoDinaBelova: re physical reservations and energy efficy, agreed but that side of the logic sounds like it belongs in nova or ironic20:01
jogobauzas: I think using mistarl is an elgant solution20:01
jogoless is more20:01
jogotenant isolation? that sounds like nova20:02
bauzastenant isolation for Cinder,mmmm ?20:02
bauzas:)20:02
jogobauzas: good question20:02
jogobauzas: so I think there are some interesting ideas be kicked around in Climate,  but I am not sure all of them should live in a new service (versus being supported in existing ones)20:03
bauzasjogo: I provided some workflow for managing tenancy isolation and capacity planning thanks to Climate20:03
bauzaswith volumes20:03
jogomore use cases would make some of this clearer20:03
jogobauzas: but at what cost? and what do the cinder people think of that?20:03
jogoso the two use cases you propose are very differnt20:04
bauzasthat's why we propose a modular solution20:04
jogoone is a true 'virtual private cloud' full tenant isolation by hardware across all services -- that sounds like an effort of its own20:05
bauzaswell, remember the talks we had during Nova sessions20:05
jogonot a project but an effort20:05
jogobauzas: I don't remember sorry20:05
bauzasit was considered as too big for Nova having a scheduling service20:05
jogobauzas: so Mistral20:06
bauzasMistral is about transactional logic20:06
bauzasnot a matter of postponing logic20:07
jogobauzas: in 3 days unshelve this instance?20:07
jogoit says it supports task scheduling as a use case20:07
jogohttps://wiki.openstack.org/wiki/Mistral#Tasks_Scheduling_-_Cloud_Cron20:07
bauzasand don't you think Mistral people are thinking about some integration with Climate for achieving this ?20:08
jogobauzas: that sounds like cirular logic to me20:08
bauzasthat sounds different business logics to me20:08
jogooh?20:08
DinaBelovaguys, sorry, I'm almost sleeping :(20:08
jogobauzas DinaBelova lets move this back to the ML20:09
jogoso others can join20:09
jogothis chat has been very helpful for me, thank you!20:09
DinaBelovaI'm glad it was20:09

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