Am 15.12.2015 um 02:44 schrieb Madhusmita Gochhait:
Hello All ,


I have a 2 node active-active  setup for icinga , with a vip address
which points to these nodes .

For Ex :

icinga1 : icinga-cluster-3.englab.juniper.net
icinga2 :icinga-cluster-5.englab.juniper.net
VIP: icinga-cluster-6.englab.juniper.net

How does that virtual ip determine which node is in charge?
Undeterminstic DNS entries?


In log , I see both nodes syncing :

[2015-12-14 17:39:22 -0800] information/ApiListener: New client
connection for identity 'icinga-cluster-3.englab.juniper.net'
[2015-12-14 17:39:22 -0800] information/ApiListener: Sending updates
for endpoint 'icinga-cluster-3.englab.juniper.net'.
[2015-12-14 17:39:22 -0800] information/ApiListener: Syncing runtime
objects to endpoint 'icinga-cluster-3.englab.juniper.net'.
[2015-12-14 17:39:22 -0800] information/ApiListener: Finished sending
updates for endpoint 'icinga-cluster-3.englab.juniper.net'.


But When I am sending PUT/DELETE requests through the VIP , like :

curl -k -s -u icingaadmin:icinga 'https://
<https://localhost:5665/v1/objects/hosts/10.102.58.77>icinga-cluster-6.englab.juniper.net:5665/v1/objects/hosts/10.102.58.77
<https://localhost:5665/v1/objects/hosts/10.102.58.77>'  -H "Accept:
application/json" -X PUT -d '{ "templates": [ "generic-host" ],
"attrs": { "address": “10.102.58.77”}}

curl -k -s -u icingaadmin:icinga 'https://
<https://localhost:5665/v1/objects/hosts/10.102.58.77>icinga-cluster-6.englab.juniper.net:5665/v1/objects/hosts/10.102.58.77
<https://localhost:5665/v1/objects/hosts/10.102.58.77>'  -H "Accept:
application/json" -X DELETE


This is causing the Icinga process on one of the icinga node to crash .

Any logs or details on that crash?

Kind regards,
Michael


And I see the log in the other node :

[2015-12-14 17:15:55 -0800] warning/JsonRpcConnection: Error while
reading JSON-RPC message for identity
’icinga-cluster-5.englab.juniper.net': Error: std::exception

(0) libbase.so: void
boost::throw_exception<icinga::openssl_error>(icinga::openssl_error
const&) (+0x97) [0x7fc324760c67]
(1) libbase.so: void
boost::exception_detail::throw_exception_<icinga::openssl_error>(icinga::openssl_error
const&, char const*, char const*, int) (+0x40) [0x7fc324760d10]
(2) libbase.so: icinga::TlsStream::HandleError() const (+0xbc)
[0x7fc3246fdd2c]
(3) libbase.so: icinga::TlsStream::Read(void*, unsigned long, bool)
(+0x83) [0x7fc3246fdeb3]
(4) libbase.so:
icinga::StreamReadContext::FillFromStream(boost::intrusive_ptr<icinga::Stream>
const&, bool) (+0x7c) [0x7fc32470d9ac]
(5) libbase.so:
icinga::NetString::ReadStringFromStream(boost::intrusive_ptr<icinga::Stream>
const&, icinga::String*, icinga::StreamReadContext&, bool) (+0xce)
[0x7fc32471c0ce]
(6) libremote.so:
icinga::JsonRpc::ReadMessage(boost::intrusive_ptr<icinga::Stream>
const&, boost::intrusive_ptr<icinga::Dictionary>*,
icinga::StreamReadContext&, bool) (+0x3d) [0x7fc321c24cad]
(7) libremote.so: icinga::JsonRpcConnection::ProcessMessage() (+0x65)
[0x7fc321c459f5]
(8) libremote.so: icinga::JsonRpcConnection::DataAvailableHandler()
(+0x38) [0x7fc321c62848]
(9) libbase.so: boost::signals2::detail::signal_impl<void
(boost::intrusive_ptr<icinga::Stream> const&),
boost::signals2::optional_last_value<void>, int, std::less<int>,
boost::function<void (boost::intrusive_ptr<icinga::Stream> const&)>,
boost::function<void (boost::signals2::connection const&,
boost::intrusive_ptr<icinga::Stream> const&)>,
boost::signals2::mutex>::operator()(boost::intrusive_ptr<icinga::Stream>
const&) (+0x1cc) [0x7fc324794f2c]
(10) libbase.so: icinga::Stream::SignalDataAvailable() (+0x30)
[0x7fc324743620]
(11) libbase.so: icinga::TlsStream::OnEvent(int) (+0x3a8) [0x7fc324743b08]
(12) libbase.so: icinga::SocketEvents::ThreadProc() (+0x23a)
[0x7fc3247406aa]
(13) libboost_thread.so.1.54.0: <unknown function> (+0xba4a)
[0x7fc3250a9a4a]
(14) libpthread.so.0: <unknown function> (+0x8182) [0x7fc324a16182]
(15) libc.so.6: clone (+0x6d) [0x7fc32388347d]




I am using ubuntu with these versions:

ii  icinga2  2.4.1-1~ppa1~trusty1          amd64        host and
network monitoring system
ii  icinga2-bin  2.4.1-1~ppa1~trusty1          amd64        host and
network monitoring system - daemon
ii  icinga2-common 2.4.1-1~ppa1~trusty1          all          host and
network monitoring system - common files
ii  icinga2-doc  2.4.1-1~ppa1~trusty1          all          host and
network monitoring system - documentation
ii  icinga2-ido-mysql  2.4.1-1~ppa1~trusty1          amd64        host
and network monitoring system - MySQL support
ii  icingaweb2                           2.1.0-2~~ppa1
all          simple and responsive web interface for Icinga
ii  icingaweb2-module-doc                2.1.0-2~~ppa1
all          simple and responsive web interface for Icinga -
documentation module
ii  icingaweb2-module-monitoring         2.1.0-2~~ppa1
all          simple and responsive web interface for Icinga -
monitoring module
ii  libicinga2 2.4.1-1~ppa1~trusty1          amd64        host and
network monitoring system - internal libraries
ii  php-icinga                           2.1.0-2~~ppa1
all          PHP library to communicate with and use Icinga

Please help , am I missing anything .


Thanks,
mgochhait



_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users


-- 
Michael Friedrich, DI (FH)
Senior Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | michael.friedr...@netways.de

** OSDC 2016 - April - netways.de/osdc **
** OSBConf 2016 - September - osbconf.org **
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to