Comment 1 for bug 1645644

Revision history for this message
Nobuto Murata (nobuto) wrote : Re: ntp is not restarted after writing /etc/ntp.conf by cloud-init

[/var/log/cloud-init.log]
Nov 28 14:01:34 ubuntu [CLOUDINIT] handlers.py[DEBUG]: start: modules-config/config-ntp: running config-ntp with frequency once-per-instance
Nov 28 14:01:34 ubuntu [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/pdrrwx/sem/config_ntp - wb: [420] 25 bytes
Nov 28 14:01:34 ubuntu [CLOUDINIT] helpers.py[DEBUG]: Running config-ntp using lock (<FileLock using file '/var/lib/cloud/instances/pdrrwx/sem/config_ntp'>)
Nov 28 14:01:34 ubuntu [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/pdrrwx/sem/update_sources - wb: [420] 25 bytes
Nov 28 14:01:34 ubuntu [CLOUDINIT] helpers.py[DEBUG]: Running update-sources using lock (<FileLock using file '/var/lib/cloud/instances/pdrrwx/sem/update_sources'>)
Nov 28 14:01:34 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['eatmydata', 'apt-get', '--option=Dpkg::Options::=--force-confold', '--option=Dpkg::options::=--force-unsafe-io', '--assume-yes', '--quiet', 'update'] with allowed return codes [0] (shell=False, capture=False)
Nov 28 14:01:37 ubuntu [CLOUDINIT] util.py[DEBUG]: apt-update [eatmydata apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet update] took 2.717 seconds
Nov 28 14:01:37 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['eatmydata', 'apt-get', '--option=Dpkg::Options::=--force-confold', '--option=Dpkg::options::=--force-unsafe-io', '--assume-yes', '--quiet', 'install', 'ntp'] with allowed return codes [0] (shell=False, capture=False)
Nov 28 14:01:42 ubuntu [CLOUDINIT] util.py[DEBUG]: apt-install [eatmydata apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install ntp] took 5.093 seconds
Nov 28 14:01:42 ubuntu [CLOUDINIT] util.py[DEBUG]: Renaming /etc/ntp.conf to /etc/ntp.conf.dist
Nov 28 14:01:42 ubuntu [CLOUDINIT] util.py[DEBUG]: Reading from /etc/cloud/templates/ntp.conf.ubuntu.tmpl (quiet=False)
Nov 28 14:01:42 ubuntu [CLOUDINIT] util.py[DEBUG]: Read 2509 bytes from /etc/cloud/templates/ntp.conf.ubuntu.tmpl
Nov 28 14:01:42 ubuntu [CLOUDINIT] templater.py[DEBUG]: Rendering content of '/etc/cloud/templates/ntp.conf.ubuntu.tmpl' using renderer jinja
Nov 28 14:01:42 ubuntu [CLOUDINIT] util.py[DEBUG]: Writing to /etc/ntp.conf - wb: [420] 2329 bytes
Nov 28 14:01:42 ubuntu [CLOUDINIT] url_helper.py[DEBUG]: [0/1] open 'http://10.0.0.1/MAAS/metadata/status/pdrrwx' with {'allow_redirects': True, 'headers': {'Authorization': 'OAuth oauth_nonce="174133988014588674511480341702", oauth_timestamp="1480341702", oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="hSstLrMK5QNpvSBdna", oauth_token="hUhc5cBa9eeekkNe3y", oauth_signature="%26wqdhtxdzRQcADcSMNmSVQtAjHXwgzKJX"'}, 'method': 'POST', 'url': 'http://10.0.0.1/MAAS/metadata/status/pdrrwx'} configuration
Nov 28 14:01:42 ubuntu [CLOUDINIT] url_helper.py[DEBUG]: Read from http://10.0.0.1/MAAS/metadata/status/pdrrwx (200, 2b) after 1 attempts
Nov 28 14:01:42 ubuntu [CLOUDINIT] handlers.py[DEBUG]: finish: modules-config/config-ntp: SUCCESS: config-ntp ran successfully