lp:~smoser/cloud-init/log_time
- Get this branch:
- bzr branch lp:~smoser/cloud-init/log_time
Branch merges
- Joshua Harlow (community): Approve
-
Diff: 163 lines (+55/-16)6 files modifiedChangeLog (+3/-0)
bin/cloud-init (+3/-1)
cloudinit/config/cc_growpart.py (+2/-1)
cloudinit/config/cc_resizefs.py (+5/-6)
cloudinit/sources/DataSourceAzure.py (+7/-8)
cloudinit/util.py (+35/-0)
Branch information
Recent revisions
- 855. By Scott Moser
-
set reading /proc/uptime to false by default.
reading /proc/uptime is going to be slower, and no reason to do it on most
things. Better to only do it when you suspect maybe a need for it. - 854. By Scott Moser
-
add util.log_time helper
The reason for this is that more and more things I was wanting to be able to
see how long they took. This puts that time logic into a single place. It
also supports (by default) reading from /proc/uptime as the timing mechanism.While that is almost certainly slower than time.time(), it does give
millisecond granularity and is not affected by 'ntpdate' having
run in between the two events. - 851. By Scott Moser
-
DataSourceAzure: do not capture output of bounce command
As shown in comments of bug 1202758 and filing of ntp bug 1206164, waiting
for the output of this command causes us to wait for ntpdate to fully
finish.Ideally I think we'd disable ntpdate running on this run, but
that is not trivially possible. - 850. By Scott Moser
-
azure: fix bouncing of interface
the environment that was set up to include 'interface' was not actually
being passed on to 'subp', so when the command ran it wasn't available. - 849. By Scott Moser
-
add debian init scripts
These are debian's init scripts as taken from their trunk svn
as of today. Thanks Juerg. - 847. By Scott Moser
-
azure: support bouncing interfaces to publish new hostname
See the added doc/sources/
azure/README. rst for why this is necessary.
Essentially, we now are doing the following in the get_data() method
of azure datasource to publish this NewHostname:
hostname NewHostName
ifdown eth0;
ifup eth0
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~cloud-init-dev/cloud-init/trunk