/srv/irclogs.ubuntu.com/2015/07/16/#cloud-init.txt

Odd_Blokesmoser: I'm looking at https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1381776; how do you feel about adding python-serial to cloud-init's dependencies?10:51
Odd_Blokesmoser: (On precise)10:51
Odd_BlokeAnd probably trusty, as it's missing there as well.10:52
Odd_Blokesmoser: It's already installed on our normal Ubuntu images because of Landscape (via twisted), which is why we haven't seen this bug more.10:52
Odd_Blokesmoser: https://code.launchpad.net/~daniel-thewatkins/cloud-init/lp1475215/+merge/264967 is a nice, easy review if you have a minute.12:51
Odd_Blokesmoser: (I'm currently assuming that we're code reviewing everything that goes in to 0.7.x)12:52
smoserOdd_Bloke, merged thanks.13:15
smoseri'm surprised. about 1381775.13:16
smoseri'm surprised. about bug 138177613:16
Odd_Blokesmoser: Thanks. :)13:16
Odd_Blokesmoser: So you only need it installed if you include a DS that requires it in your list of DSes.13:17
smoseri tihnk its robably just an oversite13:17
smoserat very least it should be Recommends13:17
Odd_BlokeBut by default, you will have such a DS.13:17
Odd_BlokeIt's in Depends in vivid.13:17
smoserah. ok.13:17
Odd_BlokeSo, I agree, I think it's just an oversight.13:17
smoserwell then.13:17
smoserfix if you want.13:18
smoseri'd like to not hvae python-serial, as i think it is not pure python.13:18
smoserand not really sure why you can't just open up /dev/ttyS1 and write to it.13:19
smoserOdd_Bloke, https://code.launchpad.net/~daniel-thewatkins/cloud-init/lp1411582/+merge/26483113:32
smoserwhy azure_resource-part1 and azure/resouce-part1 ?13:32
Odd_Blokesmoser: The first is what we put in place with the cloud-init udev rules.13:33
Odd_Blokesmoser: The second is what walinuxagent puts in place with its udev rules.13:34
smoserdo i care about the second ?13:34
smoseri'm not really opposed to this, but just wondering.13:34
smoserand maybe lets at least explain/comment to that effect13:34
Odd_Blokesmoser: If the packaging for cloud-init is done badly, but the packaging for walinuxagent is alright, this will still work.13:34
Odd_Blokesmoser: (So really more of a consideration for non-Ubuntu systems)13:35
smoserif the packaging for cloud-init is done badly, then we should fix that :)13:35
smoseri'm ok with it. but can you add a comment to why we're searching some seemingly non-existent path ?13:35
Odd_Blokesmoser: Yep, good shout.13:36
smatzekon the topic of adding dependencies to the cloud-init package for individual datasources, I'd rather not have them as hard dependencies.  Some of those dependencies are sometimes not available for some Linux distros on non-x86 architectures.13:38
smatzekthat being said I see the point of view of including them as depndencies and distros should adapt the rpm requirements list appropriately when they build the RPMs.  I just know I had trouble with this with dmidecode which was not available for ppc64 in either RHEL or SLES or both, I can't remember which.13:39
smoseryeah, its hard though.13:39
smoserbecause many people will not have need of many of these things.13:39
smoserif they're building an image, they dont necessarily need all datasources functional.13:39
Odd_BlokeYeah.13:40
Odd_BlokeMaybe it should be a Recommends.13:41
smatzekin v2 this could be solved by packaging each datasource or groups of related datasources together in their own package which updates cloud.cfg to add themselves in.  Then image builders could would install datasource packages they want available.  This seems like a lot of extra overhead to solve this issue though.  It could be solved by Recommends and then documentation on which datasources require which extra packages above and beyond the baseline13:42
smatzekrequirements.13:42
Odd_BlokeYeah.13:43
smoserwe do have a goal of datasources being more stand alone13:43
Odd_BlokeThere are only a few use cases where you would actually care about having the extra handful of Python libraries.13:44
Odd_BlokeSo Recommends is probably the way to go, then people who care can uninstall/not install requires.13:44
Odd_Blokes/requires/recommends/13:44
smoserfor ubuntu i think recommends makes sense for stuff that could be annoying. and i'm not opposed to packaging datasources seperately uon ubuntu either.13:45
smatzekif we go the route of recommends, the datasources that have requirements above the baseline like dmidecode which has native code (AltCloud, SmartOS), Sigma, etc should try-except around their imports to handle it gracefully and put a nice message out that says "we require package xyz for datasource abc"13:50
smoseryeah13:51
Odd_BlokeTrue.13:51
Odd_BlokeSo for python-serial in precise and trusty should I: (a) Depends, (b) Recommends, or (c) Recommends and code changes as per smatzek's comment?13:52
Odd_Bloke(c) is a bit of PITA to do in maintenance.13:52
smosermake same change as in vivid13:54
Odd_BlokeCool.13:54
smoserOdd_Bloke, for 2.0, how can i render README.rst easily ? to test see if my change is sane?13:55
smoserthis seems to work:13:58
smoser tox-venv docs rst2html README.rst  > /tmp/out.html13:58
Odd_BlokeThat seems reasonable.13:58
openstackgerritScott Moser proposed stackforge/cloud-init: README.rst: mention bugs are tracked in launchpad  https://review.openstack.org/20257613:59
Odd_Blokesmoser: Do we want to track bugs in the same place as 0.7.x?14:06
Odd_BlokeI worry it might become confusing.14:06
smoserOdd_Bloke, i dont know. i dont want two separate projects in launchpad.14:11
smoseri did make a 2.0 series, but i've not played much14:11
Odd_BlokeWhy not separate projects?14:11
smoserOdd_Bloke, i think separate projects is more confusing than single project.14:27
smoserand in 3 years, you'll say "why is this one named cloud-init 2.0"14:27
Odd_BlokeProvided we can clearly delineate between 2.0 bugs and 0.x bugs, that's not a problem.14:28
Odd_BlokeBut if we have the same bug in each cloud-init, a single commit won't fix it.14:28
Odd_BlokeAnd so it might be a bit harder for people looking at bugs to understand whether they should be fixed or not etc.14:29
smoserhttps://launchpad.net/cloud-init/2.014:30
smoseri'm not really sure what all you can do with 'series'14:30
smoserbut i think essentially 'wily' is a series14:31
smoseri thikn launchpad intends to model what we need.14:31
Odd_BlokeCool. :)14:31
smoseryeah, https://launchpad.net/ubuntu/+series14:36
smoserthats heavier use then i surely would hope to have.14:36
pankaj2934what is the diffrence user for  /var/lib/cloud/scripts/* folder and /etc/cloud/cloud.cfg.d/ folders15:02
pankaj2934use for *15:02
pankaj2934once the instance is booted up i want to have cloud-init make a REST call to a service . what would be best place to place the code .15:06
pankaj2934once the instance is booted up i want to have cloud-init make a REST call to a service . what would be best place to place the code .15:09
smoserpankaj2934, /var/lib/cloud/scripts/* are executables15:41
smoser/etc/cloud/cloud.cfg.d/ is configuration15:41
smoseryou might be able to just use 'phone_home'15:43
smoser http://cloudinit.readthedocs.org/en/latest/topics/examples.html15:43
pankaj2934@Smoser so if i write a abc.cfg file with phone_home code in it (as from the example ) and put the file in /etc/cloud/cloud.cfg.d/ of the image anytime a new instance is created phone_home call will be made. ?  can we haev multiple phone home in multiple cfg file ?15:57
smoserall config files get merged into a single config15:58
smoserso "last one wins" that defines the phone_home url15:58
Odd_Blokesmoser: It looks like you didn't push to Launchpad when you did the last Vivid SRU; would you be able to push that up?16:41
smoserprobably, let me check16:41
smoserdone16:42
Odd_BlokeDanke.16:42
openstackgerritScott Moser proposed stackforge/cloud-init: add cloud-init main  https://review.openstack.org/20274318:50
smoserOdd_Bloke, ^18:50
smoserharlowja_, we need some test coverage on logging and url_helper bad.19:00
harlowja_more test coverage?19:00
harlowja_on logging :-/19:00
smoserhttp://paste.ubuntu.com/11889248/19:00
harlowja_i thought it was 200%19:00
harlowja_200% covered all the things19:00
harlowja_ah, the mysticism of coverage numbers :-P19:01
smoserharlowja_, yu're not looking at writing test 'right nwo' are you? cause if not, i'm gonna spend next 30 minutes or so.19:45
harlowja_i'm not19:46
harlowja_u can :-P19:46
smoserk. thank you kind sir.19:47
harlowja_np19:48
harlowja_lol19:48
harlowja_np sir19:48
pankaj2934scenario: user puta hostname:mywebserver in openstack horizon and server gets named mywebserver. but our admin team has a naming standard. is it possible to restrict usrs to pass only certain user-data and not all20:54
smoseryou' dhave to enforce that on openstack side.21:00
pankaj2934how can that be done. i could not find any option in nova so i thought there might be somethign in cloud-init21:00
smoserno. cloud-init doesnt have anythign like it.21:01
smoseryoud have to change openstack to just load the user-data on the way in.21:01
smoserinspect it.21:01
smoseryou probably dont want to do that.21:01
pankaj2934yes : biggest problem we have developers have learnt cloud-init and they haev started putting user-data whcih runs as root and deviates the build from standard21:03
pankaj2934can we have cloud-init not process user-data but still process everything in cloud.cfg.d and scripts folder ?21:04
=== 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

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