Description of problem: cephadm bootstrap is not applying the configuration which passed via the option "--apply-spec" Version-Release number of selected component (if applicable): ceph version 16.2.0-152.el8cp Steps to Reproduce: 1. Create a spec file with host, alertmanager, crash, grafana, mgr, mon, node-exporter, prometheus and osd. 2. Bootstrap the cluster using cephadm with the option "--apply-spec". Actual results: Not applying the configuration after bootstrap. Expected results: The configuration should be apply after bootstrap the cluster.
Getting the below error: # cephadm --verbose bootstrap --mon-ip <IP> --registry-json <registry_details> --apply-spec <service.yaml> --allow-fqdn-hostname [...] Running command: /usr/bin/podman run --rm --ipc=host --authfile=/etc/ceph/podman-auth.json --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=registry.redhat.io/rhceph/rhceph-5-rhel8:latest -e NODE_NAME=rhcs51.sample.com -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/5acfc0f4-996b-11ec-bb1b-001a4a00055c:/var/log/ceph:z -v /tmp/ceph-tmpjrl7v51u:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpfv5vddti:/etc/ceph/ceph.conf:z -v /usr/share/cephadm-ansible/service.yaml:/tmp/spec.yml:z registry.redhat.io/rhceph/rhceph-5-rhel8:latest orch apply -i /tmp/spec.yml /usr/bin/ceph: Error: relabeling content in /usr is not allowed Non-zero exit code 126 from /usr/bin/podman run --rm --ipc=host --authfile=/etc/ceph/podman-auth.json --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=registry.redhat.io/rhceph/rhceph-5-rhel8:latest -e NODE_NAME=rhcs51.sample.com -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/5acfc0f4-996b-11ec-bb1b-001a4a00055c:/var/log/ceph:z -v /tmp/ceph-tmpjrl7v51u:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpfv5vddti:/etc/ceph/ceph.conf:z -v /usr/share/cephadm-ansible/service.yaml:/tmp/spec.yml:z registry.redhat.io/rhceph/rhceph-5-rhel8:latest orch apply -i /tmp/spec.yml /usr/bin/ceph: stderr Error: relabeling content in /usr is not allowed Traceback (most recent call last): File "/usr/sbin/cephadm", line 8140, in <module> main() File "/usr/sbin/cephadm", line 8128, in main r = ctx.func(ctx) File "/usr/sbin/cephadm", line 1730, in _default_image return func(ctx) File "/usr/sbin/cephadm", line 4156, in command_bootstrap out = cli(['orch', 'apply', '-i', '/tmp/spec.yml'], extra_mounts=mounts) File "/usr/sbin/cephadm", line 4050, in cli ).run(timeout=timeout) File "/usr/sbin/cephadm", line 3286, in run desc=self.entrypoint, timeout=timeout) File "/usr/sbin/cephadm", line 1424, in call_throws raise RuntimeError('Failed command: %s' % ' '.join(command)) RuntimeError: Failed command: /usr/bin/podman run --rm --ipc=host --authfile=/etc/ceph/podman-auth.json --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=registry.redhat.io/rhceph/rhceph-5-rhel8:latest -e NODE_NAME=rhcs51.sample.com -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/5acfc0f4-996b-11ec-bb1b-001a4a00055c:/var/log/ceph:z -v /tmp/ceph-tmpjrl7v51u:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpfv5vddti:/etc/ceph/ceph.conf:z -v /usr/share/cephadm-ansible/service.yaml:/tmp/spec.yml:z registry.redhat.io/rhceph/rhceph-5-rhel8:latest orch apply -i /tmp/spec.yml