← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1302661] Re: Notifier fails to start when old config params are used and there are missing dependencies

 

Reviewed:  https://review.openstack.org/85664
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=69fdd19cf1f780a24c48efa5fc3f317f6b451f9c
Submitter: Jenkins
Branch:    milestone-proposed

commit 69fdd19cf1f780a24c48efa5fc3f317f6b451f9c
Author: Flavio Percoco <flaper87@xxxxxxxxx>
Date:   Fri Apr 4 17:16:32 2014 +0200

    Catch loading failures if transport_url is not set
    
    The current implementation always tries to get a transport from
    oslo.messaging assuming the transport_url option has been set. This is
    done to keep backwards compatibility. However, since the default
    `rpc_backend` is rabbit, it'll always try to load such driver. The
    problem raises when `kombu` is not installed and the `notifier_strategy`
    is set to qpid. This will make glance-api fail because it'll try to load
    the rabbit driver *before* loading the qpid one.
    
    This patch puts the first load attempt in a try / except block. The
    error caught (if any) will be re-raised *just* if transport_url has been
    configured, otherwise it'll move forward and try to load the notifier
    driver using the old configuration options.
    
    The patch also removes an obsolete test.
    
    Change-Id: I00e653704463ea8245e2960050e0d5e6839f278a
    Closes-bug: #1302661
    (cherry picked from commit 164d1ab46f06141e2c12b944e15ae10f20dace38)


** Changed in: glance
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1302661

Title:
  Notifier fails to start when old config params are used and there are
  missing dependencies

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  The current implementation always tries to get a transport from
  oslo.messaging assuming the transport_url option has been set. This is
  done to keep backwards compatibility. However, since the default
  `rpc_backend` is rabbit, it'll always try to load such driver. The
  problem raises when `kombu` is not installed and the
  `notifier_strategy` is set to qpid. This will make glance-api fail
  because it'll try to load the rabbit driver *before* loading the qpid
  one.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1302661/+subscriptions


References