As doctor functest CI runs failed in Apex installer, it indicates
that flavor is None. See http://artifacts.opnfv.org/logs/functest/lf-pod1/2018-01-21_05-30-00/doctor-notification.log
Change-Id: Ia7a7111a7c6b94864f2e12f30969fe6e411058af
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
self.get_ssh_key_from_installer()
self.get_controller_ips()
self.get_ssh_key_from_installer()
self.get_controller_ips()
self.set_apply_patches()
self.setup_stunnel()
self.set_apply_patches()
self.setup_stunnel()
+from doctor_tests.identity_auth import get_session
+from doctor_tests.os_clients import nova_client
+
@six.add_metaclass(abc.ABCMeta)
class BaseInstaller(object):
@six.add_metaclass(abc.ABCMeta)
class BaseInstaller(object):
@abc.abstractmethod
def cleanup(self):
pass
@abc.abstractmethod
def cleanup(self):
pass
+
+ def create_flavor(self):
+ self.nova = \
+ nova_client(self.conf.nova_version,
+ get_session())
+ flavors = {flavor.name: flavor for flavor in self.nova.flavors.list()}
+ if self.conf.flavor not in flavors:
+ self.nova.flavors.create(self.conf.flavor, 512, 1, 1)
from doctor_tests.common.utils import get_doctor_test_root_dir
from doctor_tests.common.utils import SSHClient
from doctor_tests.common.utils import get_doctor_test_root_dir
from doctor_tests.common.utils import SSHClient
-from doctor_tests.identity_auth import get_session
from doctor_tests.installer.base import BaseInstaller
from doctor_tests.installer.base import BaseInstaller
-from doctor_tests.os_clients import nova_client
class DaisyInstaller(BaseInstaller):
class DaisyInstaller(BaseInstaller):
% (host_ip, hostname))
return host_ip
% (host_ip, hostname))
return host_ip
- def create_flavor(self):
- self.nova = \
- nova_client(self.conf.nova_version,
- get_session())
- flavors = {flavor.name: flavor for flavor in self.nova.flavors.list()}
- if self.conf.flavor not in flavors:
- self.nova.flavors.create(self.conf.flavor, 512, 1, 1)
-
def setup_stunnel(self):
self.log.info('Setup ssh stunnel in controller nodes'
'in Daisy installer......')
def setup_stunnel(self):
self.log.info('Setup ssh stunnel in controller nodes'
'in Daisy installer......')