Monday, 2015-06-08

*** jamielennox|away is now known as jamielennox01:07
*** Qiming has joined #openstack-sdks01:09
*** heyongli has joined #openstack-sdks01:40
*** Yanyanhu has joined #openstack-sdks01:43
*** Yanyan has joined #openstack-sdks01:43
*** Yanyanhu has quit IRC01:47
openstackgerritDave Chen proposed openstack/python-openstackclient: Not use the deprecated argument  https://review.openstack.org/18880402:19
*** Qiming has quit IRC02:34
*** Qiming has joined #openstack-sdks02:35
*** heyongli has quit IRC03:13
*** heyongli has joined #openstack-sdks03:14
*** heyongli has quit IRC03:27
*** elarson has quit IRC03:27
*** stevelle has quit IRC03:27
*** elarson has joined #openstack-sdks03:28
*** stevelle has joined #openstack-sdks03:28
*** Qiming_ has joined #openstack-sdks04:00
*** Qiming has quit IRC04:01
*** Qiming__ has joined #openstack-sdks04:02
*** Qiming_ has quit IRC04:05
*** Qiming__ is now known as Qiming04:07
*** Qiming_ has joined #openstack-sdks04:26
*** Qiming__ has joined #openstack-sdks04:29
*** Qiming has quit IRC04:30
*** Qiming_ has quit IRC04:31
*** abhide has joined #openstack-sdks05:53
*** abhide has left #openstack-sdks05:53
openstackgerritOpenStack Proposal Bot proposed openstack/python-openstackclient: Imported Translations from Transifex  https://review.openstack.org/18867206:01
*** Qiming__ is now known as Qiming06:04
*** abhide has joined #openstack-sdks06:25
*** tobe has joined #openstack-sdks06:45
*** mordred has quit IRC06:46
*** heyongli has joined #openstack-sdks06:50
*** jaosorior has joined #openstack-sdks07:15
*** abhide has quit IRC07:36
*** dguerri` is now known as dguerri08:11
*** karimb has joined #openstack-sdks08:13
*** karimb has quit IRC08:16
*** karimb has joined #openstack-sdks08:17
*** aufi has joined #openstack-sdks08:28
*** aufi has quit IRC08:40
*** Yanyan has quit IRC09:57
*** Qiming has quit IRC10:04
*** boris-42 has joined #openstack-sdks10:04
*** openstackgerrit has quit IRC10:09
*** openstackgerrit has joined #openstack-sdks10:09
*** thrash|wknd is now known as thrash11:10
*** dguerri is now known as dguerri`11:19
*** tobe has quit IRC11:26
*** MaxV has joined #openstack-sdks11:54
jaosoriorstevemar: ping12:33
*** trown|outttypeww is now known as trown12:34
*** tristanC has joined #openstack-sdks12:38
*** dguerri` is now known as dguerri12:46
*** petertr7_away is now known as petertr712:47
*** mordred has joined #openstack-sdks12:52
*** zz_steveortiz is now known as steveortiz13:04
*** heyongli has quit IRC13:07
*** heyongli has joined #openstack-sdks13:08
*** dguerri is now known as dguerri`13:12
*** dguerri` is now known as dguerri13:24
openstackgerritJuan Antonio Osorio Robles proposed openstack/python-openstackclient: Enable specifying domain for group and role commands  https://review.openstack.org/18929413:33
MaxVhello there, I want to work on the python-openstackclient, but I do not find any documentation for how to setup a dev environment13:54
MaxVI can complete that, but I need a little help for starting13:54
MaxVI currently clone the git repo and add it to the PYTHONPATH13:55
MaxVbut I have an error which seems to appear if you do not use the setup.py install13:56
MaxVTraceback (most recent call last):13:56
MaxV  File "./stack_init.py", line 13, in <module>13:56
MaxV    import openstackclient.common.clientmanager as clientmanager13:56
MaxV  File "/mnt/python-openstackclient/openstackclient/__init__.py", line 20, in <module>13:56
MaxV    __version__ = version_info.version_string()13:56
MaxV  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 457, in version_string13:56
MaxV    return self.semantic_version().brief_string()13:56
MaxV  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 452, in semantic_version13:56
MaxV    self._semantic = self._get_version_from_pkg_resources()13:56
MaxV  File "/usr/local/lib/python2.7/dist-packages/pbr/version.py", line 439, in _get_version_from_pkg_resources13:56
MaxV    result_string = packaging.get_version(self.package)13:56
MaxV  File "/usr/local/lib/python2.7/dist-packages/pbr/packaging.py", line 660, in get_version13:57
MaxV    raise Exception("Versioning for this project requires either an sdist"13:57
MaxVException: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?13:57
MaxV(I have git installed)13:57
*** notmars has joined #openstack-sdks14:02
openstackgerritJuan Antonio Osorio Robles proposed openstack/python-openstackclient: Enable specifying domain for group and role commands  https://review.openstack.org/18929414:05
*** notmars_ has joined #openstack-sdks14:06
*** notmars has quit IRC14:07
*** notmars_ is now known as notmars14:07
*** sigmavirus24_awa is now known as sigmavirus2414:11
jaosoriorMaxV: I think you'll keep getting that error if you don't use setup.py, since the version is gotten from pbr, which will actually set things up being called from that script14:14
MaxVjaosorior: seems like a compilation time to my eyes :x14:15
jaosoriorMaxV: You'll probably encounter similar things in most of the openstack projects14:18
MaxVjaosorior: ok, so I will use it like this, thx for the help14:19
*** pm90_ has joined #openstack-sdks14:22
*** notmars has quit IRC14:22
*** britthouser has quit IRC14:34
*** britthouser has joined #openstack-sdks14:34
*** Qiming has joined #openstack-sdks14:36
*** jamielennox is now known as jamielennox|away14:38
*** britthouser has quit IRC14:49
*** britthou_ has joined #openstack-sdks14:49
*** Qiming has quit IRC14:52
*** Qiming has joined #openstack-sdks14:52
*** petertr7 is now known as petertr7_away15:00
*** petertr7_away is now known as petertr715:02
*** karimb has quit IRC15:03
*** steveortiz is now known as zz_steveortiz15:09
MaxVjaosorior: okay so I have made a setup.py install then a symbolic link to the /usr/local/lib/python2.7/dist-packages/openstackclient/ (it can be a virtualenv) directory so I can directly develop in my environment15:09
MaxVjaosorior: do you think it could be a good idea to document this?15:09
dtroyerMaxV: why are you symlinking into the python lib dirs?15:11
*** Qiming has quit IRC15:11
MaxVdtroyer: In order to develop and do not have to setup.py again15:11
MaxVdtroyer: install*15:12
dtroyerthat's what 'pip install -e .' does15:12
dtroyerin the checked-out repo15:12
MaxVdtroyer: is it documented somewhere?15:12
dtroyerin the pip docs, it's called an editable install15:13
dtroyerand elsewhere I'm sure15:13
MaxVdtroyer: don't you think it could be a good idea to explain this in the repo?15:13
dtroyerin every repo in openstack?15:13
MaxVdtroyer: not all repo need the same development environment15:14
MaxVdtroyer: some project does not need to setup.py install in order to test them15:14
dtroyerfind an openstack project like that for me?15:14
openstackgerritMerged openstack/cliff: Add value format for list command  https://review.openstack.org/18279415:14
*** terrylhowe has joined #openstack-sdks15:18
openstackgerritMerged openstack/cliff: Add some docs for list value formatter  https://review.openstack.org/18282515:18
MaxVdtroyer: https://github.com/openstack/horizon/15:19
dtroyerso do you understand what is different about horizon?15:19
MaxVdtroyer: I did not have dig a lot into the openstackclient code, but a lot of opensource project explain how to install the dev environment15:21
MaxVdtroyer: which is not the case for some openstack project, so newbies (like me) must have to annoy other people to start coding stuff15:22
*** terrylhowe has quit IRC15:24
dtroyerthere is a certain amount of learning about what it is you want to start coding on that is expected, and not all of the 100+ openstack repos are going to include that level of instruction.  Using pip to do the setup os by far the most common pattern used in OpenStack projects (Horizon is a Django app and totally different in many ways.)15:26
dtroyerWithout knowing what you might have already read, working on OpenStack has a bit of a bar to meet in order to do anything useful.15:26
dtroyerThings like https://wiki.openstack.org/wiki/How_To_Contribute and http://docs.openstack.org/developer/nova/devref/development.environment.html go into the details15:27
dtroyerhttps://wiki.openstack.org/wiki/StartingPage might be useful15:28
dtroyerso might https://wiki.openstack.org/wiki/Getting_Started15:28
MaxVsorry but still no mention of pip install -e and there is no common pattern on how to install dev envs, maybe you are familiar with this but it is not obvious for everyone15:31
MaxVbut I understand that you do not really want this kind of documentation (elitism maybe) so I will stop here15:32
mordredMaxV: it's not that we don't want it15:32
mordredMaxV: it's that we need one copy of it and for projects to point to it -because we have 100s of repos and if we have 100 copies of the instructions, things would quickly go badly15:33
mordredMaxV: so, I thnik we need a link to how to find the dev instructions for sure15:33
mordredMaxV: http://docs.openstack.org/infra/manual/python.html is what you're looking for I believe15:34
mordredthose commands should work in every openstack repository15:34
MaxVas long as every project has its requirements and its different patterns I though that some instructions to help new comers could have been interesting15:35
mordredyah. so - there should not be different patterns15:36
mordredwe have a consistent interface in every repo for that exact reason15:36
mordredI think we should add a link in the readme to the canonical instructions - becasue you're right - it's important to get good instructions to get started15:37
openstackgerritMonty Taylor proposed openstack/python-openstackclient: Include links to developer workflow documentation  https://review.openstack.org/18934315:40
mordredMaxV: ^^ how's that?15:40
MaxVmordred: as long as you are modifyin this, can you add the IRC channel? I had to ask this information too (maybe I missed an entry)15:42
mordredMaxV: good call15:42
openstackgerritMonty Taylor proposed openstack/python-openstackclient: Include links to developer workflow documentation  https://review.openstack.org/18934315:43
MaxVmordred: thx seems good15:44
mordred\o/15:46
mordredMaxV: sorry you had issues getting started - totally not our intent15:47
*** petertr7 is now known as petertr7_away15:51
*** karimb has joined #openstack-sdks15:58
*** karimb has quit IRC15:59
*** karmatronic has joined #openstack-sdks15:59
mordreddtroyer, Shrews: so - I've got a potentially crack-addled patch up to OCC that may warrant discussion16:03
mordreddtroyer, Shrews: basically moving the defaults and vendor data into their own non-python repo so that other languages could also consume the data - but then using bower at tarball build time to copy the data into the occ tarball16:04
*** MaxV has quit IRC16:04
*** bnemec has quit IRC16:45
*** petertr7_away is now known as petertr716:46
*** bnemec has joined #openstack-sdks16:46
Shrewsmordred: yeah, i saw this wackiness yesterday, but haven't dug into it yet. my first thought was, if ksauth wants us, will such an approach be acceptable?16:51
mordredwell - it shouldnt make much of a difference to ksauth - in fact, it's consuming json files, so there's no additional external needs16:53
mordredShrews: taht said - ksauth explicitly does not want the vendor support matrix16:53
Shrews*nod*16:54
mordredhowever, that doesn't mean it's a good idea17:04
mordredI can convince myself in both directions17:04
dtroyerI'm hesitant to introduce yet another tool that isn't part of my particular toolset.  Maybe the data files shouldn't be packaged  in the library at all?17:24
dtroyeris bower common enough outside the js world?17:25
mordrednope. not at all17:27
mordredwe could also just do a manual copy/sync17:27
mordredlike we do for requirements files17:27
mordredor, we could just say "hi, so you're a non-python project, feel free to get these json files from our git repo"17:27
*** trown is now known as trown|lunch17:29
*** dguerri is now known as dguerri`17:31
*** zz_steveortiz is now known as steveortiz17:36
*** MaxV has joined #openstack-sdks17:37
*** MaxV has quit IRC17:37
*** abhide has joined #openstack-sdks17:49
*** abhide has quit IRC17:50
*** abhide has joined #openstack-sdks17:51
*** abhide has left #openstack-sdks17:57
*** openstackgerrit has quit IRC18:09
*** openstackgerrit has joined #openstack-sdks18:09
*** hitalia has joined #openstack-sdks18:24
*** trown|lunch is now known as trown18:29
openstackgerritMerged stackforge/python-openstacksdk: Refactor verify_create in proxy tests  https://review.openstack.org/18884219:07
openstackgerritMerged stackforge/python-openstacksdk: Move stray metric test under proper directory  https://review.openstack.org/18884419:07
openstackgerritMerged stackforge/python-openstacksdk: Added functional tests for subnet.  https://review.openstack.org/18861919:07
*** VeggieMeat_ has joined #openstack-sdks19:11
*** steveortiz is now known as zz_steveortiz19:15
*** VeggieMeat has quit IRC19:15
*** dguerri` is now known as dguerri19:21
*** hitalia has quit IRC19:40
*** zz_steveortiz is now known as steveortiz20:04
*** karmatronic has quit IRC20:22
*** karmatronic has joined #openstack-sdks20:31
*** hitalia has joined #openstack-sdks20:34
*** karmatronic has quit IRC21:00
*** abhide has joined #openstack-sdks21:01
*** petertr7 is now known as petertr7_away21:11
*** jose4183 has quit IRC21:15
*** SpamapS has quit IRC21:22
*** trown is now known as trown|outttypeww21:24
openstackgerritMerged openstack/os-client-config: Some cleanup in the README.rst  https://review.openstack.org/18901421:29
*** steveortiz is now known as zz_steveortiz21:54
*** SpamapS has joined #openstack-sdks21:55
openstackgerritMerged openstack/python-openstackclient: Not use the deprecated argument  https://review.openstack.org/18880422:06
*** abhide has left #openstack-sdks22:31
*** abhide has joined #openstack-sdks22:54
*** jose4183 has joined #openstack-sdks22:59
*** jose4183 has quit IRC23:05
*** jose4183 has joined #openstack-sdks23:05
*** nosleep77 has quit IRC23:22
*** jose4183 has quit IRC23:28
*** jaosorior has quit IRC23:31
*** chlong has joined #openstack-sdks23:36
*** Qiming has joined #openstack-sdks23:45
*** Qiming has quit IRC23:57

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