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

=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
openstackgerritMerged stackforge/cloud-init: Change the API of wait_any_url to return a tuple of url and response  https://review.openstack.org/19110009:28
Odd_Blokeclaudiupopa: Review of https://review.openstack.org/#/c/191137/ is blocking the other two things you reviewed from landing. :)09:56
Odd_Bloke(Apologies if you were already getting to it)09:56
claudiupopaah, missed it.09:56
claudiupopathanks09:56
claudiupopaThis means that the documentation for windows specific modules will not be created by autodoc?09:57
Odd_Blokeclaudiupopa: It does; but that's unavoidable unless we make the things we want to document importable on the doc-building host.09:59
claudiupopacan it be done manually at least?09:59
Odd_Blokeclaudiupopa: I don't know, let me have a play.10:00
Odd_Blokeclaudiupopa: (If you could approve that, I'll submit any progress I make as a separate change)10:01
claudiupopaok, no need to block this. We'll write them by hand.10:02
Odd_Blokesmoser: I've updated https://code.launchpad.net/~daniel-thewatkins/cloud-init/lp1464253/+merge/261849 with full parameter names and no use of shell=True.10:02
openstackgerritMerged stackforge/cloud-init: Don't try to generate autodoc for Windows modules.  https://review.openstack.org/19113710:04
openstackgerritMerged stackforge/cloud-init: Fail the doc build if we have any warnings.  https://review.openstack.org/19114910:05
openstackgerritMerged stackforge/cloud-init: Add doc8 checks to docs tox target.  https://review.openstack.org/19116210:06
Odd_Blokeclaudiupopa: Thanks for the reviews. :)10:07
claudiupopaNo problem. ;-)10:07
openstackgerritDaniel Watkins proposed stackforge/cloud-init: Clean up stale auto-generated autodoc files.  https://review.openstack.org/19113910:25
openstackgerritDaniel Watkins proposed stackforge/cloud-init: Clean up stale auto-generated autodoc files.  https://review.openstack.org/19113911:04
Odd_Blokeclaudiupopa: http://paste.ubuntu.com/11718962/ lets us autodoc more of the Windows code, but does make the Windows code uglier as a result.11:36
claudiupopathat's quite ugly.11:37
Odd_BlokeWell, you chose an ugly platform. ;)11:38
Odd_BlokeIf we bike-shed for long enough, Windows will probably be UNIX-based, right? :p11:38
Odd_Blokeclaudiupopa: Yeah, it's totally ugly; but I don't think we'll do any better with autodoc.11:39
Odd_BlokeI'll have a look and see if there are any tools that can do autodoc-style stuff, but with static analysis.11:39
Odd_BlokeThose should work OK.11:39
claudiupopaThat would be cool.11:39
claudiupopaWe could write one if not.11:39
Odd_Blokeclaudiupopa: Yeah, though Sphinx plugins are fairly painful to write.11:40
claudiupopacan't we hook autodoc instead?11:41
Odd_Blokeclaudiupopa: Having a quick look through autodoc's source, it's pretty tied up with having a Python object that it can examine.11:42
Odd_BlokePreprocessing the files to remove everything except for docstrings _might_ work...11:43
Odd_BlokeBut I suspect that having some scripting which does this will be a lot less painful than trying to integrate it in to the Sphinx run itself.11:44
claudiupopaYeah, I mean it doesn't need to be an autodoc extension, as long as it builds .rst files from .py, all should be good.11:45
Odd_BlokeYeah.11:47
claudiupopaLet's see if Joshua doesn't already have something like this. ;-)11:48
Odd_Bloke:D11:48
Odd_Blokeharlowja: ^^  ^_^11:49
Odd_Blokeclaudiupopa: harlowja: Thinking about it, I'm not sure that our use case (for reporting) really needs a library.12:20
Odd_Blokeclaudiupopa: harlowja: If there was a library that would give us _handlers_ for free, that would be more interesting.12:20
Odd_BlokeBut the pub-sub sort of a model is overkill; we'll only have one publisher, and a constrained number of subscribers (which will all be configured in the same place at the the same time, from configuration).12:21
Odd_BlokeIf we want to use pub-sub more generally within cloud-init, then it would obviously make sense for the reporting framework to use that.12:21
Odd_BlokeBut I don't think it justifies it in and of itself.12:21
claudiupopayeah, makes sense, it's a little overkill for our use case.12:22
claudiupopaOdd_Bloke: harlowja: do we actually need something heavy weight as this https://github.com/stackforge/cloud-init/blob/master/cloudinit/version.py#L9?14:05
claudiupopain certain conditions, it looks for a git repo and tries to run a git command.14:05
Odd_Blokeclaudiupopa: Are you hitting problems with it?14:09
claudiupopayeah.14:10
claudiupopahttp://paste.openstack.org/show/294140/14:10
claudiupopaNot related per se (I think), but I can't stop noticing the git calls.14:10
claudiupopaIt's executed from a local editable installation.14:11
Odd_BlokeYeah, it doesn't look directly related.14:12
Odd_BlokeBut that isn't ideal.14:12
Odd_BlokeOn the other hand, we shouldn't hit that in a proper installation.14:14
Odd_Blokeharlowja: Thoughts?14:14
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
harlowjasup17:30
harlowjajust got in17:31
harlowjaclaudiupopa i there another claudiu in your work place?17:31
* harlowja gets confused when i see another claudiu 17:31
harlowjalol17:31
harlowjaOdd_Bloke u no want my pub/sub thingy, lol17:32
harlowjaas far as https://github.com/stackforge/cloud-init/blob/master/cloudinit/version.py#L9 up to u guys17:33
harlowjai'm fine with the second way, or just a static string (that someone remembers to update)17:34
smoserharlowja, there are 2 claudiu in cloudbase17:35
harlowjai knew its!17:35
smoserand it is very confusing17:35
harlowja:-P17:35
smoseri had a conversation at ODS with someone who said 'hi, i'm claudio from cloudbase'17:35
harlowjaya, i had to double-check on https://review.openstack.org/#/c/191168/17:35
smoserand i said... um i don't think you are17:35
harlowjalol17:35
harlowjadid u ask for ID then?17:36
harlowjalol17:36
smoseri sent him a gpg encrypted email with a password that was required before i would continue the conversation17:37
smosermy social skills are l33t17:37
harlowjalol17:37
harlowjaha17:37
harlowjadef17:37
=== natorious is now known as zz_natorious
awkwordsl18:18
jaksihi!19:04
jaksiI'm playing around with cloud-init. I don't really need a "cloud", I'm using the nocloud data source with QEMU, which works great as I can attach files as disk devices on the VM19:05
jaksiis there a way to do something similar with conainers?19:05
smoserjaksi, yeah.19:07
smoserhttp://ubuntu-smoser.blogspot.com/2013/08/lxc-with-fast-cloning-via-overlayfs-and.html19:08
smoseressentially you just write the same files that go on that disk into /var/lib/cloud/seed/nocloud-net/d19:08
ByPasSsmoser : quick question, I cannot seem to get linux vms to get the random generated password by nova injected by cloud-init19:09
jaksiah, great, thanks a lot!19:09
ByPasSsmoser : curl 169.254.169.254/openstack/latest/password is just plain empty19:09
ByPasSsmoser : I've been trying alot different configs but I guess that until the nova metadata is empty it will never succeed, any idea what is wrong or a direction to verify look for ?19:11
smoserByPasS, cloud-init doesn't pay attention to that.19:11
smoseruse ssh keys.19:11
smoserByPasS, but that said, i really haven't ever looked at it.19:15
smoseri can verify that on my cloud19:15
smoser'password' is present in curl http://169.254.169.254/openstack/latest/19:15
smoserbut empty at curl http://169.254.169.254/openstack/latest/password19:15
ByPasSsmoser : oh let me check19:21
ByPasSyea thats basicly my issue, I do agree to use ssh keys but it seems the project manager wants password injection for some obsucre reasons19:24
smoserecho "root:$(curl http://169.254.169.254/openstack/latest/password)" | sudo chpasswd19:28
smoser^ ByPasS something to that affect might work.19:28
smoserByPasS, i wonder, is that a one time read thing ?19:28
ByPasSsmoser : runcmd on first boot you mean ?19:30
ByPasSsmoser : could be I will test it but as far as I know, with cloudbase-init for windows the metadata is still present upon reboots etc19:31
smoseryeah.19:31
smoserthen, yeah, its porbably not read-once19:31
smoser(which you might want it to be :)19:31
smoseralexpilotti, probably knows how it works. i'd have to look at code.19:32
ByPasSsmoser : thatd be great I will still try it just in case :) who knows19:47
=== zz_natorious is now known as natorious

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