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