Zabbix plugin: fail to deploy with base-os

Bug #1515956 reported by Swann Croiset
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Released
Critical
Olivier Bourdon

Bug Description

Steps to reporduce:

1/ create a cluster: 1 controller 1 compute 1 base-os
2/ deploy

expected result:
deployment ok

actual result: fail to deploy

Diagnotic: the plugin fails when puppet code try to register the host to zabbix api because the node with base-os role doesn't have access to the management network.

Puppet logs:

2015-11-13 10:47:49 +0000 Class[Plugin_zabbix::Agent] (info): Evaluated in 0.00 seconds
2015-11-13 10:47:49 +0000 /Stage[main]/Plugin_zabbix::Agent/Plugin_zabbix_host[node-10.test.domain.local] (info): Starting to evaluate the resource
2015-11-13 10:47:49 +0000 Puppet (info): Trying to make a request to zabbix server, will try 10 times with 1 seconds between tries
2015-11-13 10:47:49 +0000 Puppet (info): Retry #0/10:
2015-11-13 10:47:50 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 0 (retry (#0/10))
2015-11-13 10:47:50 +0000 Puppet (info): Retry #1/10:
2015-11-13 10:47:51 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 1 (retry (#1/10))
2015-11-13 10:47:52 +0000 Puppet (info): Retry #2/10:
2015-11-13 10:47:53 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 2 (retry (#2/10))
2015-11-13 10:47:55 +0000 Puppet (info): Retry #3/10:
2015-11-13 10:47:56 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 3 (retry (#3/10))
2015-11-13 10:47:59 +0000 Puppet (info): Retry #4/10:
2015-11-13 10:48:00 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 4 (retry (#4/10))
2015-11-13 10:48:04 +0000 Puppet (info): Retry #5/10:
2015-11-13 10:48:05 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 5 (retry (#5/10))
2015-11-13 10:48:10 +0000 Puppet (info): Retry #6/10:
2015-11-13 10:48:11 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 6 (retry (#6/10))
2015-11-13 10:48:17 +0000 Puppet (info): Retry #7/10:
2015-11-13 10:48:18 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 7 (retry (#7/10))
2015-11-13 10:48:25 +0000 Puppet (info): Retry #8/10:
2015-11-13 10:48:26 +0000 Puppet (warning): Could not make request to zabbix: Connection refused - connect(2), sleeping 8 (retry (#8/10))
2015-11-13 10:48:34 +0000 Puppet (info): Retry #9/10:
2015-11-13 10:48:35 +0000 Puppet (warning): Out of retries to make a request to zabbix server (10)
2015-11-13 10:48:35 +0000 /Stage[main]/Plugin_zabbix::Agent/Plugin_zabbix_host[node-10.test.domain.local] (err): Could not evaluate: Connection refused - connect(2)
/usr/lib/ruby/1.9.1/net/http.rb:763:in `initialize'
/usr/lib/ruby/1.9.1/net/http.rb:763:in `open'
/usr/lib/ruby/1.9.1/net/http.rb:763:in `block in connect'
/usr/lib/ruby/1.9.1/timeout.rb:55:in `timeout'
/usr/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
/usr/lib/ruby/1.9.1/net/http.rb:763:in `connect'
/usr/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
/usr/lib/ruby/1.9.1/net/http.rb:745:in `start'
/usr/lib/ruby/1.9.1/net/http.rb:1285:in `request'
/etc/fuel/plugins/zabbix_monitoring-2.5/puppet/modules/plugin_zabbix/lib/puppet/provider/plugin_zabbix.rb:50:in `make_request'
/etc/fuel/plugins/zabbix_monitoring-2.5/puppet/modules/plugin_zabbix/lib/puppet/provider/plugin_zabbix.rb:64:in `block in api_request'
/etc/fuel/plugins/zabbix_monitoring-2.5/puppet/modules/plugin_zabbix/lib/puppet/provider/plugin_zabbix.rb:61:in `times'
/etc/fuel/plugins/zabbix_monitoring-2.5/puppet/modules/plugin_zabbix/lib/puppet/provider/plugin_zabbix.rb:61:in `api_request'
/etc/fuel/plugins/zabbix_monitoring-2.5/puppet/modules/plugin_zabbix/lib/puppet/provider/plugin_zabbix.rb:88:in `auth'
/etc/fuel/plugins/zabbix_monitoring-2.5/puppet/modules/plugin_zabbix/lib/puppet/provider/plugin_zabbix.rb:92:in `auth'
/etc/fuel/plugins/zabbix_monitoring-2.5/puppet/modules/plugin_zabbix/lib/puppet/provider/plugin_zabbix_host/ruby.rb:23:in `exists?'
/usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:1035:in `retrieve'
/usr/lib/ruby/vendor_ruby/puppet/type.rb:1063:in `retrieve_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:223:in `from_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:19:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:187:in `eval_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:117:in `call'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:117:in `block (2 levels) in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:327:in `block in thinmark'
/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:326:in `thinmark'

Swann Croiset (swann-w)
Changed in fuel-plugins:
assignee: nobody → Fuel Plugin Zabbix (fuel-plugin-zabbix)
status: New → Confirmed
tags: added: area-plugins
Revision history for this message
Olivier Bourdon (olivierbourdon38) wrote :

Currently testing tentative fix

Changed in fuel-plugins:
assignee: Fuel Plugin Zabbix (fuel-plugin-zabbix) → Olivier Bourdon (olivierbourdon38)
status: Confirmed → In Progress
Revision history for this message
Bartosz Kupidura (zynzel) wrote :

Virt role should be also handled as base-os. It is possible to deploy Virt and controllers inside VM

Revision history for this message
Anton Matveev (amatveev) wrote :

sla1 for MOS 7.0

tags: added: customer-found sla1
Swann Croiset (swann-w)
Changed in fuel-plugins:
status: In Progress → Fix Committed
Changed in fuel-plugins:
milestone: none → 7.0
Changed in fuel-plugins:
importance: Undecided → Critical
tags: added: zabbix
Swann Croiset (swann-w)
Changed in fuel-plugins:
status: Fix Committed → In Progress
Swann Croiset (swann-w)
Changed in fuel-plugins:
status: In Progress → Fix Committed
Tony Tarasov (atarasov)
tags: added: support
Revision history for this message
Olivier Bourdon (olivierbourdon38) wrote :
Changed in fuel-plugins:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.