Bug 2041933 - fence_openstack: add support for reading config from clouds.yaml
Summary: fence_openstack: add support for reading config from clouds.yaml
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2022-01-31
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: fence-agents
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.0
Assignee: Oyvind Albrigtsen
QA Contact: Brandon Perkins
URL:
Whiteboard:
Depends On:
Blocks: 2121838
TreeView+ depends on / blocked
 
Reported: 2022-01-18 14:52 UTC by Oyvind Albrigtsen
Modified: 2022-11-15 10:31 UTC (History)
4 users (show)

Fixed In Version: fence-agents-4.10.0-30.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 09:59:10 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-5764 0 None None None 2022-05-23 16:02:41 UTC
Red Hat Issue Tracker RHELPLAN-108480 0 None None None 2022-01-18 15:01:45 UTC
Red Hat Product Errata RHBA-2022:7981 0 None None None 2022-11-15 09:59:48 UTC

Description Oyvind Albrigtsen 2022-01-18 14:52:35 UTC
Description of problem:
Unable to use ~/.config/openstack/clouds.yaml or /etc/openstack/clouds.yaml config files.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Create fence_openstack fence device
2.
3.

Actual results:
Unable to set cloud to use in config files, and agent doesnt look for the config files.

Expected results:
Able to set cloud=<name> to use config from ~/.config/openstack/clouds.yaml or /etc/openstack/clouds.yaml (~/ takes precedent like it does for openstack cli).

Additional info:
https://github.com/ClusterLabs/fence-agents/pull/465
https://github.com/ClusterLabs/fence-agents/pull/466

Comment 1 Oyvind Albrigtsen 2022-01-18 15:03:31 UTC
Example clouds.yaml:
[root@nodea ~]# cat .config/openstack/clouds.yaml 
clouds:
  rhelha-user:
    auth:
      auth_url: https://<IP>:13000/
      project_name: projectname
      username: user
      password: pass
      user_domain_name: Default
      project_domain_name: Default
    region_name: regionOne
    verify: False

Comment 2 Chris Feist 2022-01-18 19:53:02 UTC
Setting ITM to 26 to get release+. Brandon, if we need a different ITM go ahead and change it.

Comment 15 errata-xmlrpc 2022-11-15 09:59:10 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 (fence-agents bug fix and enhancement update), 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/RHBA-2022:7981


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