[RFE] SNMP UDP timeout / retries are not configurable

Bug #1640932 reported by Félix Bouliane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Wishlist
Félix Bouliane

Bug Description

Some PDU seems to take a long time to respond. The default configuration of snmpset (retries=5, timeout=1) is sometimes not sufficient to be able to snmp set/get. It would be nice, as an openstack operator, to make ironic's udp timeout and retries configurable in the global configuration.

# Conductor log
WARNING ironic.conductor.manager [-] During sync_power_state, could not get power state for node XX-XX-XX-XX, attempt 1 of 3. Error: SNMP operation 'GET' failed: No SNMP response received before timeout.

# Behavior when SNMP set with insufficient timeout
Timeout: No Response from X.X.X.X.

# Time for a response (in the case of SNMPSET)
$ time snmpset -t5 -r0 -v2c X.X.X.X ${OID} i 0
${OID} = INTEGER: 0

real 0m2.711s
user 0m0.000s
sys 0m0.006s
Raw

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/396400

Changed in ironic:
assignee: nobody → Félix Bouliane (fbouliane)
status: New → In Progress
tags: added: rfe
description: updated
Ruby Loo (rloo)
Changed in ironic:
importance: Undecided → Wishlist
summary: - SNMP UDP timeout / retries are not configurable
+ [RFE] SNMP UDP timeout / retries are not configurable
Revision history for this message
Ruby Loo (rloo) wrote :

Discussed with Jim Rollenhagen. We know that there is work being done to un-deprecate SNMP. Until then, we're going to mark this as 'Won't Fix'. (So it is easier for us to track which RFEs are open, etc.)

Changed in ironic:
status: In Progress → Won't Fix
Revision history for this message
Dmitry Tantsur (divius) wrote :

The SNMP driver is supported again, reopening.

Changed in ironic:
status: Won't Fix → Confirmed
Changed in ironic:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/494787

Changed in ironic:
assignee: Félix Bouliane (fbouliane) → Vladyslav Drok (vdrok)
Vladyslav Drok (vdrok)
Changed in ironic:
assignee: Vladyslav Drok (vdrok) → Félix Bouliane (fbouliane)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/396400
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=4acc0ed4cea444ce660cc49f917191d41e3a04f5
Submitter: Jenkins
Branch: master

commit 4acc0ed4cea444ce660cc49f917191d41e3a04f5
Author: Félix Bouliane <email address hidden>
Date: Thu Nov 10 15:41:18 2016 -0500

    Make SNMP UDP transport settings configurable

    SNMP timeout and retries are now configurable through ironic.conf. This
    allows to have custom configurations when certain PDUs are slower than
    others.

    The config defaults are the same defaults that cmdgen.UdpTransportTarget
    uses (1.0 second timeout and 5 retries). The config is now reflecting
    these defaults.

    Closes-Bug: #1640932
    Change-Id: I2490902ad2e39e8e4dc34484799a0dae96bc57f8

Changed in ironic:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (stable/pike)

Reviewed: https://review.openstack.org/494787
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=5b1a565d7b9328b6fa49e89c328268d7c4393b68
Submitter: Jenkins
Branch: stable/pike

commit 5b1a565d7b9328b6fa49e89c328268d7c4393b68
Author: Félix Bouliane <email address hidden>
Date: Thu Nov 10 15:41:18 2016 -0500

    Make SNMP UDP transport settings configurable

    SNMP timeout and retries are now configurable through ironic.conf. This
    allows to have custom configurations when certain PDUs are slower than
    others.

    The config defaults are the same defaults that cmdgen.UdpTransportTarget
    uses (1.0 second timeout and 5 retries). The config is now reflecting
    these defaults.

    Closes-Bug: #1640932
    Change-Id: I2490902ad2e39e8e4dc34484799a0dae96bc57f8
    (cherry picked from commit 80b4424877e55cedf3640a3bbfc208d83ea00c2b)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ironic 9.1.0

This issue was fixed in the openstack/ironic 9.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ironic 9.2.0

This issue was fixed in the openstack/ironic 9.2.0 release.

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.