Allow plugins to be specified as a cloud_backend

Bug #1242870 reported by andrew plunk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
andrew plunk

Bug Description

Right now because clients.py configures the client class to use when it's module is imported. This is a problem if you want to use any of your plugins as a cloud_backend. clients.py should be changes so that it does not choose the client class until after the plugins are initialized.

Revision history for this message
andrew plunk (andrew-plunk) wrote :
Changed in heat:
assignee: nobody → andrew plunk (andrew-plunk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/53013
Committed: http://github.com/openstack/heat/commit/8ce5e0f88edecd3ab1d58136ebfac7543938d80f
Submitter: Jenkins
Branch: master

commit 8ce5e0f88edecd3ab1d58136ebfac7543938d80f
Author: Andrew Plunk <email address hidden>
Date: Mon Oct 21 16:12:54 2013 -0700

    Allow plugins to be specified as a cloud_backend

    Currently, the cloud_backend configuration option can only use modules
    imported in-tree before clients.py is imported. This does not work for
    plugins because they are dynamically imported in
    heat/engine/resources/__init__.py after clients.py is imported. Change
    the cloud_backend module to be specified when the client class needs
    to be initialized rather than when clients.py is imported. This change
    requires a class to be specified for the cloud_backend rather than a
    module name.

    Change-Id: I8f2b93bfb6a9585d1e7dc52d70092105b6e1bfaa
    Closes-Bug: 1242870

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → icehouse-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-1 → 2014.1
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.