Saturday, October 22, 2016
Sunday, October 16, 2016

"Error: Could not start Service[rabbitmq-server]" when run packstack

Error like:

192.168.20.201_prescript.pp:                         [ DONE ]
Applying 192.168.20.201_amqp.pp
Applying 192.168.20.201_mariadb.pp
192.168.20.201_amqp.pp:                           [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.20.201_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/20161016-201929-vI5vXv/manifests/192.168.20.201_amqp.pp.log
Please check log file /var/tmp/packstack/20161016-201929-vI5vXv/openstack-setup.log for more information
Additional information:
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * Warning: NetworkManager is active on 192.168.20.201. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.20.201. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://192.168.20.201/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://192.168.20.201/nagios username: nagiosadmin, password: 64c19915cf7c47e1
[root@cloud ~]#

Solution:
check your /etc/hostname and add your domain to /etc/hostname

Before:

[root@cloud ~]# cat /etc/hostname
cloud.openstack.lab

[root@cloud ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@cloud ~]# 

After:
[root@cloud ~]# cat /etc/hostname
cloud.openstack.lab

[root@cloud ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 cloud.openstack.lab
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@cloud ~]#


"Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install erlang" when run packstack

Error like:



Applying 192.168.20.201_prescript.pp
192.168.20.201_prescript.pp:                         [ DONE ]
Applying 192.168.20.201_amqp.pp
Applying 192.168.20.201_mariadb.pp
192.168.20.201_amqp.pp:                           [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.20.201_amqp.pp
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install erlang' returned 1: Error: Package: erlang-wx-18.3.4.4-1.el7.x86_64 (centos-openstack-mitaka)
You will find full trace in log /var/tmp/packstack/20161016-194052-IyGAcO/manifests/192.168.20.201_amqp.pp.log
Please check log file /var/tmp/packstack/20161016-194052-IyGAcO/openstack-setup.log for more information
Additional information:
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * Warning: NetworkManager is active on 192.168.20.201. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.20.201. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://192.168.20.201/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
 * To use Nagios, browse to http://192.168.20.201/nagios username: nagiosadmin,password: 64c19915cf7c47e1
[root@cloud ~]#


 Solution:
download epel repository.

[root@cloud ~]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

and install it

[root@cloud ~]# rpm -ivh epel-release-latest-7.noarch.rpm
[root@cloud ~]# yum --enablerepo=epel info erlang
[root@cloud ~]# yum --enablerepo=epel install erlang

and run packstak again