Bug 2008426

Summary: tripleo-ansible-inventory no longer functional
Product: Red Hat OpenStack Reporter: mathieu bultel <mbultel>
Component: openstack-tripleo-validationsAssignee: mathieu bultel <mbultel>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 17.0 (Wallaby)CC: astillma, bdobreli, gchamoul, jamsmith, jjoyce, jlibosva, jschluet, ltoscano, slinaber, tvignaud
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-14.2.2-0.20220728100828.37bfae3.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:17:08 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: 2040667    

Description mathieu bultel 2021-09-28 08:38:23 UTC
Since the recent change with TripleO (no Heat and Nova) the tripleo ansible inventory script is broken in master/wallaby.

We need to fix it or even get rid of the script itself:

tripleo-ansible-inventory tool no longer functions in master.

(undercloud) [centos@undercloud-0 ~]$ tripleo-ansible-inventory
Traceback (most recent call last):
  File "/usr/bin/tripleo-ansible-inventory", line 239, in <module>
    main()
  File "/usr/bin/tripleo-ansible-inventory", line 178, in main
    utils.get_swift_client(auth_variables))
  File "/usr/lib/python3.6/site-packages/tripleo_validations/utils.py", line 91, in list_plan_and_stack
    stacks = [s.stack_name for s in hclient.stacks.list()]
  File "/usr/lib/python3.6/site-packages/tripleo_validations/utils.py", line 91, in <listcomp>
    stacks = [s.stack_name for s in hclient.stacks.list()]
  File "/usr/lib/python3.6/site-packages/heatclient/v1/stacks.py", line 136, in paginate
    stacks = self._list(url, 'stacks')
  File "/usr/lib/python3.6/site-packages/heatclient/common/base.py", line 114, in _list
    body = self.client.get(url).json()
  File "/usr/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 395, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python3.6/site-packages/heatclient/common/http.py", line 320, in request
    **kwargs)
  File "/usr/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 554, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 257, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python3.6/site-packages/keystoneauth1/session.py", line 812, in request
    **endpoint_filter)
  File "/usr/lib/python3.6/site-packages/keystoneauth1/session.py", line 1243, in get_endpoint
    return auth.get_endpoint(self, **kwargs)
  File "/usr/lib/python3.6/site-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint
    allow_version_hack=allow_version_hack, **kwargs)
  File "/usr/lib/python3.6/site-packages/keystoneauth1/identity/base.py", line 279, in get_endpoint_data
    service_name=service_name)
  File "/usr/lib/python3.6/site-packages/keystoneauth1/access/service_catalog.py", line 462, in endpoint_data_for
    raise exceptions.EndpointNotFound(msg)
keystoneauth1.exceptions.catalog.EndpointNotFound: public endpoint for orchestration service not found

Comment 3 mathieu bultel 2022-05-11 12:57:16 UTC
Hi Jakub,

Sorry for the delay, I didnt catch the BZ notifcation on that one.

On 17 tripleo-ansible-inventory should be deprecated, the inventory is dumped after the deployment in the $HOME directory.
You should find an up to date inventory into config-download directory.

We are lacking of clean and up to date documentation.

Ping me on irc (nick matbu) if you need to chat about that.

Comment 14 errata-xmlrpc 2022-09-21 12:17:08 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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://access.redhat.com/errata/RHEA-2022:6543

Comment 15 Red Hat Bugzilla 2023-09-18 04:26:28 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days