Wrong usage of parameter `endpoint_override`

Bug #1621505 reported by Ekaterina Khomyakova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
Fix Released
High
tamil vanan

Bug Description

affects: fuel → heat
tags: removed: area-qa
Changed in heat:
status: New → Confirmed
tamil vanan (tamilhce)
Changed in heat:
assignee: nobody → tamil vanan (tamilhce)
status: Confirmed → In Progress
Revision history for this message
tamil vanan (tamilhce) wrote :

As mentioned

https://github.com/openstack/python-heatclient/blob/master/heatclient/common/http.py#L350

if its causing any issue in heat functionality, share me the steps to reproduce , else we can remove or comment out the "endpoint_override"

Revision history for this message
Ekaterina Khomyakova (ekhomyakova) wrote :

https://bugs.launchpad.net/fuel/+bug/1621471
https://review.openstack.org/#/c/367363

heat stack can not be created when we use this:
`HeatClient(session=self.keystone_session, endpoint_override=endpoint)`
now we have to use
`HeatClient(session=self.keystone_session, endpoint=endpoint)`
but it is not the same way, that we use for all others OpenStack clients.

Revision history for this message
Aleksei Stepanov (penguinolog) wrote :

In glanceclient working code:

    if session:
        if endpoint:
            kwargs.setdefault('endpoint_override', endpoint)

Revision history for this message
tamil vanan (tamilhce) wrote :

@Alelxey thanks giving a prompt suggestion

Revision history for this message
Rabi Mishra (rabi) wrote :

When using sessions you should generally use service_type and not an explicit endpoint with endpoint_override with any client. Though we should also support endpoint_override.

affects: heat → python-heatclient
Changed in python-heatclient:
assignee: tamil vanan (tamilhce) → Rabi Mishra (rabi)
Rabi Mishra (rabi)
Changed in python-heatclient:
assignee: Rabi Mishra (rabi) → tamil vanan (tamilhce)
Revision history for this message
Aleksei Stepanov (penguinolog) wrote :

Sorry, folks, is bugfix really in progress?

Revision history for this message
Rabi Mishra (rabi) wrote :

@Alexey,

As mentioned in an earlier comment, why're using endpoint_override when you can easily use service_type with session and keystone does the job finding the endpoint for you? However, there patch is in review to allow endpoint_override to be used.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-heatclient (master)

Reviewed: https://review.openstack.org/367502
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=f2147f79aaa42aedbb8c3413151fade301f468e8
Submitter: Jenkins
Branch: master

commit f2147f79aaa42aedbb8c3413151fade301f468e8
Author: tamilhce <email address hidden>
Date: Fri Sep 9 09:25:41 2016 +0530

    Don't use endpoint_override with session

    We should not use endpoint_override by default and rather
    use service_type with session. This also refactors some of
    the associated code.

    However, if one wants to override the endpoint they can pass
    endpoint_override to the client constructor along with session.

    Change-Id: I7c27d8ff827de3b4bb3e70457c0b6a3f47b6d7bb
    Co-Authored-By: Rabi Mishra <email address hidden>
    Closes-Bug: #1621505

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

This issue was fixed in the openstack/python-heatclient 1.6.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.