Bug 1497207 - incorrect api call while creating a new openstack tenant
Summary: incorrect api call while creating a new openstack tenant
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.8.0
Hardware: All
OS: All
high
medium
Target Milestone: GA
: 5.8.5
Assignee: Gilles Dubreuil
QA Contact: Dave Johnson
URL:
Whiteboard:
: 1496795 (view as bug list)
Depends On:
Blocks: 1383197 1572700
TreeView+ depends on / blocked
 
Reported: 2017-09-29 13:27 UTC by Felix Dewaleyne
Modified: 2021-09-09 12:38 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-17 13:51:18 UTC
Category: Bug
Cloudforms Team: Openstack
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Felix Dewaleyne 2017-09-29 13:27:34 UTC
Description of problem:
when creating a new openstack tenant the api call incorrectly calls /v2.0//v3/tenants

Version-Release number of selected component (if applicable):
openstack 9
cfme 5.8.1.5

How reproducible:
all the time

Steps to Reproduce:
1.create new tenant
2.
3.

Actual results:
[----] E, [2017-09-26T19:51:43.137377 #3270:8aa1d8] ERROR -- : MIQ(cloud_tenant_controller-wait_for_task): Unable to create Cloud Tenant "project1": Expected([200]) <=> Actual(404 Not Found)
excon.error.response
  :body          => "{\"error\": {\"message\": \"The resource could not be found.\", \"code\": 404, \"title\": \"Not Found\"}}"
  :cookies       => [
  ]
  :headers       => {
    "Content-Length"         => "93"
    "Content-Type"           => "application/json"
    "Date"                   => "Tue, 26 Sep 2017 16:52:19 GMT"
    "Server"                 => "Apache/2.4.6 (Red Hat Enterprise Linux) mod_wsgi/3.4 Python/2.7.5"
    "Vary"                   => "X-Auth-Token"
    "x-openstack-request-id" => "req-af357fa3-4216-4742-9153-6c723d071fb4"
  }
  :host          => "keystone-server"
  :local_address => "10.99.99.123"
  :local_port    => 44660
  :path          => "/v2.0//v3/tenants"
  :port          => 35357
  :reason_phrase => "Not Found"
  :remote_ip     => "10.99.99.202"
  :status        => 404
  :status_line   => "HTTP/1.1 404 Not Found\r\n"


Expected results:
the new tenant is created

Additional info:

Comment 15 Gilles Dubreuil 2018-08-17 13:51:18 UTC
OSP11 has, by default, a wrong endpoint definition for Identity where the url shouldn't contain a '/v3' suffix. Editing the endpoint to remove that suffix is the only fix.

Comment 16 Sam Lucidi 2018-09-13 17:19:15 UTC
*** Bug 1496795 has been marked as a duplicate of this bug. ***

Comment 17 Gilles Dubreuil 2018-09-17 23:55:04 UTC
Just adding some extra information,

Although fog-openstack version 0.2.4+ is able to handle a versioned endpoint for Identity service, such version of fog-openstack won't be supported by cloudform engine 5.9 and 5.8.


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