How to get all endpoints within ironic code? [closed]

asked 2014-09-29 02:26:58 -0600

teju gravatar image

We can get keystone auth token within ironic code as below :

TOKEN = task.context.auth_token

Is there a way to get endpoints from the above auth token or context objects?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by teju
close date 2014-09-30 03:12:59.463202

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-30 03:12:33 -0600

teju gravatar image

We can get endpoints as below :

from ironic.common import keystone

cinder_endpoint = keystone.get_service_url(service_type='volume', endpoint_type='admin')

keystone_endpoint = keystone.get_service_url(service_type='identity', endpoint_type='admin')

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-29 02:26:58 -0600

Seen: 101 times

Last updated: Sep 30 '14