timemaster service fails to start on single domain with multiple interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Haresh |
Bug Description
Description:
Current jinja template (timemaster.
{% for domain, nic_list in ptp_dict.items() %}
[ptp_domain {{ domain }}]
interfaces {% for nic in nic_list %}
{{ nic }}{% if not loop.last %},{% endif %}
{% endfor %}
{% endfor %}
Due to this, when below is passed via THT,
PTPInterfaces: '0:eno1,0:eno2'
results in to
[ptp_domain 0]
interfaces eno1,eno2
timemaster service fails with this message.
[root@computedpdk-0 heat-admin]# systemctl status timemaster
● timemaster.service - Synchronize system clock to NTP and PTP time sources
Loaded: loaded (/usr/lib/
Active: failed (Result: exit-code) since Mon 2021-07-05 12:12:05 UTC; 4s ago
Process: 169838 ExecStart=
Main PID: 169838 (code=exited, status=1/FAILURE)
Jul 05 12:12:05 hareshcomputedpdk-0 systemd[1]: timemaster.service: Succeeded.
Jul 05 12:12:05 hareshcomputedpdk-0 systemd[1]: Stopped Synchronize system clock to NTP and PTP time sources.
Jul 05 12:12:05 hareshcomputedpdk-0 systemd[1]: Started Synchronize system clock to NTP and PTP time sources.
Jul 05 12:12:05 hareshcomputedpdk-0 timemaster[169838]: timemaster[
Jul 05 12:12:05 hareshcomputedpdk-0 timemaster[169838]: timemaster[
Jul 05 12:12:05 hareshcomputedpdk-0 systemd[1]: timemaster.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 12:12:05 hareshcomputedpdk-0 systemd[1]: timemaster.service: Failed with result 'exit-code'.
Steps to reprodcue:
- Perform deployment with above mentioned PTPInternface value.
Expected result:
Ideally, we should have
[ptp_domain 0]
interfaces eno1 eno2 <<<<No ","
To start timemaster service successfully.
Actual result:
Failed timemaster service on the node.
Environment:
Logs & Config:
Refer description.
We need to replace "," with "" in order to generate working template.
Changed in tripleo: | |
assignee: | nobody → Haresh (hakhande) |
status: | New → In Progress |
Fixed jinja template and tried below combinations.
PTPInterfaces: '0:eno1'
[ptp_domain 0]
interfaces eno1 <<<<<<<<<<Ran overcloud deployment and timemaster service started successfully
PTPInterfaces: '0:eno1, 0:eno2, 0:eno4'
[ptp_domain 0]
interfaces eno1 eno2 eno4 <<<<<<<<<<Ran overcloud deployment and timemaster service started successfully
PTPInterfaces: '0:eno1, 1:eno2, 0:eno3'
[ptp_domain 0]
interfaces eno1 eno3
[ptp_domain 1]
interfaces eno2 <<<<<<<<<<Ran overcloud deployment and timemaster service started successfully
PTPInterfaces: '1:eno1, 0:eno2, 2:eno4'
[ptp_domain 1]
interfaces eno1
[ptp_domain 0]
interfaces eno2
[ptp_domain 2]
interfaces eno4 <<<<<<<<<<Ran overcloud deployment and timemaster service started successfully
Will submit patch soon.