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

Alvise Dorigo alvise.dorigo at pd.infn.it
Wed Feb 18 09:27:22 UTC 2015


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 ?

     Alvise

On 02/18/2015 09:06 AM, Alvise Dorigo wrote:
> Hi Chris,
> provided that I'm not a great expert of python, I tried to install it 
> without success:
>
> [root at controller-01 heat]# ls -l
> total 16
> drwxr-xr-x 2 root root 4096 Feb 18 09:00 heat_keystoneclient_v2
> -rw-r--r-- 1 root root  801 Feb 18 08:58 README.md
> -rw-r--r-- 1 root root  789 Feb 18 08:59 setup.cfg
> -rw-r--r-- 1 root root 1045 Feb 18 08:59 setup.py
> [root at controller-01 heat]# python ./setup.py install
> error in setup command: Error parsing /root/heat/setup.cfg: Exception: 
> Versioning for this project requires either an sdist tarball, or 
> access to an upstream git repository. Are you sure that git is installed?
> [root at controller-01 heat]# git --version
> git version 1.7.1
>
>
> Do you suggest to simply substitute the "stock" heat file with the new 
> one heat_keystoneclient_v2/client.py ?
>
> Is this, 
> /usr/lib/python2.6/site-packages/heat/common/heat_keystoneclient.py, 
> the stock file, isn't it ?
>
> thanks,
>
>     Alvise
>
>
> On 02/17/2015 07:46 PM, Chris Buccella wrote:
>> For Icehouse and Juno, you'll want to use the Keystone v2 plugin for 
>> heat:
>>
>> https://git.openstack.org/cgit/openstack/heat/tree/contrib/heat_keystoneclient_v2
>>
>>
>> -Chris
>>
>> On Tue, Feb 17, 2015 at 10:51 AM, Alvise Dorigo 
>> <alvise.dorigo at pd.infn.it <mailto:alvise.dorigo at pd.infn.it>> wrote:
>>
>>     Hi Christian; here the info you've requested:
>>
>>     [root at controller-01 ~]# grep auth_uri /etc/heat/heat.conf
>>     /etc/glance/glance-api.conf
>>     /etc/heat/heat.conf:# Allowed keystone endpoints for auth_uri
>>     when multi_cloud is
>>     /etc/heat/heat.conf:#allowed_auth_uris=
>>     /etc/heat/heat.conf:auth_uri =
>>     https://cloud-areapd-test.pd.infn.it:5000/v2.0
>>     /etc/heat/heat.conf:#auth_uri=http://127.0.0.1:5000/v2.0
>>     /etc/heat/heat.conf:# Allowed keystone endpoints for auth_uri
>>     when multi_cloud is
>>     /etc/heat/heat.conf:#allowed_auth_uris=
>>     /etc/heat/heat.conf:auth_uri =
>>     https://cloud-areapd-test.pd.infn.it:5000/v2.0
>>     /etc/heat/heat.conf:#auth_uri=<None>
>>     /etc/glance/glance-api.conf:auth_uri =
>>     https://cloud-areapd-test.pd.infn.it:35357/v2.0
>>
>>     is the problem in the TCP port mismatch ?
>>
>>         A.
>>
>>
>>     On 02/17/2015 04:38 PM, Christian Berendt wrote:
>>
>>         On 02/17/2015 04:11 PM, Alvise Dorigo wrote:
>>
>>             [dorigoa at lxadorigo ~]$ heat  -k stack-create -f
>>             test-stack.yml   -P
>>             "ImageID=cirros;NetID=$NET_ID" testStac
>>             ERROR: Property error : server1: image Authorization
>>             failed: SSL
>>             exception connecting to
>>             https://cloud-areapd-test.pd.infn.it:5000/v3/auth/tokens
>>
>>         What value do you have for the auth_uri parameter in the
>>         /etc/heat/heat.conf file? Same for the
>>         /etc/glance/glance-api.conf file.
>>
>>         Christian.
>>
>>         _______________________________________________
>>         OpenStack-operators mailing list
>>         OpenStack-operators at lists.openstack.org
>>         <mailto:OpenStack-operators at lists.openstack.org>
>>         http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>
>>
>>
>>     _______________________________________________
>>     OpenStack-operators mailing list
>>     OpenStack-operators at lists.openstack.org
>>     <mailto:OpenStack-operators at lists.openstack.org>
>>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>
>>
>
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150218/76a5e276/attachment.html>


More information about the OpenStack-operators mailing list