Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1481985

Summary: Token 'ServiceCatalog' returns incorrect URLs
Product: [oVirt] ovirt-provider-ovn Reporter: Mor <mkalfon>
Component: providerAssignee: Marcin Mirecki <mmirecki>
Status: CLOSED CURRENTRELEASE QA Contact: Mor <mkalfon>
Severity: low Docs Contact:
Priority: low    
Version: 1.0.4CC: bugs, danken, ylavi
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:17:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
conf files and provider log none

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.