cc_ntp fails to work when deploying ubuntu-core
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
cloud-init |
Fix Released
|
High
|
Unassigned |
Bug Description
When deploying Ubuntu Core with MAAS I am seeing this error in /var/log/
2017-04-26 18:11:45,172 - cc_apt_
2017-04-26 18:11:45,172 - handlers.py[DEBUG]: finish: modules-
2017-04-26 18:11:45,172 - stages.py[DEBUG]: Running module ntp (<module 'cloudinit.
2017-04-26 18:11:45,172 - handlers.py[DEBUG]: start: modules-
2017-04-26 18:11:45,173 - util.py[DEBUG]: Writing to /var/lib/
2017-04-26 18:11:45,173 - helpers.py[DEBUG]: Running config-ntp using lock (<FileLock using file '/var/lib/
2017-04-26 18:11:45,175 - util.py[DEBUG]: Writing to /var/lib/
2017-04-26 18:11:45,176 - helpers.py[DEBUG]: Running update-sources using lock (<FileLock using file '/var/lib/
2017-04-26 18:11:45,176 - util.py[DEBUG]: Running command ['apt-get', '--option=
2017-04-26 18:11:45,186 - util.py[DEBUG]: apt-update [apt-get --option=
2017-04-26 18:11:45,186 - util.py[DEBUG]: Running command ['apt-get', '--option=
2017-04-26 18:11:45,191 - util.py[DEBUG]: apt-install [apt-get --option=
2017-04-26 18:11:45,193 - util.py[DEBUG]: Reading from /etc/cloud/
2017-04-26 18:11:45,193 - util.py[DEBUG]: Read 2509 bytes from /etc/cloud/
2017-04-26 18:11:45,193 - templater.
2017-04-26 18:11:45,197 - util.py[DEBUG]: Writing to /etc/ntp.conf - wb: [420] 2330 bytes
2017-04-26 18:11:45,200 - handlers.py[DEBUG]: finish: modules-
2017-04-26 18:11:45,200 - util.py[WARNING]: Running module ntp (<module 'cloudinit.
2017-04-26 18:11:45,202 - util.py[DEBUG]: Running module ntp (<module 'cloudinit.
Traceback (most recent call last):
File "/usr/lib/
freq=freq)
File "/usr/lib/
return self._runners.
File "/usr/lib/
results = functor(*args)
File "/usr/lib/
write_
File "/usr/lib/
templater.
File "/usr/lib/
util.
File "/usr/lib/
with open(filename, omode) as fh:
OSError: [Errno 30] Read-only file system: '/etc/ntp.conf'
Note: This doesn't break deployment. Deployment still succeeds, except for ntp syncing is not setup to point to MAAS.
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 4127 lines (+2892/-256)41 files modifiedMakefile (+3/-3)
cloudinit/analyze/__init__.py (+0/-0)
cloudinit/analyze/__main__.py (+155/-0)
cloudinit/analyze/dump.py (+176/-0)
cloudinit/analyze/show.py (+207/-0)
cloudinit/analyze/tests/test_dump.py (+210/-0)
cloudinit/cmd/main.py (+15/-29)
cloudinit/config/cc_ntp.py (+45/-13)
cloudinit/distros/arch.py (+59/-31)
cloudinit/net/__init__.py (+134/-46)
cloudinit/net/dhcp.py (+119/-0)
cloudinit/net/netplan.py (+9/-26)
cloudinit/net/network_state.py (+69/-16)
cloudinit/net/sysconfig.py (+5/-1)
cloudinit/net/tests/__init__.py (+0/-0)
cloudinit/net/tests/test_dhcp.py (+144/-0)
cloudinit/net/tests/test_init.py (+522/-0)
cloudinit/sources/DataSourceAliYun.py (+6/-3)
cloudinit/sources/DataSourceEc2.py (+99/-22)
cloudinit/sources/DataSourceOVF.py (+62/-1)
cloudinit/sources/helpers/vmware/imc/config.py (+21/-3)
cloudinit/sources/helpers/vmware/imc/config_passwd.py (+67/-0)
debian/changelog (+28/-0)
doc/rtd/index.rst (+1/-0)
doc/rtd/topics/capabilities.rst (+40/-10)
doc/rtd/topics/debugging.rst (+146/-0)
setup.py (+1/-1)
templates/timesyncd.conf.tmpl (+8/-0)
tests/cloud_tests/bddeb.py (+9/-7)
tests/unittests/helpers.py (+1/-1)
tests/unittests/test_cli.py (+84/-3)
tests/unittests/test_datasource/test_aliyun.py (+6/-5)
tests/unittests/test_datasource/test_common.py (+1/-0)
tests/unittests/test_datasource/test_ec2.py (+112/-24)
tests/unittests/test_distros/__init__.py (+21/-0)
tests/unittests/test_distros/test_arch.py (+45/-0)
tests/unittests/test_distros/test_netconfig.py (+2/-2)
tests/unittests/test_handler/test_handler_ntp.py (+101/-4)
tests/unittests/test_net.py (+118/-0)
tests/unittests/test_vmware_config_file.py (+30/-2)
tox.ini (+11/-3)
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 2996 lines (+1895/-223)32 files modifiedMakefile (+2/-2)
cloudinit/config/cc_ntp.py (+45/-13)
cloudinit/distros/arch.py (+59/-31)
cloudinit/net/__init__.py (+134/-46)
cloudinit/net/dhcp.py (+119/-0)
cloudinit/net/netplan.py (+9/-26)
cloudinit/net/network_state.py (+69/-16)
cloudinit/net/sysconfig.py (+5/-1)
cloudinit/net/tests/__init__.py (+0/-0)
cloudinit/net/tests/test_dhcp.py (+144/-0)
cloudinit/net/tests/test_init.py (+522/-0)
cloudinit/sources/DataSourceAliYun.py (+6/-3)
cloudinit/sources/DataSourceEc2.py (+99/-22)
cloudinit/sources/DataSourceOVF.py (+62/-1)
cloudinit/sources/helpers/vmware/imc/config.py (+21/-3)
cloudinit/sources/helpers/vmware/imc/config_passwd.py (+67/-0)
debian/changelog (+26/-0)
doc/rtd/topics/capabilities.rst (+40/-10)
setup.py (+1/-1)
templates/timesyncd.conf.tmpl (+8/-0)
tests/cloud_tests/bddeb.py (+9/-7)
tests/unittests/helpers.py (+1/-1)
tests/unittests/test_datasource/test_aliyun.py (+6/-5)
tests/unittests/test_datasource/test_common.py (+1/-0)
tests/unittests/test_datasource/test_ec2.py (+112/-24)
tests/unittests/test_distros/__init__.py (+21/-0)
tests/unittests/test_distros/test_arch.py (+45/-0)
tests/unittests/test_distros/test_netconfig.py (+2/-2)
tests/unittests/test_handler/test_handler_ntp.py (+101/-4)
tests/unittests/test_net.py (+118/-0)
tests/unittests/test_vmware_config_file.py (+30/-2)
tox.ini (+11/-3)
- Scott Moser: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 304 lines (+154/-17)3 files modifiedcloudinit/config/cc_ntp.py (+45/-13)
templates/timesyncd.conf.tmpl (+8/-0)
tests/unittests/test_handler/test_handler_ntp.py (+101/-4)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.2.1 |
Changed in maas: | |
milestone: | 2.2.1 → 2.2.x |
Changed in maas: | |
status: | Triaged → Incomplete |
milestone: | 2.2.x → none |
importance: | High → Undecided |
milestone: | none → 2.3.0 |
Changed in cloud-init: | |
importance: | Undecided → High |
status: | New → In Progress |
Changed in cloud-init: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Incomplete → Invalid |
milestone: | 2.3.0 → none |
A quick look at the core image, and ntp is not installed by default. The system does include systemd's timesyncd which can be configured but will require changes to cloud-init.