Esempio n. 1
0
 def setUp(self):
     super(TestCompute, self).setUp()
     self.flavor = pick_flavor(self.demo_cloud.list_flavors())
     if self.flavor is None:
         self.assertFalse('no sensible flavor available')
     self.image = pick_image(self.demo_cloud.list_images())
     if self.image is None:
         self.assertFalse('no sensible image available')
     self.server_name = self.getUniqueString()
Esempio n. 2
0
 def setUp(self):
     super(TestCompute, self).setUp()
     self.flavor = pick_flavor(self.user_cloud.list_flavors())
     if self.flavor is None:
         self.assertFalse('no sensible flavor available')
     self.image = pick_image(self.user_cloud.list_images())
     if self.image is None:
         self.assertFalse('no sensible image available')
     self.server_name = self.getUniqueString()
Esempio n. 3
0
 def setUp(self):
     super(TestCompute, self).setUp()
     self.cloud = openstack_cloud(cloud='devstack')
     self.nova = self.cloud.nova_client
     self.flavor = pick_flavor(self.nova.flavors.list())
     if self.flavor is None:
         self.assertFalse('no sensible flavor available')
     self.image = pick_image(self.nova.images.list())
     if self.image is None:
         self.assertFalse('no sensible image available')
Esempio n. 4
0
 def setUp(self):
     super(TestCompute, self).setUp()
     self.cloud = openstack_cloud(cloud='devstack')
     self.nova = self.cloud.nova_client
     self.flavor = pick_flavor(self.nova.flavors.list())
     if self.flavor is None:
         self.assertFalse('no sensible flavor available')
     self.image = pick_image(self.nova.images.list())
     if self.image is None:
         self.assertFalse('no sensible image available')
Esempio n. 5
0
 def setUp(self):
     super(TestCompute, self).setUp()
     # Shell should have OS-* envvars from openrc, typically loaded by job
     self.cloud = openstack_cloud()
     self.nova = self.cloud.nova_client
     self.flavor = pick_flavor(self.nova.flavors.list())
     if self.flavor is None:
         self.assertFalse("no sensible flavor available")
     self.image = pick_image(self.nova.images.list())
     if self.image is None:
         self.assertFalse("no sensible image available")
Esempio n. 6
0
 def setUp(self):
     super(TestCompute, self).setUp()
     # Shell should have OS-* envvars from openrc, typically loaded by job
     self.cloud = openstack_cloud()
     self.nova = self.cloud.nova_client
     self.flavor = pick_flavor(self.nova.flavors.list())
     if self.flavor is None:
         self.assertFalse('no sensible flavor available')
     self.image = pick_image(self.nova.images.list())
     if self.image is None:
         self.assertFalse('no sensible image available')
Esempio n. 7
0
    def setUp(self):
        super(TestFloatingIP, self).setUp()
        self.cloud = openstack_cloud(cloud='devstack')
        self.nova = self.cloud.nova_client
        if self.cloud.has_service('network'):
            self.neutron = self.cloud.neutron_client
        self.flavor = pick_flavor(self.nova.flavors.list())
        if self.flavor is None:
            self.assertFalse('no sensible flavor available')
        self.image = pick_image(self.nova.images.list())
        if self.image is None:
            self.assertFalse('no sensible image available')

        self.addCleanup(self._cleanup_network)
        self.addCleanup(self._cleanup_servers)
Esempio n. 8
0
    def setUp(self):
        super(TestFloatingIP, self).setUp()
        # Shell should have OS-* envvars from openrc, typically loaded by job
        self.cloud = openstack_cloud()
        self.nova = self.cloud.nova_client
        if self.cloud.has_service('network'):
            self.neutron = self.cloud.neutron_client
        self.flavor = pick_flavor(self.nova.flavors.list())
        if self.flavor is None:
            self.assertFalse('no sensible flavor available')
        self.image = pick_image(self.nova.images.list())
        if self.image is None:
            self.assertFalse('no sensible image available')

        self.addCleanup(self._cleanup_network)
        self.addCleanup(self._cleanup_servers)
Esempio n. 9
0
    def setUp(self):
        super(TestFloatingIP, self).setUp()
        # Shell should have OS-* envvars from openrc, typically loaded by job
        self.cloud = openstack_cloud()
        self.nova = self.cloud.nova_client
        if self.cloud.has_service('network'):
            self.neutron = self.cloud.neutron_client
        self.flavor = pick_flavor(self.nova.flavors.list())
        if self.flavor is None:
            self.assertFalse('no sensible flavor available')
        self.image = pick_image(self.nova.images.list())
        if self.image is None:
            self.assertFalse('no sensible image available')

        self.addCleanup(self._cleanup_network)
        self.addCleanup(self._cleanup_servers)
Esempio n. 10
0
 def setUp(self):
     super(TestInventory, self).setUp()
     # Shell should have OS-* envvars from openrc, typically loaded by job
     self.cloud = openstack_cloud()
     self.inventory = inventory.OpenStackInventory()
     self.server_name = 'test_inventory_server'
     self.nova = self.cloud.nova_client
     self.flavor = pick_flavor(self.nova.flavors.list())
     if self.flavor is None:
         self.assertTrue(False, 'no sensible flavor available')
     self.image = pick_image(self.nova.images.list())
     if self.image is None:
         self.assertTrue(False, 'no sensible image available')
     self.addCleanup(self._cleanup_servers)
     self.cloud.create_server(
         name=self.server_name, image=self.image, flavor=self.flavor,
         wait=True, auto_ip=True)
Esempio n. 11
0
 def setUp(self):
     super(TestInventory, self).setUp()
     # This needs to use an admin account, otherwise a public IP
     # is not allocated from devstack.
     self.inventory = inventory.OpenStackInventory()
     self.server_name = 'test_inventory_server'
     self.nova = self.operator_cloud.nova_client
     self.flavor = pick_flavor(self.nova.flavors.list())
     if self.flavor is None:
         self.assertTrue(False, 'no sensible flavor available')
     self.image = pick_image(self.nova.images.list())
     if self.image is None:
         self.assertTrue(False, 'no sensible image available')
     self.addCleanup(self._cleanup_servers)
     self.operator_cloud.create_server(
         name=self.server_name, image=self.image, flavor=self.flavor,
         wait=True, auto_ip=True)
Esempio n. 12
0
 def setUp(self):
     super(TestInventory, self).setUp()
     # This needs to use an admin account, otherwise a public IP
     # is not allocated from devstack.
     self.inventory = inventory.OpenStackInventory()
     self.server_name = 'test_inventory_server'
     self.nova = self.operator_cloud.nova_client
     self.flavor = pick_flavor(self.nova.flavors.list())
     if self.flavor is None:
         self.assertTrue(False, 'no sensible flavor available')
     self.image = pick_image(self.nova.images.list())
     if self.image is None:
         self.assertTrue(False, 'no sensible image available')
     self.addCleanup(self._cleanup_servers)
     self.operator_cloud.create_server(
         name=self.server_name, image=self.image, flavor=self.flavor,
         wait=True, auto_ip=True)
Esempio n. 13
0
    def setUp(self):
        super(TestFloatingIP, self).setUp()
        self.nova = self.demo_cloud.nova_client
        if self.demo_cloud.has_service('network'):
            self.neutron = self.demo_cloud.neutron_client
        self.flavor = pick_flavor(self.nova.flavors.list())
        if self.flavor is None:
            self.assertFalse('no sensible flavor available')
        self.image = pick_image(self.nova.images.list())
        if self.image is None:
            self.assertFalse('no sensible image available')

        # Generate a random name for these tests
        self.new_item_name = self.getUniqueString()

        self.addCleanup(self._cleanup_network)
        self.addCleanup(self._cleanup_servers)
Esempio n. 14
0
    def setUp(self):
        super(TestFloatingIP, self).setUp()
        self.nova = self.user_cloud.nova_client
        if self.user_cloud.has_service('network'):
            self.neutron = self.user_cloud.neutron_client
        self.flavor = pick_flavor(self.nova.flavors.list())
        if self.flavor is None:
            self.assertFalse('no sensible flavor available')
        self.image = pick_image(self.nova.images.list())
        if self.image is None:
            self.assertFalse('no sensible image available')

        # Generate a random name for these tests
        self.new_item_name = self.getUniqueString()

        self.addCleanup(self._cleanup_network)
        self.addCleanup(self._cleanup_servers)
Esempio n. 15
0
 def setUp(self):
     super(TestImage, self).setUp()
     self.cloud = openstack_cloud(cloud='devstack')
     self.image = pick_image(self.cloud.nova_client.images.list())
Esempio n. 16
0
 def setUp(self):
     super(TestCompute, self).setUp()
     # Shell should have OS-* envvars from openrc, typically loaded by job
     self.cloud = openstack_cloud()
     self.image = pick_image(self.cloud.nova_client.images.list())
 def setUp(self):
     super(TestImage, self).setUp()
     self.image = pick_image(self.demo_cloud.nova_client.images.list())
Esempio n. 18
0
 def setUp(self):
     super(TestImage, self).setUp()
     self.cloud = openstack_cloud(cloud='devstack')
     self.image = pick_image(self.cloud.nova_client.images.list())
Esempio n. 19
0
 def setUp(self):
     super(TestImage, self).setUp()
     self.image = pick_image(self.demo_cloud.nova_client.images.list())