Failed to update NTP configuration

Bug #2049626 reported by Anton Troyanov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Unassigned

Bug Description

Running MAAS snap built from f945aa238ab3c594fa67d9c49186a03f05f755bf

Once everything is configured MAAS fails to start NTP service

> sudo maas status
Service Startup Current Since
agent disabled active today at 13:41 UTC
apiserver enabled active today at 13:40 UTC
bind9 disabled active today at 13:40 UTC
dhcpd disabled inactive -
dhcpd6 disabled inactive -
http disabled active today at 13:41 UTC
ntp disabled inactive -
proxy disabled active today at 13:43 UTC
rackd enabled active today at 13:40 UTC
regiond enabled active today at 13:40 UTC
syslog disabled active today at 13:40 UTC
temporal disabled active today at 13:40 UTC

> journalctl -u snap.maas.pebble.service -t maas-regiond
Jan 17 13:41:25 maas maas-regiond[2159]: maasserver.regiondservices.ntp: [critical] Failed to update NTP configuration.
Jan 17 13:41:25 maas maas-regiond[2159]: Traceback (most recent call last):
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 700, in errback
Jan 17 13:41:25 maas maas-regiond[2159]: self._startRunCallbacks(fail)
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 763, in _startRunCallbacks
Jan 17 13:41:25 maas maas-regiond[2159]: self._runCallbacks()
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
Jan 17 13:41:25 maas maas-regiond[2159]: current.result = callback( # type: ignore[misc]
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1750, in gotResult
Jan 17 13:41:25 maas maas-regiond[2159]: current_context.run(_inlineCallbacks, r, gen, status)
Jan 17 13:41:25 maas maas-regiond[2159]: --- <exception caught here> ---
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1656, in _inlineCallbacks
Jan 17 13:41:25 maas maas-regiond[2159]: result = current_context.run(
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/python/failure.py", line 489, in throwExceptionIntoGenerator
Jan 17 13:41:25 maas maas-regiond[2159]: return g.throw(self.type, self.value, self.tb)
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/lib/python3.10/site-packages/provisioningserver/utils/service_monitor.py", line 375, in restartServ>
Jan 17 13:41:25 maas maas-regiond[2159]: yield self._performServiceAction(service, "restart")
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
Jan 17 13:41:25 maas maas-regiond[2159]: result = current_context.run(gen.send, result)
Jan 17 13:41:25 maas maas-regiond[2159]: File "/snap/maas/x1/lib/python3.10/site-packages/provisioningserver/utils/service_monitor.py", line 696, in _performSer>
Jan 17 13:41:25 maas maas-regiond[2159]: raise ServiceActionError(error_msg)
Jan 17 13:41:25 maas maas-regiond[2159]: provisioningserver.utils.service_monitor.ServiceActionError: Service 'ntp_region' failed to restart: Pebble change 17 fai>
Jan 17 13:41:25 maas maas-regiond[2159]: - Start service "ntp" (cannot start service: exited quickly with code 1)

> journalctl -u snap.maas.pebble.service -t chronyd
Jan 17 13:50:23 maas chronyd[3475]: 2024-01-17T13:50:23Z chronyd version 4.2 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV>
Jan 17 13:50:23 maas chronyd[3475]: 2024-01-17T13:50:23Z Could not create directory /run/chrony : Permission denied
Jan 17 13:50:23 maas chronyd[3475]: 2024-01-17T13:50:23Z Could not access /run/chrony : No such file or directory
Jan 17 13:50:23 maas chronyd[3475]: 2024-01-17T13:50:23Z Disabled command socket /run/chrony/chronyd.sock
Jan 17 13:50:23 maas chronyd[3475]: 2024-01-17T13:50:23Z Fatal error : Could not open /run/chrony/chronyd.pid : No such file or directory

Related branches

Changed in maas:
importance: Undecided → High
Revision history for this message
Anton Troyanov (troyanov) wrote :

Checking labmaas that is running
> sudo snap list | grep maas
maas 3.5.0~alpha1-15682-g.db0f3ca74 32859 latest/edge canonical** -

The file is located under:
/var/snap/maas/32859/run/chronyd.pid

Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: 3.5.0 → 3.5.0-beta1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.