コード例 #1
0
 def __init__(self):
     self.nova_credentials = get_nova_credentials_v2()
     self.cinder_credentials = get_cinder_credentials()
     self.neutron_credentials = get_neutron_credentials()
     self.keystone_credentials = get_keystone_credentials()
     self.novaclient = nova_Client(**self.nova_credentials)
     self.cinderclient = cinder_Client(**self.cinder_credentials)
     self.neutronclient = neutron_Client(**self.neutron_credentials)
     self.keystoneclient = keystone_Client(**self.keystone_credentials)
     glance_endpoint = self.keystone_get_endpoint('image')
     self.glanceclient = glance_Client(glance_endpoint, token=self.keystoneclient.auth_token)
コード例 #2
0
 def __init__(self):
     self.nova_credentials = get_nova_credentials_v2()
     self.cinder_credentials = get_cinder_credentials()
     self.neutron_credentials = get_neutron_credentials()
     self.keystone_credentials = get_keystone_credentials()
     self.novaclient = nova_Client(**self.nova_credentials)
     self.cinderclient = cinder_Client(**self.cinder_credentials)
     self.neutronclient = neutron_Client(**self.neutron_credentials)
     self.keystoneclient = keystone_Client(**self.keystone_credentials)
     glance_endpoint = self.keystone_get_endpoint('image')
     self.glanceclient = glance_Client(glance_endpoint,
                                       token=self.keystoneclient.auth_token)
コード例 #3
0
 def __init__(self):
     self.nova_credentials = get_nova_credentials_v2()
     self.cinder_credentials = get_cinder_credentials()
     self.novaclient = nova_Client(**self.nova_credentials)
     self.cinderclient = cinder_Client(**self.cinder_credentials)
コード例 #4
0
 def __init__(self):
     self.nova_credentials = get_nova_credentials_v2()
     self.novaclient = nova_Client(**self.nova_credentials)