[Fiware-lab-federation-nodes] Some thoughts about service Openstack HEAT

José Ignacio Carretero joseignacio.carretero at fiware.org
Mon Mar 19 08:57:30 CET 2018


Dear all,

Recently (Cristian and me) we've been digging into HEATservice and it's 
problems in FIWARE Lab. The HEAT version studied was Liberty --- and the 
installation page is: 
https://docs.openstack.org/liberty/config-reference/content/orchestration-configuring-api.html

We were not able to make it work yet using that installation document.

When configured that way, I get an error from keystone like this one:

{"error": {"message": "object of type 'NoneType' has no len()", "code": 
400, "title": "Bad Request"}}

So, I tryed to follow what heat sends to Keystone using "strace" --- The 
command is like this one: *strace -p 8953 -f -e trace=network -s 100000*

So, watching the traces written by strace, I see this query:
   sendto(12, "POST /v3/auth/tokens HTTP/1.1\r\nHost: 
cloud.lab.fiware.org:4730\r\nContent-Length: 212\r\nAccept-Encoding: 
gzip, deflate\r\nAccept: application/json\r\nUser-Agent: 
python-keystoneclient\r\nConnection: keep-alive\r\nContent-Type: 
application/json\r\n\r\n{\"auth\": {\"scope\": {\"domain\": {\"name\": 
\"heat\"}}, \"identity\": {\"password\": {\"user\": {\"domain\": 
{\"name\": \"heat\"}, \"password\": \"XXXXXXXX\", \"name\": 
\"heat_domain_admin_spain2\"}}, \"methods\": [\"password\"]}}}", 448, 0, 
NULL, 0) = 448

That is the query which gives me the error shown above, I've done it by 
hand several times. I don't know the reason yet. --- So, the way we made 
heat work in Spain2 node is avoiding V3 identification with Keystone. 
That means no domains involved. Thus, in heat.conf:

[DEFAULT]
.........
#### --- All these parameters commented ---
#heat_stack_user_role=heat_stack_user
#heat_stack_user_role=heat_stack_user
#stack_user_domain_id=<None>
#stack_user_domain_name=<None>
#stack_domain_admin_password=<None>

[keystone_authtoken]
auth_uri = http://cloud.lab.fiware.org:4730/v2.0
auth_version=v2.0
auth_url = http://cloud.lab.fiware.org:4731
identity_uri = http://cloud.lab.fiware.org:4730
admin_tenant_name = service
admin_user = heat-spain2
admin_password = whatever

Any thoughts to improve this are welcomed.

-- 
−−−
José Ignacio Carretero 	
	
FIWARE Cloud and Platform Expert
FIWARE Foundation 	
	FIWARE Foundation
Franklinstrasse 13A
10587 Berlin
email: joseignacio.carretero at fiware.org 
<mailto:joseignacio.carretero at fiware.org>
www: http://fiware.org
twitter: @jicarreterogu @FIWARE
skype: jicarretero 	
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-federation-nodes/attachments/20180319/d449e172/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Foundation-31B.png
Type: image/png
Size: 251283 bytes
Desc: not available
URL: <https://lists.fiware.org/private/fiware-lab-federation-nodes/attachments/20180319/d449e172/attachment-0001.png>


More information about the Fiware-lab-federation-nodes mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy