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

harlowjaclaudiupopa https://review.openstack.org/#/c/170242/ updated :-P00:43
chrisghHowdi are there still static network bugs in cloud-init related to Ubuntu? https://bugs.launchpad.net/cloud-init/+bug/122592207:51
chrisghnever mind user error08:05
Odd_Blokeclaudiupopa: Do you know how the gate Jenkins jobs are configured?10:34
Odd_Blokeclaudiupopa: Specifically, I'm wondering if we can enable coverage testing.10:35
claudiupopaThrough openstack-infra/project-config.10:37
claudiupopaSee this for example https://review.openstack.org/#/c/169293/10:37
claudiupopaNever tried it though, so I'm not sure.10:37
Odd_Blokeclaudiupopa: Cool, thanks for the pointer.10:40
Odd_BlokeIt looks like none of the coverage jobs in Jenkins have ever run, so I'm probably chasing up the wrong tree. :p10:40
claudiupopabut nevertheless we should have coverage enabled. :P11:00
Odd_Blokeclaudiupopa: Yeah, see https://review.openstack.org/18873911:01
Odd_BlokeI'm happy to bike-shed on the number (probably with input from smoser and harlowja).11:02
claudiupopanice.11:05
claudiupopa90% seems sufficient for the moment.11:05
Odd_BlokeYeah, for me it's more of a statement that we care about it.11:05
=== rangerpbzzzz is now known as rangerpb
jengelmanIs it possible to merge user_data from multiple datasources?15:06
jengelmanI'm trying to create an AMI that has a static cloud-config in a file and I want that to be bundled with the normal EC2 datasource processing, but can't seem to figure out how to do it15:07
larsksThe standard behavior does merge /etc/cloud/cloud.cfg along with any cloud-config data provided via the metadata service.15:11
larsksBut user_data can only come from one source, I think.15:12
jengelmanso I can just specify a user-data section in /etc/cloud/cloud.cfg and it will be merged?15:12
larsksI don't believe there is a way to put user-data into a cloud-config file, no.15:22
larsksBut you can do other things, like write files, run shell scripts, etc.15:22
Odd_Blokeharlowja: Hmm, let me look at that doc thing.15:36
Odd_Blokeharlowja: It Works On My Machine (TM). ;)15:36
Odd_Blokeharlowja: Aha, got it; I was using environment variables in tox rather than doing it properly in setup.cfg; good catch.15:39
jengelmanAh, so it's not clear for the documentation that you can put files in /etc/cloud/cloud.cfg.d and there formats are just the same as what you would be put in user-data15:43
jengelmanbut that works15:43
Odd_Blokeharlowja: http://docs-draft.openstack.org/75/188775/2/check/gate-cloud-init-docs/c600b34//doc/build/html/contents.html HAPPY NOW?16:07
Odd_Blokeharlowja: So after you approve a change, do I still need another core dev to +2 it for it to get merged?16:10
* Odd_Bloke hasn't used the OpenStack CI stuff before.16:10
claudiupopaisn't autodoc importing modules?16:12
Odd_Blokeclaudiupopa: It does; we can exclude modules from it though.16:12
claudiupopawhat will happen when it will include windows specific stuff?16:13
harlowjaOdd_Bloke cool, 90% ya, hmmm17:10
harlowjai like 125%17:10
harlowjalol17:10
harlowjaOdd_Bloke there is also some ci coverage job that afaik the openstack CI stuff runs17:13
harlowjaperhaps we should also just use that?17:13
Odd_Blokeharlowja: https://jenkins.openstack.org/job/cloud-init-coverage/ ?17:14
harlowjasomething like that ya, ha17:14
* harlowja never remebers what it runs17:14
Odd_Blokeharlowja: If you can work out how to actually use that, be my guest. :p17:14
harlowjaOdd_Bloke how about jumping on the #openstack-infra channel and asking17:14
Odd_BlokeSo demanding.17:15
harlowjathose folks know, ha17:15
harlowjai asked once upon a time, but i forgot, lol17:15
harlowjabecause if u search for 'coverage' in https://github.com/openstack-infra/project-config/blob/master/zuul/layout.yaml u'll see many17:16
harlowjahttps://github.com/openstack-infra/project-config/blob/master/zuul/layout.yaml#L5223 maybe just needs something to be added?17:16
harlowja*the cloud-init section17:16
Odd_BlokeYou've done it now, harlowja, I'm having to clone project-config.17:21
harlowjawoot17:21
harlowjaha17:21
Odd_Blokeharlowja: So I'm not 100% sure that using that job makes sense; it will run a single tox environment, so we won't be able to easily get coverage for each Python version.17:35
harlowjacan that be fixed?17:35
* harlowja doesn't know the answer to that17:36
harlowjafixed/changed/soemting17:36
Odd_Blokeharlowja: My tox-fu is possibly lacking, but I don't think so.17:37
harlowjawould infra be willing to change something?17:37
harlowja*would that help?17:37
harlowjaif not i guess we do what we have to do then17:39
Odd_Blokeharlowja: So I _think_ -infra would need to move to a model similar to the different versions of Python (i.e. separate coverage27, coverage34 jobs).17:41
harlowjais that possible?17:41
Odd_BlokeNote the timestamps, I said that before fungi did. ;)17:41
harlowjamaybe some small change to https://github.com/openstack-infra/system-config/  or project-config will make this possible17:45
harlowjaand then everyone will be jolly and happy17:45
Odd_Blokeharlowja: Perhaps, but for now I think the solution in that code review is the best we have.17:47
harlowjasure, for now == forever ? ;)17:48
Odd_BlokeIf someone else implements the infra changes, I will happily take care of transitioning us to use them. ;)17:48
harlowjawe gotta be BFF with the infra folks, if we want automated cloud-init jobs (with real-images)17:49
harlowjasomeone needs to be better BFF than i am, ha17:49
harlowjaaka, probably just needs some way to connect a coverage script into https://github.com/openstack-infra/project-config/tree/master/jenkins/scripts 17:53
harlowjainstead of just using tox -ecoverage or whatever17:53
Odd_Blokeharlowja: Looking at how things are done elsewhere, I think it would definitely need to go through tox.17:54
Odd_BlokeThat's how projects get to customise things.17:54
Odd_BlokeAnd that could be problematic.17:55
harlowjaright17:55
Odd_BlokeBecause tox knows what py27 and py34 mean, so sets things up properly before executing testenv.17:55
harlowjabut https://github.com/openstack-infra/project-config/blob/master/jenkins/scripts/run-tox.sh is already existing, maybe it can be used17:55
harlowjaafaik that thing is running all the other tox stuff already17:55
harlowjahttps://github.com/openstack-infra/project-config/blob/master/jenkins/scripts/run-tox.sh#L122 ...17:55
* harlowja doesn't get what that couldn't be used to run different coverage venvs or something17:55
Odd_Blokeharlowja: If you want to run coverage on 3.4, you'd need to do something like "tox -e coverage-py34".17:57
harlowjaright17:57
Odd_Blokeharlowja: But tox doesn't know what that is, so you have to define it in your tox.ini.17:57
harlowjasure, and then we need the infra team to have that job run that triggers that venv17:58
Odd_BlokeBut you'd _also_ have to define coverage-py27.17:58
Odd_BlokeThere isn't a way to get them to share their definition.17:58
harlowjahttps://github.com/openstack-infra/project-config/blob/master/jenkins/jobs/projects.yaml#L18 17:58
harlowjaadd that job to cloud-nit17:58
harlowjathen have envlist beee17:58
Odd_Bloke(Whereas py26, py27, py34 et al are defined to use testenv)17:58
harlowja- coverage-py2717:58
harlowja- coverage-py3417:58
harlowja- coverage-py2617:59
harlowja?17:59
harlowjaafaik that is a custom tox env that gets used17:59
harlowjaand could just be one we use to17:59
Odd_Blokeharlowja: Right, I'm saying that we'll have to define each of those separately in our tox.ini.17:59
harlowjaput that under https://github.com/openstack-infra/project-config/blob/master/jenkins/jobs/projects.yaml#L3457 and profit?17:59
harlowjasure17:59
harlowjabut at least infra will run it for us17:59
Odd_BlokeAnd all this really gains us is waiting for two extra Jenkins jobs. :p18:00
harlowjaya, meh18:00
harlowjathey run in parallel18:00
harlowja* https://review.openstack.org/#/c/187750/ (already used to waiting, ha)18:00
harlowjawe'll likely need more soon anyway (if we can get real cloud-init from the commit into some image job that also gets basic tests)18:01
harlowja^ therefore ensures the cloud-init from that commit functions to some level18:01
harlowja* ie a windows image could be part of that (or linux, or freebsd...)18:01
Odd_Blokeharlowja: It occurs to me that we also have this problem with pep8; we'll only be running that for either 27 or 34.18:08
harlowjamore tox envs18:09
harlowjahttps://github.com/openstack-infra/project-config/blob/master/jenkins/jobs/projects.yaml#L1545 (another project i'm a core of)18:09
harlowjaprobably should just start adding ones we want into that...18:09
harlowja*into something similar for cloud-init18:09
harlowjaOdd_Bloke want to submit those ;)18:09
Odd_Blokeharlowja: Yeah, will do.18:09
Odd_BlokeSeeing if I can do some tox magic to reduce repetition.18:10
harlowjak18:10
Odd_BlokeI really want "[testenv:coverage-{env}]" to DWIM.18:10
harlowjahttps://github.com/openstack/taskflow/blob/master/tox.ini#L41 18:10
harlowjau can refer to other envs from other envs18:10
harlowja^ from another project i'm a core on, lol18:10
harlowjamaybe something similar18:10
harlowjabut idk, thats all my tox-fu i got, ha18:10
harlowjaok back to url_helper stuff18:12
harlowjaproject-config stuff (and infra reviews in general) seem to take a while btw, like a week(ish)18:14
harlowjajust fyi18:14
Odd_BlokeThat's fine, I only have about a day a week on cloud-init 2.0 stuff. :p18:14
harlowjathats 24hours18:15
harlowjause it or lose it18:15
harlowjalol18:15
harlowjai expect 24 hours worth of work done18:15
harlowjaor else18:15
harlowjachop chop18:15
Odd_BlokeI didn't mean one of your Earth days.18:15
harlowja:-/18:16
harlowjawhere u at18:16
harlowjalol18:16
Odd_Blokeharlowja: Eris sounds about right: http://www.bobthealien.co.uk/table.htm :p18:17
harlowjayour message sure do come quickly18:17
harlowjahow are u bypassing light-speed limit?18:17
Odd_BlokeErisians have precognition.18:17
harlowjaplease tell me how so i can get nobel prize, lol18:17
Odd_Blokeharlowja: You didn't answer my earlier question: do I need to bug another cloud-init core dev to review the things that you've +2'd?18:17
harlowjalikely, if we want to be 'official' about all this18:18
Odd_BlokeCool.18:18
Odd_BlokeThe green tick is confusing. :p18:18
harlowjaneeds a +2 +a (approve)18:18
harlowjaso ya, 2 usually is how it goes18:19
harlowjaalthough meh, sometimes the officalness is a waste of life/time18:19
harlowjaand a +1 from jenkins18:19
awkwordsis their any man pages for cloud-init?18:23
Odd_Blokeharlowja: With this tox config: http://paste.ubuntu.com/11593770/ and http://paste.ubuntu.com/11593770/, I think we'll be good.19:24
Odd_Blokeharlowja: Thoughts?19:24
harlowjaseems ok to me, not sure how 'coverage-{py27,py34}' works in envlist19:24
harlowjabut if it works, okie dokie19:28
Odd_Blokeharlowja: It works fine. :)19:28
harlowjak19:28
harlowjai've usually just seen them individually listed19:28
harlowjabut if it works, thats cool19:28
Odd_Blokeharlowja: Bah, it apparently does not work fine.19:37
harlowja:-P19:37
Odd_Blokeharlowja: I suspect that I'm getting screwed by an old version of tox.19:41
harlowjapossibly, ha19:42
harlowjajust individually list them?19:42
Odd_BlokeThat isn't even the bit that errors. ;.;19:42
harlowjaah19:44
harlowjaha19:44
Odd_BlokeAnd I get a different error if I use tox 1.6 (which is what's in trusty).19:45
harlowja:-/19:46
Odd_BlokeAHA19:46
harlowjaok i updated https://review.openstack.org/#/c/170242/19:46
Odd_BlokeThey're using 2.0.19:46
Odd_Blokeharlowja: I still don't like UrlResponse; but if we are going to keep it, could we change its names to be consistent with the requests object that it's a wrapper for?19:48
harlowjaRequestsResponse ?19:49
Odd_Blokeharlowja: Like having OurNIHThing.contents wrap Response.content; that's actively developer hostile.19:51
harlowjalol19:51
Odd_BlokeAnd .code wrap .status_code.19:51
harlowjak19:52
Odd_BlokeAlso having .ok be a method when requests.Response.ok is a bool.19:52
harlowjathats cause ours is super-better19:54
harlowjaha19:54
* Odd_Bloke grins and nods while backing away slowly. :p19:55
harlowjaha19:55
* harlowja runs towards u19:56
harlowja*fastly19:56
harlowjalet's see if we can get https://review.openstack.org/#/c/188901/ to work also19:58
harlowjashould work, not sure if that bot needs permissions or something on the channel19:59
harlowjamakes it somewhat easier tosee what to review19:59
harlowjaOdd_Bloke ChangeLog is generated by the doc build?20:00
harlowjai guess pbr is building it20:00
Odd_Blokeharlowja: Yeah, pbr is building it.20:01
Odd_Blokeharlowja: Happy to stop it doing that instead, if that's what we want.20:01
smoserOdd_Bloke, would you say that cloud-init requires gdisk ?20:19
smosersgdisk20:19
smoser cloudinit/config/cc_disk_setup.py20:19
smoserseems to use it.20:19
Odd_Blokesmoser: Yeah, I think we need it for dealing with GPT partitioning.20:21
smoserso cloud-init never depended on it before.20:21
smoserand cloud-initramfs-utils dropped the dependency on it as it does not need it any more (it can just use sfdisk)20:21
Odd_BlokeAh.20:22
Odd_BlokeOops.20:22
smosernoticed this on failure to deploy wily/ppc64el as we dont have sgdisk in the image any more but we are using it for uefi/gpt partitioning20:22
harlowjaoperator granted, woot21:20
rEd_quEEn;)21:21
harlowjasmoser operatorship granted21:27
harlowjathis allows us to get a gerritbot in here for reviews21:27
Envigadoharlowja, please grant it to me too21:37
* harlowja will let smoser grant the rest, isn't really sure who should/shouldn't be, lol21:37
harlowjai defer, ha21:38
=== rangerpb is now known as rangerpbzzzz

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