***************** OPENSTACK Installation *****************
You can use file "packstack-answers-20160729-171434.txt" for installation of packstack
Above File Location: https://drive.google.com/file/d/16AcpmpzSOslYgiD6tYJMiBZ2TsTXu5U0/view?usp=sharing
Below Steps are successfully done on RHEL-7.2
=============================================
Step 1: Install rdo-release-mitaka-5.noarch.rpm to create rpository.
Step2: Open File /etc/yum.repos.d/rdo-release.repo & check below entries.
[openstack-mitaka]
name=OpenStack Mitaka Repository
#baseurl=http://mirror.centos.org/centos/7/cloud/$basearch/openstack-mitaka/
baseurl=http://mirror.centos.org/centos/7/cloud/$basearch/openstack-mitaka/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
make sure base url is accessible from host on which you are installing openstack.
Note: Also create local rhel-7.2 rpm's repository too.
Step 3: Now install Opestack & its dependents. & Dependencies Required:
Openstack packages: (MUST BE INSTALLED FROM REPOSITORY ON BASE URL PATH ABOVE)
openstack-packstack-8.0.0-1.el7.noarch.rpm
openstack-packstack-puppet-8.0.0-1.el7.noarch.rpm
openstack-puppet-modules-8.0.4-1.el7.noarch.rpm
Dependencies:
python-docutils-0.11-0.2.20130715svn7687.el7.noarch.rpm
python34-3.4.3-4.el7.x86_64.rpm --- for python(abi)
python34-libs-3.4.3-4.el7.x86_64.rpm
python-libs-2.7.5-34.el7.x86_64
puppet-3.6.2-3.el7.noarch
python-2.7.5-34.el7.x86_64 -- default with RHEl-7.2
PyXML-0.8.4-27.99.fc19.x86_64.rpm
ruby-augeas-0.5.0-1.el7.x86_64 (From Repository)
ruby-shadow-1.4.1-23.el7.x86_64 (From Repository)
rubygem-rgen-0.6.6-2.el7.noarch (From Repository)
hiera-1.3.4-5.el7.noarch (From Repository)
facter-2.4.4-3.el7.x86_64 (From Repository)
python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64
python-zope-event-4.0.3-3.fc23.noarch.rpm
python-zope-interface-4.1.2-2.fc23.x86_64.rpm
python-repoze-who.noarch 0:2.1-1.el7 (From Repository)
python-pygments-1.6-4.fc23.noarch.rpm
python-markdown-2.4.1-1.el7.centos.noarch.rpm
python-cheetah-2.4.4-5.el7.centos.x86_64.rpm
python-werkzeug-0.9.1-2.el7.noarch.rpm
python-ceilometer.noarch 1:6.0.0-2.el7 (From Repository)
python-beautifulsoup4.noarch 0:4.4.1-3.el7
python-waitress-0.8.9-6.fc23.noarch.rpm
python-webtest-2.0.17-2.fc23.noarch.rpm
glibc-2.17-105.el7.i686 (From Repository)
dnsmasq-utils-2.75-3.fc23.i686.rpm
openstack-neutron-8.1.2-1.el7.noarch (From Repository)
libxslt-python-1.1.28-5.el7.x86_64.rpm
python-ncclient.noarch 0:0.4.2-2.el7
From Repository
python-django.noarch 0:1.8.13-1.el7
python-flask-0.9-7.fc19.noarch.rpm
python-gnocchi*
openstack-gnocchi*
redis-3.0.6-1.el7.x86_64
python-redis-2.10.3-1.el7.noarch
openstack-aodh*
python-aodh*
python2-aodh*
mongodb*
python-pymongo*
nagios-plugins-nrpe*
nrpe*
Below Ruby Packages are pre installed with RHEL 7.2
ruby-2.0.0.598-25.el7_1.x86_64
rubygem-psych-2.0.0-25.el7_1.x86_64
ruby-libs-2.0.0.598-25.el7_1.x86_64
rubygem-json-1.7.7-25.el7_1.x86_64
rubygem-rdoc-4.0.0-25.el7_1.noarch
libselinux-ruby-2.2.2-6.el7.x86_64
rubygem-io-console-0.4.2-25.el7_1.x86_64
rubygems-2.0.14-25.el7_1.noarch
rubygem-bigdecimal-1.2.0-25.el7_1.x86_64
ruby-irb-2.0.0.598-25.el7_1.noarch
Step 4: Once you installed above all packages verify for error, all services and create answerfile using below command:
[root@openstack ~]# packstack --answer-file packstack-answers-20160729-171434.txt
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20160729-194859-3Redjs/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 ]
Setting up CACERT [ DONE ]
Adding AMQP manifest entries [ DONE ]
Adding MariaDB manifest entries [ DONE ]
Adding Apache 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 VPNaaS Agent 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 ]
Adding Neutron SR-IOV Switch Agent manifest entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Adding OpenStack Client manifest entries [ DONE ]
Adding Horizon manifest entries [ DONE ]
Adding Swift Keystone manifest entries [ DONE ]
Adding Swift builder manifest entries [ DONE ]
Adding Swift proxy manifest entries [ DONE ]
Adding Swift storage manifest entries [ DONE ]
Adding Swift common manifest entries [ DONE ]
Adding Provisioning manifest entries [ DONE ]
Adding Provisioning Glance manifest entries [ DONE ]
Adding Provisioning Demo bridge manifest entries [ DONE ]
Adding Gnocchi manifest entries [ DONE ]
Adding Gnocchi Keystone 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 Aodh manifest entries [ DONE ]
Adding Aodh Keystone manifest entries [ DONE ]
Adding Nagios server manifest entries [ DONE ]
Adding Nagios host manifest entries [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 192.168.44.132_prescript.pp
192.168.44.132_prescript.pp: [ DONE ]
Applying 192.168.44.132_amqp.pp
Applying 192.168.44.132_mariadb.pp
192.168.44.132_amqp.pp: [ DONE ]
192.168.44.132_mariadb.pp: [ DONE ]
Applying 192.168.44.132_apache.pp
192.168.44.132_apache.pp: [ DONE ]
Applying 192.168.44.132_keystone.pp
Applying 192.168.44.132_glance.pp
Applying 192.168.44.132_cinder.pp
192.168.44.132_keystone.pp: [ DONE ]
192.168.44.132_glance.pp: [ DONE ]
192.168.44.132_cinder.pp: [ DONE ]
Applying 192.168.44.132_api_nova.pp
192.168.44.132_api_nova.pp: [ DONE ]
Applying 192.168.44.132_nova.pp
192.168.44.132_nova.pp: [ DONE ]
Applying 192.168.44.132_neutron.pp
192.168.44.132_neutron.pp: [ DONE ]
Applying 192.168.44.132_osclient.pp
Applying 192.168.44.132_horizon.pp
192.168.44.132_osclient.pp: [ DONE ]
192.168.44.132_horizon.pp: [ DONE ]
Applying 192.168.44.132_ring_swift.pp
192.168.44.132_ring_swift.pp: [ DONE ]
Applying 192.168.44.132_swift.pp
192.168.44.132_swift.pp: [ DONE ]
Applying 192.168.44.132_provision.pp
Applying 192.168.44.132_provision_glance
192.168.44.132_provision.pp: [ DONE ]
192.168.44.132_provision_glance: [ DONE ]
Applying 192.168.44.132_provision_bridge.pp
192.168.44.132_provision_bridge.pp: [ DONE ]
Applying 192.168.44.132_gnocchi.pp
192.168.44.132_gnocchi.pp: [ DONE ]
Applying 192.168.44.132_mongodb.pp
Applying 192.168.44.132_redis.pp
192.168.44.132_mongodb.pp: [ DONE ]
192.168.44.132_redis.pp: [ DONE ]
Applying 192.168.44.132_ceilometer.pp
192.168.44.132_ceilometer.pp: [ DONE ]
Applying 192.168.44.132_aodh.pp
192.168.44.132_aodh.pp: [ DONE ]
Applying 192.168.44.132_nagios.pp
Applying 192.168.44.132_nagios_nrpe.pp
192.168.44.132_nagios.pp: [ DONE ]
192.168.44.132_nagios_nrpe.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
Additional information:
* 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 192.168.44.132. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.44.132/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://192.168.44.132/nagios username: nagiosadmin, password: welcome1
* The installation log file is available at: /var/tmp/packstack/20160729-212510-yezyx7/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20160729-212510-yezyx7/manifests
Error Faced During Installation:
===============================
Error1:
*******
192.168.44.128_amqp.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 192.168.44.128_amqp.pp
Error: Could not start Service[rabbitmq-server]: Execution of '/usr/bin/systemctl start rabbitmq-server' returned 1: Job for
rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service"
and "journalctl -xe" for details.You will find full trace in log /var/tmp/packstack/20160727-202236-tV7Frg/manifests/192.168.44.128_amqp.pp.log
Solution: For above error Please check /etc/hostname & /etc/hosts file both must have smae hostname, test using hostname command too.
Error2:
******
ERROR : Error appeared during Puppet run: 192.168.44.132_keystone.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install python-keystone' returned 1: Error:
Package: python-repoze-who-2.1-1.el7.noarch (openstack-mitaka)
Solution: For above error install packages python-zope-event, python-zope-interface & python-repoze-who
error3:
*******
192.168.44.132_cinder.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 192.168.44.132_cinder.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-cinder' returned 1: Error: Package: 1:
python-cinder-8.0.0-1.el7.noarch (openstack-mitaka)
You will find full trace in log /var/tmp/packstack/20160727-215238-ldy0ds/manifests/192.168.44.132_cinder.pp.log
Solution:
python-pygments-1.6-4.fc23.noarch.rpm
python-markdown-2.4.1-1.el7.centos.noarch.rpm
python-cheetah-2.4.4-5.el7.centos.x86_64.rpm
error4:
*******
192.168.44.132_cinder.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 192.168.44.132_cinder.pp
Error: Could not prefetch cinder_type provider 'openstack': Command: 'openstack ["volume type", "list", "--quiet",
"--format", "csv", "--long"]' has been running for more then 20 seconds!
Solution: rerun # stackpack --allinone
error5:
*******
ERROR : Error appeared during Puppet run: 192.168.44.132_nova.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-ceilometer-compute' returned 1: Error: Package: 1:
python-ceilometer-6.0.0-2.el7.noarch (openstack-mitaka)
You will find full trace in log /var/tmp/packstack/20160727-222848-dbuo_S/manifests/192.168.44.132_nova.pp.log
Solution: installed python-werkzeug-0.9.1-2.el7.noarch.rpm & python-ceilometer.noarch 1:6.0.0-2.el7
error6:
*******
ERROR : Error appeared during Puppet run: 192.168.44.132_neutron.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-neutron' returned 1: Error: Package: 1:
openstack-neutron-8.1.2-1.el7.noarch (openstack-mitaka)
You will find full trace in log /var/tmp/packstack/20160728-131207-KONQJ9/manifests/192.168.44.132_neutron.pp.log
Solution: python-beautifulsoup4.noarch 0:4.4.1-3.el7
python-waitress-0.8.9-6.fc23.noarch.rpm
python-webtest-2.0.17-2.fc23.noarch.rpm
dnsmasq-utils-2.75-3.fc23.i686.rpm
glibc-2.17-105.el7.i686
dnsmasq-utils-2.75-3.fc23.i686.rpm
openstack-neutron-8.1.2-1.el7.noarch
error7:
********
192.168.44.132_neutron.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 192.168.44.132_neutron.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-neutron-ml2' returned 1: Error: Package:
python-ncclient-0.4.2-2.el7.noarch (openstack-mitaka)
You will find full trace in log /var/tmp/packstack/20160728-152521-ePrp4x/manifests/192.168.44.132_neutron.pp.log
Solution:
libxslt-python-1.1.28-5.el7.x86_64.rpm
python-ncclient.noarch 0:0.4.2-2.el7
error8:
*******
192.168.44.132_aodh.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]
ERROR : Error appeared during Puppet run: 192.168.44.132_aodh.pp
Error: /Stage[main]/Apache::Service/Service[httpd]: Failed to call refresh: Could not restart Service[httpd]: Execution of
'/usr/bin/systemctl restart httpd' returned 1: Job for httpd.service failed because a fatal signal was delivered
to the control process. See "systemctl status httpd.service" and "journalctl -xe" for details.
Solution: tried two hitn trial methods: 1. # systemctl disble celiometer.api
2. # enable & disabled "Listen:80" entry in httpd.conf file.
then tried starting httpd service which worked.
error9:
*******
Applying 192.168.44.132_nova.pp
Testing if puppet apply is finished: 192.168.44.132_nova.pp [ / ] <-------- was not responding so stopped below
Solution:
vi /etc/nova/nova.conf
vi /usr/share/nova/nova-dist.conf
make sure below entry is same in both above file;
[root@openstack ~]# cat /etc/nova/nova.conf |grep nova:welcome1
connection=mysql+pymysql://nova:welcome1@192.168.44.132/nova
[root@openstack ~]#
[root@openstack ~]# cat /usr/share/nova/nova-dist.conf |grep nova:welcome1
connection = mysql://nova:welcome1@192.168.44.132/nova
then rebooted host.
Some services needs to be stopped:
*************************************
[root@openstack ~]# systemctl mask NetworkManager
Created symlink from /etc/systemd/system/NetworkManager.service to /dev/null.
[root@openstack ~]# systemctl status NetworkManager.service
? NetworkManager.service
Loaded: masked (/dev/null)
Active: inactive (dead)
[root@openstack ~]# systemctl stop NetworkManager.service
[root@openstack ~]# systemctl status NetworkManager.service
? NetworkManager.service
Loaded: masked (/dev/null)
Active: inactive (dead)
Jul 29 18:33:36 openstack systemd[1]: Stopped NetworkManager.service.
[root@openstack ~]#
yum remove NetworkManager NetworkManager-libnm postfix