Friday, March 14, 2014

Openstack Installation Step By step Using Ubuntu LTS 12.04 ( 40 Minutes approx.) 20 Easy Steps for Private Cloud Setup

Openstack Installation Step By step 
Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud Setup

Openstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps : 

Keywords : openstack,Ubuntu LTS 12.04,Openstack Nova,Openstack horizon,Openstack KeyStone,Openstack Mysql,Openstack Cinder.


//#text record  Hackerx-PC
//A.Prem Sasi Kumar
//premsasikumar@gmail.com
//installing openstack

#Lets ROCK >>>..!!!

//initial instruction for lab purpose
to make easy rememberence make sure that where ever u are asked the password give admin123 and uername as admin

Note : what ever fails leave that and note them in a notepad or gedit and continue to the next step
is any problem in doing just comment and this post is always on live. Happy to Help ..!!!
the next thing is to note is that there may be problem if you are not using the fresh ubuntu ...the MYSQL will lead to problems in all openstack applications keystone to all as there will be some errors on permission and other credential creations .. so after step 8 its better to remove MYSQL and reinstall it for our goodness.

Requirements   : ubuntu LTS 12.04  (64/32) / (desktop/server)
used here   : ubuntu LTS 12.04  (64/32) / (desktop)

Additional Tip : If you are not planing to do more just to test and check openstack go with 32bit LTS 12.04
Because by using this reduces your time as for 64bit more number of files will be downloaded
and installed in the system.

IN the Begining ...
Need a fresh installation of Ubuntu
hard disk size min : 150GB
2Gb we have used but 4Gb preferable
Know the basic details about your ip,dns,gateway and subnet mask


Optional things to do ...(for easy installation please avoid doing optional steps)
apt-get install openssh-server
//to run on remote system with help of ip    // login remotely to your rig via ssh
apt-get update -y
//to preform update on all packages
apt-get upgrade -y
//to preform upgrade on all opeartions


Getting Started ..
// after # and $ is the required command you should be executing

step 1:  change as root and get the required files shell(.sh) to proceed

open terminal window and then do the followning
$sudo su        
//it will ask for password to switch to power user

#apt-get -y install git
//will install tha git package it is required for cloning the set of packages on the network drive at the below given location

#git clone git://github.com/StackGeek/openstackgeek.git
//the files will be copied and placed under /home/cts02/open stack

step 2 : check whether the files have been copied to your system

root@cts02:/home/cts02# ls
a.out             Documents         Music          Pictures  Templates
config interface  Downloads         Open stack     Public    Videos
Desktop           examples.desktop  openstackgeek  sam.c     VirtualBox VMs
root@cts02:/home/cts02#

Step3 : change the directory of PWD to grizzzly where all the required shell files can be found

#cd openstackgeek/grizzly

root@cts02:/home/cts02/openstackgeek/grizzly# ls
flow.md                      openstack_loop.sh
images                       openstack_mysql.sh
openstack_cinder.sh          openstack_networking.sh
openstack_cleanup.sh         openstack_nova_compute.sh
openstack_drop_databases.sh  openstack_nova.sh
openstack_glance.sh          openstack_restart_nova.sh
openstack_grizzly.png        openstack_server_test.sh
openstack_horizon.sh         openstack_setup.sh
openstack_ipv6.sh            openstack_system_update.sh
openstack_keystone.sh        readme.md
root@cts02:/home/cts02/openstackgeek/grizzly#

Step 4: type the following press enter for staring configuration regarding interfaces
#./openstack_networking.sh
as :   root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_networking.sh

step 5 :  to configure the interfaces

Go and edit your /etc/network/interfaces file to look something like this: (copy only the things between the ** enclosed things)
******************************

# loopback
auto lo
iface lo inet loopback
iface lo inet6 loopback

# primary interface
auto eth0
iface eth0 inet static
  address 172.16.31.102
  netmask 255.255.224.0
  gateway 192.168.5.1
  dns-nameservers 192.168.5.1

# ipv6 configuration
iface eth0 inet6 auto

*******************************

root@cts02:/home/cts02/openstackgeek/grizzly# gedit /etc/network/interfaces

root@cts02:/home/cts02/openstackgeek/grizzly# cat /etc/network/interfaces
# loopback
auto lo
iface lo inet loopback
iface lo inet6 loopback

# primary interface
auto eth0
iface eth0 inet static
  address 172.16.31.102
  netmask 255.255.224.0
  gateway 192.168.5.1
  dns-nameservers 192.168.5.1

# ipv6 configuration
iface eth0 inet6 auto

root@cts02:/home/cts02/openstackgeek/grizzly#


//information regarding the interfaces file

# primary interface
auto eth0
iface eth0 inet static
  address 172.16.31.102   //ip of the system your are using   //labeled on the cpu
  netmask 255.255.224.0   // this will be the subnet mask that we will be using on our college
  gateway 192.168.5.1  // this is the ip address of the gateway and in our college cyberoam acts as a gateway so i have given the ip of cyberoam
  dns-nameservers 192.168.5.1   // this is the ip address of the dns and in our college cyberoam acts as a dns so i have given the ip of cyberoam



Step 6 : restart the network to make the change effect , it may some time report for dependency problem or any other problem just give and let it go and follow the other steps after this

/etc/init.d/networking restart
as :
root@cts02:/home/cts02/openstackgeek/grizzly# /etc/init.d/networking restart
 * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
 * Reconfiguring network interfaces...                                          RTNETLINK answers: File exists
Failed to bring up eth0.
                                                                         [ OK ]
root@cts02:/home/cts02/openstackgeek/grizzly#


step 7 : test the server    // test your rig for virtualization support

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_server_test.sh
Reading package lists... Done
Building dependency tree      
Reading state information... Done
cpu-checker is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
INFO: /dev/kvm exists
KVM acceleration can be used

#################################################################################################

Your CPU seems to support KVM extensions.  Run './openstack_system_update.sh' to continue setup.

#################################################################################################


step 8:preform the update operation

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_system_update.sh
#################################################################################################

System updated.  Now run './openstack_setup.sh' to run the system setup.

#################################################################################################

---------------------------------------------------------
Additional protection steps :
Mysql may cause problem sometimes if its not a fresh instal of ubuntu to try openstack
one such sample error is :
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

there are may other problems that can occur tooo

Mysql has the problem //
tried to solve the problem without uninstalling it but it caused more erors so i removed mysql completely by the code given below 


To remove mysql completely from your system Just type in terminal

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean


then installed mysql by the below command :

sudo apt-get install mysql-server 
//it will ask for password give admin123

then the process follows as ::///
what is done : 


--------------
clean openstack   // this is for if u have fresh install and got into setup and got error there in the sense use this 
----------------

root@cts06:/home/ctslab/openstackgeek/grizzly# ./openstack_cleanup.sh

______________________________________________________________________________

step 9 : before stepping into the next step of starting the system setup of the openstack we need some details
//to find the eth number

root@cts02:/home/cts02/openstackgeek/grizzly# ifconfig -a | grep eth
eth0      Link encap:Ethernet  HWaddr 10:78:d2:df:e9:6b
root@cts02:/home/cts02/openstackgeek/grizzly#

mine here says that its eth0 now start running the shell  setup file as follows

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_setup.sh

it will ne as follows ..

################################################################################################

Please refer to https://github.com/StackGeek/openstackgeek/blob/master/readme.md for setup help.

################################################################################################

Enter the device name for this rig's NIC (eth0, etc.) : eth0

#################################################################################################################

The IP address on this rig's NIC is probably 172.16.31.102.  If that's wrong, ctrl-c and edit this script.

#################################################################################################################


Is this the controller node? y

Enter a password to be used for the OpenStack services to talk to MySQL: admin123

Enter the email address for service accounts: premsasikumar1991@gmail.com    // just provide your email id

Enter a short name to use for your default region: india     // give anthing as country name   home  colg anything else

Is this a multi node install? y // if its multinode install press yer basically prefer yes because most case we use more than one system
 // after typing y and press enter then it completes and then the next step is mysql..
 //the below are some screen lines that were shown
The following URL will be used for configuring the other rigs in this cluster.  Copy it.

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

##########################################################################################

Setup configuration complete.  Continue the setup by doing a './openstack_mysql.sh'.

##########################################################################################

Step 10 :   setup installs MySQL and RabbitMQ
// The install script will install Rabbit and MySQL.
//During the MySQL install you will be prompted for the MySQL password you entered earlier to set a password for the MySQL root user.
//You'll be prompted again toward the end of the script when it creates the databases.

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_mysql.sh
Reading package lists... Done
Building dependency tree      
// it goes on ..
asks for mysql password :
##############################################################################################
Creating OpenStack databases and users.  Use the same password you gave the MySQL setup.
##############################################################################################

Enter password:

#######################################################################################

Run './openstack_keystone.sh' now.

#######################################################################################


Step 11 : Keystone is used by OpenStack to provide central authentication across all installed services. Start the install of Keystone by typing the following:

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_keystone.sh

Reading package lists... Done
Building dependency tree      

it goes on... as finalise

Generating RSA private key, 1024 bit long modulus
..++++++
..................++++++
e is 65537 (0x10001)
Generating RSA private key, 1024 bit long modulus
..............++++++
..........++++++
e is 65537 (0x10001)
Using configuration from /etc/keystone/ssl/certs/openssl.conf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName           :PRINTABLE:'US'
stateOrProvinceName   :PRINTABLE:'Unset'
localityName          :PRINTABLE:'Unset'
organizationName      :PRINTABLE:'Unset'
commonName            :PRINTABLE:'www.example.com'
Certificate is to be certified until Mar 13 11:41:49 2015 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
keystone start/running, process 10493
keystone stop/waiting
keystone start/running, process 10531
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+--------------------------------------------+
|   Property  |                   Value                    |
+-------------+--------------------------------------------+
|   adminurl  | http://172.16.31.102:8774/v2/$(tenant_id)s |
|      id     |      bbde6f3a8c25421b9925a705dd796658      |
| internalurl | http://172.16.31.102:8774/v2/$(tenant_id)s |
|  publicurl  | http://172.16.31.102:8774/v2/$(tenant_id)s |
|    region   |                   india                    |
|  service_id |      9fbf7d7eff804639be889f3cb34e6319      |
+-------------+--------------------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminurl  |   http://172.16.31.102:9292/v2   |
|      id     | 922b624890894ff6aa797483c9ae4431 |
| internalurl |   http://172.16.31.102:9292/v2   |
|  publicurl  |   http://172.16.31.102:9292/v2   |
|    region   |              india               |
|  service_id | 6f196b9a166b408e80d06ce160d436c5 |
+-------------+----------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+--------------------------------------------+
|   Property  |                   Value                    |
+-------------+--------------------------------------------+
|   adminurl  | http://172.16.31.102:8776/v1/$(tenant_id)s |
|      id     |      4749ee3891ac4ba890734c3c234e5c3c      |
| internalurl | http://172.16.31.102:8776/v1/$(tenant_id)s |
|  publicurl  | http://172.16.31.102:8776/v1/$(tenant_id)s |
|    region   |                   india                    |
|  service_id |      24347650324741e598de5c9af58fe32f      |
+-------------+--------------------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminurl  | http://172.16.31.102:35357/v2.0  |
|      id     | 98803648fb9e4d27b019160a4b8156b1 |
| internalurl |  http://172.16.31.102:5000/v2.0  |
|  publicurl  |  http://172.16.31.102:5000/v2.0  |
|    region   |              india               |
|  service_id | a2f6ceaa8bde4f989c9e283be7933a75 |
+-------------+----------------------------------+
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+-------------+------------------------------------------+
|   Property  |                  Value                   |
+-------------+------------------------------------------+
|   adminurl  | http://172.16.31.102:8773/services/Admin |
|      id     |     4a875307b082442488aebee23b9c351f     |
| internalurl | http://172.16.31.102:8773/services/Cloud |
|  publicurl  | http://172.16.31.102:8773/services/Cloud |
|    region   |                  india                   |
|  service_id |     9039769efef7449f83339d43bf81b181     |
+-------------+------------------------------------------+
########################################################################################

Your EC2 credentials have been saved into ./ec2rc

Time to test keystone.  Do a '. ./stackrc' then a 'keystone user-list'.
Assuming you get a user list back, go on to install glance with './openstack_glance.sh'.

########################################################################################
root@cts02:/home/cts02/openstackgeek/grizzly#

step 12: verify them using the below as
root@cts02:/home/cts02/openstackgeek/grizzly# ./ec2rc
bash: ./ec2rc: Permission denied
//wont work so do cat
root@cts02:/home/cts02/openstackgeek/grizzly# cat ./ec2rc
ADMIN_ACCESS=dd7106978e4b4a558d16c9a5f81d946f
ADMIN_SECRET=e1391a6ab13e4f63813590985c1b8287
root@cts02:/home/cts02/openstackgeek/grizzly#

root@cts02:/home/cts02/openstackgeek/grizzly# . ./stackrc
if . ./stackrc is successful nothing it says goes to next //if it says error then post your comment
root@cts02:/home/cts02/openstackgeek/grizzly#


step 13 : Glance provides image services for OpenStack.
//Images are comprised of prebuilt operating system images built to run on OpenStack.
//to get more images then visit the site http://docs.openstack.org/image-guide/content/ch_obtaining_images.html

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_glance.sh

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
in the middle it dislplays as  :
#################################################################################################

Backups of configs for glance are in /etc/glance/

#################################################################################################
glance-api stop/waiting
glance-api start/running, process 11665
glance-registry stop/waiting
glance-registry start/running, process 11670
glance-api stop/waiting
glance-api start/running, process 11709
glance-registry stop/waiting
glance-registry start/running, process 11714
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | bare                                 |
| created_at       | 2014-03-13T11:45:04                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | 3cda20ba-9575-4092-9de5-5f3355c35c5b |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | Cirros 0.3.0                         |
| owner            | e4e53b0dc99d4436933750415682c545     |
| protected        | False                                |
| size             | 9761280                              |
| status           | active                               |
| updated_at       | 2014-03-13T11:45:04                  |
+------------------+--------------------------------------+

#################################################################################################

Do a 'glance image-list' to see images.  You can now run './openstack_cinder.sh' to set up Nova.

#################################################################################################

root@cts02:/home/cts02/openstackgeek/grizzly#


step 14 : check the image-list on glance

root@cts02:/home/cts02/openstackgeek/grizzly# glance image-list
+--------------------------------------+--------------+-------------+------------------+---------+--------+
| ID                                   | Name         | Disk Format | Container Format | Size    | Status |
+--------------------------------------+--------------+-------------+------------------+---------+--------+
| 3cda20ba-9575-4092-9de5-5f3355c35c5b | Cirros 0.3.0 | qcow2       | bare             | 9761280 | active |
+--------------------------------------+--------------+-------------+------------------+---------+--------+
root@cts02:/home/cts02/openstackgeek/grizzly#

Step 15 : Cinder is used to provide additional volume attachments to running instances and snapshot space. Start the install of Cinder by typing:

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_cinder.sh

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:


//error problem in x64 bit ubuntu  this

ldconfig deferred processing now taking place
 * Starting iSCSI enterprise target service                                    FATAL: Module iscsi_trgt not found.
                                                                        [fail]
 * Setting up iSCSI targets                                             [ OK ]
2014-03-13 17:21:21     INFO [migrate.versioning.api] 0 -> 1...

then follows as it says

cinder-scheduler stop/waiting
cinder-scheduler start/running, process 25403
cinder-api stop/waiting
cinder-api start/running, process 25417

#################################################################################################

Run ./openstack_loop.sh to setup the cinder-volumes loopback device.

#################################################################################################


Step 16: Once the install of Cinder is complete, determine your space requirements and run the loopback volume creation script

root@cts02:/home/cts02/openstackgeek/grizzly#  ./openstack_loop.sh

Enter the integer amount in gigabytes (min 1G) to use as a loopback file for Cinder: 10

Creating loopback file of size 10 GB at /cinder-volumes...
0+0 records in
0+0 records out
0 bytes (0 B) copied, 1.7818e-05 s, 0.0 kB/s

  Physical volume "/dev/loop2" successfully created
  Volume group "cinder-volumes" successfully created
#################################################################################################

When you are done with setting up your volumes, run './openstack_nova.sh'

#################################################################################################
root@cts02:/home/cts02/openstackgeek/grizzly#

step 17 :   Nova provides multiple services to OpenStack for controlling networking, imaging and starting and stopping instances.
//If you are installing a compute rig, please skip to the following section to install the base nova-compute methods needed for running a compute rig.
//Start the controller's nova install by typing the following:

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_nova.sh


Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:


it follows as ...
Setting up libblas3gf (1.2.20110419-2ubuntu1) ...
update-alternatives: using /usr/lib/libblas/libblas.so.3gf to provide /usr/lib/libblas.so.3gf (libblas.so.3gf) in auto mode.
Setting up liblapack3gf (3.3.1-1) ...
update-alternatives: using /usr/lib/lapack/liblapack.so.3gf to provide /usr/lib/liblapack.so.3gf (liblapack.so.3gf) in auto mode.
Setting up libtidy-0.99-0 (20091223cvs-1ubuntu2) ...
Setting up python-novnc (2012.2~20120906+dfsg-0ubuntu4~cloud0) ...
Setting up python-carrot (0.10.7-1ubuntu1) ...
Setting up python-cheetah (2.4.4-2ubuntu3) ...
Setting up python-cinderclient (1:1.0.3-0ubuntu1~cloud0) ...
Setting up python-daemon (1.5.5-1ubuntu1) ...
Setting up python-feedparser (5.1-0ubuntu3.1) ...
Setting up python-gflags (1.5.1-1build1) ...
Setting up python-ldap (2.3.13-1build1) ...
Setting up python-netaddr (0.7.5-4build2) ...
Setting up python-novaclient (1:2.13.0-0ubuntu1~cloud0) ...
Setting up python-pyasn1 (0.0.11a-1ubuntu1) ...
Setting up python-cmd2 (0.6.4-1~cloud0) ...
Setting up python-pyparsing (1.5.7+dfsg1-0ubuntu2~cloud0) ...
Setting up python-cliff (1.3.1-0ubuntu1~cloud0) ...
Setting up python-quantumclient (1:2.2.0-0ubuntu1~cloud0) ...
Setting up python-nova (1:2013.1.4-0ubuntu1~cloud0) ...
Setting up nova-common (1:2013.1.4-0ubuntu1~cloud0) ...
Adding system user `nova' (UID 128) ...
Adding new user `nova' (UID 128) with group `nova' ...
Not creating home directory `/var/lib/nova'.
usermod: no changes
Setting up python-numpy (1:1.6.1-6ubuntu1) ...
Setting up websockify (0.3.0-0ubuntu1~cloud0) ...
Setting up novnc (2012.2~20120906+dfsg-0ubuntu4~cloud0) ...
Setting up python-dingus (0.3.2-1ubuntu1) ...
Setting up python-libvirt (1.0.2-0ubuntu11.13.04.5~cloud1) ...
Setting up python-nose (1.1.2-3) ...
Setting up python-stompy (0.2.9-1ubuntu1) ...
Setting up python-utidylib (0.2-8build1) ...
Setting up kpartx (0.4.9-3ubuntu5.1) ...
Setting up nova-ajax-console-proxy (1:2013.1.4-0ubuntu1~cloud0) ...
Setting up nova-api (1:2013.1.4-0ubuntu1~cloud0) ...
nova-api start/running, process 26766
Setting up nova-cert (1:2013.1.4-0ubuntu1~cloud0) ...
nova-cert start/running, process 26806
Setting up nova-conductor (1:2013.1.4-0ubuntu1~cloud0) ...
nova-conductor start/running, process 26846
Setting up nova-consoleauth (1:2013.1.4-0ubuntu1~cloud0) ...
nova-consoleauth start/running, process 26886
Setting up nova-doc (1:2013.1.4-0ubuntu1~cloud0) ...
Setting up nova-network (1:2013.1.4-0ubuntu1~cloud0) ...
nova-network start/running, process 26936
Setting up nova-novncproxy (1:2013.1.4-0ubuntu1~cloud0) ...
nova-novncproxy start/running, process 26976
Setting up nova-scheduler (1:2013.1.4-0ubuntu1~cloud0) ...
nova-scheduler start/running, process 27015
Setting up nova-compute-kvm (1:2013.1.4-0ubuntu1~cloud0) ...
Setting up nova-compute (1:2013.1.4-0ubuntu1~cloud0) ...
Adding user `nova' to group `libvirtd' ...
Adding user nova to group libvirtd
Done.

step 18 : check the service list and go for nova manage as follows  and then the nova image list ..

root@cts02:/home/cts02/openstackgeek/grizzly# nova service-list
+------------------+-------+----------+---------+-------+----------------------------+
| Binary           | Host  | Zone     | Status  | State | Updated_at                 |
+------------------+-------+----------+---------+-------+----------------------------+
| nova-cert        | cts02 | internal | enabled | up    | 2014-03-13T12:00:41.000000 |
| nova-compute     | cts02 | nova     | enabled | up    | 2014-03-13T12:00:36.000000 |
| nova-conductor   | cts02 | internal | enabled | up    | 2014-03-13T12:00:41.000000 |
| nova-consoleauth | cts02 | internal | enabled | up    | 2014-03-13T12:00:40.000000 |
| nova-network     | cts02 | internal | enabled | up    | 2014-03-13T12:00:34.000000 |
| nova-scheduler   | cts02 | internal | enabled | up    | 2014-03-13T12:00:33.000000 |
+------------------+-------+----------+---------+-------+----------------------------+
root@cts02:/home/cts02/openstackgeek/grizzly#


root@cts02:/home/cts02/openstackgeek/grizzly# nova-manage service list
Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth cts02                                internal         enabled    :-)   2014-03-13 12:01:10
nova-cert        cts02                                internal         enabled    :-)   2014-03-13 12:01:11
nova-conductor   cts02                                internal         enabled    :-)   2014-03-13 12:01:11
nova-scheduler   cts02                                internal         enabled    :-)   2014-03-13 12:01:13
nova-network     cts02                                internal         enabled    :-)   2014-03-13 12:01:14
nova-compute     cts02                                nova             enabled    :-)   2014-03-13 12:01:07
root@cts02:/home/cts02/openstackgeek/grizzly#

root@cts02:/home/cts02/openstackgeek/grizzly# nova image-list
+--------------------------------------+--------------+--------+--------+
| ID                                   | Name         | Status | Server |
+--------------------------------------+--------------+--------+--------+
| 3cda20ba-9575-4092-9de5-5f3355c35c5b | Cirros 0.3.0 | ACTIVE |        |
+--------------------------------------+--------------+--------+--------+
root@cts02:/home/cts02/openstackgeek/grizzly#

step 19 :   check the cylinder type-list

root@cts02:/home/cts02/openstackgeek/grizzly# cinder type-list
+--------------------------------------+---------+
|                  ID                  |   Name  |
+--------------------------------------+---------+
| 8bcaf3b4-cd30-459d-a79e-9836c1ea763b | Storage |
+--------------------------------------+---------+
root@cts02:/home/cts02/openstackgeek/grizzly#

step 20 : Horizon provides OpenStack's managment interface. Install Horizon by typing:

root@cts02:/home/cts02/openstackgeek/grizzly# ./openstack_horizon.sh
Reading package lists... Done
Building dependency tree      
Reading state information... Done
memcached is already the newest version.

it goes on ...


Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-worker (2.2.22-1ubuntu1.4) ...
 * Starting web server apache2                                                 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                        [ OK ]
Setting up apache2 (2.2.22-1ubuntu1.4) ...
Setting up libapache2-mod-wsgi (3.3-4build1) ...
 * Restarting web server apache2                                               apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                        [ OK ]
Setting up python-cloudfiles (1.7.9.2-1) ...
Setting up python-django (1.4.5-1ubuntu0.1~cloud0) ...
Setting up python-appconf (0.5-0ubuntu2~cloud0) ...
Setting up python-compressor (1.2-0ubuntu1~cloud0) ...
Setting up python-openstack-auth (1.0.7-0ubuntu1~cloud0) ...
Setting up python-tz (2011k-0ubuntu5) ...
Setting up python-django-horizon (1:2013.1.4-0ubuntu1.1~cloud0) ...
Setting up openstack-dashboard (1:2013.1.4-0ubuntu1.1~cloud0) ...
 * Reloading web server config apache2                                         apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                        [ OK ]
Setting up openstack-dashboard-ubuntu-theme (1:2013.1.4-0ubuntu1.1~cloud0) ...
 * Reloading web server config apache2                                         apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                        [ OK ]
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  openstack-dashboard-ubuntu-theme*
0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.
After this operation, 222 kB disk space will be freed.
(Reading database ... 181131 files and directories currently installed.)
Removing openstack-dashboard-ubuntu-theme ...
 * Reloading web server config apache2                                         apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                        [ OK ]
Purging configuration files for openstack-dashboard-ubuntu-theme ...
 * Reloading web server config apache2                                         apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                        [ OK ]
 * Restarting web server apache2                                               apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                        [ OK ]
Restarting memcached: memcached.
#######################################################################################

The horizon dashboard should be at http://172.16.31.102/horizon.  Login with admin/admin123

#######################################################################################
root@cts02:/home/cts02/openstackgeek/grizzly#


Step : over : open a browser and go to the http://172.16.31.102/horizon  the ip is the one that we gave on interfaces file
the password that i used all that time was admim123 and username admin if u dont know this at the end of horizon installation it says the requied username and password
to enter into the dashboard









PPost Before “read more” And here is the rest of it



//these step are later on steps for additional checking of the sytem ..afer doing all the 20 steps and go to browser do check all links there
then come back to terminal ..while u are in broser check for the cylinder allocation on storage now by using this we will be making some changes that take effect


root@cts02:/home/cts02/openstackgeek/grizzly# cinder type-list
+--------------------------------------+---------+
|                  ID                  |   Name  |
+--------------------------------------+---------+
| 8bcaf3b4-cd30-459d-a79e-9836c1ea763b | Storage |
+--------------------------------------+---------+
root@cts02:/home/cts02/openstackgeek/grizzly# cinder create --volume-type Storage --display-name test 1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2014-03-13T12:09:46.136681      |
| display_description |                 None                 |
|     display_name    |                 test                 |
|          id         | 400400c3-2496-405c-82bf-aca50edaa0b0 |
|       metadata      |                  {}                  |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |               Storage                |
+---------------------+--------------------------------------+
root@cts02:/home/cts02/openstackgeek/grizzly#

am facing some proble with that cylinder wull be back with a solution



//after this again check by typing   cinder type-list
#exit
$exit


special thanks to ubuntu lts 12.04 openstack 10 Minutes but it really takes 30 to 40mins to work with.. :D :p
+sasi arivukalanjiam





Search this page by ,

Openstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud Setup
Openstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud Setup
Openstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud Setup
Openstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud SetupOpenstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud SetupOpenstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud SetupOpenstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud SetupOpenstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud Setup
Openstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud SetupOpenstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud Setup
Openstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud Setup
Openstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud SetupOpenstack Installation Step By step Using Ubuntu LTS 12.04   ( 40 Minutes approx.) 20 Easy Steps
for Private Cloud Setup

3 comments:

  1. Thank you for sharing your article. Great efforts put it to find the list of articles which is very useful to know, Definitely will share the same to other forums.

    best openstack training in Chennai | openstack course fees in chennai
    best java training in chennai | primavera certification training in chennai

    ReplyDelete
  2. Excellent Blog, I like your blog and It is very informative. Thank you
    OpenStack
    OpenStack in Business

    ReplyDelete
  3. Nice blog, very informative content.Thanks for sharing, waiting for the next update…
    The Concept and application of Data Science
    What Does a Data Scientist Do?

    ReplyDelete

Slider

Image Slider By engineerportal.blogspot.in The slide is a linking image  Welcome to Engineer Portal... #htmlcaption

Tamil Short Film Laptaap

Tamil Short Film Laptaap
Laptapp

Labels

About Blogging (1) Advance Data Structure (2) ADVANCED COMPUTER ARCHITECTURE (4) Advanced Database (4) ADVANCED DATABASE TECHNOLOGY (4) ADVANCED JAVA PROGRAMMING (1) ADVANCED OPERATING SYSTEMS (3) ADVANCED OPERATING SYSTEMS LAB (2) Agriculture and Technology (1) Analag and Digital Communication (1) Android (1) Applet (1) ARTIFICIAL INTELLIGENCE (3) aspiration 2020 (3) assignment cse (12) AT (1) AT - key (1) Attacker World (6) Basic Electrical Engineering (1) C (1) C Aptitude (20) C Program (87) C# AND .NET FRAMEWORK (11) C++ (1) Calculator (1) Chemistry (1) Cloud Computing Lab (1) Compiler Design (8) Computer Graphics Lab (31) COMPUTER GRAPHICS LABORATORY (1) COMPUTER GRAPHICS Theory (1) COMPUTER NETWORKS (3) computer organisation and architecture (1) Course Plan (2) Cricket (1) cryptography and network security (3) CS 810 (2) cse syllabus (29) Cyberoam (1) Data Mining Techniques (5) Data structures (3) DATA WAREHOUSING AND DATA MINING (4) DATABASE MANAGEMENT SYSTEMS (8) DBMS Lab (11) Design and Analysis Algorithm CS 41 (1) Design and Management of Computer Networks (2) Development in Transportation (1) Digital Principles and System Design (1) Digital Signal Processing (15) DISCRETE MATHEMATICS (1) dos box (1) Download (1) ebooks (11) electronic circuits and electron devices (1) Embedded Software Development (4) Embedded systems lab (4) Embedded systems theory (1) Engineer Portal (1) ENGINEERING ECONOMICS AND FINANCIAL ACCOUNTING (5) ENGINEERING PHYSICS (1) english lab (7) Entertainment (1) Facebook (2) fact (31) FUNDAMENTALS OF COMPUTING AND PROGRAMMING (3) Gate (3) General (3) gitlab (1) Global warming (1) GRAPH THEORY (1) Grid Computing (11) hacking (4) HIGH SPEED NETWORKS (1) Horizon (1) III year (1) INFORMATION SECURITY (1) Installation (1) INTELLECTUAL PROPERTY RIGHTS (IPR) (1) Internal Test (13) internet programming lab (20) IPL (1) Java (38) java lab (1) Java Programs (28) jdbc (1) jsp (1) KNOWLEDGE MANAGEMENT (1) lab syllabus (4) MATHEMATICS (3) Mechanical Engineering (1) Microprocessor and Microcontroller (1) Microprocessor and Microcontroller lab (11) migration (1) Mini Projects (1) MOBILE AND PERVASIVE COMPUTING (15) MOBILE COMPUTING (1) Multicore Architecute (1) MULTICORE PROGRAMMING (2) Multiprocessor Programming (2) NANOTECHNOLOGY (1) NATURAL LANGUAGE PROCESSING (1) NETWORK PROGRAMMING AND MANAGEMENT (1) NETWORKPROGNMGMNT (1) networks lab (16) News (14) Nova (1) NUMERICAL METHODS (2) Object Oriented Programming (1) ooad lab (6) ooad theory (9) OPEN SOURCE LAB (22) openGL (10) Openstack (1) Operating System CS45 (2) operating systems lab (20) other (4) parallel computing (1) parallel processing (1) PARALLEL PROGRAMMING (1) Parallel Programming Paradigms (4) Perl (1) Placement (3) Placement - Interview Questions (64) PRINCIPLES OF COMMUNICATION (1) PROBABILITY AND QUEUING THEORY (3) PROGRAMMING PARADIGMS (1) Python (3) Question Bank (1) question of the day (8) Question Paper (13) Question Paper and Answer Key (3) Railway Airport and Harbor (1) REAL TIME SYSTEMS (1) RESOURCE MANAGEMENT TECHNIQUES (1) results (3) semester 4 (5) semester 5 (1) Semester 6 (5) SERVICE ORIENTED ARCHITECTURE (1) Skill Test (1) software (1) Software Engineering (4) SOFTWARE TESTING (1) Structural Analysis (1) syllabus (34) SYSTEM SOFTWARE (1) system software lab (2) SYSTEMS MODELING AND SIMULATION (1) Tansat (2) Tansat 2011 (1) Tansat 2013 (1) TCP/IP DESIGN AND IMPLEMENTATION (1) TECHNICAL ENGLISH (7) Technology and National Security (1) Theory of Computation (3) Thought for the Day (1) Timetable (4) tips (4) Topic Notes (7) tot (1) TOTAL QUALITY MANAGEMENT (4) tutorial (8) Ubuntu LTS 12.04 (1) Unit Wise Notes (1) University Question Paper (1) UNIX INTERNALS (1) UNIX Lab (21) USER INTERFACE DESIGN (3) VIDEO TUTORIALS (1) Virtual Instrumentation Lab (1) Visual Programming (2) Web Technology (11) WIRELESS NETWORKS (1)

LinkWithin