get_watch_server_url() doesn't work in 'uwsgi' mode

Bug #1716815 reported by huangtianhua
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
huangtianhua

Bug Description

'mod_wsgi' is deprecated, and now by default we use 'uwsgi' mode which runs with an apache proxy uwsgi in front of it.
so the service endpoint has been changed, like service type 'cloudformation', the url in the format 'http://10.3.150.21/heat-api-cfn/v1' instead of 'http://10.3.150.21:8000/v1'. So the method get_watch_server_url() doesn't work anymore in 'uwsgi' mode, and I will check other related methods incorrect.

Changed in heat:
assignee: nobody → huangtianhua (huangtianhua)
importance: Undecided → High
description: updated
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/504876

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/504876
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=a8af89ec9733039ec43cdad1af0821feea93499c
Submitter: Jenkins
Branch: master

commit a8af89ec9733039ec43cdad1af0821feea93499c
Author: huangtianhua <email address hidden>
Date: Mon Sep 18 15:59:21 2017 +0800

    Make sure we can get watch server url in uwsgi mode

    We get the 'watch' server url by translating the
    'cfn' server url if the 'watch' server url is not
    configurated, but in uwsgi mode, the code logic is
    incorrect, this patch changes the logic to make sure
    that we can get the watch server url in both modes.

    Change-Id: Iebf2480f97c11474412d74726eba9cf5c8ed2193
    Closes-Bug: #1716815

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/508021

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/pike)

Reviewed: https://review.openstack.org/508021
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=def03c72401df744515cc5ad965021613dff9c8f
Submitter: Jenkins
Branch: stable/pike

commit def03c72401df744515cc5ad965021613dff9c8f
Author: huangtianhua <email address hidden>
Date: Mon Sep 18 15:59:21 2017 +0800

    Make sure we can get watch server url in uwsgi mode

    We get the 'watch' server url by translating the
    'cfn' server url if the 'watch' server url is not
    configurated, but in uwsgi mode, the code logic is
    incorrect, this patch changes the logic to make sure
    that we can get the watch server url in both modes.

    Change-Id: Iebf2480f97c11474412d74726eba9cf5c8ed2193
    Closes-Bug: #1716815
    (cherry picked from commit a8af89ec9733039ec43cdad1af0821feea93499c)

tags: added: in-stable-pike
Changed in heat:
milestone: none → queens-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 10.0.0.0b1

This issue was fixed in the openstack/heat 10.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 9.0.1

This issue was fixed in the openstack/heat 9.0.1 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.