merge from trunk
This commit is contained in:
commit
8dba7aae7f
@ -7,6 +7,10 @@
|
|||||||
apt_get_wrapper (LP: #1236531).
|
apt_get_wrapper (LP: #1236531).
|
||||||
- convert paths provided in config-drive 'files' to string before writing
|
- convert paths provided in config-drive 'files' to string before writing
|
||||||
(LP: #1260072).
|
(LP: #1260072).
|
||||||
|
- Azure: minor changes in logging output. ensure filenames are strings (not
|
||||||
|
unicode).
|
||||||
|
- config/cloud.cfg.d/05_logging.cfg: provide a default 'output' setting, to
|
||||||
|
redirect cloud-init stderr and stdout /var/log/cloud-init-output.log.
|
||||||
0.7.4:
|
0.7.4:
|
||||||
- fix issue mounting 'ephemeral0' if ephemeral0 was an alias for a
|
- fix issue mounting 'ephemeral0' if ephemeral0 was an alias for a
|
||||||
partitioned block device with target filesystem on ephemeral0.1.
|
partitioned block device with target filesystem on ephemeral0.1.
|
||||||
|
@ -154,7 +154,7 @@ class DataSourceAzureNet(sources.DataSource):
|
|||||||
|
|
||||||
fp_files = []
|
fp_files = []
|
||||||
for pk in self.cfg.get('_pubkeys', []):
|
for pk in self.cfg.get('_pubkeys', []):
|
||||||
bname = pk['fingerprint'] + ".crt"
|
bname = str(pk['fingerprint'] + ".crt")
|
||||||
fp_files += [os.path.join(mycfg['data_dir'], bname)]
|
fp_files += [os.path.join(mycfg['data_dir'], bname)]
|
||||||
|
|
||||||
missing = util.log_time(logfunc=LOG.debug, msg="waiting for files",
|
missing = util.log_time(logfunc=LOG.debug, msg="waiting for files",
|
||||||
@ -247,7 +247,7 @@ def pubkeys_from_crt_files(flist):
|
|||||||
try:
|
try:
|
||||||
pubkeys.append(crtfile_to_pubkey(fname))
|
pubkeys.append(crtfile_to_pubkey(fname))
|
||||||
except util.ProcessExecutionError:
|
except util.ProcessExecutionError:
|
||||||
errors.extend(fname)
|
errors.append(fname)
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
LOG.warn("failed to convert the crt files to pubkey: %s" % errors)
|
LOG.warn("failed to convert the crt files to pubkey: %s" % errors)
|
||||||
|
@ -59,3 +59,8 @@ log_cfgs:
|
|||||||
- [ *log_base, *log_file ]
|
- [ *log_base, *log_file ]
|
||||||
# A file path can also be used
|
# A file path can also be used
|
||||||
# - /etc/log.conf
|
# - /etc/log.conf
|
||||||
|
|
||||||
|
# this tells cloud-init to redirect its stdout and stderr to
|
||||||
|
# 'tee -a /var/log/cloud-init-output.log' so the user can see output
|
||||||
|
# there without needing to look on the console.
|
||||||
|
output: {all: '| tee -a /var/log/cloud-init-output.log'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user