move out ironic exception from common import
It will raise import error if ironic service is disabled
when run scenario test. This patch move ironic exception
module imporing into the function which uses it.
Relate change: I1260cceb2821400eb42959cb701e40ae449dd452
Change-Id: Ic41b9bd87af15ef6a9bded56ed1066c428847309
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index 5895c37..1e7ddb1 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -19,7 +19,6 @@
import six
import subprocess
-from ironicclient import exc as ironic_exceptions
import netaddr
from neutronclient.common import exceptions as exc
from novaclient import exceptions as nova_exceptions
@@ -490,6 +489,8 @@
def wait_node(self, instance_id):
"""Waits for a node to be associated with instance_id."""
+ from ironicclient import exc as ironic_exceptions
+
def _get_node():
node = None
try: