Discussion:
[Pacemaker] Hawk error
Carlos Xavier
2016-03-02 21:37:25 UTC
Permalink
Hi.

I'm starting a new cluster on a OpenSuse 13.2, with the following packages installed:

hawk-0.7.0+git.1409894131.1344649-2.2.x86_64
hawk-templates-0.7.0+git.1409894131.1344649-2.2.x86_64
pacemaker-1.1.12.git20140904.266d5c2-1.5.x86_64
libpacemaker3-1.1.12.git20140904.266d5c2-1.5.x86_64
pacemaker-remote-1.1.12.git20140904.266d5c2-1.5.x86_64
pacemaker-cli-1.1.12.git20140904.266d5c2-1.5.x86_64
corosync-2.3.4-1.2.x86_64
libcorosync4-2.3.4-1.2.x86_64

When I did the installation of the system I installed hawk and it installed all the packages, including pacemaker and corosync.
At this time I got this simple configuration on the cluster:

node 1: rjgw-01
node 2: rjgw-02
primitive resIPMI-1 stonith:external/ipmi \
params hostname=rjgw-01 ipaddr=172.31.0.246 userid=root passwd=genese interface=lan \
op monitor interval=600 timeout=240 \
meta target-role=Started
primitive resIPMI-2 stonith:external/ipmi \
params hostname=rjgw-02 ipaddr=172.31.0.247 userid=root passwd=genese interface=lan \
op monitor interval=600 timeout=240 \
meta target-role=Started
location locIPMI-1 resIPMI-1 -inf: rjgw-01
location locIPMI-2 resIPMI-2 -inf: rjgw-02
property cib-bootstrap-options: \
dc-version=1.1.12-1.1.12.git20140904.266d5c2 \
cluster-infrastructure=corosync \
last-lrm-refresh=1456949266 \
no-quorum-policy=ignore \
cluster-name=cluster_web
# vim: set filetype=pcmk:


I enabled the Hawk on the system and started it. When I tried to access the hawk interface it gave me the error
500 - Internal Server Error

I verified the status of the program and got the messages below:

rjgw-01:~ # systemctl -l status hawk
hawk.service - HA Web Konsole (hawk)
Loaded: loaded (/usr/lib/systemd/system/hawk.service; enabled)
Active: active (running) since Wed 2016-03-02 18:28:21 BRT; 5s ago
Process: 3130 ExecStartPre=/usr/sbin/lighttpd -t -f /srv/www/hawk/config/lighttpd.conf (code=exited, status=0/SUCCESS)
Process: 3126 ExecStartPre=/srv/www/hawk/script/generate-ssl-cert (code=exited, status=0/SUCCESS)
Main PID: 3132 (lighttpd)
CGroup: /system.slice/hawk.service
ââ3132 /usr/sbin/lighttpd -D -f /srv/www/hawk/config/lighttpd.conf

Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block
in run_initializers'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in
`run_initializers'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:136:in
`initialize!'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in
`method_missing'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /srv/www/hawk/config/environment.rb:5:in `<top (required)>'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /srv/www/hawk/public/dispatch.fcgi:8:in `<main>'

I have used Hawk on other cluster and never got those errors.

Am I missing something?
Please, can you help me to fix this issue?

Best Regards,
Carlos Xavier.


_______________________________________________
Pacemaker mailing list: ***@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
Eric Ren
2016-03-03 04:34:52 UTC
Permalink
Hello Carlos,
Post by Carlos Xavier
Hi.
I suggest you should use opensuse leap 42.1 if you want to run business
on the cluster, or opensuse tumbleweed if you
are just playing with HA stuff. It's because opensuse 13.2 is generally
for desktop, leap 42.1 is similiar with centos, and tumbleweed
is roll distribution. As for HA stuff, developers always make leap
travel with SLE. For detailed description:
[1] https://en.opensuse.org/Portal:42.1
[2] https://en.opensuse.org/Portal:Tumbleweed
Post by Carlos Xavier
hawk-0.7.0+git.1409894131.1344649-2.2.x86_64
hawk-templates-0.7.0+git.1409894131.1344649-2.2.x86_64
If you look back forward the mail list, you will see Kristoffer just release hawk2.0 lately.
Post by Carlos Xavier
pacemaker-1.1.12.git20140904.266d5c2-1.5.x86_64
libpacemaker3-1.1.12.git20140904.266d5c2-1.5.x86_64
pacemaker-remote-1.1.12.git20140904.266d5c2-1.5.x86_64
pacemaker-cli-1.1.12.git20140904.266d5c2-1.5.x86_64
corosync-2.3.4-1.2.x86_64
libcorosync4-2.3.4-1.2.x86_64
When I did the installation of the system I installed hawk and it installed all the packages, including pacemaker and corosync.
node 1: rjgw-01
node 2: rjgw-02
primitive resIPMI-1 stonith:external/ipmi \
params hostname=rjgw-01 ipaddr=172.31.0.246 userid=root passwd=genese interface=lan \
op monitor interval=600 timeout=240 \
meta target-role=Started
primitive resIPMI-2 stonith:external/ipmi \
params hostname=rjgw-02 ipaddr=172.31.0.247 userid=root passwd=genese interface=lan \
op monitor interval=600 timeout=240 \
meta target-role=Started
location locIPMI-1 resIPMI-1 -inf: rjgw-01
location locIPMI-2 resIPMI-2 -inf: rjgw-02
property cib-bootstrap-options: \
dc-version=1.1.12-1.1.12.git20140904.266d5c2 \
cluster-infrastructure=corosync \
last-lrm-refresh=1456949266 \
no-quorum-policy=ignore \
cluster-name=cluster_web
What did the `crm status` dispaly? I think you should first make sure
the whole cluster is OK.
It doesn't matter to hack that what your RAs configuration are.

If you're on leap and tumbleweed, install this package should be enough
for a basic cluster:
#zypper in pacemaker corosync crmsh sbd ha-cluster-bootstrap

Then, I recommend ha-cluster-bootstrap for you to set up cluster, really
love it.
Look at here:
[3]
https://www.suse.com/documentation/sle-ha-12/book_sleha/data/sec_ha_installation_setup_auto.html
Post by Carlos Xavier
I enabled the Hawk on the system and started it. When I tried to access the hawk interface it gave me the error
500 - Internal Server Error
rjgw-01:~ # systemctl -l status hawk
hawk.service - HA Web Konsole (hawk)
Loaded: loaded (/usr/lib/systemd/system/hawk.service; enabled)
Active: active (running) since Wed 2016-03-02 18:28:21 BRT; 5s ago
Process: 3130 ExecStartPre=/usr/sbin/lighttpd -t -f /srv/www/hawk/config/lighttpd.conf (code=exited, status=0/SUCCESS)
Process: 3126 ExecStartPre=/srv/www/hawk/script/generate-ssl-cert (code=exited, status=0/SUCCESS)
Main PID: 3132 (lighttpd)
CGroup: /system.slice/hawk.service
ââ3132 /usr/sbin/lighttpd -D -f /srv/www/hawk/config/lighttpd.conf
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block
in run_initializers'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in
`run_initializers'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:136:in
`initialize!'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/gems/2.1.0/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in
`method_missing'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /srv/www/hawk/config/environment.rb:5:in `<top (required)>'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Mar 02 18:28:22 rjgw-01 lighttpd[3132]: from /srv/www/hawk/public/dispatch.fcgi:8:in `<main>'
I have used Hawk on other cluster and never got those errors.
Am I missing something?
Please, can you help me to fix this issue?
People can not help without relative message log in /var/log/message ;-)

Eric
Post by Carlos Xavier
Best Regards,
Carlos Xavier.
_______________________________________________
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
_______________________________________________
Pacemaker mailing list: ***@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
Kristoffer Grönlund
2016-03-03 10:07:34 UTC
Permalink
Post by Carlos Xavier
Hi.
Hi,

I would recommend moving to Leap, the versions included in 13.2 are
quite old at this point.
This is only the tail end of the error message. To get the full message,
use journalctl:

journalctl -u hawk

Most likely, there is some dependency problem as Hawk depends on a
number of rubygems and one of them may have been updated to an
incompatible version.

Cheers,
Kristoffer
Post by Carlos Xavier
I have used Hawk on other cluster and never got those errors.
Am I missing something?
Please, can you help me to fix this issue?
Best Regards,
Carlos Xavier.
_______________________________________________
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
--
// Kristoffer Grönlund
// ***@suse.com

_______________________________________________
Pacemaker mailing list: ***@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs:
Carlos Xavier
2016-03-04 11:30:43 UTC
Permalink
Tank you Erick and Kristoffer for your answers.
-----Mensagem original-----
Enviada em: quinta-feira, 3 de março de 2016 07:08
Assunto: Re: [Pacemaker] Hawk error
Post by Carlos Xavier
Hi.
Hi,
I would recommend moving to Leap, the versions included in 13.2 are quite old at this point.
I´m going to take a look at it. I just downloaded the Leap 42.1
journalctl -u hawk
Most likely, there is some dependency problem as Hawk depends on a number of rubygems and one of them
may have been updated to an incompatible version.
I´m afraid you are right. This is the error causing the issue.

-- Logs begin at Thu 2016-02-25 20:42:31 BRT, end at Fri 2016-03-04 08:10:40 BRT. --
Feb 29 16:12:52 rjgw-01 generate-ssl-cert[2359]: No SSL certificate found. Creating one now.
Feb 29 16:12:53 rjgw-01 lighttpd[2375]: Syntax OK
Feb 29 16:12:54 rjgw-01 lighttpd[2379]: /usr/lib64/ruby/gems/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:317:in `rescue in depend_on'/usr/lib64/ruby/gems/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:317:in `rescue in depend_on': No such file to load -- active_support/security_utils: (No such file to load -- active_support/security_utilsLoadError ()
Feb 29 16:12:54 rjgw-01 lighttpd[2379]: LoadError)
Cheers,
Kristoffer
Post by Carlos Xavier
I have used Hawk on other cluster and never got those errors.
Am I missing something?
Please, can you help me to fix this issue?
Best Regards,
Carlos Xavier.
_______________________________________________
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
--
// Kristoffer Grönlund
_______________________________________________
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
Regards,
Carlos Xavier.


_______________________________________________
Pacemaker mailing list: ***@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.
Loading...