Mailing List Archive

Hawk error
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: Pacemaker@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
Re: Hawk error [ In reply to ]
Hello Carlos,

On 03/03/2016 05:37 AM, Carlos Xavier wrote:
> Hi.
>
> I'm starting a new cluster on a OpenSuse 13.2, with the following packages installed:

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

>
> 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.

> 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:
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

>
>
> 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?

People can not help without relative message log in /var/log/message ;-)

Eric

>
> Best Regards,
> Carlos Xavier.
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker@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
>


_______________________________________________
Pacemaker mailing list: Pacemaker@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
Re: Hawk error [ In reply to ]
Hello Carlos,

On 03/03/2016 05:37 AM, Carlos Xavier wrote:
> Hi.
>
> I'm starting a new cluster on a OpenSuse 13.2, with the following packages installed:

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

>
> 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.

> 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:
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

>
>
> 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?

People can not help without relative message log in /var/log/message ;-)

Eric

>
> Best Regards,
> Carlos Xavier.
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker@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
>


_______________________________________________
Pacemaker mailing list: Pacemaker@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
Re: Hawk error [ In reply to ]
Carlos Xavier <cbastos@connection.com.br> writes:

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

Hi,

I would recommend moving to Leap, the versions included in 13.2 are
quite old at this point.

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

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

> 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: Pacemaker@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
// kgronlund@suse.com

_______________________________________________
Pacemaker mailing list: Pacemaker@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
Re: Hawk error [ In reply to ]
Carlos Xavier <cbastos@connection.com.br> writes:

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

Hi,

I would recommend moving to Leap, the versions included in 13.2 are
quite old at this point.

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

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

> 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: Pacemaker@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
// kgronlund@suse.com

_______________________________________________
Pacemaker mailing list: Pacemaker@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