NTP Hardware Tests Fail on Bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Lee Trager | ||
2.3 |
Fix Released
|
High
|
Lee Trager |
Bug Description
When running hardware tests using MAAS 2.4.0-beta2 and Ubuntu 18.04 Bionic, the test fails as the ntpq command and ntpd.service unit are not found;
/tmp/user_
Failed to stop ntp.service: Unit ntp.service not loaded.
timeout: failed to run command ‘ntpd’: No such file or directory
Failed to start ntp.service: Unit ntp.service not found.
In Ubuntu 18.04, Crony replaces ntp as the default set of ntp tools. However, timesyncd is also used and enabled by default.
Could it be possible to change the NTP test script so that if Ubuntu 18.04 is detected, the status of the systemd-timesyncd unit is checked? The status of that unit outputs a line similar to the following if ntp sync has succeeded;
Status: "Synchronized to time server 10.1.10.5:123 (10.1.10.5)."
Related branches
- Lee Trager (community): Approve
-
Diff: 53 lines (+20/-6)1 file modifiedsrc/metadataserver/builtin_scripts/ntp.sh (+20/-6)
- Newell Jensen (community): Approve
-
Diff: 53 lines (+20/-6)1 file modifiedsrc/metadataserver/builtin_scripts/ntp.sh (+20/-6)
Changed in maas: | |
milestone: | none → 2.4.0rc1 |
Changed in maas: | |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
status: | Confirmed → In Progress |
assignee: | Björn Tillenius (bjornt) → Lee Trager (ltrager) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Here's a simple patch that will at least fix the NTP provisioning test for 18.04. Probably best to improve upon this for 18.10 etc.