monasca-statsd is a non-optional import even when disabled

Bug #1630666 reported by David Moreau Simard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Low
Alex Schultz

Bug Description

https://review.openstack.org/#/c/322252/ introduced a monasca-statsd metrics implementation which claims to be disabled by default: https://review.openstack.org/#/c/322252/18/etc/designate/designate.conf.sample

But the import is non-optional and will cause stack traces if monasca-statsd is not installed:
http://logs.openstack.org/51/382351/3/check/gate-puppet-openstack-integration-4-scenario003-tempest-centos-7/ea19afd/logs/syslog.txt.gz#_Oct_05_15_40_12

This should be considered an optional metrics backend, such as there are different backends in Cinder or Glance. It should not be in requirements.txt but be a requirement when the monasca metrics are enabled.

If someone is not interested in the Monasca metrics, he should not need to install it for designate to work.

Revision history for this message
Tim Simmons (timsim) wrote :

We should probably be using setup.cfg optional requirement groups for this, we'll talk to the infra folks, because that's currently not a thing that is supported.

Changed in designate:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Tim Simmons (timsim) wrote :

In the meantime, we should endeavor to make this not a required import.

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

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

Changed in designate:
assignee: nobody → Alex Schultz (alex-schultz)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/389800
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=417efcc510ef476e550c03ef6d33899bf5b5ca99
Submitter: Jenkins
Branch: master

commit 417efcc510ef476e550c03ef6d33899bf5b5ca99
Author: Alex Schultz <email address hidden>
Date: Fri Oct 21 11:06:27 2016 -0600

    Add noop metrics client

    With the addition of monasca-statsd as part of
    I990472fa059afde37f7e4a1284360c17162aab49, it's a required dependency
    even if not used. For upstream packages which do not have the
    monasca-statsd available, we need to be able to continue to have
    designate working without it. This change makes the monasca-statsd
    dependency optional at runtime by falling back to a noop client that
    mocks out the interface for monasca-statsd but does nothing.

    Change-Id: Idf986c514b26f1d2799903b2a4e581a1166343cc
    Closes-Bug: #1630666

Changed in designate:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 4.0.0.0b2

This issue was fixed in the openstack/designate 4.0.0.0b2 development milestone.

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.