[Openstack] Heat - Malformed endpoint URL

Zane Bitter zbitter at redhat.com
Thu Nov 21 12:57:40 UTC 2013


On 31/10/13 02:02, Martinx - ジェームズ wrote:
> Hello Stackers!   =)
>
> I'm following this doc:
>
> http://docs.openstack.org/havana/install-guide/install/apt/content/heat-install.html
>
>
> Commands ok:
>
>
> On heat server:
>
> heat-manage db_sync # OK
>
>
> On controller:
>
> keystone user-create --name=heat --pass=Heat_PAss
> --email=heat at yourdomain.com <mailto:heat at yourdomain.com> # OK
>
> keystone user-role-add --user=heat --tenant=service --role=admin # OK
>
> keystone service-create --name heat --type orchestration --description
> 'Heat Orchestration API' # OK
>
> keystone service-create --name heat-cfn --type cloudformation
> --description 'Heat CloudFormation API' # OK
>
>
> Heat:
>
> # Apparently runs Okay
> keystone endpoint-create --region sp-east-1 --service-id
> $heat_service_id --publicurl
> 'http://heat-srv-1.yourdomain.com:8004/v1/%\(tenant_id\)s' --adminurl
> 'http://heat-srv-1.yourdomain.com:8004/v1/%\(tenant_id\)s' --internalurl
> 'http://heat-srv-1.yourdomain.com:8004/v1/%\(tenant_id\)s'
>
>
> Heat-CFN:
>
> # Apparently runs Okay
> keystone endpoint-create --region sp-east-1 --service-id
> $heat_cfn_service_id --publicurl
> 'http://heat-srv-1.yourdomain.com:8000/v1' --adminurl
> 'http://heat-srv-1.yourdomain.com:8000/v1' --internalurl
> 'http://heat-srv-1.yourdomain.com:8000/v1'
>
>
> But, nova-compute.log immediately starts to show:
>
> ---
> 2013-10-30 22:43:13.513 21440 ERROR nova.network.neutronv2 [-] Neutron
> client authentication failed: {"error": {"message": "Malformed endpoint
> URL (http://heat-srv-1.yourdomain.com:8004/v1/%\\(tenant_id\\)s), see
> ERROR log for details.", "code": 500, "title": "Internal Server Error"}}
> ---
>
> The file /var/log/heat/heat.log shows:
>
> ---
> 2013-10-29 13:11:47.346 1496 INFO heat.api [-] Starting Heat ReST API on
> 0.0.0.0:8004 <http://0.0.0.0:8004>
> ---
>
> Any tips?!

Yes, you have added single quotes around the url that were not present 
in the docs:

 > 'http://heat-srv-1.yourdomain.com:8004/v1/%\(tenant_id\)s'

Without the quotes, the '(' and ')' characters need to be escaped with 
backslashes, but with quotes the backslashes are interpreted literally. 
So any of these forms should work:

 > http://heat-srv-1.yourdomain.com:8004/v1/%\(tenant_id\)s
 > 'http://heat-srv-1.yourdomain.com:8004/v1/%(tenant_id)s'
 > "http://heat-srv-1.yourdomain.com:8004/v1/%(tenant_id)s"

cheers,
Zane.




More information about the Openstack mailing list