TRITON-2159: Port `/lib/sdc/` to linux


Issue Type:New Feature
Priority:4 - Normal
Created at:2020-08-25T14:48:31.196Z
Updated at:2022-08-10T00:18:37.503Z


Created by:Pedro Palazón Candel
Reported by:Pedro Palazón Candel
Assigned to:Pedro Palazón Candel


Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2020-09-02T18:21:17.553Z)

Fix Versions

2020-10-08 calmer than you are (Release Date: 2020-10-08)

Related Issues




/lib/sdc/ and the function called load_sdc_config are used extensively across the different triton components, specially from sdc-config-agent.

This library should be ported to linux, probably doing something similar to what we do for sys info and add it as part of the sdc-cn-agent here:

That could be used like sysinfo from /usr/bin/triton:

cat /usr/triton/bin/sysinfo

var sysinfo = require('/usr/triton/sdc-cn-agent/lib/backends/linux/sysinfo');
sysinfo.sysInfo(null, function (err, info) {
    console.log(JSON.stringify(info, null, 2))

The original, smartos code for this library is here:


Comment by Pedro Palazón Candel
Created at 2020-09-02T18:21:17.568Z

Ok, for now the file is added to /usr/triton/config/ and all it does is being sourced by other scripts which will then call load_sdc_config, which is exactly what the agents being ported to linux need for configuration and setup.

There are other features that can be added, like outputting JSON or providing other Configuration information for linuxcns, but that will not happen if we have no need for it.

Comment by Jira Bot
Created at 2022-08-10T00:18:37.503Z

linux-live commit f4b6b845c5b978465aac166efaff23abb5b96cdc (branch master, by Pedro Palazón Candel)

TRITON-2159 Port `/lib/sdc/` to linux