nagios "python" expansion breaks in UCS Blade environment

Bug #1111374 reported by Robert Starmer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
High
Chris Ricker
Folsom
Fix Released
High
Chris Ricker

Bug Description

The python node expansion script breaks in a UCS blade environemnt where there is an extra parameter in the cobbler_node definition:

info: /Stage[main]/Nagios/File[/etc/nagios3/conf.d/nagios_openstack.py]: Scheduling refresh of Service[nagios3]
notice: /Stage[main]/Nagios/Exec[get-all-available-hosts]/returns: Traceback (most recent call last):
notice: /Stage[main]/Nagios/Exec[get-all-available-hosts]/returns: File "/etc/nagios3/conf.d/nagios_openstack.py", line 35, in <module>
notice: /Stage[main]/Nagios/Exec[get-all-available-hosts]/returns: host_name, node_type, mac_address, ip_address, power_address = line.split('"')[1::2]
notice: /Stage[main]/Nagios/Exec[get-all-available-hosts]/returns: ValueError: too many values to unpack
err: /Stage[main]/Nagios/Exec[get-all-available-hosts]/returns: change from notrun to 0 failed: python /etc/nagios3/conf.d/nagios_openstack.py returned 1 instead of one of [0] at /etc/puppet/modules/nagios/manifests/init.pp:31

There is an extra variable 'power_id' in the list that breaks the current expansion. Adding this variable fixes the run for the UCS blade systems, but would require an un-used parameter for rack based systems

Revision history for this message
Chris Ricker (chris-ricker) wrote :

The new nagios setup (https://github.com/CiscoSystems/folsom-manifests/pull/39 and related commits) eliminates this issue

Changed in openstack-cisco:
milestone: none → 2012.2.3
status: New → Fix Committed
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.