Bug 2008426 - tripleo-ansible-inventory no longer functional
Summary: tripleo-ansible-inventory no longer functional
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: mathieu bultel
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks: 2040667
TreeView+ depends on / blocked
 
Reported: 2021-09-28 08:38 UTC by mathieu bultel
Modified: 2023-09-18 04:26 UTC (History)
10 users (show)

Fixed In Version: openstack-tripleo-validations-14.2.2-0.20220728100828.37bfae3.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:17:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 813535 0 None master: MERGED tripleo-validations: Deprecates tripleo-ansible-inventory and remove tripleo-validation scripts (Ie02259336c763cfa980b59... 2022-08-29 18:33:10 UTC
OpenStack gerrit 847162 0 None stable/wallaby: MERGED tripleo-validations: Deprecates tripleo-ansible-inventory and remove tripleo-validation scripts (Ie02259336c763cfa980b59... 2022-08-29 18:33:15 UTC
Red Hat Issue Tracker OSP-9974 0 None None None 2021-11-15 12:42:56 UTC
Red Hat Issue Tracker VALFRWK-639 0 None None None 2021-09-28 09:21:55 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:17:36 UTC

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


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