Bug 1857776

Summary: Provide tools to generate input for CephExternalMultiConfig
Product: Red Hat OpenStack Reporter: John Fulton <johfulto>
Component: python-tripleoclientAssignee: John Fulton <johfulto>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: abishop, alfrgarc, bdobreli, gcharot, hbrock, jslagle, mburns, nwolf, rheslop, spower, sputhenp, yrabl
Target Milestone: z3Keywords: FutureFeature, Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.3.2-1.20200914164929.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-15 18:35:45 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: 1802774, 1879518, 1882054, 1894668    

Description John Fulton 2020-07-16 14:35:53 UTC
The process to generate a valid CephExternalMultiConfig entry [1] from config-download when deploying storage on the Edge is cumbersome and error prone. 

As per bz 1808424 we can (and should) validate the entry syntactically, but there should also be a tool to generate to generate a yaml file with the necessary entries itself. Producing such a tool should be tracked in this BZ.

The tool would follow the same pattern as the work done for bz 1766711


[1]

  CephExternalMultiConfig:
    - cluster: 'ceph2'
      fsid: 'af25554b-42f6-4d2b-9b9b-d08a1132d3e8'
      external_cluster_mon_ips: '172.18.0.5,172.18.0.6,172.18.0.7'
      keys:
        - name: "client.openstack"
          caps:
            mgr: "allow *"
            mon: "profile rbd"
            osd: "osd: profile rbd pool=volumes, profile rbd pool=backups, profile rbd pool=vms, profile rbd pool=images"
          key: "AQCwmeRcAAAAABAA6SQU/bGqFjlfLro5KxrB1Q=="
          mode: "0600"
      dashboard_enabled: false
    - cluster: 'ceph3'
      fsid: 'e2cba068-5f14-4b0f-b047-acf375c0004a'
      external_cluster_mon_ips: '172.18.0.8,172.18.0.9,172.18.0.10'
      keys:
        - name: "client.openstack"
          caps:
            mgr: "allow *"
            mon: "profile rbd"
            osd: "osd: profile rbd pool=volumes, profile rbd pool=backups, profile rbd pool=vms, profile rbd pool=images"
          key: "AQCwmeRcAAAAABAA6SQU/bGqFjlfLro5KxrB2Q=="
          mode: "0600"
      dashboard_enabled: false

Comment 1 John Fulton 2020-07-16 14:52:01 UTC
I think this is a usability issue we should try to address in 16.1.z2

Comment 27 errata-xmlrpc 2020-12-15 18:35:45 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 (Red Hat OpenStack Platform 16.1.3 bug fix and enhancement advisory), 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-2020:5413

Comment 28 John Fulton 2021-01-14 14:33:26 UTC
*** Bug 1808424 has been marked as a duplicate of this bug. ***