diff --git a/IM/connectors/OpenStack.py b/IM/connectors/OpenStack.py index 282e7994..5589d07a 100644 --- a/IM/connectors/OpenStack.py +++ b/IM/connectors/OpenStack.py @@ -152,9 +152,12 @@ def get_driver(self, auth_data): protocol = self.cloud.protocol or "http" port = self.cloud.get_port() + path = self.cloud.path + if path in ["/", "/v3", "/v3/"]: + path = "" parameters = {"auth_version": self.DEFAULT_AUTH_VERSION, - "auth_url": protocol + "://" + self.cloud.server + ":" + str(port), + "auth_url": protocol + "://" + self.cloud.server + ":" + str(port) + path, "auth_token": None, "service_type": None, "service_name": None, diff --git a/IM/tosca/Tosca.py b/IM/tosca/Tosca.py index 2cdbc78c..7823aea8 100644 --- a/IM/tosca/Tosca.py +++ b/IM/tosca/Tosca.py @@ -795,6 +795,7 @@ def _gen_configure_from_interfaces(self, node, compute, interfaces): return None if not compute: Tosca.logger.warning("Node %s has not compute node to host in." % node.name) + return None variables = "" tasks = ""