Bug 1383183

Summary: On an SSL enabled overcloud the Ceilometer api returns http URL
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-ceilometerAssignee: Juan Antonio Osorio <josorior>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: dbecker, jcoufal, jjoyce, josorior, jruzicka, jschluet, mburns, morazi, nkinder, rhel-osp-director-maint, srevivo
Target Milestone: gaKeywords: Triaged
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-tripleo-5.4.0-3.el7ost openstack-ceilometer-7.0.0-2.2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1384329 (view as bug list) Environment:
Last Closed: 2016-12-14 16:14:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1384329    

Description Marius Cornea 2016-10-10 06:25:21 UTC
Description of problem:
On an SSL enabled overcloud the Ceilometer api returns http URL

[stack@undercloud-0 ~]$ openstack catalog show ceilometer
+-----------+-----------------------------------------+
| Field     | Value                                   |
+-----------+-----------------------------------------+
| endpoints | regionOne                               |
|           |   publicURL: https://172.16.18.25:13777 |
|           |   internalURL: http://10.0.0.5:8777     |
|           |   adminURL: http://10.0.0.5:8777        |
|           |                                         |
| name      | ceilometer                              |
| type      | metering                                |
+-----------+-----------------------------------------+

[stack@undercloud-0 ~]$ curl -s -H "X-Auth-Token: $OS_TOKEN" https://172.16.18.25:13777/  | python -m json.tool
{
    "versions": {
        "values": [
            {
                "id": "v2",
                "links": [
                    {
                        "href": "http://172.16.18.25:13777/v2",
                        "rel": "self"
                    },
                    {
                        "href": "http://docs.openstack.org/",
                        "rel": "describedby",
                        "type": "text/html"
                    }
                ],
                "media-types": [
                    {
                        "base": "application/json",
                        "type": "application/vnd.openstack.telemetry-v2+json"
                    },
                    {
                        "base": "application/xml",
                        "type": "application/vnd.openstack.telemetry-v2+xml"
                    }
                ],
                "status": "stable",
                "updated": "2013-02-13T00:00:00Z"
            }
        ]
    }
}


Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-5.0.0-0.20160929150845.4cdc4fc.el7ost.noarch
openstack-ceilometer-api-7.0.0-0.20160928024313.67bbd3f.el7ost.noarch

How reproducible:
100%

Comment 2 Nathan Kinder 2016-10-12 21:42:30 UTC
The fix for this has merged upstream in master, bu tis still needed in stable/newton.

Comment 3 Juan Antonio Osorio 2016-10-13 06:20:08 UTC
backported it to stable/newton upstream

Comment 4 Nathan Kinder 2016-10-20 21:53:40 UTC
This has merged upstream for both master and stable/newton.

Comment 8 Rob Crittenden 2016-11-14 19:31:26 UTC
No changes to this component are required. This is being blocked by BZ 1370018 which is fixed upstream and should be in a build soon.

Comment 13 Yurii Prokulevych 2016-12-02 13:57:04 UTC
openstack catalog show ceilometer
+-----------+------------------------------------------------------------+
| Field     | Value                                                      |
+-----------+------------------------------------------------------------+
| endpoints | regionOne                                                  |
|           |   publicURL: https://[2620:52:0:13b8:5054:ff:fe3e:1]:13777 |
|           |   internalURL: http://[fd00:fd00:fd00:2000::18]:8777       |
|           |   adminURL: http://[fd00:fd00:fd00:2000::18]:8777          |
|           |                                                            |
| name      | ceilometer                                                 |
| type      | metering                                                   |
+-----------+------------------------------------------------------------+

curl -s -XGET -H 'X-Auth-Token: 0aba049b59e84ef1861324a1dfd75024' -g https://[2620:52:0:13b8:5054:ff:fe3e:1]:13777/ | python -m json.tool
{
    "versions": {
        "values": [
            {
                "id": "v2",
                "links": [
                    {
                        "href": "https://[2620:52:0:13b8:5054:ff:fe3e:1]:13777/v2",
                        "rel": "self"
                    },
                    {
                        "href": "http://docs.openstack.org/",
                        "rel": "describedby",
                        "type": "text/html"
                    }
                ],
                "media-types": [
                    {
                        "base": "application/json",
                        "type": "application/vnd.openstack.telemetry-v2+json"
                    },
                    {
                        "base": "application/xml",
                        "type": "application/vnd.openstack.telemetry-v2+xml"
                    }
                ],
                "status": "stable",
                "updated": "2013-02-13T00:00:00Z"
            }
        ]
    }
}

Packages:
puppet-tripleo-5.4.0-3.el7ost.noarch
openstack-ceilometer-common-7.0.0-4.el7ost.noarch

Comment 15 errata-xmlrpc 2016-12-14 16:14:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2948.html