Failed to validate Drive Group: OSD spec needs a `placement` key.

Bug #1961486 reported by Ted Lum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
New
Undecided
Unassigned

Bug Description

During openstack deploy...

cephadm fails with "Failed to validate Drive Group: OSD spec needs a `placement` key." when applying ceph_spec.yaml, generated by /usr/share/ansible/plugins/modules/ceph_spec_bootstrap.py.

Apparently, given my configuration and version specifics, cephadm requires a placement key; i.e.

---
data_devices:
  all: true
placement:
  host_pattern: '*'
service_id: default_drive_group
service_name: osd.default_drive_group
service_type: osd

which will not be generated by /usr/share/ansible/plugins/modules/ceph_spec_bootstrap.py.

With a simple change I got passed the issue:

--- /usr/share/ansible/plugins/modules/ceph_spec_bootstrap.original.py 2022-02-19 12:02:12.654281362 -0500
+++ /usr/share/ansible/plugins/modules/ceph_spec_bootstrap.py 2022-02-19 11:00:29.439744887 -0500
@@ -326,7 +326,7 @@

     # Create service entries for supported services in SERVICE_MAP
     labels = []
- placement_pattern = ''
+ placement_pattern = '*'
     spec_dict = {}
     for svc in ceph_service_types:
         host_list = []

but I have no idea how many other valid configuration permutations there are or how this change would or would not adversely affect them. I'll leave a proposed remediation to those far more knowledgeable than I.

This is Xena release, from:

python3-tripleo-repos-0.1.1-0.20220201181859.87c9879.el8.noarch.rpm

ceph containers:

parameter_defaults:
  ContainerImagePrepare:
  - push_destination: true
    set:
      ceph_alertmanager_image: alertmanager
      ceph_alertmanager_namespace: quay.ceph.io/prometheus
      ceph_alertmanager_tag: v0.16.2
      ceph_grafana_image: grafana
      ceph_grafana_namespace: quay.ceph.io/app-sre
      ceph_grafana_tag: 6.7.4
      ceph_image: daemon
      ceph_namespace: quay.io/ceph
      ceph_node_exporter_image: node-exporter
      ceph_node_exporter_namespace: quay.ceph.io/prometheus
      ceph_node_exporter_tag: v0.17.0
      ceph_prometheus_image: prometheus
      ceph_prometheus_namespace: quay.ceph.io/prometheus
      ceph_prometheus_tag: v2.7.2
      ceph_tag: v6.0.4-stable-6.0-pacific-centos-8-x86_64
      name_prefix: openstack-
      name_suffix: ''
      namespace: quay.io/tripleomaster
      neutron_driver: ovn
      rhel_containers: false
      tag: current-tripleo
    tag_from_label: rdo_version

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.