Ask Your Question
0

i am trying to install openstack

asked 2017-07-06 04:53:05 -0500

ammad yousaf gravatar image

updated 2017-07-07 14:58:44 -0500

I am trying to install openstack on ubuntu 16.04 but i am facing some errors

I have tried these commands

echo "manual" > /etc/init/keystone.override apt-get -y install keystone python-openstackclient apache2 libapache2-mod-wsgi python-oauth2client

mysql -u root -p MariaDB [(none)]> create database keystone; MariaDB [(none)]> grant all privileges on keystone.* to keystone@'waheed' identified by 'Cisco786';

MariaDB [(none)]> grant all privileges on keystone.* to keystone@'%' identified by 'Cisco786';

flush privileges; exit

vi /etc/keystone/keystone.conf

line 13: uncomment and change to any Token

admin_token = admintoken
line 551: change ( MariaDB connection info )

connection = mysql+pymysql://keystone:Cisco786@20.20.20.122/keystone
line 1248: add Memcache server

[memcache] servers = 20.20.20.122:11211
line 1986: add

[token] provider = fernet
line 2012: uncomment

driver = memcache 


root@dlp:~# su -s /bin/bash keystone -c "keystone-manage db_sync"

initialize Fernet key

root@dlp:~# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone

root@dlp:~# vi /etc/apache2/apache2.conf
line 70: add own hostname

ServerName waheed.waheed root@dlp:~# vi /etc/apache2/sites-available/wsgi-keystone.conf
create new like follows

Listen 5000
Listen 35357

WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} WSGIProcessGroup keystone-public WSGIScriptAlias / /usr/bin/keystone-wsgi-public WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On = 2.4> ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/apache2/keystone.log CustomLog /var/log/apache2/keystone_access.log combined

<Directory /usr/bin>
    <IfVersion >= 2.4>
        Require all granted
    </IfVersion>
    <IfVersion < 2.4>
        Order allow,deny
        Allow from all
    </IfVersion>
</Directory>

WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP} WSGIProcessGroup keystone-admin WSGIScriptAlias / /usr/bin/keystone-wsgi-admin WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On = 2.4> ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/apache2/keystone.log CustomLog /var/log/apache2/keystone_access.log combined

<Directory /usr/bin>
    <IfVersion >= 2.4>
        Require all granted
    </IfVersion>
    <IfVersion < 2.4>
        Order allow,deny
        Allow from all
    </IfVersion>
</Directory>

root@dlp:~# a2ensite wsgi-keystone

Enabling site wsgi-keystone. To activate the new configuration, you need to run: service apache2 reload

root@dlp:~# rm -f /var/lib/keystone/keystone.db

root@dlp:~# systemctl restart apache2

now please focus here below commands

for further configuration i have to type these commands

root@dlp:~# export OS_TOKEN=admintoken

root@dlp:~# export OS_URL=http://10.0.0.30:35357/v3

root@dlp:~# export OS_IDENTITY_API_VERSION=3

root@dlp:~# openstack domain create --description "Default Domain" defau

lt

and its result must be like this

+-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Default Domain | | enabled | True | | id | 780b41cee03242da9ec0c73e1a76dc6e | | name | default | +-------------+----------------------------------+

but when i type these commands

root@waheed:/home/waheed# export OS_TOKEN=admintoken 
root@waheed:/home/waheed# export OS_URL=http://20.20.20.122:35357/v3
root@waheed:/home/waheed# openstack domain create --description "Default Domain" default

i am facing this error

An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-80fdf199-84fd-478c-b127-377157b664ac)

i am following these links

any solution for this please help me

thank you very much

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-07-08 06:21:40 -0500

gxgung gravatar image

Hello,

I suggest to use the official openstack guide for installing on Ubuntu. Here is the guide for Ocata (the latest live version): https://docs.openstack.org/ocata/install-guide-ubuntu/ (https://docs.openstack.org/ocata/inst...)

This is a link to Keystone: https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-install.html (https://docs.openstack.org/ocata/inst...)

However, I suggest going through the entire guide. It's tested multiple times and will work if you respect all indications. It helps doing it once at first to understand the inner components of Openstack. I tried it out on Ubuntu Server 16.04 LTS and had a great time.

Best Regards, gxgung

edit flag offensive delete link more
0

answered 2017-07-10 05:52:17 -0500

Deepa gravatar image

I dont see a command with option domain create in Openstack.I am using Ocata version .Just run Openstack help commands and see whether you can see domain create command

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2017-07-06 04:53:05 -0500

Seen: 110 times

Last updated: Jul 10 '17