Skip to content

Commit

Permalink
Remove unused sd_client config from control service (#3668)
Browse files Browse the repository at this point in the history
The control service does not use the `sd_client` option, as it does not use SCIOND (c.f. #3652, "routing is done directly on top of the path database, instead of going through SCIOND").

Also removes the old `EnableQUICTest` flag, that isn't used.
  • Loading branch information
matzf authored Feb 17, 2020
1 parent 1ab6949 commit bc4afda
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 30 deletions.
3 changes: 0 additions & 3 deletions acceptance/topo_cs_reload/testdata/cs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ Connection = "cs1-ff00_0_110-1.beacon.db"

[metrics]
Prometheus = "242.253.100.2:30453"

[sd_client]
Address = "242.253.100.3:30255"
27 changes: 11 additions & 16 deletions go/cs/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,17 @@ var _ config.Config = (*Config)(nil)

// Config is the beacon server configuration.
type Config struct {
General env.General
Features env.Features
Logging env.Logging
Metrics env.Metrics
Tracing env.Tracing
QUIC env.QUIC `toml:"quic"`
SCIOND env.SCIONDClient `toml:"sd_client"`
TrustDB truststorage.TrustDBConf
BeaconDB beaconstorage.BeaconDBConf
BS BSConfig
CS CSConfig
PS PSConfig
EnableQUICTest bool
General env.General
Features env.Features
Logging env.Logging
Metrics env.Metrics
Tracing env.Tracing
QUIC env.QUIC `toml:"quic"`
TrustDB truststorage.TrustDBConf
BeaconDB beaconstorage.BeaconDBConf
BS BSConfig
CS CSConfig
PS PSConfig
}

// InitDefaults initializes the default values for all parts of the config.
Expand All @@ -103,7 +101,6 @@ func (cfg *Config) InitDefaults() {
&cfg.Logging,
&cfg.Metrics,
&cfg.Tracing,
&cfg.SCIOND,
&cfg.TrustDB,
&cfg.BeaconDB,
&cfg.BS,
Expand All @@ -119,7 +116,6 @@ func (cfg *Config) Validate() error {
&cfg.Features,
&cfg.Logging,
&cfg.Metrics,
&cfg.SCIOND,
&cfg.TrustDB,
&cfg.BeaconDB,
&cfg.BS,
Expand All @@ -137,7 +133,6 @@ func (cfg *Config) Sample(dst io.Writer, path config.Path, _ config.CtxMap) {
&cfg.Metrics,
&cfg.Tracing,
&cfg.QUIC,
&cfg.SCIOND,
&cfg.TrustDB,
&cfg.BeaconDB,
&cfg.BS,
Expand Down
7 changes: 0 additions & 7 deletions go/lib/env/testdata/cs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
# reconnects.
ReconnectToDispatcher = true

[sd_client]
# Sciond path. It defaults to sciond.DefaultSCIONDPath.
Path = "/run/shm/sciond/1-ff00_0_110.sock"

# Timeout for trying to connect to sciond. (default 20s)
Timeout = "20s"

[logging]
[logging.file]
# Location of the logging file.
Expand Down
4 changes: 0 additions & 4 deletions python/topology/go.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def generate_control_service(self):
CS_CONFIG_NAME), toml.dumps(bs_conf))

def _build_control_service_conf(self, topo_id, ia, base, name, infra_elem):
sciond = "[%s]:%d" % (sciond_ip(self.args.docker, topo_id, self.args.networks), SD_API_PORT)
config_dir = '/share/conf' if self.args.docker else os.path.join(
base, name)
raw_entry = {
Expand All @@ -132,9 +131,6 @@ def _build_control_service_conf(self, topo_id, ia, base, name, infra_elem):
'tracing': self._tracing_entry(),
'metrics': self._metrics_entry(name, infra_elem, CS_PROM_PORT),
'quic': self._quic_conf_entry(CS_QUIC_PORT, self.args.svcfrac, infra_elem),
'sd_client': {
'address': sciond,
},
'cs': {
'LeafReissueLeadTime': "6h",
'IssuerReissueLeadTime': "3d",
Expand Down

0 comments on commit bc4afda

Please sign in to comment.