Roll Screen Development - PowerPoint PPT Presentation

Loading...

PPT – Roll Screen Development PowerPoint presentation | free to view - id: 1111d-OWNlY



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

Roll Screen Development

Description:

... CVS Rocks distribution # cvs -d:pserver:anonymous_at_cvs.rocksclusters.org:/home/cvs ... Prerequisites from rocks cvs repository. roll/bin/ roll/base/src/screens ... – PowerPoint PPT presentation

Number of Views:117
Avg rating:3.0/5.0
Slides: 20
Provided by: nadyawi
Category:
Tags: cvs | development | roll | screen

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: Roll Screen Development


1
Roll Screen Development
  • Debugging assistance for building Rocks Rolls
    with screens
  • OSGC, May 2008
  • Nadya Williams nadya_at_oci.uzh.ch
  • University of Zurich

2
Very Brief Rolls Overview
  • Rolls provide for a cluster customization
  • Rolls reliably install and configure a software
    on a cluster frontend
  • Extend/modify stock OS
  • Add third party packages
  • Interaction during install only via screens
  • Fully tested before release

3
Building Rolls Screen
4
Screens Functions
  • Collect user input before roll installation
  • Verify user input and forward it to the rocks
    installer
  • Depends on what a roll developer puts in!

5
Screens Pros and Cons
  • Laconic form
  • Provides help
  • Verify input correctness
  • Easy and fast to use
  • Limited space
  • Dont assume user can type
  • Cant foresee all site details
  • Screens are available only during cluster install

6
Prepare for the roll build
  • Check out CVS Rocks distribution
  • cvs -dpserveranonymous_at_cvs.rocksclusters.org/
    home/cvs/CVSROOT login
  • cvs -dpserveranonymous_at_cvs.rocksclusters.org/
    home/cvs/CVSROOT checkout -r ROCKS_VERSION
  • Change to the top-level rolls directory
  • cd rocks/src/roll
  • Create new roll directory
  • bin/make-roll-dir.py -n YourRollName -v
    YourRollVersion
  • ls YourRollName
  • graphs/ Makefile nodes/ src/ version.mk
  • Create your roll

7
Add your Screen
  • Prerequisites from rocks cvs repository
  • roll/bin/
  • roll/base/src/screens
  • Your basic roll structure is ready
  • Skeleton xml files, makefiles

1. Add screen xml file to nodes/
2. Add javascript
3. Add screen to the graph
8
screen-myroll.xml file
9
Screen XML Language
  • Screen contains
  • Title
  • Your title description
  • code
  • Specify javascript file
  • variable
  • Simple syntax. Supports multiple variables.
  • Defines info about variable appearance on the
    screen
  • Defines info that goes to app_globals table

10
Screen attributes
  • name
  • Format Service_Component
  • Service and Component are columns names in the
    app_globals database table.
  • Use Info for Service
  • Info_GfarmMetaServer
  • value
  • Format same as name
  • default
  • Sets the value of this variable
  • pine.forrest.edu
  • label
  • Sets the form label
  • type
  • String, menu, ipv4-address
  • size
  • Sets the size of the screen field
  • help
  • Sets the explanation for the variable
  • validate
  • Sets the javascript validation function
  • Use the same name as in myroll.js javascript file
  • check_GFmetaserver

11
Add screen to the graph
  • In graphs/default/myroll.xml
  • add ordering
  • add edges

12
File myroll.js
  • Contains screen variable verification
  • One function per variable
  • Can use existing code from other rolls
  • Copy desired file from otherroll/include/javascrip
    t/ to myroll/include/javascript/
  • For examples see rolls
  • base
  • gama

13
Debugging Rolls Screen
14
Screen html files
  • Create screen html files
  • export PATHPATHpwd/rocks/src/roll/bin
  • cd myroll/
  • make-screen-val.py -x screen-myroll.xml
    myroll
  • Make-screen-val.py actions
  • Uses your javascript
  • Creates myroll/screenval/ and all files under it
  • View html files
  • cd screenval/
  • firefox file////myroll/screenval/rocks.
    html
  • Note will not work with Safari

15
View your Screen
16
Try your Screen
17
What can you test
  • Test input fields one by one
  • alter the default value and press validate
  • Test your javascript
  • If dont see expected behavior, check your
    javascript
  • Test, test, test
  • while ( errors )
  • recreate screenval/ with make-screen-val.py
  • reopen rocks.html
  • fix another error in your javascript
  • Lets see this in action

18
When Things Go Wrong
  • Problem with javascript syntax
  • One of javascript files is absent
  • Names mismatch
  • Function is not returning value

19
Thank you!
Questions ?
About PowerShow.com