Tuesday, 2014-05-06

*** tomek_adamczews1 has quit IRC00:11
*** spandhe has joined #openstack-climate00:54
spandheHello!01:36
spandhedoes climate need to be installed on the api host itself? Does it have any such dependencies?01:36
spandhecan someone help? Trying to setup climate01:38
*** spandhe has quit IRC02:18
*** spandhe has joined #openstack-climate03:43
*** chandan_kumar has joined #openstack-climate04:20
*** chandan_kumar is now known as chandankumar04:26
DinaBelovaspandhe, climate-api should be running on the api host, and climate-manager where you'd love to04:44
*** tomek_adamczewsk has joined #openstack-climate05:57
openstackgerritJay Lau proposed a change to stackforge/climate: Do not change nova scheduler filters after installed climate  https://review.openstack.org/9230406:06
openstackgerritJay Lau proposed a change to stackforge/climate: Do not change nova scheduler filters after installed climate  https://review.openstack.org/9230406:08
*** bauzas has joined #openstack-climate06:29
*** spandhe has quit IRC06:30
*** bauzas has quit IRC06:31
*** bauzas has joined #openstack-climate07:09
*** tomek_adamczewsk has quit IRC07:50
*** tomek_adamczewsk has joined #openstack-climate08:14
openstackgerritJay Lau proposed a change to stackforge/climate-nova: Some code clean up in climate_filter.py  https://review.openstack.org/9233610:07
*** tomek_adamczewsk has quit IRC11:01
*** tomek_adamczewsk has joined #openstack-climate11:06
*** tomek_adamczewsk has quit IRC11:25
*** cmart has joined #openstack-climate12:36
cmartHello people12:39
cmartanyone there?12:56
openstackgerritChristian Martinez proposed a change to stackforge/climate: Update V2 documentation  https://review.openstack.org/9217713:02
cmartDinaBelova, bauzas?13:05
bauzasDinaBelova is GMT-8 currently13:09
bauzasso that means it's around 4am there :)13:09
bauzas5am sorry :)13:09
cmartOMG I didn´t know!13:11
cmartbauzas: thanks for the clarification13:11
cmartguess I'll wait a couple of hours then13:12
cmartWould you able to check my review, bauzas?13:13
bauzasI should be13:18
bauzascan I ask you why you're not using WSME autodoc ?13:19
bauzascmart: because I'm tempted to give a -1 to it :(13:20
cmartprobably because I'm kind of lost on how the docs are built..  I found the doc folder, a rest_v2.api doc that was empty and I thought that that was the path to follow13:21
bauzascmart: oh ok :)13:21
bauzascmart: then trust WSME13:21
bauzascmart: hold on13:21
cmarthahah13:21
bauzascmart: giving you some links13:21
cmartOK13:21
cmartcool13:21
bauzashttp://wsme.readthedocs.org/en/latest/document.html13:22
bauzascmart: do you know how to build docs N?13:22
bauzasI'll put a -2 to the patchset for saying it's not the good way13:22
cmartno problem..13:23
bauzasdon't worry, it's not meaning I don't want the patch13:23
bauzascmart: if you want to build docs, then run tox -edocs13:23
cmartregarding the question, I don't know how to do it.. I read something about a maven plugin13:23
bauzasit will create a build subdir13:23
bauzasnah13:23
cmartat what level?13:23
bauzasforget about it13:23
bauzascmart: like you perform unittests13:23
cmartsorry, I went to openstack-manuals and I found that.13:24
cmartOK13:24
bauzasat the climate root level13:24
bauzasopenstack-manuals are different13:24
bauzasso, run tox -edocs where tox.ini is placed13:24
bauzasit will generate some docs13:24
bauzasin the docs/build subdir13:25
bauzasHTML and also manpages13:25
bauzasso you can look at them13:25
cmartgreate13:25
cmartand what about the wsme stuff you gave me?13:25
cmartDoes the tox e-docs uses that to create docs?13:25
bauzasforget about the setup13:26
bauzasjust run tox -edocs :)13:26
bauzasyou don't have to modify the rst files13:27
bauzasas it's autogenerated13:27
bauzasthanks to the WSME types I mentioned (leases and hosts)13:27
cmartsweet!13:27
bauzashence the -213:27
cmartI have no problems with -1 and -2.. they help me to do better stuff and learn :)13:28
cmartand about -1's.. https://review.openstack.org/#/c/91455/.. it's the v2 client stuff13:28
bauzaswill take a look too13:29
bauzasI spent some time for setuping my new workspace13:29
bauzasnow it's nearly done13:29
cmartI have two big concerns about it. 1) is the stuff being discussed on the ML related to the url and the "discovery" thing that you mentioned.  2) about client commands management13:29
cmartyeah.. and what about the new place? Is it bigger? haha13:29
cmartIs it better?13:30
bauzascmart: so, about the second question, far easier to answer13:31
bauzascmart: I'm now working from home13:31
bauzascmart: so, yes, I love that place :p13:31
bauzascmart: regarding the v2 client thing13:32
bauzascmart: hell yeah...13:32
bauzascmart: can't get the idea13:33
cmartas you can see, I duplicated the dict for the v2 commands.. and it works. But it has a "smell" that I don't like..13:34
cmartand I was thinking in doing it differently.. Like, having a shell module inside the different clients.. and then filling the commandmanager with that commands..13:35
cmartbut to do that, I need to change a lot of stuff (the sub_command method, the authenticate user and the client setup, etc)13:35
cmartI checked other openstack clients.. the one's using cliff and argparse (neutron and openstack) don´t have this issue13:36
cmartneutron has a huuge dict with commands (but I'm not sure how they're handling different api versions)13:37
*** chandankumar is now known as chandankumar|afk13:37
cmartand openstack.. well, it's huge and it has custom tiny clients with versions being handle in a different way..13:38
bauzascmart: you missed the most important thing13:41
bauzascmart: I mean, we should change the endpoint url for Climate13:42
bauzasin Keystone13:42
cmartthe endpoint? yes!13:42
cmartthat was my first concern hehe13:43
bauzascmart: so that the client would be able to look up at / to know which versions are supported13:43
bauzascmart: and so know the urls13:43
cmartso, keystone will retrieve a url with No version at the end13:44
bauzasexactly13:44
cmartI got that part (in a different patch, of course)13:45
cmartand about the discovery process within the client, I need to modify my client.py in order to append the version to the climate_url13:45
bauzashttps://github.com/openstack/ironic/blob/master/ironic/api/controllers/root.py13:45
cmartwhat is that?13:46
bauzasthat's an example of implementation for version discovery13:46
bauzasI don't mean we have to copy them13:46
bauzasbut that's an idea how to do it13:47
cmartMan I need to read wsme RIGHT NOW13:48
cmartbut I got the idea13:48
cmartevery time a get is called, this root appends the right version to the url13:49
cmartthis should be put  inside the climate module, right?13:56
bauzasindeed13:59
*** tomek_adamczewsk has joined #openstack-climate14:01
cmartOK..Will do that and then I would switch to the client and make the changes you requested.. One last thing: I ran tox -edocs and pages were generated, but I have nothing to commit (no changes on my local copy). What am I doing wrong?14:02
bauzascmart: are the docs correctly including what you wanted to add ?14:03
bauzascmart: I mean, are you finding in the HTML docs the proper fields you wanted to add ?14:04
cmartI'm finding the fields in the Data samples, but nothing else14:04
cmartI should add more stuff to each one of the API's14:05
bauzascmart: I can't get what's missing ?14:07
bauzascmart: if before_end_notification is the doc, that's fine14:09
bauzascmart: lemme check14:09
cmartOK14:13
*** tomek_adamczewsk has quit IRC14:29
*** tomek_adamczewsk has joined #openstack-climate14:31
bauzascmart: double-checked and no modifications are necessary14:36
bauzascmart: we accept a Lease type as body14:37
bauzascmart: and before_end_notification is part of this Lease object14:37
bauzascmart: so that doesn't require a change14:37
cmartso what should I do with the doc? Leave it as it is and abandon the review?14:55
*** cmart has quit IRC15:17
*** tomek_adamczewsk has quit IRC15:53
*** pafuent has joined #openstack-climate16:00
*** pafuent has left #openstack-climate16:14
*** spandhe has joined #openstack-climate16:18
*** pafuent has joined #openstack-climate16:27
*** casanch1 has joined #openstack-climate16:48
*** cmart has joined #openstack-climate16:49
cmartDinaBelova, are you there?16:49
cmartI guess bauzas is already gone :S16:50
*** spandhe has quit IRC16:56
*** spandhe has joined #openstack-climate17:19
*** chandankumar|afk has quit IRC17:24
DinaBelovacmart, I'm here17:57
*** chandan_kumar has joined #openstack-climate17:58
*** casanch1 has quit IRC18:01
cmartHello Dina!18:01
cmarthave some news regarding v2 client that I want to discuss with you..18:02
cmartfirst of all.. I talked to sylvain about the topic discussed on the ML18:02
cmartHe suggested that we should do something like this: https://github.com/openstack/ironic/blob/master/ironic/api/controllers/root.py18:03
cmartthe idea is to append the version to the url right before redirecting to the appropriate api version app18:04
cmarta good place to put this is the api.py file, inside climate/cmd18:06
cmartand it will affect both api version apps18:07
*** casanch1 has joined #openstack-climate18:09
cmartIs that OK for you?18:12
*** chandan_kumar has quit IRC18:22
*** tomek_adamczewsk has joined #openstack-climate18:39
cmartDinaBelova?18:41
*** casanch1 has quit IRC18:52
DinaBelovacmart,sorry, had a lunch :D19:01
DinaBelovacmart, well, personally I don't like the idea of v1 changing...19:02
DinaBelovabut:19:02
DinaBelovaI completely agree with the fact that we need good archtecture here19:02
DinaBelovasooo19:02
DinaBelovaI would say ok here19:02
cmartcool19:02
DinaBelovaas we'll have lot's renaming chnages anyway19:03
DinaBelovathat are risks themselves19:03
DinaBelovaone more is only one more19:03
DinaBelovacmart, it's so-o cool to be around your timezone :D19:03
DinaBelovaquite comfortable19:04
cmarthaha19:04
cmartWhere are you right now?19:04
cmartAtlanta?19:04
DinaBelovaCA19:04
DinaBelova:)19:04
DinaBelovaSunnyvale19:04
openstackgerritA change was merged to stackforge/climate-nova: Some code clean up in climate_filter.py  https://review.openstack.org/9233619:04
DinaBelovaheh, right now - Mountain View19:04
DinaBelova:)19:04
cmartgreat!19:04
cmartwhat time is it? 1 pm?19:05
DinaBelova12:0019:05
DinaBelovadunno if that pm or am19:05
DinaBelovaI'm confused with it19:05
DinaBelovaI mean 12's - day and night19:05
cmartno worries19:05
DinaBelovawhat's the right btw?19:06
cmartI really don't know... We use 12 for mid-day and 24 for midnight so..19:06
cmartand that's it :D19:07
DinaBelova:D19:07
DinaBelovaso you're confused too here ::D19:07
cmartyes I am.. that's why I just keep calling people.. no matter what time zone are they.19:07
cmartfor instance, pafuent and casanch are in Portland right now.. I think that it's the same timezone that the one that you have19:08
cmartand I keep calling them as if they were right next to me :D19:08
cmartOK, So..I will work on that changes and let you know.19:09
cmartbtw let me ask you about docs generation... https://review.openstack.org/#/c/92177/19:10
cmartSylvain told me to use the WSME autodoc with tox -edocs to update documentation19:10
cmartbut the thing is that after running that "tox -edocs" command, I'm not getting any diffs with my code..19:11
cmartand I'm not sure if I had to add smth or not :|19:11
*** bauzas has quit IRC19:15
cmartDinaBelova?19:27
DinaBelovacmart, sorry, I've read your messages)))19:27
DinaBelovajust did not know what to say))19:28
DinaBelovathat's common issue))19:28
DinaBelovaas for the docs19:28
DinaBelovaI'm not quite specialized with the wsme docs....19:28
DinaBelovaSylvain is better here...19:28
DinaBelovapossibly we may wait him and try to ping him in next 4-5 hours19:29
cmartOk19:30
*** pafuent has quit IRC19:30
cmartwell.. I have work to do. Thanks for all the help!19:30
cmartttyl! bye19:30
*** casanch1 has joined #openstack-climate19:31
*** pafuent has joined #openstack-climate19:32
*** pafuent has quit IRC19:34
*** casanch1 has quit IRC19:57
*** pafuent has joined #openstack-climate19:59
*** casanch1 has joined #openstack-climate20:04
pafuentcmart_20:16
pafuentcmart: tox -edocs20:17
pafuentcmart: firefox doc/build/html/index.html20:17
pafuentcmart: That's it20:17
*** cmart has quit IRC20:17
*** cmart has joined #openstack-climate20:22
*** tomek_adamczewsk has quit IRC20:23
*** pafuent has left #openstack-climate20:25
*** pafuent has joined #openstack-climate20:26
pafuentcmart: tox -edocs20:26
pafuentcmart: firefox doc/build/html/index.html20:26
pafuentcmart: That's it20:26
cmartbut I see no changes on it!20:30
cmartguess that wsme already created the docs and there was no need to do that again20:30
DinaBelovacmart, I guess to have changes you need to change the methods docstrings20:34
DinaBelovapossibly you may add some info there, if it's needed20:34
cmartDo you mean like adding api examples or smth like that?20:36
cmart("inside the docstrings")20:36
cmartand also, the changes are reflected at doc/build/html folder level.. and that folder is not versioned.. So my question is how these are reflected in the current doc?20:41
cmartIf I go to https://wiki.openstack.org/wiki/Climate/REST_API, I won't see the wsme autogenerated doc.. So how can I validate that the doc is correct?20:44
*** casanch1 has quit IRC21:00
cmartplease, if you have any comments, let me know at christian.martinez@intel.com21:02
cmartthanks!21:02
cmartbye!21:02
*** cmart has quit IRC21:03
*** casanch1 has joined #openstack-climate21:06
DinaBelovacmart - wiki is not autogenerated... To see Sphinx docs you need to generate them - we simply have no place for docs publishing before the renaming21:08
*** casanch1 has quit IRC21:10
*** pafuent has quit IRC22:51
*** pafuent has joined #openstack-climate22:55
*** pafuent has quit IRC23:03
*** spandhe has quit IRC23:10
*** spandhe has joined #openstack-climate23:12

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