[Openstack-operators] How to force Heat to use v2.0 Keystone

Dr. Jens Rosenboom j.rosenboom at x-ion.de
Wed Feb 18 13:15:21 UTC 2015


Am 18/02/15 um 10:27 schrieb Alvise Dorigo:
> I had an error in the repository clone.
> Now I've successfully installed the plugin (python setup.py install).
>
> The backend is correctly configured in the heat.conf:
>
> [root at controller-02 ~]# grep keystone_backend /etc/heat/heat.conf
> #keystone_backend=heat.common.heat_keystoneclient.KeystoneClientV3
> keystone_backend=heat.engine.plugins.heat_keystoneclient_v2.client.KeystoneClientV2
>
>
> as descibed in the README.md
>
> But heat engine dies just after start:
>
> [root at controller-02 ~]# tail /var/log/heat/heat-engine.log
> 2015-02-18 10:23:30.513 27308 WARNING heat.common.config [-] The
> "instance_user" option in heat.conf is deprecated and will be removed in
> the Juno release.
> 2015-02-18 10:23:31.018 27308 ERROR heat.common.plugin_loader [-] Failed
> to import module heat.engine.plugins.heat_keystoneclient_v2.client
> 2015-02-18 10:23:31.019 27308 CRITICAL heat [-] ImportError: No module
> named utils
>
> Any idea ?

This looks to be related to the recent namespace changes, can you try 
this patch?

diff --git 
a/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py 
b/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py
index 783231b..ad128ff 100644
--- a/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py
+++ b/contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py
@@ -15,7 +15,7 @@

  from keystoneclient.v2_0 import client as kc
  from oslo.config import cfg
-from oslo.utils import importutils
+from oslo_utils import importutils
  from oslo_log import log as logging

  from heat.common import exception





More information about the OpenStack-operators mailing list