Version 6 (modified by 13 years ago) (diff) | ,
---|
Federating With DETER
This discusses how to connect a DETER or Emulab-based testbed to DETERLab using fedd, ABAC and their tools.
Introduction
This page takes a user through the process of adding federation components to an existing DETER and assigning user credentials that will allow users to access that DETER through the fedd interfaces, and then to use those same interfaces to access federated resources. We will also talk about how to allow federated users to use the local resources.
This document will discuss the relevant fedd components, what they do, and what they need in order to do those jobs. We also discuss the tools an experimenter uses to create and monitor federated experiments. Then we briefly discuss how to get the ABAC credentials necessary to access the federated environment.
Fedd really is two entities, an Access Controler that mediates access to federated resources and provides standard interfaces for allocating them, and an Experiment Controller that acts as a credential store and coordinates requests across multiple access controllers. The discussion of the Deter Federation Architecture has more to say about these entities, but this is enough to get started. DETERLab runs an experiment controller that can be reached at https://users.isi.deterlab.net:23235 and new federation users can use that experiment controller, but when setting up and administering a federated testbed it can be very helpful to install and configure an experiment controller locally.
Here is a block diagram of a user making a request for a federated experiment. We will show how to configure the credentials that users and the experiment controller pass to access controllers, how to configure the policies at the access controlers to allow access and map federated users into local users. We will also configure the experiment controller to find the access controlers and the access controllers to allocate resources (start DETER experiments) on behalf of local users.
Both the policy and credentials are ABAC credentials, but we provide tools to configure these for the common cases. Specifically we explain how to get a new testbed endorsed as a federation partner and how to allow federated partners access to local resources. Tools for finer-grained access control are in development, though ambitious users can use the raw ABAC tools to specify policy.
Road Map
The rest of this document explains how to do the following:
- Install the federation software
- Configure an experiment controller that translates local DETER projects and user identities into ABAC
- Configure an access controller to map those ABAC credentials back into local users and to allocate resources on their behalf
- How to get credentials endorsed from DETERLab to gain access to federated resources and use them.
Installation
There are detailed instructions for installation of fedd and the required software. As we prepare for the fedd 4.0 release, it is best to install from git.
Before downloading and installing the code, there are network connectivity requirements to consider. The experiment controller must be reachable by user tools and must be able to reach and be reached by access controllers. These are SSL protected TCP connections, though the port is configurable. Additionally, the some experimental nodes in the testbeds must be able to reach each other.
Configuring The Experiment Controller
The experiment controller needs a directory in which to store credentials and configuration information. This includes SSL credentials, so it should be protected. You can create a user to run the experiment controller if necessary.
This directory will contain the following configuration files
- fedd.conf - the main configuration file
- fedd.pem - a self-signed X.509 certificate identifying the controller
- exp_access_db - a human-readable database containing the mapping from experimenter identity to ABAC credentials (this is converted into ABAC)
- exp_map_db - a mapping of symbolic names to access controller URLs
- fedkit.tgz - the federation software run withing the experiment. Running make in the fedkit directory creates it.
In addition the following empty directories must be created for the controller to store experiment data in
- abac - the compiled ABAC credentials
- certs - experiment credentials
- repo - software that is distributed to access controlers for inclusion in federated experiments
- userconf - user configuration information for experiments (exported accounts...)
We recommend /usr/local/etc/fedd/experiment
as the experiment controller's home directory.
fedd.conf
Here is an annotated fedd.conf
file that describes the various parameters necessary to run an experiment controller:
[DEFAULT] # This section is primarily to set internal variables for customization. A # variable is inserted by %(variable)s . NB: that s after the parens is # literal. # The Experiment Controllers home directory. Used in susbtitutions. base: /usr/local/etc/fedd # Space in /var for the Experiment controller. Used in susbtitutions. var: /var/db/fedd # The DNS name the Experiment controller runs on. Used in susbtitutions. hostname:users.isi.deterlab.net [globals] # Real EC configuration # The certificate file that identifies this controller. cert_file: %(base)s/fedd.pem # The ports and protocols this node is supporting. This says listen on poer # 23235 for SOAP connections and 23232 for XMLRPC connections. services: 23235,23232:xmlrpc [experiment_control] # How to convert tcl (ns2) experiments into topdl. Generally the safest way to # do this is to contact DETER's EC using the ns2topdl_uri setting below. If # the testbed is a DETER testbed, you may be able to do the conversion locally # using the tcl_splitter parameter below. Pick one. #tcl_splitter: /usr/testbed/opsdir/lib/ns2ir/parse.tcl ns2topdl_uri: http://users.isi.deterlab.net:23235 # Staging area for software being sent to federated experiments. This line # stores it under /var/db/fedd (from the var variable above. repodir: %(var)s/repo # Contact URL for retrieving software. repo_url: https://%(hostname)s:23235 # Contact URL for retrieving experiment configuration data store_url: https://%(hostname)s:23235 # File in which the dynamic experiment configuration data is stored. You do # not need to create this file, nor manage it. synch_store: %(base)s/store.dat # ABAC configuration. No other value for auth_type is currently valid. auth_type = abac # Location of the ABAC state auth_dir = %(base)s/abac # Time to cache status information, in seconds info_cache = 300 # Logging level, in traditional syslog values. log_level: debug # Debugging parameters. If leave_tempfiles is true, temporaries are not # deleted. If create_debug is true, the local testbed is not accessed (no # resources are allocated.) #leave_tmpfiles: true #create_debug: false # Internal experiment controller state. Completely managed internally experiment_state: %(base)s/fedd.state # List of testbed names to access URLs mapdb: %(base)s/exp_map_db # Software to install on each experiment node to form federated experiments. # The first parameter is the directory in which to install it and the second # the tra file to unpack. These are the correct values for the fedkit # distributed with fedd. fedkit: /usr %(base)s/fedkit.tgz
This file is attached to this page for download and editing.
Attachments (5)
-
fed.png (81.5 KB) - added by 13 years ago.
Federation Block Diagram
-
experiment.conf (2.6 KB) - added by 13 years ago.
experiment controller configuration file
-
exp_map_db (143 bytes) - added by 13 years ago.
Testbed map file.
-
local.xml (1.2 KB) - added by 13 years ago.
Two-node experiment
-
access.conf (2.2 KB) - added by 12 years ago.
Access controller configutation
Download all attachments as: .zip