TRITON-2160: Need a way to provide node.config for Linux CNs

Details

Issue Type:New Feature
Priority:4 - Normal
Status:Resolved
Created at:2020-08-25T15:00:03.873Z
Updated at:2022-08-10T00:18:37.881Z

People

Created by:Pedro P. Candel
Reported by:Pedro P. Candel
Assigned to:Pedro P. Candel

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2020-09-01T19:55:59.490Z)

Fix Versions

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

Related Issues

Related Links

Labels

linuxcn

Description

In order to provide Triton's DataCenter configuration details to a given Linux CN, we need a file called node.config traditionally located at /var/tmp/node.config/node.config for SmartOS CN.

This file is part of the global zone tools we can update across the whole DC setup using sdcadm experimental update-gz-tools.

Then, the file is used by tools like /lib/sdc/config.sh to provide context information required by the different Triton components regarding the whole DC setup, like SAPI address, VMAPI, CNAPI info for agents, ...

There's a default value for this file contents located at /opt/smartdc/config/node.config for SmartOS CNs. For Linux CNs, following current conventions, the file should be at /usr/triton/config/node.config.

As a first take, we'll try to provide this file through booter, given it's already available into the assets zone so, it shouldn't be too painful.

Comments

Comment by Jira Bot
Created at 2020-09-01T18:57:30.083Z

sdcadm commit b1617678c8619fa1bc58dcbd000d085dd2da7bad (branch master, by Pedro Palazón Candel)

TRITON-2160 Need a way to provide node.config for Linux CNs (#73)

Make the change effective for existing dhcpd zones.


Comment by Jira Bot
Created at 2020-09-01T19:54:41.420Z

sdc-booter commit 4d6136d7204525fc0c811dab22b921cd51e42692 (branch master, by Pedro Palazón Candel)

TRITON-2160 Need a way to provide node.config for Linux CNs (#21)


Comment by Pedro P. Candel
Created at 2020-09-01T19:55:59.514Z

Still need to merge linuxcn branch of sdc-headnode. Otherwise, this is done.


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

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

TRITON-2160 Added node.config file to /usr/triton/config (it comes from PXE boot)