top-level namespace methods cause collisions

Bug #1429096 reported by Michael Renner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-heat
Fix Released
Critical
Emilien Macchi
puppet-neutron
Fix Released
Critical
Emilien Macchi
Revision history for this message
Stefan Andres (s-andres) wrote :

That bug leads to being unable to use heat::keystone::domain and neutron::server::notifications because both provider have different definitions which causes such things:

Error: /Stage[main]/Neutron::Server::Notifications/Nova_admin_tenant_id_setter[nova_admin_tenant_id]: Could not evaluate: Received error response from Keystone server at http://x.x.x.x:35357/v2.0/tenants: Unauthorized

Revision history for this message
Colleen Murphy (krinkle) wrote :

As a temporary workaround we could simply rename the methods in one of the providers, or they could be moved to within the scope of the provider.

Changed in puppet-neutron:
importance: Undecided → Critical
Revision history for this message
Emilien Macchi (emilienm) wrote :

With all the refactorization we are doing to support both Keystone v2 & v3, I think we should wait until it lands in openstacklib, and refactor puppet-neutron & puppet-heat to use it.
It will avoid work duplication.

Changed in puppet-neutron:
assignee: nobody → Emilien Macchi (emilienm)
Revision history for this message
Emilien Macchi (emilienm) wrote :
Changed in puppet-heat:
importance: Undecided → Critical
assignee: nobody → Emilien Macchi (emilienm)
Changed in puppet-heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-neutron (master)

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

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

Reviewed: https://review.openstack.org/173544
Committed: https://git.openstack.org/cgit/stackforge/puppet-neutron/commit/?id=ccccfb97edcd28bb57e34464a4842555c39c06a6
Submitter: Jenkins
Branch: master

commit ccccfb97edcd28bb57e34464a4842555c39c06a6
Author: Emilien Macchi <email address hidden>
Date: Tue Apr 14 17:42:54 2015 -0400

    Rename handle_request to neutron_handle_request

    To avoid a future colision with other modules, we rename the
    handle_request method with a prefix (module name).

    Same patch in puppet-heat: https://review.openstack.org/#/c/162292/
    Closes-bug: #1429096

    Change-Id: If477dd15b1ffeb957481494a1da0b3e8ab29e299

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

Reviewed: https://review.openstack.org/162292
Committed: https://git.openstack.org/cgit/stackforge/puppet-heat/commit/?id=d73a719477806d2f9db18847fd2b84e41518daaa
Submitter: Jenkins
Branch: master

commit d73a719477806d2f9db18847fd2b84e41518daaa
Author: Emilien Macchi <email address hidden>
Date: Fri Mar 6 15:31:09 2015 -0500

    rename keystone_v2_authenticate method

    In puppet-neutron, keystone_v2_authenticate already exists and is in
    colision with the keystone_v2_authenticate in puppet-heat.

    While we move the whole method in puppet-openstacklib, let's just rename
    the method from keystone_v2_authenticate to keystone_v2_auth.

    Closes-bug #1429096

    Change-Id: I15b6d0550bb3baef37d7536d264b822768802ad0

Changed in puppet-heat:
status: In Progress → Fix Committed
Mathieu Gagné (mgagne)
Changed in puppet-heat:
milestone: none → 6.0.0
Changed in puppet-neutron:
milestone: none → 6.0.0
Mathieu Gagné (mgagne)
Changed in puppet-neutron:
status: Fix Committed → Fix Released
Changed in puppet-heat:
status: Fix Committed → Fix Released
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.