5 from urlparse import urlparse
6 from sfa.util.sfalogging import logger
7 from sfa.util.config import Config
10 from sfa.openstack.client import GlanceClient, NovaClient, KeystoneClient
19 A simple native shell to a nova backend.
20 This class can receive all nova calls to the underlying testbed
23 # dont care about limiting calls yet
28 # use the 'capability' auth mechanism for higher performance when the PLC db is local
29 def __init__ ( self, config=None) :
33 # instantiate managers
34 self.auth_manager = KeystoneClient(config=config)
35 self.image_manager = GlanceClient(config=config)
36 self.nova_manager = NovaClient(config=config)
38 logger.debug('nova access - REST')
39 raise SfaNotImplemented('nova access - Rest')