Add new capability to API for a node to report its current runlevel.
authorStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 18 Feb 2009 23:45:26 +0000 (23:45 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Wed, 18 Feb 2009 23:45:26 +0000 (23:45 +0000)
commit2f5da28a4da55d86f5240ce0c616107a4444ab74
tree3bcc64100d5e8449cea87135e474687ee2c38372
parenta040c4569c5d3aa73aa4166472ef256c8437be46
Add new capability to API for a node to report its current runlevel.
Additional motivation is available in message to devel@lists.planet-lab.org:
http://lists.planet-lab.org/pipermail/devel/2009-February/003283.html

Briefly:
this patch differentiates between boot_states (declared by user) and
run_levels (reported by node) a user would specify that the node should be
in 'boot' or 'reinstall', and the node will report what state it is in,
i.e, it is installing, or it has failed to boot, or it is in boot.

because updates are continuous, other service routines can get involved to notify
admins, users, or automated scripts when the values are out-of-sync.
PLC/Methods/ReportRunlevel.py [new file with mode: 0644]
PLC/Methods/__init__.py
PLC/Nodes.py
migrations/v4-to-v5/migrate.sql
planetlab5.sql