git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7a9ab6
)
Bare minimum to get NodeManager not throw exceptions
author
xavileon
<xleon@ac.upc.edu>
Fri, 21 Oct 2011 22:18:38 +0000
(18:18 -0400)
committer
xavileon
<xleon@ac.upc.edu>
Fri, 21 Oct 2011 22:18:38 +0000
(18:18 -0400)
sliver_lxc.py
patch
|
blob
|
history
diff --git
a/sliver_lxc.py
b/sliver_lxc.py
index
a93a215
..
91f1b06
100644
(file)
--- a/
sliver_lxc.py
+++ b/
sliver_lxc.py
@@
-3,6
+3,7
@@
"""LXC slivers"""
import accounts
"""LXC slivers"""
import accounts
+import logger
class Sliver_LXC(accounts.Account):
"""This class wraps LXC commands"""
class Sliver_LXC(accounts.Account):
"""This class wraps LXC commands"""
@@
-13,7
+14,9
@@
class Sliver_LXC(accounts.Account):
# type = 'sliver.LXC'
def __init__(self, rec):
# type = 'sliver.LXC'
def __init__(self, rec):
- print "TODO __init__"
+ print "TODO WIP __init__"
+ name=rec['name']
+ logger.verbose ('sliver_lxc: %s init'%name)
@staticmethod
def create(name, rec = None):
@staticmethod
def create(name, rec = None):
@@
-23,6
+26,11
@@
class Sliver_LXC(accounts.Account):
def destroy(name):
print "TODO destroy"
def destroy(name):
print "TODO destroy"
+ def configure(self, rec):
+ ''' Called by accounts.ensure_created -> start -> _acct.configure '''
+ print "TODO configure"
+ name=rec['name']
+
def start(self, delay=0):
print "TODO start"
def start(self, delay=0):
print "TODO start"
@@
-31,5
+39,6
@@
class Sliver_LXC(accounts.Account):
def is_running(self):
print "TODO is_running"
def is_running(self):
print "TODO is_running"
+ return True