Giter VIP home page Giter VIP logo

jacks-context's Introduction

jacks-context

A script to automatically generate a context for passing into Jacks, including both constraints and canvas options.

Requires

Manifest

config.json -- Sample configuration file jacks-context.py -- The script itself

Usage

Make sure that you create a geni-lib context before running the generation script.

Run it as follows:

jacks-context.py [-h] [--config CONFIG] [--output OUTPUT] [--basic]
                        site [site ...]
  • -h help message
  • --config points to the configuration file (optional)
  • --output points to a file to dump results (defaults to stdout)
  • --basic mode ignores types and options set as advanced in the configuration file.
  • site is a geni-lib nickname for an IG aggregate (ex: ig-utah)

jacks-context's People

Contributors

tcmitchell avatar duerig avatar hussamnasir avatar

Stargazers

Aaron Helsinger avatar

Watchers

 avatar James Cloos avatar  avatar  avatar Aaron Helsinger avatar

jacks-context's Issues

remove hardcoded aggregates

geni-lib has been updated to pull aggregate list from the Clearing house. Thus hardcoding aggregates is no longer needed.
The pull request
Updated to work with the latest geni-lib #22
proposes a fix for this issue.

jacks-context.py throws exception when no passphrase present

Changing Line 45 to key_passphrase=False resolves the issue.

nasir@thirdday:~/jacks-context$ ./portal.sh
Private key passphrase: Traceback (most recent call last):
File "jacks-context.py", line 45, in
context = geni.util.loadContext(key_passphrase=True)
File "/usr/local/lib/python2.7/dist-packages/geni/util.py", line 266, in loadContext
key_passphrase = getpass.getpass("Private key passphrase: ")
File "/usr/lib/python2.7/getpass.py", line 71, in unix_getpass
passwd = _raw_input(prompt, stream, input=input)
File "/usr/lib/python2.7/getpass.py", line 133, in _raw_input
line = input.readline()
KeyboardInterrupt

Reduce memory use during context generation

All advertisement RSpecs are instantiated as geni-lib objects and then processed as a collection. This is memory intensive and can no longer be run on a VM with 1GB of RAM. It should be possible to instantiate each advertisement, run it through the processing pipeline, and then release it. This would greatly reduce runtime memory consumption.

This would require that the steps in the processing pipeline keep state as they process advertisements. These are currently functions that do not store state because they do not need to.

Stitching constraints for hairpin connections missing

When using Al2S for GENI Stitching, Hairpin connections do not work . Jacks should disallow these
Hairpin connections - These are L2 connections between racks via the AL2S where in the racks involved. appear to be both connected to the same switch and port probably because there is a Regional involved that is invisible to GENI.

"import config" not required in jacks-context.py

Running ./portal.sh throws this error. Commenting out the "import config" line - line 13 resolved the issue
:~/jacks-context$ ./portal.sh
Traceback (most recent call last):
File "jacks-context.py", line 13, in
import config
ImportError: No module named config

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.