BSD · FreeBSD · FreeBSD 10.0 · Juno · Keystone · OpenStack · OpenStack installation guide · OpenStack on FreeBSD

Installing OpenStack-Keystone (Juno) on FreeBSD 10.0

Install FreeBSD 10.0 on a machine with partitioning as per your requirements.

Install support packages

pkg install python git wget mariadb55-server mariadb55-client  libxslt
wget --no-check-certificate

Edit /etc/rc.conf and add the following line


Edit /var/db/mysql/my.cnf and add the following lines

collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8

Start MariaDB service

service mysql-server start

Change the root password for MariaDB

mysqladmin password new_password

Create Database for Keystone

mysql -u root  -p
MariaDB [(none)]> CREATE DATABASE keystone;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'keystone_dbpass';
MariaDB [(none)]> quit

Keystone Installation and Configuration

Install the Keystone service and configure

git clone
cd keystone/
python install
pip install pbr
pip install MySQL-python

Rename the sample files

cp -r etc/ /etc/keystone
cd /etc/keystone
mv keystone.conf.sample keystone.conf
mv logging.conf.sample logging.conf

Edit /etc/keystone/keystone.conf and edit the following lines

connection = mysql://keystone:keystone_dbpass@

Sync the Keystone database

keystone-manage db_sync

Run Keystone service in the background

nohup keystone-all &

Create admin user, admin tenant, admin role and service tenant. Also add admin user to admin tenant and admin role.

keystone --os-token ADMIN --os-endpoint user-list
keystone --os-token ADMIN --os-endpoint tenant-create --name=admin
keystone --os-token ADMIN --os-endpoint tenant-create --name=service --description="Service Tenant"
keystone --os-token ADMIN --os-endpoint user-create --name=admin --tenant=admin --pass=ADMIN
keystone --os-token ADMIN --os-endpoint role-create --name=admin
keystone --os-token ADMIN --os-endpoint user-role-add --user=admin --tenant=admin --role=admin

Create keystone service

keystone service-create --name=keystone --type=identity --description="Keystone Identity Service"

Create keystone endpoint

keystone --os-token ADMIN --os-endpoint endpoint-create --service=keystone --publicurl= --internalurl= --adminurl=

Test the keystone setup

keystone --os-auth-url --os-username admin --os-password ADMIN --os-tenant-name admin token-get
keystone --os-auth-url --os-username admin --os-password ADMIN --os-tenant-name admin user-list


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s