/srv/irclogs.ubuntu.com/2016/09/12/#cloud-init.txt

=== rangerpbzzzz is now known as rangerpb
smoserthis is pretty awesome.13:39
smoserimport base6413:39
smoserbase64.encodestring("FOO")13:39
smoserTypeError: expected bytes-like object, not str13:39
smoserso... encodestring takes bytes and not a string. that makes sense.13:40
rharpersmoser: I guess why I thought the timestamp in the log file was a syslog issue , is on xenial and yakkety, even the entries in syslog itself are missing resolution (journctrl --unit cloud-config)   but maybe that's how we configure the logger ?14:23
rharperit appears that when we don't use syslog, we include a timestamp field in the log format;14:25
smoserrharper, so... recap14:25
rharperthat implies to me that cloud-init using log_syslog relies on syslog to insert a timestamp (it does)14:26
smoserwhen cloud-init "comes up", it sets up python logging per 05_logging.cfg14:26
rharperbut the resolution doesn't have subsecond in xenial and newer14:26
smoseri suspect that in xenial+ we're always going through rsyslog14:26
rharperI agree14:26
smoserand yes, when you log to syslog, its kind of pointless to add a timestamp14:26
rharperwhich is why I think rsyslog must have changed how it records timestamps14:26
smoserit would just be duplicate14:26
rharperright14:26
smoser(outside of the time delta between posting the message and rsyslog getting it)14:27
rharperright14:27
rharperbut the resolution isn't sub-second; that seems wrong (sub optimal)14:27
smoserso it is possible that the default rsyslog configuration changed in xenial14:27
smoserand no longer logs subsecond when it used to14:27
rharperI can change rsyslog conf (there's a comment for high res )14:27
rharperin /etc/rsyslog.conf14:27
rharperright, I'm hunting for that sort of change14:27
rharperI've not found it yet14:28
smosercan you verify that it was set the other way in previous releases ?14:28
rharperbut I think I understand why we see the change, as you say, in trusty, rsyslog wasn't up yet and cloud-init uses the "Write to file" formatter with the timestamp14:28
rharperthere's no "setting"14:28
rharperit's just the default14:28
rharperthe rsyslog.conf is not different from trusty, xenial or yakkety (just versions of rsyslog)14:29
smoserbut in trusty we almost certainly should have used syslog for later messages14:29
smoser(only cloud-init init should have gone "direct")14:29
rharperlemme look14:29
rharperyeah14:29
rharperI see it14:29
rharperit transistions to syslog14:29
rharperand drops the subsecond output =(14:29
rharper2016-09-12 14:08:38,438 - util.py[DEBUG]: cloud-init mode 'init' took 0.209 seconds (0.00)14:30
rharperSep 12 14:08:38 t1 [CLOUDINIT] util.py[DEBUG]: Cloud-init v. 0.7.5 running 'modules:config' at Mon, 12 Sep 2016 14:08:38 +0000. Up 3.0 seconds.14:30
smoserso...14:31
smoseri'm really leaning towards harlow's suggestion14:31
smoserof dropping rsyslog unless configured.14:31
rharper"unless configured" meaning cloud-config specifically enabling it ?14:32
rharperour images clearly have a syslog configured14:32
=== harmw_ is now known as harmw
rharpersmoser: nice!20:59
rharpernow you need new $topic21:00
=== smoser changed the topic of #cloud-init to: cloud-init 0.7.8 released 2016-09-12. 0.7.9 open. reviews: https://code.launchpad.net/~cloud-init-dev/cloud-init/+git/cloud-init/+ref/master/+activereviews
jgrimm\o/21:03
roaksoaxjgrimm: re: EA, would cloud-init w/ ntp support work on CentOS 6 (python2?)21:38
jgrimmroaksoax, not tested for sure, but as far as python version i think should be ok (or fixable).  rharper would talk more definitively to impl or other challenges ^^21:42
rharperwe need 2.7+21:43
rharperthis was capture in the NRE doc21:43
rharperw.r.t cloud-init requirements21:43
rharpercentos has 2.621:43
rharper2.6 *barely* works IIUC21:43
jgrimmrharper, +121:43
jgrimmthat's a statement about general, not the ntp specifically i'm assuming21:44
rharperoh21:44
rharpersorry21:44
rharperright;  there's not much to the ntp config module21:45
rharperI'd like smoser to speak up; but I really want to avoid having to support 2.6 in centos21:45
jgrimmyep, though your answer may be ultimately the right answer to the question. :)21:45
rharperyeah21:46
=== rangerpb is now known as rangerpbzzzz

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