RHEL 6.6 - pcsd GUI availability

Latest response

Hi,

I have just installed RHEL 6.6 (Red Hat Enterprise Linux Server release 6.6) and installed the pacemaker package in order to use the HA solution:

# rpm -q pcs
pcs-0.9.123-9.el6.x86_64
# rpm -q ruby
ruby-1.8.7.374-2.el6.x86_64
# pcs cluster status
Cluster Status:
 Last updated: Thu Jan 14 18:47:52 2016
 Last change: Thu Jan 14 16:28:07 2016
 Stack: cman
 Current DC: eastapp1 - partition with quorum
 Version: 1.1.11-97629de
 2 Nodes configured
 3 Resources configured

PCSD Status:
  eastapp1: Online
  eastapp2: Online

===

I want to use the pcsd GUI.. I read online that the RHEL 6.6 supports it but, when I was trying to access it I was getting the PCSD DISABLED message on the browser...

So I went to the pcsd.rb file and found out that there was a isrehl6 tag there that pointed to the disabled_gui to true. That was weird since the GUI suppose to work with RHEL6.6

What I did was to set it to false:

configure do
  ISRHEL6 = is_rhel6
  DISABLE_GUI = <false>

And it worked... I was able to log in the GUI using the hacluster user... but when I try to add an existing cluster I get this on the pcsd.log

::ffff:10.216.209.65 - - [14/Jan/2016 18:40:06] "GET /remote/check_auth HTTP/1.1" 200 - 0.0592
::ffff:10.216.209.65 - - [14/Jan/2016 18:40:06] "GET /remote/check_auth HTTP/1.1" 200 - 0.0598
eastapp1 - - [14/Jan/2016:18:40:06 CET] "GET /remote/check_auth HTTP/1.1" 200 0
- -> /remote/check_auth
eastapp1 - - [14/Jan/2016:18:40:06 CET] "POST /remote/check_gui_status HTTP/1.1" 500 186223
https://localhost:2224/manage -> /remote/check_gui_status
I, [2016-01-14T18:40:27.110591 #4262]  INFO -- : Running: /usr/sbin/corosync-objctl totem.cluster_name
NoMethodError - undefined method `value' for nil:NilClass:
        /usr/lib/pcsd/remote.rb:256:in `check_gui_status'
        /usr/lib/ruby/1.8/open3.rb:86:in `popen3'
        /usr/lib/pcsd/remote.rb:255:in `check_gui_status'
        /usr/lib/pcsd/remote.rb:58:in `remote'
        /usr/lib/pcsd/pcsd.rb:184:in `POST /remote/?:command?'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1592:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1592:in `compile!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `[]'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `route!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:976:in `route_eval'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `route!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:997:in `process_route'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `catch'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:955:in `route!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `each'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `route!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1067:in `dispatch!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1064:in `dispatch!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:877:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call_without_check'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:217:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-protection-1.5.2/lib/rack/protection/xss_header.rb:18:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-protection-1.5.2/lib/rack/protection/path_traversal.rb:16:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-protection-1.5.2/lib/rack/protection/json_csrf.rb:18:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/logger.rb:15:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call_without_check'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:217:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:210:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1778:in `synchronize'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `call'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
        /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
        /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in `run'
        /usr/lib/pcsd/ssl.rb:66
I, [2016-01-14T18:40:27.304376 #4262]  INFO -- : Running: /usr/sbin/corosync-objctl totem.cluster_name
::ffff:10.216.209.65 - - [14/Jan/2016 18:40:27] "GET /remote/check_auth HTTP/1.1" 200 - 0.0615
::ffff:10.216.209.65 - - [14/Jan/2016 18:40:27] "GET /remote/check_auth HTTP/1.1" 200 - 0.0626
eastapp1 - - [14/Jan/2016:18:40:27 CET] "GET /remote/check_auth HTTP/1.1" 200 0
- -> /remote/check_auth
eastapp1 - - [14/Jan/2016:18:40:27 CET] "POST /remote/check_gui_status HTTP/1.1" 500 186223
https://localhost:2224/manage -> /remote/check_gui_status

=======

Any suggestion on how to overcome this?

Tks in advance.

Responses