Bug 1481985 - Token 'ServiceCatalog' returns incorrect URLs
Summary: Token 'ServiceCatalog' returns incorrect URLs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-provider-ovn
Classification: oVirt
Component: provider
Version: 1.0.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ovirt-4.2.0
: ---
Assignee: Marcin Mirecki
QA Contact: Mor
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-16 08:34 UTC by Mor
Modified: 2017-12-20 11:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:17:53 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
conf files and provider log (59.77 KB, application/zip)
2017-08-16 08:34 UTC, Mor
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 81002 0 master MERGED URLs returned by POST tokens must have proper protocol http/https 2017-08-30 09:30:10 UTC

Description Mor 2017-08-16 08:34:24 UTC
Created attachment 1313999 [details]
conf files and provider log

Description of problem:
When OVN provider is configured to work with HTTPS protocol, a post request to get a token from https://<host>:35357/v2.0/tokens:

Body:
{
  "auth" : {
    "passwordCredentials" : {
      "username" : "<user>",
      "password" : "<pass>"
    }
  }
}

results in URL's with incorrect HTTP protocol:
{
    "endpoints_links":
    [
    ],
    "endpoints":
    [
        {
            "adminURL": "http://localhost:9696/v2.0/networks",
            "region": "RegionOne",
            "id": "00000000000000000000000000000001",
            "internalURL": "http://localhost:9696/v2.0/networks",
            "publicURL": "http://localhost:9696/v2.0/networks"
        }
    ],
    "type": "network",
    "name": "neutron"
},
{
    "endpoints_links":
    [
    ],
    "endpoints":
    [
        {
            "adminURL": "http://localhost:35357/v2.0/tokens",
            "region": "RegionOne",
            "publicURL": "http://localhost:35357/v2.0/tokens",
            "internalURL": "http://localhost:35357/v2.0/tokens",
            "id": "00000000000000000000000000000002"
        }
    ],
    "type": "identity",
    "name": "keystone"
}

Version-Release number of selected component (if applicable):
ovirt-provider-ovn-1.1-2.20170710074946.git5abef7f.el7.centos.noarch

How reproducible:
100%

Comment 1 Mor 2017-09-04 13:03:29 UTC
Verified on:
ovirt-provider-ovn-1.1-2.20170901074127.gitaaaa5fa.el7.centos.noarch

Comment 2 Sandro Bonazzola 2017-12-20 11:17:53 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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


Note You need to log in before you can comment on or make changes to this bug.