Monday, February 8, 2016

Adding a compute node with Packstack


On compute node:
  • Stop network Manager.
# systemctl disable NetworkManager.service
#systemctl stop NetworkManager.service
#systemctl start network.service
#systemctl enable network.service

  • Configure local repo from RHEL7 DVD
  • Configure RDO repo:
yum install rdo-release-kilo-1.noarch.rpm
  • Configure epel repo
Yum install epel-release-latest-7.noarch.rpm

  • Install below required packages which are not present in repository:
 dnsmasq-utils-2.66-14.el7_1.x86_64.rpm
 python-cheetah-2.4.4-4.el7.x86_64.rpm
 python-markdown-2.4.1-1.el7.noarch.rpm
 python-pyasn1-modules-0.1.6-2.el7.noarch.rpm
 python-pygments-1.4-9.el7.noarch.rpm
 python-webob-1.2.3-8.el7.noarch.rpm
 python-werkzeug-0.9.1-1.el7.noarch.rpm

#Yum install pkg1 pkg2 etc.

ON CONTROLER NODE:

  • Add ip of compute server - in my case 192.168.140.134 in answer-file file
CONFIG_COMPUTE_HOSTS=192.168.140.133,192.168.140.134

[root@controller ~]# packstack --answer-file /root/answer.txt
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20160208-113001-2vehaw/openstack-setup.log

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 ]
Adding pre install manifest entries                  [ DONE ]
Installing time synchronization via NTP              [ DONE ]
Setting up CACERT                                    [ DONE ]
Adding AMQP manifest entries                         [ DONE ]
Adding MariaDB manifest entries                      [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Adding Keystone manifest entries                     [ DONE ]
Adding Glance Keystone manifest entries              [ DONE ]
Adding Glance manifest entries                       [ DONE ]
Adding Cinder Keystone manifest entries              [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Adding Cinder manifest entries                       [ DONE ]
Adding Nova API manifest entries                     [ DONE ]
Adding Nova Keystone manifest entries                [ DONE ]
Adding Nova Cert manifest entries                    [ DONE ]
Adding Nova Conductor manifest entries               [ DONE ]
Creating ssh keys for Nova migration                 [ DONE ]
Gathering ssh host keys for Nova migration           [ DONE ]
Adding Nova Compute manifest entries                 [ DONE ]
Adding Nova Scheduler manifest entries               [ DONE ]
Adding Nova VNC Proxy manifest entries               [ DONE ]
Adding OpenStack Network-related Nova manifest entries[ DONE ]
Adding Nova Common manifest entries                  [ DONE ]
Adding Neutron FWaaS Agent manifest entries          [ DONE ]
Adding Neutron LBaaS Agent manifest entries          [ DONE ]
Adding Neutron API manifest entries                  [ DONE ]
Adding Neutron Keystone manifest entries             [ DONE ]
Adding Neutron L3 manifest entries                   [ DONE ]
Adding Neutron L2 Agent manifest entries             [ DONE ]
Adding Neutron DHCP Agent manifest entries           [ DONE ]
Adding Neutron Metering Agent manifest entries       [ DONE ]
Adding Neutron Metadata Agent manifest entries       [ DONE ]
Checking if NetworkManager is enabled and running    [ DONE ]
Adding OpenStack Client manifest entries             [ DONE ]
Adding Horizon manifest entries                      [ DONE ]
Adding Heat manifest entries                         [ DONE ]
Adding Heat CloudFormation API manifest entries      [ DONE ]
Adding MongoDB manifest entries                      [ DONE ]
Adding Redis manifest entries                        [ DONE ]
Adding Ceilometer manifest entries                   [ DONE ]
Adding Ceilometer Keystone manifest entries          [ DONE ]
Adding Nagios server manifest entries                [ DONE ]
Adding Nagios host manifest entries                  [ DONE ]
Adding post install manifest entries                 [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 192.168.140.134_prescript.pp
Applying 192.168.140.133_prescript.pp
192.168.140.134_prescript.pp:                        [ DONE ]
192.168.140.133_prescript.pp:                        [ DONE ]
Applying 192.168.140.134_chrony.pp
Applying 192.168.140.133_chrony.pp
192.168.140.134_chrony.pp:                           [ DONE ]
192.168.140.133_chrony.pp:                           [ DONE ]
Applying 192.168.140.133_amqp.pp
Applying 192.168.140.133_mariadb.pp
192.168.140.133_amqp.pp:                             [ DONE ]
192.168.140.133_mariadb.pp:                          [ DONE ]
Applying 192.168.140.133_keystone.pp
Applying 192.168.140.133_glance.pp
Applying 192.168.140.133_cinder.pp
192.168.140.133_keystone.pp:                         [ DONE ]
192.168.140.133_glance.pp:                           [ DONE ]
192.168.140.133_cinder.pp:                           [ DONE ]
Applying 192.168.140.133_api_nova.pp
192.168.140.133_api_nova.pp:                         [ DONE ]
Applying 192.168.140.133_nova.pp
Applying 192.168.140.134_nova.pp
Applying 192.168.140.133_neutron.pp
192.168.140.134_nova.pp:                             [ DONE ]
192.168.140.133_nova.pp:                             [ DONE ]
192.168.140.133_neutron.pp:                          [ DONE ]
Applying 192.168.140.134_neutron.pp
192.168.140.134_neutron.pp:                          [ DONE ]
Applying 192.168.140.133_osclient.pp
Applying 192.168.140.133_horizon.pp
192.168.140.133_osclient.pp:                         [ DONE ]
192.168.140.133_horizon.pp:                          [ DONE ]
Applying 192.168.140.133_heat.pp
Applying 192.168.140.133_heatcnf.pp
192.168.140.133_heat.pp:                             [ DONE ]
192.168.140.133_heatcnf.pp:                          [ DONE ]
Applying 192.168.140.133_mongodb.pp
Applying 192.168.140.133_redis.pp
192.168.140.133_mongodb.pp:                          [ DONE ]
192.168.140.133_redis.pp:                            [ DONE ]
Applying 192.168.140.133_ceilometer.pp
192.168.140.133_ceilometer.pp:                       [ DONE ]
Applying 192.168.140.133_nagios.pp
Applying 192.168.140.134_nagios_nrpe.pp
Applying 192.168.140.133_nagios_nrpe.pp
192.168.140.134_nagios_nrpe.pp:                      [ DONE ]
192.168.140.133_nagios.pp:                           [ DONE ]
192.168.140.133_nagios_nrpe.pp:                      [ DONE ]
Applying 192.168.140.134_postscript.pp
Applying 192.168.140.133_postscript.pp
192.168.140.134_postscript.pp:                       [ DONE ]
192.168.140.133_postscript.pp:                       [ DONE ]
Applying Puppet manifests                            [ DONE ]
Finalizing                                           [ DONE ]

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

Additional information:
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.140.133. To use the command line tools you need to source the file.
 * NOTE : A certificate was generated to be used for ssl, You should change the ssl certificate configured in /etc/httpd/conf.d/ssl.conf on 192.168.140.133 to use a CA signed cert.
 * To access the OpenStack Dashboard browse to https://192.168.140.133/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://192.168.140.133/nagios username: nagiosadmin, password: e365d58566e5482e
 * The installation log file is available at: /var/tmp/packstack/20160208-113001-2vehaw/openstack-setup.log
 * The generated manifests are available at: /var/tmp/packstack/20160208-113001-2vehaw/manifests
[root@controller ~]#

On compute node:

[root@computenode ~]# openstack-status
== Nova services ==
openstack-nova-api:                     inactive  (disabled on boot)
openstack-nova-compute:                 active
openstack-nova-network:                 inactive  (disabled on boot)
openstack-nova-scheduler:               inactive  (disabled on boot)
== neutron services ==
neutron-server:                         inactive  (disabled on boot)
neutron-dhcp-agent:                     inactive  (disabled on boot)
neutron-l3-agent:                       inactive  (disabled on boot)
neutron-metadata-agent:                 inactive  (disabled on boot)
neutron-lbaas-agent:                    inactive  (disabled on boot)
neutron-openvswitch-agent:              active
== Ceilometer services ==
openstack-ceilometer-api:               inactive  (disabled on boot)
openstack-ceilometer-central:           inactive  (disabled on boot)
openstack-ceilometer-compute:           active
openstack-ceilometer-collector:         inactive  (disabled on boot)
== Support services ==
openvswitch:                            active
dbus:                                   active
Warning novarc not sourced
[root@computenode ~]#

Check in Dashboard.


No comments:

Post a Comment