getting started with your own experiment

32
Sponsored by the National Science Foundation Getting Started With Your Own Experiment

Upload: hasad

Post on 24-Feb-2016

39 views

Category:

Documents


0 download

DESCRIPTION

Getting Started With Your Own Experiment. Intermediate Topics Solutions to Common Problems Getting Help. Advanced Topics. Reproducible Experiments. Two approaches: Use existing images with install scripts http:// groups.geni.net / geni /wiki/ HowTo / WriteInstallScript - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation

Getting Started With Your Own Experiment

Page 2: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation

Intermediate Topics

Solutions to Common Problems

Getting Help

Advanced Topics

Page 3: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 3GEC19 – March 17, 2014

Reproducible Experiments

• Two approaches:– Use existing images with install scripts

http://groups.geni.net/geni/wiki/HowTo/WriteInstallScript– Use custom images or snapshots

• Image creation – ExoGENI provides a sandbox for image creation

• Snapshot images– InstaGENI provides standard images which are easy to snapshot

Snapshot image: http://groups.geni.net/geni/wiki/HowTo/ManageCustomImagesIns

taGENI

• … or combine the two approaches

Page 4: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 4GEC19 – March 17, 2014

Inter-aggregate Connectivity

Different experiments have different needs, chose based on your experiment!

Page 5: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 6GEC19 – March 17, 2014

Rack Differences

ExoGENI, InstaGENI, ProtoGENI are they different and how do I choose?

The important thing is your experiment, so you should always start by designing your experiment

and don’t worry about the aggregate.

ExoGENI, InstaGENI: GENI racks developed by different teams

ProtoGENI: Pre-existing testbeds that are GENI enabled, InstaGENI is based on ProtoGENI software

Page 6: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 7GEC19 – March 17, 2014

Designing your experiment: Things to consider

• Do I need access to bare metal hosts?

• What are my networking needs?

• What tools do I want to use?

• What platform am I familiar with?

Page 7: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 8GEC19 – March 17, 2014

Acting against known aggregatesQuery for existing slice, members, slivers …$ omni listslices$ omni listslicemembers SLICENAME$ omni listslivers SLICENAME

Omni/Portal report sliver creation/deletion to Clearinghouse.--useSliceAggregates queries against aggregates known to have resources in your slice$ readyToLogin SLICENAME --useSliceAggregates$ omni deletesliver SLICENAME --useSliceAggregates

http://trac.gpolab.bbn.com/gcf/wiki/HowTo/UseCHAPIInOmni

Hands-On

Clearinghouse info is only advisory!Query aggregates for authoritative info

Page 8: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 9GEC19 – March 17, 2014

Add a member to existing slivers1) Add member to slice$ omni addslicemember SLICENAME USERNAME2) Add slice member’s accounts to existing slivers$ omni -V 3 poa SLICE geni_update_users

--useSliceAggregates –-useSliceMembers

Alternatively, the Linux version has a script to do the above two steps$ addMemberToSliceAndSlivers myslice username

http://trac.gpolab.bbn.com/gcf/wiki/HowTo/UseCHAPIInOmni

Only works on InstaGENI/ProtoGENI

Demo

Page 9: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation

Advanced Topics

Solutions to Common Problems

Getting Help

Solutions to Common Problems

Page 10: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 11GEC19 – March 17, 2014

Common Problems

Problem: Slice did not come up (“not green”)Possible causes:

– Did not wait long enough– Problem with RSpec

Debug strategy:– Check slice/sliver status– Use rspeclint on your rspecs

http://www.protogeni.net/wiki/RSpecDebugging

Page 11: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 12GEC19 – March 17, 2014

Three ways to get SliverStatus

• Flack– “green” is good– Use “Get Status” button to refresh status

• Omni– Use readyToLogin

• Portal– On slice page, use “Get Status” or “Get All”

buttons Demo

Demo

Page 12: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 13GEC19 – March 17, 2014

Common Problems

Problem: Resources disappearedPossible causes:

– Slice expired– Resources (aka slivers) expired

Debug strategy:– Check slice/sliver status– Reserve resources again if expired – Don’t rely on nodes for storage

• Edit scripts locally and scp to your nodes• Copy data off machines

Page 13: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 14GEC19 – March 17, 2014

Expiration and renewal

slice expiration time ≤ project expiration timeeach resource expiration time ≤ slice expiration time

each resource expiration time ≤ aggregate’s max expiration

project

slice

resource(optional)

project expiration time

slice expiration time

resource expiration timenow

In general, to extend the lifetime of your resource reservation, you must renew the slice and all resources

resourceresource

Page 14: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 15GEC19 – March 17, 2014

Extend slice/resource expirations

Slice and Sliver Expiration

$ omni renewslice 01-31-14

# renew each sliver individually$ omni renewsliver –a gpo-ig myslice 01-31-14$ omni renewsliver –a renci-eg myslice 01-31-14$ omni renewsliver –a missouri-ig myslice 01-31-14

# OR renew all known slivers for “as long as possible”$ omni -V 3 renew myslice 01-31-14 -–useSliceAggregates --alap

Hands-On

Page 15: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 16GEC19 – March 17, 2014

Common ProblemsProblem: Can’t login to a nodePossible causes:

– Slice/sliver expired– Wrong username– Public key isn’t loaded, Private key is wrong or non-existing– Private key has wrong permissions (it should have 0600)– Technical issue with node

Debug strategy:1. Check the status of the sliver2. Try having a collaborator login

• Look for loaded keys sudo cat ~other_user_path/.ssh/authorized_keys

3. Ask them to use ‘-v’ optionssh –v [email protected]

Page 16: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 20GEC19 – March 17, 2014

Clean up now!

Try this now:$ omni deletesliver SLICENAME --useSliceAggregates

sliceproject

aggregateexperimenter

resource

Page 17: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation

Advanced Topics

Solutions to Common Problems

Getting Help Getting Help

Page 18: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 22GEC19 – March 17, 2014

Answer [email protected]

Have a question?

Sarah Edwards Niky Riga Vic Thomas

which is an email list which only goes to members of the GPO including…

(However, the archive of the list is public)

Page 19: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 23GEC19 – March 17, 2014

Ways to Get Help

• Sign Up for :[email protected]

• Use #geni IRC chatroom

• Go over HowTo pages

http://groups.geni.net/geni/wiki/GENIExperimenter/GetHelp

Page 20: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 24GEC19 – March 17, 2014

General debug advice

1. Gather as much information as you can– Be specific about what is not working

• Step-by-step run through usually helps– Include what you see (screenshots, omni output errors)– Always include:

• type of account you are using (eg portal)• the tool you are using (eg Flack, omni, portal)• your slice name or URN • aggregates you are using• a detailed description of what's wrong including any error messages

2. Contact [email protected] for help

3. Register for resource mailing lists

Page 21: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 25GEC19 – March 17, 2014

Finding other resources

• GENI wiki– Pages for Instructors and Experimenters

http://groups.geni.net/geni/wiki

Page 22: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 26GEC19 – March 17, 2014

“How To” pages

• Listed under the “Experimenters” section

• Each “How To” is a short descriptions of how to do various tasks

• New entries being added all the time

Page 23: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 27GEC19 – March 17, 2014

Ways to Learn More

Sign up for [email protected] to be notified about:• Train-the-TA at the start of each semester

(online-only)• GENI Summer Camp

Sign up at: http://lists.geni.net/mailman/listinfo/geni-announce

Page 24: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 28GEC19 – March 17, 2014

http://tinyurl.com/GEC19-Feedback

Thank you for attending!

Please fill out the survey

Page 25: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 29GEC19 – March 17, 2014

Are you going to

Instrumentation and Measurement with GEMINI

on Tuesday at 11am ?

1. Pick up a slip.2. Create a slice called: gems<YOUR INITIALS> 3. Go to Portal to reserve the specified RSpec at

the Specified aggregate

Page 26: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation

Working With Collaborators

Page 27: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 31GEC19 – March 17, 2014

Projects

Projects organize research in GENI

Projects contain both people and their experimentsA project is led by a single responsible individual:

the project lead

ProjectLead

Members

Slice

Page 28: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 32GEC19 – March 17, 2014

Project Membership exampleProjects have 1 Lead and any number of Admins, Members, and Auditors

http://groups.geni.net/geni/wiki/GENIConcepts#Project

Typical Class

Expiration

Typical Research Project

Page 29: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 33GEC19 – March 17, 2014

Populating a Project

1. Member-initiated Each experimenter asks to join a project, approval needed

• Typical for Research projects

2. Admin-initiated Project Lead/Admin bulk-adds experimenters

• Typical for Classrooms or Tutorials

Page 30: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 35GEC19 – March 17, 2014

Working with multiple members in a slice

Research AsstSlice Lead Post-Doc

Slice MemberProfessor

Slice Admin

Members of all slices in a project:

• Project Leads (Professor)• Project Admins (TAs, Graders)Other can be added manually

http://groups.geni.net/geni/wiki/GENIConcepts#Slice

Page 31: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 36GEC19 – March 17, 2014

Slice AccessBeing a member of a slice means you can act on a slice:

– Add resources– Check status– Delete resources– Renew resources

With any tool!

Page 32: Getting Started With  Your Own Experiment

Sponsored by the National Science Foundation 37GEC19 – March 17, 2014

Slice Access: Logging in to resources

Slice membership does not guarantee ability to login to resources!

To ensure access in collaborator’s resources:Option 1: Make resource reservation from Portal

• fix the membership of the slice• Use the add resource button in the portal

Option 2: Make resource reservation using omni• fix the membership of the slice• Call createsliver

Option 3: Ensure common public key is loaded • distribute common public key to collaborators• ask collaborators to upload it in their profile• use corresponding private key to login