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

Alvise Dorigo alvise.dorigo at pd.infn.it
Wed Feb 18 14:02:18 UTC 2015


Hi Jens,
If the correct one is oslo_utils (instead of oslo.utils) then the 
related package is not found:

[root at controller-02 ~]# tail /var/log/heat/heat-engine.log
[...]
2015-02-18 14:56:29.978 5282 CRITICAL heat [-] ImportError: No module 
named oslo_utils

[root at controller-02 ~]# rpm -qa|grep oslo
python-oslo-messaging-1.3.0.2-4.el6.noarch
python-oslo-config-1.2.1-1.el6.noarch
python-oslo-rootwrap-1.0.0-1.el6.noarch
[root at controller-02 ~]# grep oslo 
/usr/lib/heat/heat_keystoneclient_v2/client.py
from oslo.config import cfg
from oslo_utils import importutils
from oslo_log import log as logging


     Alvise


On 02/18/2015 02:15 PM, Dr. Jens Rosenboom wrote:
> 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