Skip to content

activeshadow/phenix-apps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phenix-apps

Apps written to work with the latest version of phenix.

  • Accept stage as single argument.
  • Accept experiment JSON over STDIN.
  • Return updated experiment JSON over STDOUT.

Apps

Below are relevant notes for each phenix app available in this repo.

ot-sim

The ot-sim app aids in the generation of configuration files for OT-sim. The configuration options it provides can be found here.

protonuke

The protonuke app simply injects the /etc/default/protonuke file into each app host that sets the PROTONUKE_ARGS environment variable used by the protonuke systemd service to whatever the args metadata key is set to. For example, let's assume the app is configured as follows in the scenario file:

apiVersion: phenix.sandia.gov/v2
kind: Scenario
metadata:
  name: foobar
  annotations:
    topology: traffic-gen
spec:
  apps:
  - name: protonuke
    hosts:
    - hostname: client
      metadata:
        args: -http 192.168.1.254
    - hostname: server
      metadata:
        args: -serve -http

The result of this would be for the following files to be injected into the client and server nodes:

# injected into client node at /etc/default/protonuke
PROTONUKE_ARGS=-http 192.168.1.254
# injected into server node at /etc/default/protonuke
PROTONUKE_ARGS=-serve -http

This assumes the protonuke image available as a default image config is being used.

mirror

The mirror app configures cluster-wide packet mirroring for specific VLANs to a specific interface on a predefined node using GRE tunnels.

For example, let's assume the app is configured as follows in the scenario file:

apiVersion: phenix.sandia.gov/v2
kind: Scenario
metadata:
  name: foobar
  annotations:
    topology: traffic-gen
spec:
  apps:
  - name: mirror
    hosts:
    - hostname: monitor
      metadata:
        interface: IF0
        vlans:
        - EXP_1

Given the above configuration, each cluster host participating in the experiment except for the cluster host the monitor VM is scheduled on will create a GRE tunnel port in OVS to the cluster host the monitor VM is scheduled on. Each cluster host will also create an OVS mirror that includes taps from all VMs with an interface in the EXP_1 VLAN that are not routers or firewalls, using the GRE tunnel as the destination port for the mirrored traffic, except for the cluster host the monitor VM is scheduled on, which will instead use the tap of the IF0 interface for the monitor VM as the mirror destination.

NOTE: the mirror app is currently not namespace aware, and will fail miserably if two different experiments use the same name for a VM that mirrored traffic is to be sent to. This will be addressed in a future version of the app.

About

Apps written to work with the latest version of [phenix](https://github.com/sandia-minimega/phenix)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 67.4%
  • Mako 24.6%
  • Go 7.0%
  • Other 1.0%