Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Wiki / Kb221

Kb221

Emulab FAQ: Testbed Operations: How do I set a policy to restrict swapins during crunch times?

Emulab FAQ: Testbed Operations: How do I set a policy to restrict swapins during crunch times?

We announce that for a specified timeframe leading up to a crunch deadline such as NSDI, only authorized people who have identified themselves as working on that deadline will be able to swap in experiments.

We create a project, named DEADLINE, and add these people to the group. They don't run experiments in the project, just their membership in it allows them to work normally.

To install the global policy that will restrict swapins to members of a particular list of groups:

	  mysql> delete from global_policies;
	  mysql> insert into global_policies values
	  mysql>       ('membership', 'emulab-ops,testbed,DEADLINE', 'eq', 0);

Notice that the essential local groups as well as the crunch group are included.

It is important to delete the current policy first, since my hack is too braindead to deal with multiple rows.

The second argument is a list of pids, up to 128 characters. I'll fix that later, maybe. The last two args do not really matter; they are ignore, but they have to be something.

When it is time to remove the restriction, just execute the delete statement.


We also intend that the DEADLINE users also use the per-project mailing list to negotiate conflicts. If we need to administer the list (address bounces, etc) go here (red dot).

https://www.emulab.net/showproject.php3?pid=DEADLINE

Down on Project Mailing List line you will see "(admin access"). Click that and you are logged in to the list with admin rights.