Ask Your Question
0

How to access Devstack keystone service from host machine after installation? [closed]

asked 2013-06-11 01:28:11 -0500

Sudheesh gravatar image

I have installed Oracle VM Virtual Box Manager in Windows and then installed ubuntu-13.04-server-i386 in to one of the VMs I created. Then I cloned devstack into the VM and installed the dev stack. git clone https://github.com/openstack-dev/devstack.git and cd devstack && ./stack.sh.

I want to know.

1) What is the keystone URL to which I can post after cloning latest Devstack?

2) If I need to access the URLs from outside VM (from the host winows machine) - do I need to change any configuration?

3) Whats the command to create a tenant?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Sudheesh
close date 2013-08-27 03:02:49.105789

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-06-11 08:44:27 -0500

Sagar Ratnakara Nikam gravatar image

updated 2013-06-11 09:10:48 -0500

Here are the answers

1) keystone URL is http://DEVSTACK-MACHINE-IP:5000/v2.0/

2) In the localrc, add this entry HOST_IP=IP OF DEVSTACK-MACHINE.

With this change, the rest endpoints will be based on IP instead of localhost

3) You can create a tenant by using horizon UI. Login using the user "admin" and password set by you either in localrc or while running stack.sh

If you want to create using Keystone CLI, then do the following

cd devstack

source openrc admin admin

keystone tenant-create

To know what are the exact parameters to pass, you can use "help" as mentioned below

sagar@sagar-eclipse:~/devstack$ keystone help tenant-create

usage: keystone tenant-create --name <tenant-name> [--description <tenant-description>] [--enabled <true|false>]

Create new tenant

Optional arguments: --name <tenant-name> New tenant name (must be unique) --description <tenant-description> Description of new tenant (default is none) --enabled <true|false> Initial tenant enabled status (default true)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-06-11 01:28:11 -0500

Seen: 3,059 times

Last updated: Jun 11 '13