5 July 2016

OpenStack Mitaka All-in-one with PackStack on CentOS7


        PackStack คือ เครื่องมือไว้สำหรับทำ Proof of Concept Cloud ซึ่งเราสามารถ Deploy OpenStack ใน Node เดียวได้แบบ All In One หรือจะแยก Compute Node และ Network Node ออกมา ก็ได้แบบง่ายๆ

เน้นย้ำว่า Proof of Concept (POC) Cloud Computing นะแบบง่ายๆ

อ่านเพิ่มเติม https://www.rdoproject.org/install/quickstart/

ลงมือ Configuration และทำการ Installation ครับ

Configure Hostname
[root@controller01 ~]# cat /etc/hosts
127.0.0.1      localhost   localhost.localdomain
192.168.1.10 controller01 controller01.example.com
[root@controller01 ~]# 
[root@controller01 ~]# hostnamectl
   Static hostname: controller01.example.com
-------------------- hidden output--------------------------------------
      Architecture: x86-64
[root@controller01 ~]#

Disable NetworkManager and SELinux Services
[root@controller01 ~]# systemctl stop NetworkManager
[root@controller01 ~]# systemctl disable NetworkManager
[root@controller01 ~]# setenforce 0
[root@controller01 ~]# sed -i 's/enforcing/permissive/' /etc/selinux/config

Static IP Address
TYPE="Ethernet"
BOOTPROTO="static"
IPADDR=192.168.1.10
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.1
NAME="eth1"
DEVICE="eth1"
ONBOOT="yes"

Setup RDO repositories
[root@controller01 ~]# yum -y install centos-release-openstack-mitaka epel-release


Update your current packages
[root@controller01 ~]# yum update -y

Install Packstack
[root@controller01 ~]# yum install -y openstack-packstack

แนะนำ Snapshot ไว้ก่อนก็ดีครับ

Deploy a single-node Openstack All in One environment
[root@controller01 ~]# packstack --allinone





เมื่อเสร็จแล้วก็ไปที่ Horizon http://192.168.1.10 (Openstack’s dashboard) และในส่วนของ login ผ่าน Command จะใช้ไฟล์ ~/keystonerc_admin  ด้วยครับ

 ** Username และ Password ของ Account admin จะอยู่ในไฟล์ ~/keystonerc_admin ครับ **

[root@controller01 ~]# cat keystonerc_admin
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD=f1370c25c7864969
export OS_AUTH_URL=http://192.168.1.10:5000/v2.0
export PS1='[\u@\h \W(keystone_admin)]\$ '

export OS_TENANT_NAME=admin
export OS_REGION_NAME=RegionOne
[root@controller01 ~]#

[root@controller01 ~]# ll
total 60
-rw-------. 1 root root  1084 Jul  5 21:02 anaconda-ks.cfg
-rw-------. 1 root root   237 Jul  6 08:54 keystonerc_admin
-rw-------. 1 root root   237 Jul  6 08:54 keystonerc_demo
-rw-------. 1 root root 49103 Jul  6 08:36 packstack-answers-20160706-083637.txt
[root@controller01 ~]#
[root@controller01 ~]# openstack-status
== Nova services ==
openstack-nova-api:                     active
openstack-nova-compute:                 active
openstack-nova-network:                 inactive  (disabled on boot)
openstack-nova-scheduler:               active
openstack-nova-cert:                    active
openstack-nova-conductor:               active
openstack-nova-console:                 inactive  (disabled on boot)
openstack-nova-consoleauth:             active
openstack-nova-xvpvncproxy:             inactive  (disabled on boot)
== Glance services ==
openstack-glance-api:                   active
openstack-glance-registry:              active
== Keystone service ==
openstack-keystone:                     inactive  (disabled on boot)
== Horizon service ==
openstack-dashboard:                    active
== neutron services ==
neutron-server:                         active
neutron-dhcp-agent:                     active
neutron-l3-agent:                       active
neutron-metadata-agent:                 active
neutron-openvswitch-agent:              active
neutron-metering-agent:                 active
== Swift services ==
openstack-swift-proxy:                  active
openstack-swift-account:                active
openstack-swift-container:              active
openstack-swift-object:                 active
== Cinder services ==
openstack-cinder-api:                   active
openstack-cinder-scheduler:             active
openstack-cinder-volume:                active
openstack-cinder-backup:                active
== Ceilometer services ==
openstack-ceilometer-api:               inactive  (disabled on boot)
openstack-ceilometer-central:           active
openstack-ceilometer-compute:           active
openstack-ceilometer-collector:         active
openstack-ceilometer-notification:      active
== Support services ==
mysqld:                                 inactive  (disabled on boot)
openvswitch:                            active
dbus:                                   active
target:                                 active
rabbitmq-server:                        active
memcached:                              active
== Keystone users ==
Warning keystonerc not sourced
[root@controller01 ~]#
[root@controller01 ~]# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8776            0.0.0.0:*               LISTEN      18389/python2
tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      11891/beam.smp
tcp        0      0 192.168.1.10:27017      0.0.0.0:*               LISTEN      32422/mongod
tcp        0      0 192.168.1.10:873        0.0.0.0:*               LISTEN      25759/xinetd
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      12945/mysqld
tcp        0      0 192.168.1.10:6379       0.0.0.0:*               LISTEN      544/redis-server 19
tcp        0      0 0.0.0.0:11211           0.0.0.0:*               LISTEN      24007/memcached
tcp        0      0 0.0.0.0:9292            0.0.0.0:*               LISTEN      17411/python2
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      20408/rpcbind
tcp        0      0 192.168.1.10:6000       0.0.0.0:*               LISTEN      27176/python2
tcp        0      0 192.168.1.10:8080       0.0.0.0:*               LISTEN      26939/python2
tcp        0      0 192.168.1.10:6001       0.0.0.0:*               LISTEN      26667/python2
tcp        0      0 0.0.0.0:4369            0.0.0.0:*               LISTEN      1/systemd
tcp        0      0 192.168.1.10:6002       0.0.0.0:*               LISTEN      27104/python2
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      855/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1418/master
tcp        0      0 0.0.0.0:16509           0.0.0.0:*               LISTEN      21180/libvirtd
tcp        0      0 0.0.0.0:9696            0.0.0.0:*               LISTEN      23082/python2
tcp        0      0 0.0.0.0:6080            0.0.0.0:*               LISTEN      21311/python2
tcp        0      0 0.0.0.0:5666            0.0.0.0:*               LISTEN      5110/nrpe
tcp        0      0 0.0.0.0:8774            0.0.0.0:*               LISTEN      19338/python2
tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      19338/python2
tcp        0      0 0.0.0.0:9191            0.0.0.0:*               LISTEN      17377/python2
tcp6       0      0 :::5000                 :::*                    LISTEN      4494/httpd
tcp6       0      0 :::5672                 :::*                    LISTEN      11891/beam.smp
tcp6       0      0 :::8777                 :::*                    LISTEN      4494/httpd
tcp6       0      0 :::8041                 :::*                    LISTEN      4494/httpd
tcp6       0      0 :::8042                 :::*                    LISTEN      4494/httpd
tcp6       0      0 :::111                  :::*                    LISTEN      20408/rpcbind
tcp6       0      0 :::80                   :::*                    LISTEN      4494/httpd
tcp6       0      0 :::22                   :::*                    LISTEN      855/sshd
tcp6       0      0 ::1:25                  :::*                    LISTEN      1418/master
tcp6       0      0 :::35357                :::*                    LISTEN      4494/httpd
tcp6       0      0 :::16509                :::*                    LISTEN      21180/libvirtd
tcp6       0      0 :::5666                 :::*                    LISTEN      5110/nrpe
[root@controller01 ~]#





เสร็จแหละ อย่างเร็ว และง่ายๆ สำหรับเอาไว้เล่นๆ ว่างๆ เดี๋ยวค่อยเขียน..............


7 comments:

  1. Thanks for delivering a good stuff related to SharePoint, Explanation is good, Nice Article.
    Openstack Training
    Openstack Training Online
    Openstack Training in Hyderabad

    ReplyDelete
  2. Great information. Thanks for sharing.

    Openstack Training

    ReplyDelete
  3. That is nice article from you , this is informative stuff . Hope more articles from you . I also want to share some information about Best pet Clinic in Vizag

    ReplyDelete
  4. I am inspired with your post writing style & how continuously you describe this topic. . Aaraa couture

    ReplyDelete
  5. This guide offers clear and concise instructions for deploying an OpenStack environment, making it accessible to users who are new to the platform or seeking to set up a Proof of Concept (POC) cloud computing environment. The use of commands and configuration files is well-documented, allowing for easy replication of the setup process. Overall, it provides a valuable resource for users interested in exploring OpenStack technology. Embedded Systems Course in Hyderabad

    ReplyDelete