CyberKeeda In Social Media
Showing posts with label Openstack. Show all posts
Showing posts with label Openstack. Show all posts

OpenStack Installation on Ubuntu 16.04 with DevStack

There are many ways you can create or manage Virtual Machines for your numerous lab environments.
I can go for traditional approach ether VMware Workstation or Virtual Box but hold on, i thought why don't i go for openstack images.

This guide will help you to install Openstack Standalone installation on a Ubuntu 16.04 Box.

Hope you have a good internet speed too, take my words it will work like a charm.

So first of all you must have a Linux Box with Ubuntu 16.04 OS within it and predefined scripts within DevStack will do the hard stuffs for you.

Create a user " stack " and give it sudo privileges .

useradd -s /bin/bash -d /opt/stack -m stack

echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
So once you are done with the above steps, you are ready for the DevStack installation scripts.

Switch to user stack from terminal.

su - stack
Now Download Devstack.

Since we are using internet directly, we gonna download the latest version on the go from git at all.
sudo apt-get install git -y || sudo yum install -y git
git clone
cd devstack

Once downloaded, switch to devstack directory and make some required configuration changes.

Copy local.conf file to devstack root directory
stack@Linux-Maniac:~/devstack$ cp /opt/stack/devstack/samples/local.conf /opt/stack/devstack

 Change multiple passwords to one or if you can remember, keep multiple passwords for various utilities too.

stack@Linux-Maniac:~/devstack$ vim local.conf
So i had the below mentioned changes, you can make it on the same fashion too.
# Minimal Contents

Once done, save the file and toggle back to the same devstack root directory and run the final script.

stack@Linux-Maniac:~/devstack$ ./ 
The entire process can take a time from 30 Min - 1 Hour or more depending upon you network internet speed.

at the end you can see  something like that.

Your IP will vary offcourse, you can now login to your default dashboard login page.

Refrnc : Openstack Officials 
Read more ...

The 'oslo_middleware.ssl' module usage is deprecated, please use oslo_middleware.http_proxy_to_wsgi instead

The problem was as simple as nothing but it really troubled me a lot, i have googled a lot so you don't have to.

I was trying to upload a centos image which was in qcow format, i processed everything but i don't know it gives a lot of errors while doing it.

Some of that I can see within my Horizon was

Horizon image upload failed - Danger error submitting form

Failed to list images

I'm new to Openstack but still got to know that GLANCE is responsible for the imaging part in Horizon.

Went through the log file of glance at tail -100f /var/log/glance/api.log

And found some lines error to connect at my ip with 9292 port, i somehow figured out it is relevant with the glance-api , tried to netstat the port but could not find anything.

Found solution from some website as start the glance services

glance-control all  status
 glance-control all  start

it might can help, but I was not that much lucky at all, some blog suggested me to run command as

# glance-api

The moment i run that command well some python error was there and it was 

The 'oslo_middleware.ssl' module usage is deprecated, please use oslo_middleware.http_proxy_to_wsgi instead

I searched more and more then accidentally found one of my installed oslo package contains bug that leads to the eroor


This specific version has this bug associated with it, you can overcome this by installing 

oslo.middleware-3.20 or more

I have downloaded this from internet and installed the python package using pip

# pip install oslo.middleware-3.23.1.tar.gz

Offcourse it has some dependency , but you can sort it out at your own iknow
Read more ...
Designed By Jackuna