Tuesday, April 10, 2018

.::: Install OpenStack Newton All In One with Heat Service on CentOS 7 (Lab Verified) :::.

OpenStack is a free and open-source software platform for cloud computing, mostly deployed as infrastructure-as-a-service (IaaS), whereby virtual servers and other resources are made available to customers.The software platform consists of interrelated components that control diverse, multi-vendor hardware pools of processing, storage, and networking resources throughout a data center. Users either manage it through a web-based dashboard, through command-line tools, or through RESTful web services.

1. Disable SELinux
[root@openstack /]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

2. Disable firewall

# systemctl stop firewalld
# systemctl disable firewalld
# systemctl status firewalld

[root@openstack-Teguht data]# systemctl stop firewalld
[root@openstack-Teguht data]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@openstack-Teguht data]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)

Apr 09 16:35:17 openstack-Teguht systemd[1]: Starting firewalld - dynamic firewall da.....
Apr 09 16:36:25 openstack-Teguht systemd[1]: Started firewalld - dynamic firewall daemon.
Apr 09 16:36:31 openstack-Teguht firewalld[892]: WARNING: ICMP type 'beyond-scope' is...6.
Apr 09 16:36:31 openstack-Teguht firewalld[892]: WARNING: beyond-scope: INVALID_ICMPT...e.
Apr 09 16:36:31 openstack-Teguht firewalld[892]: WARNING: ICMP type 'failed-policy' i...6.
Apr 09 16:36:31 openstack-Teguht firewalld[892]: WARNING: failed-policy: INVALID_ICMP...e.
Apr 09 16:36:32 openstack-Teguht firewalld[892]: WARNING: ICMP type 'reject-route' is...6.
Apr 09 16:36:32 openstack-Teguht firewalld[892]: WARNING: reject-route: INVALID_ICMPT...e.
Apr 09 16:41:15 openstack-Teguht systemd[1]: Stopping firewalld - dynamic firewall da.....
Apr 09 16:41:16 openstack-Teguht systemd[1]: Stopped firewalld - dynamic firewall daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@openstack-Teguht data]#

3. Setting host
[root@openstack-Teguht data]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.10.10.10 openstack-Teguht
[root@openstack-Teguht data]#

4. Install SNMPD
# rpm -q net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python
# yum -y install net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python
# rpm -q net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python

5. Update to lastest version(recomandded)
[root@openstack-Teguht ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@openstack-Teguht ~]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
[root@openstack-Teguht ~]# yum -y update
[root@openstack-Teguht ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@openstack-Teguht ~]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
[root@openstack-Teguht ~]#

6. Disable NetworkManager

# systemctl disable NetworkManager
# systemctl stop NetworkManager
# systemctl status NetworkManager

[root@openstack-Teguht ~]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
[root@openstack-Teguht ~]# systemctl stop NetworkManager
[root@openstack-Teguht ~]# systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
   Active: inactive (dead) since Mon 2018-04-09 17:04:36 WIB; 22s ago
     Docs: man:NetworkManager(8)
 Main PID: 835 (code=exited, status=0/SUCCESS)

Apr 09 16:43:44 openstack-Teguht NetworkManager[835]: <info>  [1523267024.9526] device...0
Apr 09 16:53:51 openstack-Teguht NetworkManager[835]: <info>  [1523267631.2768] manage...d
Apr 09 16:53:55 openstack-Teguht NetworkManager[835]: <info>  [1523267635.7880] manage...d
Apr 09 16:54:41 openstack-Teguht NetworkManager[835]: <info>  [1523267681.3774] manage...d
Apr 09 16:55:05 openstack-Teguht NetworkManager[835]: <info>  [1523267705.2705] manage...d
Apr 09 16:55:09 openstack-Teguht NetworkManager[835]: <info>  [1523267709.6518] manage...d
Apr 09 17:04:36 openstack-Teguht NetworkManager[835]: <info>  [1523268276.4074] caught....
Apr 09 17:04:36 openstack-Teguht systemd[1]: Stopping Network Manager...
Apr 09 17:04:36 openstack-Teguht NetworkManager[835]: <info>  [1523268276.4082] device...0
Apr 09 17:04:36 openstack-Teguht systemd[1]: Stopped Network Manager.
Hint: Some lines were ellipsized, use -l to show in full.
[root@openstack-Teguht ~]#

7. Disable Mariadb
# yum erase mariadb-libs -y

8.  Install RDO repository
# wget https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-newton-4.noarch.rpm
# yum -y install https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-newton-4.noarch.rpm

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

9. Launch OpenStack Newton packstack automated installation with parameters
# yum -y install openstack-packstack
# packstack --allinone --provision-demo=n --os-heat-install=y

[root@openstack-Teguht ~]# packstack --allinone --provision-demo=n --os-heat-install=y
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20180409-170650-tAsuOP/openstack-setup.log
Packstack changed given value  to required value /root/.ssh/id_rsa.pub

Installing:
Clean Up                                             [ DONE ]
Discovering ip protocol version                      [ DONE ]
Setting up ssh keys                                  [ DONE ]
Preparing servers                                    [ DONE ]
Pre installing Puppet and discovering hosts' details [ DONE ]
Preparing pre-install entries                        [ DONE ]
Setting up CACERT                                    [ DONE ]
Preparing AMQP entries                               [ DONE ]
Preparing MariaDB entries                            [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Preparing Keystone entries                           [ DONE ]
Preparing Glance entries                             [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Preparing Cinder entries                             [ DONE ]
Preparing Nova API entries                           [ DONE ]
Creating ssh keys for Nova migration                 [ DONE ]
Gathering ssh host keys for Nova migration           [ DONE ]
Preparing Nova Compute entries                       [ DONE ]
Preparing Nova Scheduler entries                     [ DONE ]
Preparing Nova VNC Proxy entries                     [ DONE ]
Preparing OpenStack Network-related Nova entries     [ DONE ]
Preparing Nova Common entries                        [ DONE ]
Preparing Neutron LBaaS Agent entries                [ DONE ]
Preparing Neutron API entries                        [ DONE ]
Preparing Neutron L3 entries                         [ DONE ]
Preparing Neutron L2 Agent entries                   [ DONE ]
Preparing Neutron DHCP Agent entries                 [ DONE ]
Preparing Neutron Metering Agent entries             [ DONE ]
Checking if NetworkManager is enabled and running    [ DONE ]
Preparing OpenStack Client entries                   [ DONE ]
Preparing Horizon entries                            [ DONE ]
Preparing Swift builder entries                      [ DONE ]
Preparing Swift proxy entries                        [ DONE ]
Preparing Swift storage entries                      [ DONE ]
Preparing Heat entries                               [ DONE ]
Preparing Heat CloudFormation API entries            [ DONE ]
Preparing Gnocchi entries                            [ DONE ]
Preparing MongoDB entries                            [ DONE ]
Preparing Redis entries                              [ DONE ]
Preparing Ceilometer entries                         [ DONE ]
Preparing Aodh entries                               [ DONE ]
Preparing Nagios server entries                      [ DONE ]
Preparing Nagios host entries                        [ DONE ]
Preparing Puppet manifests                           [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 10.10.10.10_controller.pp
Testing if puppet apply is finished: 10.10.10.10_controller.pp  [ - ]
10.10.10.10_controller.pp:                         [ DONE ]         
Applying 10.10.10.10_network.pp
10.10.10.10_network.pp:                            [ DONE ]      
Applying 10.10.10.10_compute.pp
10.10.10.10_compute.pp:                            [ DONE ]      
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

 **** Installation completed successfully ******

Additional information:
 * A new answerfile was created in: /root/packstack-answers-20180409-170651.txt
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * File /root/keystonerc_admin has been created on OpenStack client host 10.10.10.10. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://10.10.10.10/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://10.10.10.10/nagios username: nagiosadmin, password: 3b718ea1c2924cbd
 * Because of the kernel update the host 10.10.10.10 requires reboot.
 * The installation log file is available at: /var/tmp/packstack/20180409-170650-tAsuOP/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20180409-170650-tAsuOP/manifests
[root@openstack-Teguht ~]#
[root@openstack-Teguht ~]#

10. Post Installation
http://10.10.10.10/dashboard

[root@openstack-Teguht ~]# cat /root/keystonerc_admin
unset OS_SERVICE_TOKEN
    export OS_USERNAME=admin
    export OS_PASSWORD=3b6715f6d8f84c82
    export OS_AUTH_URL=http://10.10.10.10:5000/v2.0
    export PS1='[\u@\h \W(keystone_admin)]\$ '
   
export OS_TENANT_NAME=admin
export OS_REGION_NAME=RegionOne
    [root@openstack-Teguht ~]#
   
11. Change password admin for your request
[root@openstack-Teguht ~]# cat /root/keystonerc_admin
unset OS_SERVICE_TOKEN
    export OS_USERNAME=admin
#    export OS_PASSWORD=3b6715f6d8f84c82
export OS_PASSWORD=admin
    export OS_AUTH_URL=http://10.10.10.10:5000/v2.0
    export PS1='[\u@\h \W(keystone_admin)]\$ '
   
export OS_TENANT_NAME=admin
export OS_REGION_NAME=RegionOne
   
[root@openstack-Teguht ~]#

12. Configure network interfaces (bind ens160 interface as a port to OVS bridge br-ex)
Create br-ex network interface file based on ens160 interface file:
ovs-vsctl add-port br-ex ens160; systemctl restart network

.::: backup & copy :::.

[root@openstack-Teguht data]# cp /etc/sysconfig/network-scripts/ifcfg-ens160 /data/ifcfg-ens160.backup
[root@openstack-Teguht data]# ls
ifcfg-ens160.backup  rdo-release-newton-4.noarch.rpm
[root@openstack-Teguht data]# cp /etc/sysconfig/network-scripts/ifcfg-ens160 /etc/sysconfig/network-scripts/ifcfg-br-ex

capture before additional port
[root@openstack-Teguht data]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:0c:29:1d:18:c2 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.10/24 brd 10.10.10.255 scope global ens160
       valid_lft forever preferred_lft forever
    inet6 fe80::5d3b:197a:bef8:1b39/64 scope link
       valid_lft forever preferred_lft forever
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 2e:7c:6a:f4:28:62 brd ff:ff:ff:ff:ff:ff
6: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN qlen 1000
    link/ether 52:42:e6:7e:80:4b brd ff:ff:ff:ff:ff:ff
    inet6 fe80::5042:e6ff:fe7e:804b/64 scope link
       valid_lft forever preferred_lft forever
7: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 62:19:d5:8d:73:4f brd ff:ff:ff:ff:ff:ff
8: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ba:a2:a3:ff:c3:48 brd ff:ff:ff:ff:ff:ff
[root@openstack-Teguht data]#
[root@openstack-Teguht data]# cat /etc/sysconfig/network-scripts/ifcfg-ens160
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens160
UUID=dceb2a97-8d7e-4a21-9b02-af980d6c60d0
DEVICE=ens160
ONBOOT=yes
IPADDR=10.10.10.10
PREFIX=24
GATEWAY=10.10.10.1
DNS1=8.8.8.8
IPV6_PRIVACY=no
[root@openstack-Teguht data]#

.::: Modify ifcfg-ens160 file to look like below: :::.

DEVICE=eth0
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-ex

[root@openstack-Teguht data]# cat /etc/sysconfig/network-scripts/ifcfg-ens160
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens160
UUID=dceb2a97-8d7e-4a21-9b02-af980d6c60d0
DEVICE=ens160
ONBOOT=yes
IPADDR=10.10.10.10
PREFIX=24
GATEWAY=10.10.10.1
DNS1=8.8.8.8
IPV6_PRIVACY=no
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-ex
[root@openstack-Teguht data]#


Modify ifcfg-br-ex file to look like below:

TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
NAME=br-ex
DEVICE=br-ex
ONBOOT=yes
IPADDR=10.10.10.10
PREFIX=24
GATEWAY=10.10.10.1
PEERDNS=no
NM_CONTROLLED=no

[root@openstack-Teguht data]# cat /etc/sysconfig/network-scripts/ifcfg-br-ex
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=br-ex
UUID=dceb2a97-8d7e-4a21-9b02-af980d6c60d0
DEVICE=br-ex
ONBOOT=yes
IPADDR=10.10.10.10
PREFIX=24
GATEWAY=10.10.10.1
DNS1=8.8.8.8
IPV6_PRIVACY=no
PEERDNS=no
NM_CONTROLLED=no
[root@openstack-Teguht data]#

13. Restart network service 
# ovs-vsctl add-port br-ex ens160; systemctl restart network

root@openstack-Teguht ~]# ovs-vsctl add-port br-ex ens160; systemctl restart network

[root@openstack-Teguht ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP qlen 1000
    link/ether 00:0c:29:1d:18:c2 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.10/24 brd 10.10.10.255 scope global ens160
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe1d:18c2/64 scope link
       valid_lft forever preferred_lft forever
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 2e:7c:6a:f4:28:62 brd ff:ff:ff:ff:ff:ff
6: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN qlen 1000
    link/ether 00:0c:29:1d:18:c2 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.10/24 brd 10.10.10.255 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 fe80::5042:e6ff:fe7e:804b/64 scope link
       valid_lft forever preferred_lft forever
7: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 62:19:d5:8d:73:4f brd ff:ff:ff:ff:ff:ff
8: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ba:a2:a3:ff:c3:48 brd ff:ff:ff:ff:ff:ff
[root@openstack-Teguht ~]# ifconfig -a
br-ex: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.10.10.10  netmask 255.255.255.0  broadcast 10.10.10.255
        inet6 fe80::5042:e6ff:fe7e:804b  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:1d:18:c2  txqueuelen 1000  (Ethernet)
        RX packets 2681  bytes 143953 (140.5 KiB)
        RX errors 0  dropped 9  overruns 0  frame 0
        TX packets 278  bytes 42132 (41.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

br-int: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 62:19:d5:8d:73:4f  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

br-tun: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether ba:a2:a3:ff:c3:48  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.10.10.10  netmask 255.255.255.0  broadcast 10.10.10.255
        inet6 fe80::20c:29ff:fe1d:18c2  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:1d:18:c2  txqueuelen 1000  (Ethernet)
        RX packets 2317  bytes 159030 (155.3 KiB)
        RX errors 0  dropped 10  overruns 0  frame 0
        TX packets 181  bytes 27272 (26.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 10449116  bytes 1532759795 (1.4 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10449116  bytes 1532759795 (1.4 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ovs-system: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 2e:7c:6a:f4:28:62  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@openstack-Teguht ~]#

14. Verify OpenStack status after packstack installation

# source /root/keystonerc_admin
# nova host-list
# nova service-list
# systemctl list-unit-files | grep openstack
# systemctl list-unit-files | grep openstack-heat
# openstack host list
# openstack compute service list

[root@openstack-Teguht ~]# cat /root/keystonerc_admin
unset OS_SERVICE_TOKEN
    export OS_USERNAME=admin
#    export OS_PASSWORD=3b6715f6d8f84c82
export OS_PASSWORD=admin
    export OS_AUTH_URL=http://10.10.10.10:5000/v2.0
    export PS1='[\u@\h \W(keystone_admin)]\$ '
   
export OS_TENANT_NAME=admin
export OS_REGION_NAME=RegionOne
   
[root@openstack-Teguht ~]# source /root/keystonerc_admin
[root@openstack-Teguht ~(keystone_admin)]#  nova host-list
+-------------------+-------------+----------+
| host_name         | service     | zone     |
+-------------------+-------------+----------+
| openstack-Teguht | cert        | internal |
| openstack-Teguht | consoleauth | internal |
| openstack-Teguht | scheduler   | internal |
| openstack-Teguht | conductor   | internal |
| openstack-Teguht | compute     | nova     |
+-------------------+-------------+----------+
[root@openstack-Teguht ~(keystone_admin)]# nova service-list
+----+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host              | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-cert        | openstack-Teguht | internal | enabled | up    | 2018-04-10T07:46:22.000000 | -               |
| 2  | nova-consoleauth | openstack-Teguht | internal | enabled | up    | 2018-04-10T07:46:23.000000 | -               |
| 5  | nova-scheduler   | openstack-Teguht | internal | enabled | up    | 2018-04-10T07:46:22.000000 | -               |
| 6  | nova-conductor   | openstack-Teguht | internal | enabled | up    | 2018-04-10T07:46:18.000000 | -               |
| 7  | nova-compute     | openstack-Teguht | nova     | enabled | up    | 2018-04-10T07:46:19.000000 | -               |
+----+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+
[root@openstack-Teguht ~(keystone_admin)]# neutron agent-list
+------------+------------+------------+-------------------+-------+----------------+----------------+
| id         | agent_type | host       | availability_zone | alive | admin_state_up | binary         |
+------------+------------+------------+-------------------+-------+----------------+----------------+
| 18730b86-3 | L3 agent   | openstack- | nova              | :-)   | True           | neutron-l3-age |
| 206-484e-  |            | install    |                   |       |                | nt             |
| 802a-d064e |            |            |                   |       |                |                |
| 282ab49    |            |            |                   |       |                |                |
| 1892cabe-9 | Open       | openstack- |                   | :-)   | True           | neutron-       |
| 634-406f-  | vSwitch    | install    |                   |       |                | openvswitch-   |
| 90da-7fc42 | agent      |            |                   |       |                | agent          |
| 38b569b    |            |            |                   |       |                |                |
| 3b1c69ca-  | Metadata   | openstack- |                   | :-)   | True           | neutron-       |
| 41a5-4583  | agent      | install    |                   |       |                | metadata-agent |
| -9d0f-2aab |            |            |                   |       |                |                |
| 9441fdb1   |            |            |                   |       |                |                |
| a7aa1993-7 | Metering   | openstack- |                   | :-)   | True           | neutron-       |
| d1f-4892-a | agent      | install    |                   |       |                | metering-agent |
| 499-70284f |            |            |                   |       |                |                |
| f032a3     |            |            |                   |       |                |                |
| f2593b12-0 | DHCP agent | openstack- | nova              | :-)   | True           | neutron-dhcp-  |
| cf5-4b67   |            | install    |                   |       |                | agent          |
| -815b-707d |            |            |                   |       |                |                |
| 193e9c1b   |            |            |                   |       |                |                |
+------------+------------+------------+-------------------+-------+----------------+----------------+
[root@openstack-Teguht ~(keystone_admin)]# systemctl list-unit-files | grep openstack
openstack-aodh-api.service                    disabled
openstack-aodh-evaluator.service              enabled
openstack-aodh-listener.service               enabled
openstack-aodh-notifier.service               enabled
openstack-ceilometer-api.service              disabled
openstack-ceilometer-central.service          enabled
openstack-ceilometer-collector.service        enabled
openstack-ceilometer-compute.service          enabled
openstack-ceilometer-notification.service     enabled
openstack-ceilometer-polling.service          disabled
openstack-cinder-api.service                  enabled
openstack-cinder-backup.service               enabled
openstack-cinder-scheduler.service            enabled
openstack-cinder-volume.service               enabled
openstack-glance-api.service                  enabled
openstack-glance-glare.service                disabled
openstack-glance-registry.service             enabled
openstack-glance-scrubber.service             disabled
openstack-gnocchi-api.service                 disabled
openstack-gnocchi-metricd.service             enabled
openstack-gnocchi-statsd.service              enabled
openstack-heat-api-cfn.service                enabled
openstack-heat-api.service                    enabled
openstack-heat-engine.service                 enabled
openstack-losetup.service                     enabled
openstack-nova-api.service                    enabled
openstack-nova-cert.service                   enabled
openstack-nova-compute.service                enabled
openstack-nova-conductor.service              enabled
openstack-nova-console.service                disabled
openstack-nova-consoleauth.service            enabled
openstack-nova-metadata-api.service           disabled
openstack-nova-novncproxy.service             enabled
openstack-nova-os-compute-api.service         disabled
openstack-nova-scheduler.service              enabled
openstack-nova-xvpvncproxy.service            disabled
openstack-swift-account-auditor.service       enabled
openstack-swift-account-auditor@.service      disabled
openstack-swift-account-reaper.service        enabled
openstack-swift-account-reaper@.service       disabled
openstack-swift-account-replicator.service    enabled
openstack-swift-account-replicator@.service   disabled
openstack-swift-account.service               enabled
openstack-swift-account@.service              disabled
openstack-swift-container-auditor.service     enabled
openstack-swift-container-auditor@.service    disabled
openstack-swift-container-reconciler.service  disabled
openstack-swift-container-replicator.service  enabled
openstack-swift-container-replicator@.service disabled
openstack-swift-container-updater.service     enabled
openstack-swift-container-updater@.service    disabled
openstack-swift-container.service             enabled
openstack-swift-container@.service            disabled
openstack-swift-object-auditor.service        enabled
openstack-swift-object-auditor@.service       disabled
openstack-swift-object-expirer.service        enabled
openstack-swift-object-reconstructor.service  disabled
openstack-swift-object-reconstructor@.service disabled
openstack-swift-object-replicator.service     enabled
openstack-swift-object-replicator@.service    disabled
openstack-swift-object-updater.service        enabled
openstack-swift-object-updater@.service       disabled
openstack-swift-object.service                enabled
openstack-swift-object@.service               disabled
openstack-swift-proxy.service                 enabled
[root@openstack-Teguht ~(keystone_admin)]# systemctl list-unit-files | grep openstack-heat
openstack-heat-api-cfn.service                enabled
openstack-heat-api.service                    enabled
openstack-heat-engine.service                 enabled
[root@openstack-Teguht ~(keystone_admin)]#

[root@openstack-Teguht ~(keystone_admin)]# openstack host list
+-------------------+-------------+----------+
| Host Name         | Service     | Zone     |
+-------------------+-------------+----------+
| openstack-Teguht | cert        | internal |
| openstack-Teguht | consoleauth | internal |
| openstack-Teguht | scheduler   | internal |
| openstack-Teguht | conductor   | internal |
| openstack-Teguht | compute     | nova     |
+-------------------+-------------+----------+

[root@openstack-Teguht ~(keystone_admin)]# openstack compute service list
+----+-----------------+-----------------+----------+---------+-------+-------------------+
| ID | Binary          | Host            | Zone     | Status  | State | Updated At        |
+----+-----------------+-----------------+----------+---------+-------+-------------------+
|  1 | nova-cert       | openstack-      | internal | enabled | up    | 2018-04-10T07:47: |
|    |                 | install         |          |         |       | 42.000000         |
|  2 | nova-           | openstack-      | internal | enabled | up    | 2018-04-10T07:47: |
|    | consoleauth     | install         |          |         |       | 43.000000         |
|  5 | nova-scheduler  | openstack-      | internal | enabled | up    | 2018-04-10T07:47: |
|    |                 | install         |          |         |       | 42.000000         |
|  6 | nova-conductor  | openstack-      | internal | enabled | up    | 2018-04-10T07:47: |
|    |                 | install         |          |         |       | 38.000000         |
|  7 | nova-compute    | openstack-      | nova     | enabled | up    | 2018-04-10T07:47: |
|    |                 | install         |          |         |       | 39.000000         |
+----+-----------------+-----------------+----------+---------+-------+-------------------+
[root@openstack-Teguht ~(keystone_admin)]#

15. Script to install openstack-stack as below
[root@openstack-TeguhT ~]# cat openstack_script_install.sh
#!/bin/bash
# detail instalation openstack http://teguhth.blogspot.co.id/2018/04/install-openstack-newton-all-in-one.html
#
echo "This Installation Openstack on Centos7 "
# 1. Disable SELinux
setenforce 0
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config

# 2. Disable firewall

systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld

# 3. Setting host
hostname -i >> /etc/hosts
cat /etc/hosts

# 4. Install SNMPD
rpm -q net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python
yum -y install net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python
rpm -q net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python

# 5. Update to lastest version(recomandded)
cat /etc/redhat-release
cat /etc/centos-release
yum -y update
cat /etc/redhat-release
cat /etc/centos-release

# 6. Disable NetworkManager
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl status NetworkManager

# 7. Disable Mariadb
yum erase mariadb-libs -y

# 8.  Install RDO repository
yum -y install wget
wget https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-newton-4.noarch.rpm
wget https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-newton-5.noarch.rpm
yum -y install https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-newton-4.noarch.rpm
yum -y install https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-newton-5.noarch.rpm

yum -y install openstack-packstack
# 9. Launch OpenStack Newton packstack automated installation with parameters
yum -y install openstack-packstack
packstack --allinone --provision-demo=n --os-heat-install=y

# 10. Post Installation
echo "open browser http://IP_add/dashboard"
hostname -i
cat /root/keystonerc_admin

# 11. Change password admin for your request
echo " 11. Change password admin for your request"
# 12. Configure network interfaces (bind ens160 interface as a port to OVS bridge br-ex)
mkdir /data/
chmod -R 777 /data
cp /etc/sysconfig/network-scripts/ifcfg-ens* /data/ifcfg-ens160.backup
cp /etc/sysconfig/network-scripts/ifcfg-ens* /etc/sysconfig/network-scripts/ifcfg-br-ex

echo " next setting manual using vi editor, detail http://teguhth.blogspot.co.id/2018/04/install-openstack-newton-all-in-one.html"

#.::: Modify ifcfg-ens160 file to look like below: :::.

#DEVICE=ens160
#ONBOOT=yes
#DEVICETYPE=ovs
#TYPE=OVSPort
#OVS_BRIDGE=br-ex

#Modify ifcfg-br-ex file to look like below:
# ip, hostname, check your server
#TYPE=Ethernet
#BOOTPROTO=none
#DEFROUTE=yes
#NAME=br-ex
#DEVICE=br-ex
#ONBOOT=yes
#IPADDR=10.10.10.10
#PREFIX=24
#GATEWAY=10.10.10.1
#PEERDNS=no
#NM_CONTROLLED=no

# 13. Restart network service
# 14. Verify OpenStack status after packstack installation

source /root/keystonerc_admin
nova host-list
nova service-list
systemctl list-unit-files | grep openstack
systemctl list-unit-files | grep openstack-heat
openstack host list
openstack compute service list

[root@openstack-TeguhT ~]#



tutorial
http://www.tuxfixer.com/install-openstack-newton-all-in-one-with-heat-orchestration-service-on-centos-7/

3 comments:

  1. Great post I must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. 4 ps of marketing

    ReplyDelete
  2. Great post thanks for sharing this.I was looking this kind of info.
    Openstack Course

    ReplyDelete

Popular Posts