Steps to Install Openstack on CentOS7

Linuxtopic
6


Steps to Install Openstack on CentOS7 - Part 1


Openstack Installaction and  Configuration Mitaka5 CentOS7  openstack,  mitaka5, openstack keystone, openstack instance, openstack nova, openstack neutron, network configuration,openstack tutorial, openstack tutorial for beginner,   lokesh carpenter, lokesh, linuxtopic, linux topic, vm,



Hostname : openstack.linuxtopic.com


OS : CentOS 7 Minimal ( Fresh Installation )

IP Address : 172.17.20.100

Hardware : Core i3 with 4GB Ram



Step 1:





Check Release, Hostname and IP Address


cat /etc/redhat-release

uname -a






ip a









echo "172.17.20.100 openstack.linuxtopic.com" >> /etc/hosts








Step 2:


Disable NetworkManager , Firewalld


systemctl stop firewalld NetworkManager

systemctl disable firewalld NetworkManager


Disable SELinux


setenforce 0 # Temporary

OR
sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config # Permanent


setenforce 0

Step 3:


Update System and Install RDO ( RPM Distribution of Openstack ) Package




yum update -y

yum -y install https://repos.fedorapeople.org/repos/openstack/openstack-mitaka/rdo-release-mitaka-5.noarch.rpm


                                                          OR






Download from official site & install 





https://repos.fedorapeople.org/repos/openstack/”








Step 4:


               


Install Packstack : It’s utility that uses Puppet modules to deploy various parts of OpenStack


yum -y install openstack-packstack






Step 5:


               


Generate Packstack Answer File OR command used direct packstack


   


packstack --gen-answer-file=opnstacktest-answere-file.txt

vi opnstacktest-answere-file.txt


Change:


           


CONFIG_DEFAULT_PASSWORD=server





# Specify 'y' to install OpenStack Object Storage (swift). ['y', 'n']


CONFIG_SWIFT_INSTALL=n





# Specify 'y' to install OpenStack Metering (ceilometer). ['y', 'n']


CONFIG_CEILOMETER_INSTALL=n





# Specify 'y' to install OpenStack Telemetry Alarming (Aodh). Note


# Aodh requires Ceilometer to be installed as well. ['y', 'n']


CONFIG_AODH_INSTALL=n





# Specify 'y' to install Nagios to monitor OpenStack hosts. Nagios


# provides additional tools for monitoring the OpenStack environment.


# ['y', 'n']


CONFIG_NAGIOS_INSTALL=n





# Server on which to install OpenStack services specific to the


# controller role (for example, API servers or dashboard).


CONFIG_CONTROLLER_HOST=172.17.20.100





# List the servers on which to install the Compute service.


CONFIG_COMPUTE_HOSTS=172.17.20.100





# List of servers on which to install the network service such as


# Compute networking (nova network) or OpenStack Networking (neutron).


CONFIG_NETWORK_HOSTS=172.17.20.100





# Specify 'y' to provision for demo usage and testing. ['y', 'n']


CONFIG_PROVISION_DEMO=n




Save & Exit




Step 5:




Install Openstack Using Answer File




packstack --answer-file opnstacktest-answere-file.txt


















OpenStack Has been Successfully Install







OpenStack Related Service


               


Services on Controller node right after OpenStack Mitaka installation:


   


systemctl list-unit-files | grep openstack




Services on Network node right after OpenStack Mitaka installation:




systemctl list-unit-files | grep openstack




systemctl list-unit-files | grep neutron




systemctl list-unit-files | grep ovs






Services on Compute node right after OpenStack Mitaka installation:




systemctl list-unit-files | grep openstack




systemctl list-unit-files | grep neutron




systemctl list-unit-files | grep ovs








OVS configuration on Compute node right after OpenStack Mitaka installation:




ovs-vsctl show




Verify GlusterFS Storage mount point (Controller node only):




df -hT




## Controller




systemctl status httpd.service




systemctl status memcached.service




systemctl status mariadb




systemctl status ntpd




## Nova




systemctl status openstack-nova-api.service




systemctl status openstack-nova-cert.service




systemctl status openstack-nova-consoleauth.service




systemctl status openstack-nova-scheduler.service




systemctl status openstack-nova-conductor.service






##Neutron##-- Networking




systemctl status neutron-server.service




systemctl status neutron-openvswitch-agent.service




systemctl status neutron-l3-agent.service




systemctl status neutron-dhcp-agent.service neutron-metadata-agent.service




systemctl status openvswitch.service




systemctl status neutron-openvswitch-agent.service




## Glance -- Image Service




systemctl status openstack-glance-api.service




systemctl status openstack-glance-registry.service




## Horizon -- Openstack Dashboard




systemctl status httpd.service




systemctl status memcached.service



Part 1: OpenStack Mitaka 5 installation in CentOS 7



Part 2: Network Configuration in OpenStack



Part 3: Network & Router configuration using Dashboard



Part 4: Create Project, Image, Volume & Instance



Part 5: Instance Snapshot & Boot from Volume



Part 6: Autostart OpenStack Instance Setting



Part 7: Extend Volume Size



Post a Comment

6Comments

  1. Hey, update the following packages.

    yum -y install http://cbs.centos.org/kojifiles/packages/rdo-release/mitaka/7/noarch/rdo-release-mitaka-7.noarch.rpm
    yum install -y centos-release-openstack-queens
    yum update -y
    yum install -y openstack-packstack
    yum install -y python-setuptools

    Thanks,
    Hari - http://www.splessons.com/

    ReplyDelete
  2. this is not available:
    yum -y install https://repos.fedorapeople.org/repos/openstack/openstack-mitaka/rdo-release-mitaka-5.noarch.rpm

    and doing mitaka-7 , it gives error.
    yum -y install http://cbs.centos.org/kojifiles/packages/rdo-release/mitaka/7/noarch/rdo-release-mitaka-7.noarch.rpm


    can anyone advice what all new can we do???

    ReplyDelete
  3. Openstack Installation process.

    systemctl disable NetworkManager
    systemctl stop NetworkManager

    systemctl disable firewalld
    systemctl stop firewalld

    yum install -y centos-release-openstack-newton

    yum update -y

    yum install -y openstack-packstack

    packstack --allinone

    ReplyDelete
  4. use the below link, better install queens
    https://www.rdoproject.org/install/packstack/

    ReplyDelete
  5. My instance cannot reach the dhcp server and therefore instance does not get an ip address...however IP address is shown on dashboard UI

    ReplyDelete
Post a Comment

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Ok, Go it!