How to "Flame" for HOT generation templates
Hi,
I have mitaka openstack deployment, and I have traying to use "Flame" for generate template for heat. However I would find a simple guide for use API or how to use "Flame" correctly because after a lot of days I don't got to work and I think it's realted by authentication:
cat token-request.json
{
"auth": {
"identity": {
"methods": [
"password"
],
"password": {
"user": {
"domain": {
"name": "Default"
},
"name": "admin",
"password": "admin"
}
}
},
"scope": {
"project": {
"domain": {
"name": "Default"
},
"name": "admin"
}
}
}
}
export TOKEN=`curl -si -d @token-request.json -H "Content-type: application/json" http://controller01.srv.mitaka:35357/v3/auth/tokens | awk '/X-Subject-Token/ {print $2}'`
echo $TOKEN
gAAAAABZOlq3kvKqCos9EpQpRdkQVGup7EnWm7EdT2Osertj7qv-jk2eGkBqDUU7FiASCjewLr2WsA02BM6gklCueqZuLm9a-VD_dNrUG1qdN221FkyVGeP5D2Q9lEsHYExXusT-TVjXnp4K_oCIIrhryYqcHfSPChPJtsLz4R458rv0Qo7Go1E
flame --username admin --password admin --project admin --os-auth-token $TOKEN --auth_url http://controller02.srv.mitaka:35357/v3
OUTPUT
Traceback (most recent call last):
File "/usr/bin/flame", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/flameclient/cmd.py", line 106, in main
insecure=args.insecure)
File "/usr/lib/python2.7/site-packages/flameclient/client.py", line 34, in __init__
**kwargs)
File "/usr/lib/python2.7/site-packages/flameclient/flame.py", line 117, in __init__
auth_token)
File "/usr/lib/python2.7/site-packages/flameclient/flame.py", line 138, in _setup_managers
self.keystone.authenticate()
File "/usr/lib/python2.7/site-packages/flameclient/managers.py", line 50, in authenticate
self.client().authenticate()
File "/usr/lib/python2.7/site-packages/flameclient/managers.py", line 65, in client
token=self.auth_token)
File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 166, in __init__
self.authenticate()
File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 94, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 584, in authenticate
resp = self.get_raw_token_from_identity_service(**kwargs)
File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 210, in get_raw_token_from_identity_service
_("Authorization Failed: %s") % e)
keystoneauth1.exceptions.auth.AuthorizationFailure: Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-8188a7f7-2b08-49f3-9d23-dbb9414fac9d)
I don't know what's the procedure for correct authentication for generate some heat template.
Thank you