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

=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
Odd_Blok1smoser: Thanks for merging the Azure walinuxagent replacement stuff. :)12:45
=== Odd_Blok1 is now known as Odd_Bloke
Odd_Blokesmoser: We've realised that we're lacking a way of turning this on without using user-data; do you have any recommendations about how to make it configurable using something we can include in the image build?12:49
=== rangerpbzzzz is now known as rangerpb
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
smoserOdd_Bloke, the datasource config shoudl suffice13:48
Odd_Blokesmoser: How would we change that config at image build time?13:49
smoser /etc/cloud/cloud.cfg.d/azure.cfg13:49
=== zz_natorious is now known as natorious
smoserOdd_Bloke, around ?16:00
smoserwonder if you have some time to look at https://code.launchpad.net/~bbaude/cloud-init/rh_subscription/+merge/259159 with rangerpb . he's just getting head around unit tests and mock and the things there used checking of log, which seems less than ideal. wondered if you had some other suggestions.16:01
rangerpbthanks smoser Odd_Bloke happy to hear what you would prefer, etc16:02
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
dbuechlerHi All, I have two remaining issues with a CentOS 7 image running cloud-init 0.7.7.18:50
dbuechlerFirst, pre-networking fails with a python error "No Such File or Directory, but I can't figure out which file it's looking for.18:51
dbuechlerSecond, cc-locale fails, but doesn't provide any more detail.18:51
dbuechlerErr, my bad - cc_locale.  As I doubt I'll ever use a VM that isn't in English, I'm not sure that one matters a whole lot, but while I'm here asking questions, I might as well ask about it.18:53
dbuechlerSorry.  I had to take a phone call.  Here's a pastebin of the python error in pre-networking:  http://pastebin.com/sKBevg5k19:10
dbuechlersmoser: Rebuilding the CentOS 7 image without LVM worked like a charm.  The xfsprogs was, in fact, installed by default, even on a Minimal System configuration.  I appreciate your insights on the matter.19:14
smoserdbuechler, not sure on the selinux...19:16
smoserwould have to poke more. 19:16
dbuechlerRather, the xfsprogs *package* was installed by default...  I'm a native English speaker.  I promise.19:16
smosercan you pate the whole cloud-init.log ?19:16
smoserand cloud-init-output.log ?19:16
smoserunless you're concerned about sensitive info there.19:17
dbuechlerSure.  Curiously, cloud-init.log was empty.  Cloud-init-output, I'll paste.  I'll just redact anything critical.19:18
smosercloud-init.log being empty is not good. its probably related to you needing to configure logging.19:20
dbuechlersmoser: Uh-oh.  Looks like I have a problem with my cloud.  It appears one of my controller nodes may be down.  I'll get that information for you as soon as I can.  It may be a couple of hours.  I'll paste cloud-init-output, verify cloud-init.log is still empty and then probably paste my cloud.cfg file.19:27
smoserk.19:28
=== natorious is now known as zz_natorious
=== zz_natorious is now known as natorious
Odd_Blokesmoser: rangerpb: Around for a little while now, will take a quick look.20:35
rangerpbthanks Odd_Bloke 20:35
Odd_Blokerangerpb: I assume GoodTests and BadTests are happy-path/bad-path?20:42
rangerpbcorrect20:43
=== 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
Odd_Blokesmoser: rangerpb: I can't decide how I feel about the checking of log; it is a kind of contract that the unit under test has with the end user.21:18
Odd_BlokeBut it's also the sort of test that can end up being very brittle.21:18
rangerpbyeah it is brittle due to changing of error messages == failed tests21:18
Odd_Blokerangerpb: I wonder if perhaps relaxing the checks to just "did we log something at info level" and "did we log something at warn level" might be a good compromise?21:19
rangerpbthe log is definitive which is why I put it in there.  im thinking either your suggestion or remove it completely and depend on counting calls to functions, etc21:21
rangerpbi suppose i could set some test vars in the code which are bool and I could check those21:21
rangerpblike finishing sucessfully or not, prefer that?21:22
Odd_Blokerangerpb: That doesn't sound quite as good; you could move the logging out to log_success() and log_failure() functions, and check that those are called?21:22
rangerpbyou mean the actual calls to the logger?21:23
Odd_BlokeI mean something like:21:23
Odd_Blokedef log_success():21:23
Odd_Bloke    LOGGER.info('rh_subscription plugin completed successfully')21:23
rangerpbyeah21:23
rangerpbi could do that21:23
Odd_BlokeAnd then we aren't testing the messages, just that the high-level communication to the user is happening.21:24
rangerpbsure21:24
rangerpbif you are comfy with that, i will do that21:24
Odd_Blokerangerpb: Thanks. :)21:25
Odd_Blokerangerpb: Just added a few more comments. :)21:46
=== natorious is now known as zz_natorious
rangerpbcool thanks man21:48
=== 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
=== rangerpb is now known as rangerpbzzzz

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