/srv/irclogs.ubuntu.com/2015/06/24/#cloud-init.txt

=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
=== rangerpbzzzz is now known as rangerpb
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
smoserclaudiupopa, lets just do this here then.14:08
smoseri owe you some stuff and let me do that now.14:08
smoserthe thing i found yesterday was that trunk was not running 'tox' for me. complaining about windows dlls14:08
claudiupopaOkay, don't know what's with my sound.14:08
claudiupopacloud-init v2 trunk?14:09
smoseryeah14:10
smoseri'll get pastbin14:10
smoserOdd_Bloke, was seeing it too.14:11
=== zz_natorious is now known as natorious
openstackgerritClaudiu Popa proposed stackforge/cloud-init: Add the data source base classes and the HTTP OpenStack implementation  https://review.openstack.org/18832714:13
smoserclaudiupopa, http://paste.ubuntu.com/11767934/14:14
claudiupopadoes it still reproduces?14:14
smoseryeah. that is trunk on my system right now.14:14
smoserImportError: cannot import name 'windll'14:14
smoserwhich isnt terribly surprising :)14:15
claudiupopaYeah, will take a look, thanks. ;-)14:16
claudiupopaSo..back to bussiness. The openstack stuff should be finally done, after Joshua's final comments.14:16
claudiupopaI didn't had time to work on other things yet, had some issues with cloudbase-init which needed to be fixed.14:16
claudiupopaDid you had time to work on the executable part?14:17
smoserno. because i'm not very productive.14:19
smoseri will look at your openstack stuff now.14:19
claudiupopathe crash makes sense. sphinx-autodoc tries to import the modules in order to build the documentation.14:25
claudiupopabut windll exists only on windows.14:25
claudiupopaEither we can ignore windows-specific files, but that's hard, since they can be all over the place, or we can write something that does this statically.14:26
claudiupopawithout needing to import the module.14:26
smoserits not something ew can easily fudge either.14:28
smoserie, we can't just make a load_os_specific('windll', 'windows')14:29
smoserthat would just return garbage on linux. because you use stuff from it right away14:29
smoser windll.kernel32.GetLastError14:29
claudiupopaRight, that's the case.14:29
smoserwe could proably manage it.14:31
smoserbut if this is just going to be a endless path doesn'st sound like fun14:31
claudiupopaso doing something statically makes the most sense.14:32
claudiupopaI'll try to see if I can come up with a sphinx plugin.14:32
claudiupopaWhich operates on ast instead of objects.14:32
smatzekthis is a complete hack but it may work as a temporary solution, something like this in kernel32.py: if os.name == 'posix':14:35
smatzek    import mock14:35
smatzek    sys.modules['ctypes.windll'] = mock.MagicMock()14:35
smatzekI've temporarily done the same in reverse to mock out Linux/posix only python modules to run things on Windows14:36
smoserclaudiupopa, on 'ast' ?14:50
claudiupopaabstract syntax trees14:50
smoserwill it be an endless path ?14:50
smoserie, if we mock those names to None on non-windows, ould that be an endless amount of ongoing work14:51
claudiupopayeah, that definitely could be.14:51
patcablestupid question: do i have to run the brpm scripts on a rhel/centos machine when building cloud-init?14:54
patcablewasnt sure if there was a way to just run it on my ubuntu dev box as well. figure i just need to make stuff work over in RH land.14:55
smoserpatcable, ?15:08
smoserthe brpm is just a way to get you an rpm. that would hopefully work.15:08
smoseron ubuntu you can get a deb with bdeb15:08
patcablesmoser: right-- bddeb works great on an ubuntu box, brpm complains about not having some centos packages around. I suspect that I probably need to build the rpms on a centos box, but I wanted ot check15:09
smoserah. i understand the question now15:11
smoseryeah, you need to run that on centos. if you got it to run on ubuntu, patches would probably be accepted, but generally i'd expect to build it on centos.15:12
patcablethat's fine, just wanted to make sure I wasn't missing anything15:12
patcablethanks!15:14
patcablewe've been hacking to see if we can add support in for handling a user config that has been encrypted, to sort of make a "trusted" cloud init. it's very young right now, though it does work15:17
smoserpatcable, neat.15:21
patcableyeah. Looking forward to writing about it/proposing patches when we have something that actually works for real :)15:23
smoserclaudiupopa, still there?15:39
smoserwhat is _METADATA_NETWORK_KEY = "content_path"15:39
claudiupopacontent_path is an entry from under network_config, with a path for a debian interfaces file.15:46
claudiupopahttp://sprunge.us/KDRX something along these lines15:46
smoserclaudiupopa, ok. i have some very tiny comments.15:54
claudiupopasure thing15:54
smoseri think i'm fine to pull it because i've taken so long, and we can fix them later if you want.15:54
claudiupopaif it's not too time consuming, I could fix them right away.15:55
smoserhttp://paste.ubuntu.com/11768400/15:56
smoserclaudiupopa, ^15:56
smosermetadata_network_key was just confusing to me since its not network specific in any way. its more "referenced_payload_key" or something.15:57
claudiupopacool, thanks!15:57
smoseri did not test that regex. its probably wrong15:59
smoseri just figure if we're looking for YYYY-MM-DD, we might as well check for that expicitly15:59
smoserrather than 2339595-2939395995595-1222415:59
claudiupopaYeah, makes sense. :D15:59
smoseri'd even say you can limit it to a '2' in the first digit. realizing that future humans will laugh histerically at my short sitedness in the year 300015:59
openstackgerritClaudiu Popa proposed stackforge/cloud-init: Add the data source base classes and the HTTP OpenStack implementation  https://review.openstack.org/18832716:06
claudiupopasmoser: should be fixed. I prefered to leave http_client.CONFLICT as is for now.16:08
smoserhow come ? it just seems wierd to me to have to go elsewhere for that little thing.16:12
smoseri'm not strongly opposed just curious16:12
openstackgerritClaudiu Popa proposed stackforge/cloud-init: Add the data source base classes and the HTTP OpenStack implementation  https://review.openstack.org/18832716:15
claudiupopayeah, I guess you're right, url_helper should have already what we need.16:15
smoserclaudiupopa, VERSION_REGEX.match(version)16:16
smoserthat will currently match 2015-05-2334455566616:16
smoserthis is completely nit picky, i do accept :)16:16
claudiupoparight, I was using .search.16:16
smoser r'^\d{4}-\d{2}-\d{2}$'16:17
smoserthat does the right thing16:17
claudiupopayeah, fixing right now.16:18
openstackgerritClaudiu Popa proposed stackforge/cloud-init: Add the data source base classes and the HTTP OpenStack implementation  https://review.openstack.org/18832716:20
smoserwoot16:20
claudiupopafinally.16:20
claudiupopa:D16:20
claudiupopanow we need a couple of config modules and that main executable and we're set for the ci. ;-)16:23
smoserthank you claudiupopa16:25
openstackgerritMerged stackforge/cloud-init: Add the data source base classes and the HTTP OpenStack implementation  https://review.openstack.org/18832716:25
smoserso i'm trying to solve17:44
smoser http://stackoverflow.com/questions/23663070/setup-https-proxy-for-pip-install-command-within-tox-environment17:44
smoserin a windows friendly way.17:44
smoseri tried17:44
smosertried http://paste.ubuntu.com/11768965/17:46
harlowjawhat windows17:46
harlowja*whats windows17:46
harlowja:-P17:46
smoserbut tox 1.6 (in Ubuntu 14.04) doesn't want to substitute {toxinidir} for me.17:46
smoserany suggestions there?17:47
smoserremember httpretty and doesn't work so well when http_proxy is set.17:47
smoserhm.. wonder if maybe we could use no_proxy..17:48
Odd_Blokesmoser: Could you paste the tox.ini you're having problems with?17:48
smoserhttp://paste.ubuntu.com/11768965/17:48
smoserit works as expected on wily17:54
smoserbasic issue that i was wanting to solve is this:17:54
smoser http://paste.ubuntu.com/11769000/17:54
Odd_Blokesmoser: What do you see on trusty?17:54
smoserit tries to execute the string {toxinidir}/tools/foo17:55
smoserjust no substitution17:55
Odd_BlokeTry doing "changedir = {toxinidir}" and then just "./tools/..." for the command.17:55
smoserthe paste above shows that tox doesnt run if http_proxy / https_proxy is set, but i need it set when i build in this environment (serverstack has no access to intertubes other than via proxy)17:55
Odd_BlokeRight, so you just want the proxy set for the pip call.17:56
smoserits funny, cause it says "default: {toxinidir}" but that is not the case either on 1.617:57
smoserOdd_Bloke, it doesnt do it.18:11
Odd_Blokesmoser: Doesn't do what?18:11
smoserdoc says "when executing the test command".18:11
smoserit doesnt change the dir.18:11
smosercwd at that point is the .tox/<toxenv>/18:12
Odd_Blokesmoser: Hmm, sounds like we might need to bump the tox version after all. :/18:13
smoseror i can just live with having to hack the full path in that case.18:14
=== natorious is now known as zz_natorious
openstackgerritScott Moser proposed stackforge/cloud-init: tox: disable proxies when running nosetests  https://review.openstack.org/19529420:24
smoserOdd_Bloke, ^ theres a solution there if you want to review20:36
Odd_Blokesmoser: Just did.20:39
Odd_BlokeLooks good apart from some missing words in a comment. :)20:39
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious

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