Skip to content

Conversation

kormat
Copy link
Contributor

@kormat kormat commented Oct 26, 2015

The generated directory structure looks like this:

gen/
    ISD1/
        AD10/
            bs1-10-1/       # Configuration for bs1-10-1 element
                ad.conf
                path_policy.conf
                supervisord.conf
                topology.conf
                certs/      # Certs for AD1-10
                    ISD1-V0.crt
                    ISD1-AD10-V0.crt
                keys/
                    ad-sig.key  # Signing key for AD1-10
            common/    # Common ad.conf and topology.conf

Each element has its own fully independant config directory, with copies
of the AD's configs/certs/keys, and a supervisord.conf that lists only
the element. This allows easy deployment of an element on a machine.

There's a common/ subdir at the AD level, for use by sciond and anything
else that needs access to AD-wide config.

Also:

  

@kormat
Copy link
Contributor Author

kormat commented Oct 26, 2015

Still needs unit tests for lib.main, working on them now.

@kormat
Copy link
Contributor Author

kormat commented Oct 26, 2015

lib.main unit tests added.

@@ -51,7 +48,7 @@
SCIONParseError,
SCIONServiceLookupError,
)
from lib.log import init_logging, log_exception
from lib.main import main_wrapper, main_default
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sort imports

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@pszal
Copy link
Contributor

pszal commented Oct 27, 2015

otherwise lgtm!

The generated directory structure looks like this:
gen/
    ISD1/
        AD10/
            bs1-10-1/       # Configuration for bs1-10-1 element
                ad.conf
                path_policy.conf
                supervisord.conf
                topology.conf
                certs/      # Certs for AD1-10
                    ISD1-V0.crt
                    ISD1-AD10-V0.crt
                keys/
                    ad-sig.key  # Signing key for AD1-10
            common/    # Common ad.conf and topology.conf

Each element has its own fully independant config directory, with copies
of the AD's configs/certs/keys, and a supervisord.conf that lists only
the element. This allows easy deployment of an element on a machine.

There's a common/ subdir at the AD level, for use by sciond and anything
else that needs access to AD-wide config.

Also:
- Make all servers only require a server id, and an optional config dir
  argument, on the command line.
- Unify main() for all servers.
- Improved cert chain request/reply logging
- Simplify Topology.get_own_config, and improve error handling.
kormat added a commit that referenced this pull request Oct 27, 2015
Generate per-element topology/configs.
@kormat kormat merged commit c92d89f into scionproto:master Oct 27, 2015
@kormat kormat deleted the topo_split_confs branch November 20, 2015 12:59
jcp19 added a commit to jcp19/scion that referenced this pull request Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants