320 likes | 444 Views
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
E N D
Intermediate Topics Solutions to Common ProblemsGetting Help Advanced Topics
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/ManageCustomImagesInstaGENI • … or combine the two approaches
Inter-aggregate Connectivity Different experiments have different needs, chose based on your experiment!
Rack Differences ExoGENI, InstaGENI, ProtoGENI are they different and how do I choose? ExoGENI, InstaGENI: GENI racks developed by different teams ProtoGENI: Pre-existing testbeds that are GENI enabled, InstaGENI is based on ProtoGENI software The important thing is your experiment, so you should always start by designing your experiment and don’t worry about the aggregate.
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?
Acting against known aggregates Query for existing slice, members, slivers … $omnilistslices $ omnilistslicemembersSLICENAME $ omnilistslivers SLICENAME Omni/Portal report sliver creation/deletion to Clearinghouse. --useSliceAggregatesqueries against aggregates known to have resources in your slice $readyToLoginSLICENAME --useSliceAggregates $ omnideletesliver SLICENAME --useSliceAggregates Hands-On Clearinghouse info is only advisory! Query aggregates for authoritative info http://trac.gpolab.bbn.com/gcf/wiki/HowTo/UseCHAPIInOmni
Add a member to existing slivers 1) Add member to slice $omniaddslicemember SLICENAME USERNAME 2) Add slice member’s accounts to existing slivers $ omni-V 3 poaSLICE geni_update_users --useSliceAggregates –-useSliceMembers Alternatively, the Linuxversion has a script to do the above two steps $ addMemberToSliceAndSliversmyslice username Demo Only works on InstaGENI/ProtoGENI http://trac.gpolab.bbn.com/gcf/wiki/HowTo/UseCHAPIInOmni
Advanced Topics Solutions to Common ProblemsGetting Help Solutions to Common Problems
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
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
Common Problems Problem: Resources disappeared Possible 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
Expiration and renewal slice expiration time ≤ project expiration time each resource expiration time ≤ slice expiration time each resource expiration time ≤ aggregate’s max expiration project slice resource resource (optional) project expiration time resource resource expiration time slice expiration time now In general, to extend the lifetime of your resource reservation, you must renew the slice and allresources
Slice and Sliver Expiration $ omnirenewslice 01-31-14 # renew each sliver individually $ omnirenewsliver –a gpo-igmyslice 01-31-14 $ omnirenewsliver –a renci-egmyslice 01-31-14 $ omnirenewsliver –a missouri-igmyslice 01-31-14 # OR renew all known slivers for “as long as possible” $ omni-V 3 renew myslice 01-31-14 -–useSliceAggregates--alap Extend slice/resource expirations Hands-On
Common Problems Problem: Can’t login to a node Possible 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: • Check the status of the sliver • Try having a collaborator login • Look for loaded keys sudo cat ~other_user_path/.ssh/authorized_keys • Ask them to use ‘-v’ option ssh –v foo@bar.example.net
Clean up now! Try this now: $ omnideletesliver SLICENAME --useSliceAggregates project resource experimenter aggregate slice
Advanced Topics Solutions to Common ProblemsGetting Help Getting Help
Have a question? Answer is help@geni.net which is an email list which only goes to members of the GPO including… Vic Thomas Niky Riga Sarah Edwards (However, the archive of the list is public)
Ways to Get Help • Sign Up for : geni-users@googlegroups.com • Use #geniIRC chatroom • Go over HowTo pages http://groups.geni.net/geni/wiki/GENIExperimenter/GetHelp
General debug advice • 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 • Contact geni-users@googlegroups.comfor help • Register for resource mailing lists
Finding other resources • GENI wiki • Pages for Instructors and Experimenters http://groups.geni.net/geni/wiki
“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
Ways to Learn More Sign up for announce@geni.net 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
http://tinyurl.com/GEC19-Feedback Thank you for attending! Please fill out the survey
Are you going to Instrumentation and Measurement with GEMINI on Tuesday at 11am ? • Pick up a slip. • Create a slice called: gems<YOUR INITIALS> • Go to Portal to reserve the specified RSpec at the Specified aggregate
Projects Project Projects organize research in GENI Projects contain both peopleand their experiments A project is led by a single responsible individual: the projectlead Lead Members Slice
Project Membership example Projects have 1 Lead and any number of Admins, Members, and Auditors Expiration Typical Class Typical Research Project http://groups.geni.net/geni/wiki/GENIConcepts#Project
Populating a Project • Member-initiated Each experimenter asks to join a project, approval needed • Typical for Research projects • Admin-initiated Project Lead/Admin bulk-adds experimenters • Typical for Classrooms or Tutorials
Working with multiple members in a slice Members of all slices in a project: • Project Leads (Professor) • Project Admins (TAs, Graders) Other can be added manually Professor Slice Admin Research Asst Post-Doc Slice Member Slice Lead http://groups.geni.net/geni/wiki/GENIConcepts#Slice
Slice Access Being a member of a slice means you can act on a slice: • Add resources • Check status • Delete resources • Renew resources With any tool!
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