PTP phc2sys fail to start when command line options have quotes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Andre Mauricio Zelak |
Bug Description
Brief Description
-----------------
The PTP's application phc2sys fails to start when its the cmdline_opts (command line options) is encapsulated in quotes.
For example, using the command line:
system ptp-instance-
Also using DM configuration:
- cmdline_opts='-s ens1f0 -O -37'
Severity
--------
Minor
StarlingX bug reporting guidelines:
Please use the template below when opening StarlingX bugs.
Brief Description
-----------------
Provide a brief description of the issue. Usually, it should not be more than 2 to 3 lines.
Example: After performing a restore of the system, user is unable to swact the controller.
Severity
--------
Provide the severity of the defect.
<Critical: System/Feature is not usable due to the defect>
<Major: System/Feature is usable but degraded>
<Minor: System/Feature is usable with minor issue>
Steps to Reproduce
------------------
Write down the steps to reproduce the issue
Expected Behavior
------------------
The phc2sys application should start normally, the extra quotes should be ignored.
Actual Behavior
----------------
The phc2sys service fails to start.
Reproducibility
---------------
100% reproducible
System Configuration
-------
All
Branch/Pull Time/Commit
-------
master
Last Pass
---------
N/A
Timestamp/Logs
--------------
The hieradata cointains the cmdline_opts encapsulated between quotes:
$ sudo grep -B 10 phc2sys /etc/puppet/
platform:
phc-inst2:
_name: phc-inst2
cmdline_opts: '-s ens1f0 -O -37'
device_
global_
message_tag: phc-inst2
id: 1
interfaces: []
pmc_
service: phc2sys
Test Activity
-------------
Feature Testing
Workaround
----------
Correct the cmdline_opts removing the extra quotes from either the CLI or the DM configuration file.
For example:
system ptp-instance-
DM example:
- cmdline_opts=-s ens1f0 -O -37
Changed in starlingx: | |
assignee: | nobody → Andre Mauricio Zelak (azelak) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.networking |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/902102
Review: https:/